preact-intlayer 9.8.4 → 9.8.5

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/README.md CHANGED
@@ -190,6 +190,7 @@ Explore our comprehensive documentation to get started with Intlayer and learn h
190
190
  <li><a href="https://intlayer.org/doc/environment/vite-and-react" rel=''>Vite + React using Compiler</a></li>
191
191
  <li><a href="https://intlayer.org/doc/environment/vite-and-react/react-router-v7" rel=''>React-router-v7</a></li>
192
192
  <li><a href="https://intlayer.org/doc/environment/remix-3" rel=''>Remix 3</a></li>
193
+ <li><a href="https://intlayer.org/doc/environment/vinext" rel=''>vinext (Next.js on Vite)</a></li>
193
194
  <li><a href="https://intlayer.org/doc/environment/tanstack-start" rel=''>Tanstack start</a>
194
195
  <ul>
195
196
  <li><a href="https://intlayer.org/doc/environment/tanstack-start/solid" rel=''>Solid</a></li>
@@ -0,0 +1,31 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ let _intlayer_editor_isEnabled = require("@intlayer/editor/isEnabled");
3
+ let preact_hooks = require("preact/hooks");
4
+
5
+ // src/editor/useEditedContentSource.ts
6
+ /**
7
+ * Returns the source string edited in the visual editor for a markdown / html
8
+ * node, or `undefined` when the node is not edited (or the editor is off).
9
+ */
10
+ const useEditedContentSource = (dictionaryKey, keyPath) => {
11
+ const [editedSource, setEditedSource] = (0, preact_hooks.useState)();
12
+ const keyPathJson = JSON.stringify(keyPath ?? []);
13
+ (0, preact_hooks.useEffect)(() => {
14
+ if (process.env.INTLAYER_EDITOR_ENABLED === "false" || !_intlayer_editor_isEnabled.isEnabled) return;
15
+ if (!dictionaryKey) return;
16
+ let isStopped = false;
17
+ let unsubscribe = null;
18
+ import("@intlayer/editor").then(({ subscribeToEditedContentSource }) => {
19
+ if (isStopped) return;
20
+ unsubscribe = subscribeToEditedContentSource(dictionaryKey, JSON.parse(keyPathJson), setEditedSource);
21
+ }).catch(() => {});
22
+ return () => {
23
+ isStopped = true;
24
+ unsubscribe?.();
25
+ };
26
+ }, [dictionaryKey, keyPathJson]);
27
+ return editedSource;
28
+ };
29
+
30
+ exports.useEditedContentSource = useEditedContentSource;
31
+ //# sourceMappingURL=useEditedContentSource.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEditedContentSource.cjs","names":["useState","isEnabled"],"sources":["../../../src/editor/useEditedContentSource.ts"],"sourcesContent":["import { isEnabled } from '@intlayer/editor/isEnabled';\nimport type { KeyPath } from '@intlayer/types/keyPath';\nimport { useEffect, useState } from 'preact/hooks';\n\n/**\n * Returns the source string edited in the visual editor for a markdown / html\n * node, or `undefined` when the node is not edited (or the editor is off).\n */\nexport const useEditedContentSource = (\n dictionaryKey: string | undefined,\n keyPath: KeyPath[] | undefined\n): string | undefined => {\n const [editedSource, setEditedSource] = useState<string | undefined>();\n const keyPathJson = JSON.stringify(keyPath ?? []);\n\n useEffect(() => {\n if (process.env.INTLAYER_EDITOR_ENABLED === 'false' || !isEnabled) return;\n if (!dictionaryKey) return;\n\n let isStopped = false;\n let unsubscribe: (() => void) | null = null;\n\n import('@intlayer/editor')\n .then(({ subscribeToEditedContentSource }) => {\n if (isStopped) return;\n\n unsubscribe = subscribeToEditedContentSource(\n dictionaryKey,\n JSON.parse(keyPathJson) as KeyPath[],\n setEditedSource\n );\n })\n .catch(() => {});\n\n return () => {\n isStopped = true;\n unsubscribe?.();\n };\n }, [dictionaryKey, keyPathJson]);\n\n return editedSource;\n};\n"],"mappings":";;;;;;;;;AAQA,MAAa,0BACX,eACA,YACuB;CACvB,MAAM,CAAC,cAAc,uBAAmBA,uBAA6B;CACrE,MAAM,cAAc,KAAK,UAAU,WAAW,CAAC,CAAC;CAEhD,kCAAgB;EACd,IAAI,QAAQ,IAAI,4BAA4B,WAAW,CAACC,sCAAW;EACnE,IAAI,CAAC,eAAe;EAEpB,IAAI,YAAY;EAChB,IAAI,cAAmC;EAEvC,OAAO,mBAAmB,CACvB,MAAM,EAAE,qCAAqC;GAC5C,IAAI,WAAW;GAEf,cAAc,+BACZ,eACA,KAAK,MAAM,WAAW,GACtB,eACF;EACF,CAAC,CAAC,CACD,YAAY,CAAC,CAAC;EAEjB,aAAa;GACX,YAAY;GACZ,cAAc;EAChB;CACF,GAAG,CAAC,eAAe,WAAW,CAAC;CAE/B,OAAO;AACT"}
@@ -2,14 +2,16 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
  const require_client_useLocale = require("../client/useLocale.cjs");
