@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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAYtD,OAAO,EAAE,mBAAmB,EAAsB,MAAM,gBAAgB,CAAC;AAUzE,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;;;;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Y,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 { Globe as LucideGlobe, Languages as LucideLanguages, LayoutGrid as LucideLayoutGrid, } from "lucide-react";
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
- const LanguagesIcon = (props) => LucideLanguages(props);
13
- const LayoutGridIcon = (props) => LucideLayoutGrid(props);
14
- const GlobeIcon = (props) => LucideGlobe(props);
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":"AAkCA,wBAAgB,qBAAqB,4CAwNpC;AAED,eAAe,qBAAqB,CAAC"}
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
- const CheckCircleIcon = (props) => LucideCheckCircle(props);
8
- const AlertCircleIcon = (props) => LucideAlertCircle(props);
9
- const LanguagesIcon = (props) => LucideLanguages(props);
10
- const RefreshCwIcon = (props) => LucideRefreshCw(props);
11
- const PlusIcon = (props) => LucidePlus(props);
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":"AAoBA,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
+ {"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
- const Progress = (props) => CoreProgress(props);
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parhelia/localization",
3
- "version": "0.1.10882",
3
+ "version": "0.1.10884",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"