Skip to content

Commit

Permalink
Merge branch 'main' into add-multiselect-to-combobox
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfheij-sil committed Nov 25, 2024
2 parents 2087fd5 + 830cca4 commit 69e46c9
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 344 deletions.
2 changes: 1 addition & 1 deletion extensions/src/legacy-comment-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"react-dom": ">=18.3.1"
},
"dependencies": {
"@biblionexus-foundation/scripture-utilities": "^0.0.4",
"@biblionexus-foundation/scripture-utilities": "~0.0.5",
"@sillsdev/scripture": "^2.0.2",
"platform-bible-utils": "file:../../../lib/platform-bible-utils"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"%paratextRegistration_description_internetUse_option_Disabled%": "Disable all Internet use",
"%paratextRegistration_description_internetUse_option_ProxyOnly%": "Use a proxy",
"%paratextRegistration_description_internetUse_option_VpnRequired%": "Disable Internet use in sensitive locations",
"%paratextRegistration_description_shared_with_paratext_9%": "Theses settings also apply to Paratext 9.",
"%paratextRegistration_label_emailAddress%": "Email address",
"%paratextRegistration_label_proxyHost%": "Host",
"%paratextRegistration_label_proxyMode%": "Mode",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ const LOCALIZED_STRING_KEYS: LocalizeKey[] = [
'%paratextRegistration_button_saveAndRestart%',
'%paratextRegistration_description_internetUse_disclaimer%',
...INTERNET_USE_OPTIONS.map(getLocalizeKeyForInternetUse),
'%paratextRegistration_description_shared_with_paratext_9%',
'%paratextRegistration_label_emailAddress%',
'%paratextRegistration_label_proxyHost%',
'%paratextRegistration_label_proxyMode%',
Expand Down Expand Up @@ -307,6 +308,9 @@ globalThis.webViewComponent = function ParatextRegistration({ useWebViewState }:
return (
<div className="tw-p-2 tw-flex tw-flex-col tw-justify-between tw-h-screen">
<div>
<div className="tw-ms-2 tw-text-sm tw-text-muted-foreground">
{localizedStrings['%paratextRegistration_description_shared_with_paratext_9%']}
</div>
<Grid>
<span>{localizedStrings['%paratextRegistration_label_registrationName%']}</span>
<Input value={name} disabled={isFormDisabled} onChange={(e) => setName(e.target.value)} />
Expand Down
4 changes: 2 additions & 2 deletions extensions/src/platform-scripture-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"platform-bible-utils": "file:../../../lib/platform-bible-utils"
},
"devDependencies": {
"@biblionexus-foundation/platform-editor": "^0.6.5",
"@biblionexus-foundation/scripture-utilities": "^0.0.4",
"@biblionexus-foundation/platform-editor": "~0.6.6",
"@biblionexus-foundation/scripture-utilities": "~0.0.5",
"@swc/core": "^1.7.35",
"@tailwindcss/typography": "^0.5.15",
"@types/node": "^20.16.11",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ import {
Marginal,
MarginalRef,
} from '@biblionexus-foundation/platform-editor';
import { MarkerContent, Usj } from '@biblionexus-foundation/scripture-utilities';
import {
MarkerContent,
USJ_TYPE,
USJ_VERSION,
Usj,
} from '@biblionexus-foundation/scripture-utilities';
import { Canon, VerseRef } from '@sillsdev/scripture';
import { JSX, useCallback, useEffect, useMemo, useRef } from 'react';
import type { WebViewProps } from '@papi/core';
Expand All @@ -32,7 +37,7 @@ const VERSE_NUMBER_SCROLL_OFFSET = 80;
*/
const EDITOR_LOAD_DELAY_TIME = 100;

const usjDocumentDefault: Usj = { type: 'USJ', version: '0.2.1', content: [] };
const defaultUsj: Usj = { type: USJ_TYPE, version: USJ_VERSION, content: [] };

/**
* Check deep equality of two values such that two equal objects or arrays created in two different
Expand Down Expand Up @@ -107,7 +112,7 @@ globalThis.webViewComponent = function PlatformScriptureEditor({
projectId,
).ChapterUSJ(
useMemo(() => new VerseRef(scrRef.bookNum, scrRef.chapterNum, scrRef.verseNum), [scrRef]),
usjDocumentDefault,
defaultUsj,
);

const usjSentToPdp = useRef(usjFromPdp);
Expand Down
2 changes: 1 addition & 1 deletion extensions/src/platform-scripture/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"platform-bible-utils": "file:../../../lib/platform-bible-utils"
},
"devDependencies": {
"@biblionexus-foundation/scripture-utilities": "^0.0.4",
"@biblionexus-foundation/scripture-utilities": "~0.0.5",
"@swc/core": "^1.7.35",
"@tailwindcss/typography": "^0.5.15",
"@types/jest": "^29.5.14",
Expand Down
Loading

0 comments on commit 69e46c9

Please sign in to comment.