5
+ const require_editor_useEditedContentSource = require("../editor/useEditedContentSource.cjs");
5
6
  const require_markdown_MarkdownProvider = require("./MarkdownProvider.cjs");
6
7
  let _intlayer_core_markdown = require("@intlayer/core/markdown");
7
8
  let _intlayer_core_dictionaryManipulator = require("@intlayer/core/dictionaryManipulator");
8
9
 
9
10
  // src/markdown/MarkdownRendererPlugin.tsx
10
11
  const MarkdownRendererPlugin = (props) => {
11
- const { children, options, components } = props;
12
+ const { dictionaryKey, keyPath, options, components } = props;
12
13
  const context = require_markdown_MarkdownProvider.useMarkdownContext();
14
+ const children = require_editor_useEditedContentSource.useEditedContentSource(dictionaryKey, keyPath) ?? props.children;
13
15
  return (context?.renderMarkdown ?? ((md) => md))(children, options, {
14
16
  ...context?.components ?? {},
15
17
  ...components ?? {}
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownRendererPlugin.cjs","names":["useMarkdownContext","useLocale","getMarkdownMetadata","getContentNodeByKeyPath"],"sources":["../../../src/markdown/MarkdownRendererPlugin.tsx"],"sourcesContent":["'use client';\n\nimport { getContentNodeByKeyPath } from '@intlayer/core/dictionaryManipulator';\nimport { getMarkdownMetadata } from '@intlayer/core/markdown';\nimport type { ContentNode } from '@intlayer/types/dictionary';\nimport type { KeyPath } from '@intlayer/types/keyPath';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\nimport type { ComponentChildren, FunctionComponent } from 'preact';\nimport { useLocale } from '../client/useLocale';\nimport type { HTMLComponents } from '../html/types';\nimport {\n type MarkdownProviderOptions,\n useMarkdownContext,\n} from './MarkdownProvider';\n\ntype MarkdownRendererPluginProps = {\n dictionaryKey: string;\n keyPath: KeyPath[];\n locale?: LocalesValues;\n children: string;\n options?: MarkdownProviderOptions;\n components?: HTMLComponents<'permissive', {}>;\n};\n\nexport const MarkdownRendererPlugin: FunctionComponent<\n MarkdownRendererPluginProps\n> = (props): ComponentChildren => {\n const { children, options, components } = props;\n const context = useMarkdownContext();\n const renderMarkdown = context?.renderMarkdown ?? ((md) => md);\n\n return renderMarkdown(children, options, {\n ...(context?.components ?? {}),\n ...(components ?? {}),\n }) as ComponentChildren;\n};\n\ntype MarkdownMetadataRendererProps = MarkdownRendererPluginProps & {\n metadataKeyPath: KeyPath[];\n};\n\nexport const MarkdownMetadataRenderer: FunctionComponent<\n MarkdownMetadataRendererProps\n> = ({ children, metadataKeyPath }): ComponentChildren => {\n const { locale: currentLocale } = useLocale();\n\n const metadata = getMarkdownMetadata(children);\n\n const metadataEl = getContentNodeByKeyPath(\n metadata as ContentNode,\n metadataKeyPath,\n currentLocale as any\n );\n\n return metadataEl as ComponentChildren;\n};\n"],"mappings":";;;;;;;;;AAwBA,MAAa,0BAER,UAA6B;CAChC,MAAM,EAAE,UAAU,SAAS,eAAe;CAC1C,MAAM,UAAUA,qDAAmB;CAGnC,QAFuB,SAAS,oBAAoB,OAAO,IAEtC,CAAC,UAAU,SAAS;EACvC,GAAI,SAAS,cAAc,CAAC;EAC5B,GAAI,cAAc,CAAC;CACrB,CAAC;AACH;AAMA,MAAa,4BAER,EAAE,UAAU,sBAAyC;CACxD,MAAM,EAAE,QAAQ,kBAAkBC,mCAAU;CAE5C,MAAM,eAAWC,6CAAoB,QAAQ;CAQ7C,WANmBC,8DACjB,UACA,iBACA,aAGc;AAClB"}
1
+ {"version":3,"file":"MarkdownRendererPlugin.cjs","names":["useMarkdownContext","useEditedContentSource","useLocale","getMarkdownMetadata","getContentNodeByKeyPath"],"sources":["../../../src/markdown/MarkdownRendererPlugin.tsx"],"sourcesContent":["'use client';\n\nimport { getContentNodeByKeyPath } from '@intlayer/core/dictionaryManipulator';\nimport { getMarkdownMetadata } from '@intlayer/core/markdown';\nimport type { ContentNode } from '@intlayer/types/dictionary';\nimport type { KeyPath } from '@intlayer/types/keyPath';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\nimport type { ComponentChildren, FunctionComponent } from 'preact';\nimport { useLocale } from '../client/useLocale';\nimport { useEditedContentSource } from '../editor/useEditedContentSource';\nimport type { HTMLComponents } from '../html/types';\nimport {\n type MarkdownProviderOptions,\n useMarkdownContext,\n} from './MarkdownProvider';\n\ntype MarkdownRendererPluginProps = {\n dictionaryKey: string;\n keyPath: KeyPath[];\n locale?: LocalesValues;\n children: string;\n options?: MarkdownProviderOptions;\n components?: HTMLComponents<'permissive', {}>;\n};\n\nexport const MarkdownRendererPlugin: FunctionComponent<\n MarkdownRendererPluginProps\n> = (props): ComponentChildren => {\n const { dictionaryKey, keyPath, options, components } = props;\n const context = useMarkdownContext();\n // Live preview of the source edited in the visual editor\n const editedSource = useEditedContentSource(dictionaryKey, keyPath);\n const children = editedSource ?? props.children;\n const renderMarkdown = context?.renderMarkdown ?? ((md) => md);\n\n return renderMarkdown(children, options, {\n ...(context?.components ?? {}),\n ...(components ?? {}),\n }) as ComponentChildren;\n};\n\ntype MarkdownMetadataRendererProps = MarkdownRendererPluginProps & {\n metadataKeyPath: KeyPath[];\n};\n\nexport const MarkdownMetadataRenderer: FunctionComponent<\n MarkdownMetadataRendererProps\n> = ({ children, metadataKeyPath }): ComponentChildren => {\n const { locale: currentLocale } = useLocale();\n\n const metadata = getMarkdownMetadata(children);\n\n const metadataEl = getContentNodeByKeyPath(\n metadata as ContentNode,\n metadataKeyPath,\n currentLocale as any\n );\n\n return metadataEl as ComponentChildren;\n};\n"],"mappings":";;;;;;;;;;AAyBA,MAAa,0BAER,UAA6B;CAChC,MAAM,EAAE,eAAe,SAAS,SAAS,eAAe;CACxD,MAAM,UAAUA,qDAAmB;CAGnC,MAAM,WADeC,6DAAuB,eAAe,OAC/B,KAAK,MAAM;CAGvC,QAFuB,SAAS,oBAAoB,OAAO,IAEtC,CAAC,UAAU,SAAS;EACvC,GAAI,SAAS,cAAc,CAAC;EAC5B,GAAI,cAAc,CAAC;CACrB,CAAC;AACH;AAMA,MAAa,4BAER,EAAE,UAAU,sBAAyC;CACxD,MAAM,EAAE,QAAQ,kBAAkBC,mCAAU;CAE5C,MAAM,eAAWC,6CAAoB,QAAQ;CAQ7C,WANmBC,8DACjB,UACA,iBACA,aAGc;AAClB"}
@@ -0,0 +1,30 @@
1
+ import { isEnabled } from "@intlayer/editor/isEnabled";
2
+ import { useEffect, useState } from "preact/hooks";
3
+
4
+ // src/editor/useEditedContentSource.ts
5
+ /**
6
+ * Returns the source string edited in the visual editor for a markdown / html
7
+ * node, or `undefined` when the node is not edited (or the editor is off).
8
+ */
9
+ const useEditedContentSource = (dictionaryKey, keyPath) => {
10
+ const [editedSource, setEditedSource] = useState();
11
+ const keyPathJson = JSON.stringify(keyPath ?? []);
12
+ useEffect(() => {
13
+ if (process.env.INTLAYER_EDITOR_ENABLED === "false" || !isEnabled) return;
14
+ if (!dictionaryKey) return;
15
+ let isStopped = false;
16
+ let unsubscribe = null;
17
+ import("@intlayer/editor").then(({ subscribeToEditedContentSource }) => {
18
+ if (isStopped) return;
19
+ unsubscribe = subscribeToEditedContentSource(dictionaryKey, JSON.parse(keyPathJson), setEditedSource);
20
+ }).catch(() => {});
21
+ return () => {
22
+ isStopped = true;
23
+ unsubscribe?.();
24
+ };
25
+ }, [dictionaryKey, keyPathJson]);
26
+ return editedSource;
27
+ };
28
+
29
+ export { useEditedContentSource };
30
+ //# sourceMappingURL=useEditedContentSource.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEditedContentSource.mjs","names":[],"sources":["../../../src/editor/useEditedContentSource.ts"],"sourcesContent":["import { isEnabled } from '@intlayer/editor/isEnabled';\nimport type { KeyPath } from '@intlayer/types/keyPath';\nimport { useEffect, useState } from 'preact/hooks';\n\n/**\n * Returns the source string edited in the visual editor for a markdown / html\n * node, or `undefined` when the node is not edited (or the editor is off).\n */\nexport const useEditedContentSource = (\n dictionaryKey: string | undefined,\n keyPath: KeyPath[] | undefined\n): string | undefined => {\n const [editedSource, setEditedSource] = useState<string | undefined>();\n const keyPathJson = JSON.stringify(keyPath ?? []);\n\n useEffect(() => {\n if (process.env.INTLAYER_EDITOR_ENABLED === 'false' || !isEnabled) return;\n if (!dictionaryKey) return;\n\n let isStopped = false;\n let unsubscribe: (() => void) | null = null;\n\n import('@intlayer/editor')\n .then(({ subscribeToEditedContentSource }) => {\n if (isStopped) return;\n\n unsubscribe = subscribeToEditedContentSource(\n dictionaryKey,\n JSON.parse(keyPathJson) as KeyPath[],\n setEditedSource\n );\n })\n .catch(() => {});\n\n return () => {\n isStopped = true;\n unsubscribe?.();\n };\n }, [dictionaryKey, keyPathJson]);\n\n return editedSource;\n};\n"],"mappings":";;;;;;;;AAQA,MAAa,0BACX,eACA,YACuB;CACvB,MAAM,CAAC,cAAc,mBAAmB,SAA6B;CACrE,MAAM,cAAc,KAAK,UAAU,WAAW,CAAC,CAAC;CAEhD,gBAAgB;EACd,IAAI,QAAQ,IAAI,4BAA4B,WAAW,CAAC,WAAW;EACnE,IAAI,CAAC,eAAe;EAEpB,IAAI,YAAY;EAChB,IAAI,cAAmC;EAEvC,OAAO,mBAAmB,CACvB,MAAM,EAAE,qCAAqC;GAC5C,IAAI,WAAW;GAEf,cAAc,+BACZ,eACA,KAAK,MAAM,WAAW,GACtB,eACF;EACF,CAAC,CAAC,CACD,YAAY,CAAC,CAAC;EAEjB,aAAa;GACX,YAAY;GACZ,cAAc;EAChB;CACF,GAAG,CAAC,eAAe,WAAW,CAAC;CAE/B,OAAO;AACT"}
@@ -1,14 +1,16 @@
1
1
  'use client';
2
2
 
3
3
  import { useLocale } from "../client/useLocale.mjs";
4
+ import { useEditedContentSource } from "../editor/useEditedContentSource.mjs";
4
5
  import { useMarkdownContext } from "./MarkdownProvider.mjs";
5
6
  import { getMarkdownMetadata } from "@intlayer/core/markdown";
6
7
  import { getContentNodeByKeyPath } from "@intlayer/core/dictionaryManipulator";
7
8
 
8
9
  // src/markdown/MarkdownRendererPlugin.tsx
9
10
  const MarkdownRendererPlugin = (props) => {
10
- const { children, options, components } = props;
11
+ const { dictionaryKey, keyPath, options, components } = props;
11
12
  const context = useMarkdownContext();
13
+ const children = useEditedContentSource(dictionaryKey, keyPath) ?? props.children;
12
14
  return (context?.renderMarkdown ?? ((md) => md))(children, options, {
13
15
  ...context?.components ?? {},
14
16
  ...components ?? {}
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownRendererPlugin.mjs","names":[],"sources":["../../../src/markdown/MarkdownRendererPlugin.tsx"],"sourcesContent":["'use client';\n\nimport { getContentNodeByKeyPath } from '@intlayer/core/dictionaryManipulator';\nimport { getMarkdownMetadata } from '@intlayer/core/markdown';\nimport type { ContentNode } from '@intlayer/types/dictionary';\nimport type { KeyPath } from '@intlayer/types/keyPath';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\nimport type { ComponentChildren, FunctionComponent } from 'preact';\nimport { useLocale } from '../client/useLocale';\nimport type { HTMLComponents } from '../html/types';\nimport {\n type MarkdownProviderOptions,\n useMarkdownContext,\n} from './MarkdownProvider';\n\ntype MarkdownRendererPluginProps = {\n dictionaryKey: string;\n keyPath: KeyPath[];\n locale?: LocalesValues;\n children: string;\n options?: MarkdownProviderOptions;\n components?: HTMLComponents<'permissive', {}>;\n};\n\nexport const MarkdownRendererPlugin: FunctionComponent<\n MarkdownRendererPluginProps\n> = (props): ComponentChildren => {\n const { children, options, components } = props;\n const context = useMarkdownContext();\n const renderMarkdown = context?.renderMarkdown ?? ((md) => md);\n\n return renderMarkdown(children, options, {\n ...(context?.components ?? {}),\n ...(components ?? {}),\n }) as ComponentChildren;\n};\n\ntype MarkdownMetadataRendererProps = MarkdownRendererPluginProps & {\n metadataKeyPath: KeyPath[];\n};\n\nexport const MarkdownMetadataRenderer: FunctionComponent<\n MarkdownMetadataRendererProps\n> = ({ children, metadataKeyPath }): ComponentChildren => {\n const { locale: currentLocale } = useLocale();\n\n const metadata = getMarkdownMetadata(children);\n\n const metadataEl = getContentNodeByKeyPath(\n metadata as ContentNode,\n metadataKeyPath,\n currentLocale as any\n );\n\n return metadataEl as ComponentChildren;\n};\n"],"mappings":";;;;;;;;AAwBA,MAAa,0BAER,UAA6B;CAChC,MAAM,EAAE,UAAU,SAAS,eAAe;CAC1C,MAAM,UAAU,mBAAmB;CAGnC,QAFuB,SAAS,oBAAoB,OAAO,IAEtC,CAAC,UAAU,SAAS;EACvC,GAAI,SAAS,cAAc,CAAC;EAC5B,GAAI,cAAc,CAAC;CACrB,CAAC;AACH;AAMA,MAAa,4BAER,EAAE,UAAU,sBAAyC;CACxD,MAAM,EAAE,QAAQ,kBAAkB,UAAU;CAE5C,MAAM,WAAW,oBAAoB,QAAQ;CAQ7C,OANmB,wBACjB,UACA,iBACA,aAGc;AAClB"}
1
+ {"version":3,"file":"MarkdownRendererPlugin.mjs","names":[],"sources":["../../../src/markdown/MarkdownRendererPlugin.tsx"],"sourcesContent":["'use client';\n\nimport { getContentNodeByKeyPath } from '@intlayer/core/dictionaryManipulator';\nimport { getMarkdownMetadata } from '@intlayer/core/markdown';\nimport type { ContentNode } from '@intlayer/types/dictionary';\nimport type { KeyPath } from '@intlayer/types/keyPath';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\nimport type { ComponentChildren, FunctionComponent } from 'preact';\nimport { useLocale } from '../client/useLocale';\nimport { useEditedContentSource } from '../editor/useEditedContentSource';\nimport type { HTMLComponents } from '../html/types';\nimport {\n type MarkdownProviderOptions,\n useMarkdownContext,\n} from './MarkdownProvider';\n\ntype MarkdownRendererPluginProps = {\n dictionaryKey: string;\n keyPath: KeyPath[];\n locale?: LocalesValues;\n children: string;\n options?: MarkdownProviderOptions;\n components?: HTMLComponents<'permissive', {}>;\n};\n\nexport const MarkdownRendererPlugin: FunctionComponent<\n MarkdownRendererPluginProps\n> = (props): ComponentChildren => {\n const { dictionaryKey, keyPath, options, components } = props;\n const context = useMarkdownContext();\n // Live preview of the source edited in the visual editor\n const editedSource = useEditedContentSource(dictionaryKey, keyPath);\n const children = editedSource ?? props.children;\n const renderMarkdown = context?.renderMarkdown ?? ((md) => md);\n\n return renderMarkdown(children, options, {\n ...(context?.components ?? {}),\n ...(components ?? {}),\n }) as ComponentChildren;\n};\n\ntype MarkdownMetadataRendererProps = MarkdownRendererPluginProps & {\n metadataKeyPath: KeyPath[];\n};\n\nexport const MarkdownMetadataRenderer: FunctionComponent<\n MarkdownMetadataRendererProps\n> = ({ children, metadataKeyPath }): ComponentChildren => {\n const { locale: currentLocale } = useLocale();\n\n const metadata = getMarkdownMetadata(children);\n\n const metadataEl = getContentNodeByKeyPath(\n metadata as ContentNode,\n metadataKeyPath,\n currentLocale as any\n );\n\n return metadataEl as ComponentChildren;\n};\n"],"mappings":";;;;;;;;;AAyBA,MAAa,0BAER,UAA6B;CAChC,MAAM,EAAE,eAAe,SAAS,SAAS,eAAe;CACxD,MAAM,UAAU,mBAAmB;CAGnC,MAAM,WADe,uBAAuB,eAAe,OAC/B,KAAK,MAAM;CAGvC,QAFuB,SAAS,oBAAoB,OAAO,IAEtC,CAAC,UAAU,SAAS;EACvC,GAAI,SAAS,cAAc,CAAC;EAC5B,GAAI,cAAc,CAAC;CACrB,CAAC;AACH;AAMA,MAAa,4BAER,EAAE,UAAU,sBAAyC;CACxD,MAAM,EAAE,QAAQ,kBAAkB,UAAU;CAE5C,MAAM,WAAW,oBAAoB,QAAQ;CAQ7C,OANmB,wBACjB,UACA,iBACA,aAGc;AAClB"}
@@ -0,0 +1,7 @@
1
+ import { KeyPath } from "@intlayer/types/keyPath";
2
+ /**
3
+ * Returns the source string edited in the visual editor for a markdown / html
4
+ * node, or `undefined` when the node is not edited (or the editor is off).
5
+ */
6
+ export declare const useEditedContentSource: (dictionaryKey: string | undefined, keyPath: KeyPath[] | undefined) => string | undefined;
7
+ //# sourceMappingURL=useEditedContentSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEditedContentSource.d.ts","names":[],"sources":["../../../src/editor/useEditedContentSource.ts"],"mappings":";;;;;qBAQa,yBAAsB,mCACA,SACxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownRendererPlugin.d.ts","names":[],"sources":["../../../src/markdown/MarkdownRendererPlugin.tsx"],"mappings":";;;;;KAeK;EACH;EACA,SAAS;EACT,SAAS;EACT;EACA,UAAU;EACV,aAAa;;qBAGF,wBAAwB,kBACnC;KAYG,gCAAgC;EACnC,iBAAiB;;qBAGN,0BAA0B,kBACrC"}
1
+ {"version":3,"file":"MarkdownRendererPlugin.d.ts","names":[],"sources":["../../../src/markdown/MarkdownRendererPlugin.tsx"],"mappings":";;;;;KAgBK;EACH;EACA,SAAS;EACT,SAAS;EACT;EACA,UAAU;EACV,aAAa;;qBAGF,wBAAwB,kBACnC;KAeG,gCAAgC;EACnC,iBAAiB;;qBAGN,0BAA0B,kBACrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "preact-intlayer",
3
- "version": "9.8.4",
3
+ "version": "9.8.5",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Preact applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -101,12 +101,12 @@
101
101
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
102
102
  },
103
103
  "dependencies": {
104
- "@intlayer/api": "9.8.4",
105
- "@intlayer/config": "9.8.4",
106
- "@intlayer/core": "9.8.4",
107
- "@intlayer/editor": "9.8.4",
108
- "@intlayer/engine": "9.8.4",
109
- "@intlayer/types": "9.8.4"
104
+ "@intlayer/api": "9.8.5",
105
+ "@intlayer/config": "9.8.5",
106
+ "@intlayer/core": "9.8.5",
107
+ "@intlayer/editor": "9.8.5",
108
+ "@intlayer/engine": "9.8.5",
109
+ "@intlayer/types": "9.8.5"
110
110
  },
111
111
  "devDependencies": {
112
112
  "@types/node": "^26",
@@ -123,7 +123,7 @@
123
123
  "preact": ">=8.0.0"
124
124
  },
125
125
  "optionalDependencies": {
126
- "@intlayer/analytics": "9.8.4"
126
+ "@intlayer/analytics": "9.8.5"
127
127
  },
128
128
  "engines": {
129
129
  "node": ">=14.18"