@parhelia/localization 0.1.10882 → 0.1.10884
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/setup/LocalizationSetupStep.d.ts.map +1 -1
- package/dist/setup/LocalizationSetupStep.js +7 -6
- package/dist/translation-center/BatchTranslationView.d.ts.map +1 -1
- package/dist/translation-center/BatchTranslationView.js +4 -3
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAWtD,OAAO,EAAE,mBAAmB,EAAsB,MAAM,gBAAgB,CAAC;AASzE,QAAA,MAAM,wCAAwC;;;;;;;;;;;;8BAalB,qBAAqB;;CAGhD,CAAC;AAEF,QAAA,MAAM,4CAA4C;;;;;;;CAUjD,CAAC;AAEF,OAAO,EAAE,wCAAwC,EAAE,4CAA4C,EAAE,CAAC;AAClG,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,YAAY,EACV,mBAAmB,EACnB,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,YAAY,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEhF,MAAM,MAAM,yBAAyB,GAAG;IACtC;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,mBAAmB,EAClC,OAAO,CAAC,EAAE,yBAAyB,uBAmGpC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { ServiceLanguageSelectionStep } from "./steps/ServiceLanguageSelectionStep";
|
|
3
4
|
import { SubitemDiscoveryStep } from "./steps/SubitemDiscoveryStep";
|
|
4
5
|
import { localizeItemCommand } from "./LocalizeItemCommand";
|
|
@@ -6,12 +7,12 @@ import { TranslationSidebar } from "./sidebar/TranslationSidebar";
|
|
|
6
7
|
import { TranslationManagement } from "./translation-center/TranslationManagement";
|
|
7
8
|
import { RecentTranslations } from "./translation-center/RecentTranslations";
|
|
8
9
|
import { LocalizationSetupStep } from "./setup/LocalizationSetupStep";
|
|
9
|
-
import {
|
|
10
|
+
import { Languages as LucideLanguages, LayoutGrid as LucideLayoutGrid, } from "lucide-react";
|
|
10
11
|
import { pageEditorViewBase } from "@parhelia/core";
|
|
11
|
-
// Icon wrappers to avoid React 19 JSX type issues with forwardRef components
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
const
|
|
12
|
+
// Icon wrappers to avoid React 19 JSX type issues with forwardRef components.
|
|
13
|
+
// Use React.createElement so we don't call the forwardRef objects as functions.
|
|
14
|
+
const LanguagesIcon = (props) => React.createElement(LucideLanguages, props);
|
|
15
|
+
const LayoutGridIcon = (props) => React.createElement(LucideLayoutGrid, props);
|
|
15
16
|
const DEFAULT_TRANSLATION_WIZARD_CONFIGURATION = {
|
|
16
17
|
steps: [
|
|
17
18
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalizationSetupStep.d.ts","sourceRoot":"","sources":["../../src/setup/LocalizationSetupStep.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LocalizationSetupStep.d.ts","sourceRoot":"","sources":["../../src/setup/LocalizationSetupStep.tsx"],"names":[],"mappings":"AAmCA,wBAAgB,qBAAqB,4CAwNpC;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -3,12 +3,13 @@ import React, { useCallback, useState } from "react";
|
|
|
3
3
|
import { Card, Button, useEditContext } from "@parhelia/core";
|
|
4
4
|
import { CheckCircle as LucideCheckCircle, AlertCircle as LucideAlertCircle, Languages as LucideLanguages, RefreshCw as LucideRefreshCw, Plus as LucidePlus, } from "lucide-react";
|
|
5
5
|
import { getAvailableTranslationServices, createProviderSettings, } from "../services/translationService";
|
|
6
|
-
// Wrappers so React 19 sees plain function components instead of forwardRef types
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
6
|
+
// Wrappers so React 19 sees plain function components instead of forwardRef types.
|
|
7
|
+
// Use React.createElement so we don't call the forwardRef objects as functions at runtime.
|
|
8
|
+
const CheckCircleIcon = (props) => React.createElement(LucideCheckCircle, props);
|
|
9
|
+
const AlertCircleIcon = (props) => React.createElement(LucideAlertCircle, props);
|
|
10
|
+
const LanguagesIcon = (props) => React.createElement(LucideLanguages, props);
|
|
11
|
+
const RefreshCwIcon = (props) => React.createElement(LucideRefreshCw, props);
|
|
12
|
+
const PlusIcon = (props) => React.createElement(LucidePlus, props);
|
|
12
13
|
export function LocalizationSetupStep() {
|
|
13
14
|
const editContext = useEditContext();
|
|
14
15
|
const [state, setState] = useState("checking");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BatchTranslationView.d.ts","sourceRoot":"","sources":["../../src/translation-center/BatchTranslationView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BatchTranslationView.d.ts","sourceRoot":"","sources":["../../src/translation-center/BatchTranslationView.tsx"],"names":[],"mappings":"AAsBA,UAAU,yBAAyB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAoCD,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,yBAAyB,2CA0yBlF"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState, useMemo, useRef, useCallback } from "react";
|
|
2
|
+
import React, { useEffect, useState, useMemo, useRef, useCallback } from "react";
|
|
3
3
|
import { useDebouncedCallback } from "use-debounce";
|
|
4
4
|
import { useEditContext, SimpleTable, Progress as CoreProgress, Button, } from "@parhelia/core";
|
|
5
5
|
import { listBatchTranslationJobs, subscribeToBatch, unsubscribeFromBatch, getBatchInfo, getTranslationProviders } from "../services/translationService";
|
|
6
|
-
// Wrapper so React 19 sees a plain function component instead of a forwardRef exotic component
|
|
7
|
-
|
|
6
|
+
// Wrapper so React 19 sees a plain function component instead of a forwardRef exotic component.
|
|
7
|
+
// Use React.createElement so we don't call the forwardRef object as a function at runtime.
|
|
8
|
+
const Progress = (props) => React.createElement(CoreProgress, props);
|
|
8
9
|
// Normalize API shape/casing to what the UI expects
|
|
9
10
|
function normalizeBatchInfo(raw) {
|
|
10
11
|
if (!raw)
|