angular-intlayer 9.6.0 → 9.7.0

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,4 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_client_useLocaleStorage = require('../client/useLocaleStorage.cjs');
2
3
  const require_client_intlayerToken = require('../client/intlayerToken.cjs');
3
4
  let _angular_core = require("@angular/core");
4
5
  let _intlayer_editor_isEnabled = require("@intlayer/editor/isEnabled");
@@ -32,9 +33,18 @@ const useEditor = (client) => {
32
33
  const locale = resolvedClient?.locale();
33
34
  if (m && locale) m.currentLocale.set(locale);
34
35
  }));
36
+ const localeRequestEffectRef = (0, _angular_core.runInInjectionContext)(injector, () => (0, _angular_core.effect)((onCleanup) => {
37
+ const m = manager();
38
+ if (!m || !resolvedClient) return;
39
+ onCleanup(m.onLocaleChangeRequested((requestedLocale) => {
40
+ resolvedClient.setLocale(requestedLocale);
41
+ require_client_useLocaleStorage.setLocaleInStorage(requestedLocale, true);
42
+ }));
43
+ }));
35
44
  destroyRef?.onDestroy(() => {
36
45
  stopped = true;
37
46
  effectRef.destroy();
47
+ localeRequestEffectRef.destroy();
38
48
  manager.set(null);
39
49
  import("@intlayer/editor").then(({ stopEditorClient }) => {
40
50
  stopEditorClient();
@@ -1 +1 @@
1
- {"version":3,"file":"useEditor.cjs","names":["isEnabled","inject","DestroyRef","Injector","INTLAYER_TOKEN","signal","runInInjectionContext","effect","provideAppInitializer"],"sources":["../../../src/editor/useEditor.ts"],"sourcesContent":["import {\n DestroyRef,\n effect,\n Injector,\n inject,\n provideAppInitializer,\n runInInjectionContext,\n signal,\n} from '@angular/core';\nimport type { EditorStateManager } from '@intlayer/editor';\nimport { isEnabled } from '@intlayer/editor/isEnabled';\nimport type { Locale } from '@intlayer/types/allLocales';\n// Import from the standalone token file to avoid a circular dependency:\n// installIntlayer.ts → useEditor.ts → ../client → installIntlayer.ts\nimport { INTLAYER_TOKEN, type IntlayerProvider } from '../client/intlayerToken';\n\n/**\n * Initialises the Intlayer editor client singleton when the editor is enabled.\n * Syncs the current locale from the provided Intlayer client into the editor\n * manager so the editor always knows which locale the app is displaying.\n *\n * Must be called inside an Angular injection context (e.g. a component\n * constructor, `provideAppInitializer`, or `runInInjectionContext`).\n *\n * @param client - The IntlayerProvider instance to sync locale from.\n * When omitted the function injects `INTLAYER_TOKEN` from the DI tree,\n * so it still works when called directly from a component.\n */\nexport const useEditor = (client?: IntlayerProvider | null): void => {\n if (process.env.INTLAYER_EDITOR_ENABLED === 'false' || !isEnabled) return;\n\n const destroyRef = inject(DestroyRef, { optional: true });\n const injector = inject(Injector);\n\n // Resolve the client: use the passed-in reference or fall back to injection.\n const resolvedClient =\n client ??\n inject<IntlayerProvider>(INTLAYER_TOKEN, { optional: true } as any);\n\n // `manager` signal is set once the async import resolves.\n // Using a signal lets an `effect()` react to it becoming available.\n const manager = signal<EditorStateManager | null>(null);\n\n // Guard: prevents the async callback from acting after the view is destroyed.\n let stopped = false;\n\n // Initialise the editor client\n import('@intlayer/editor')\n .then(({ initEditorClient }) => {\n if (stopped) return;\n manager.set(initEditorClient());\n })\n .catch(() => {});\n\n // Keep the editor locale in sync with the Angular locale signal\n const effectRef = runInInjectionContext(injector, () =>\n effect(() => {\n const m = manager();\n const locale = resolvedClient?.locale();\n if (m && locale) m.currentLocale.set(locale as Locale);\n })\n );\n\n // Tear down on destroy\n destroyRef?.onDestroy(() => {\n stopped = true;\n effectRef.destroy();\n manager.set(null);\n import('@intlayer/editor')\n .then(({ stopEditorClient }) => {\n stopEditorClient();\n })\n .catch(() => {});\n });\n};\n\n/**\n * Angular provider that wires `useEditor` into the application initialisation\n * phase via `provideAppInitializer`.\n *\n * `provideIntlayer()` already calls this internally, so you only need this\n * function when you want to manage providers individually.\n *\n * @example\n * ```ts\n * // app.config.ts\n * import { provideIntlayer, provideIntlayerEditor } from 'angular-intlayer';\n *\n * export const appConfig: ApplicationConfig = {\n * providers: [provideIntlayer(), provideIntlayerEditor()],\n * };\n * ```\n */\nexport const provideIntlayerEditor = (client?: IntlayerProvider | null) =>\n provideAppInitializer(() => useEditor(client));\n"],"mappings":";;;;;;;;;;;;;;;;;;AA4BA,MAAa,aAAa,WAA2C;CACnE,IAAI,QAAQ,IAAI,4BAA4B,WAAW,CAACA,sCAAW;CAEnE,MAAM,iBAAaC,sBAAOC,0BAAY,EAAE,UAAU,KAAK,CAAC;CACxD,MAAM,eAAWD,sBAAOE,sBAAQ;CAGhC,MAAM,iBACJ,cACAF,sBAAyBG,6CAAgB,EAAE,UAAU,KAAK,CAAQ;CAIpE,MAAM,cAAUC,sBAAkC,IAAI;CAGtD,IAAI,UAAU;CAGd,OAAO,mBAAmB,CACvB,MAAM,EAAE,uBAAuB;EAC9B,IAAI,SAAS;EACb,QAAQ,IAAI,iBAAiB,CAAC;CAChC,CAAC,CAAC,CACD,YAAY,CAAC,CAAC;CAGjB,MAAM,gBAAYC,qCAAsB,oBACtCC,4BAAa;EACX,MAAM,IAAI,QAAQ;EAClB,MAAM,SAAS,gBAAgB,OAAO;EACtC,IAAI,KAAK,QAAQ,EAAE,cAAc,IAAI,MAAgB;CACvD,CAAC,CACH;CAGA,YAAY,gBAAgB;EAC1B,UAAU;EACV,UAAU,QAAQ;EAClB,QAAQ,IAAI,IAAI;EAChB,OAAO,mBAAmB,CACvB,MAAM,EAAE,uBAAuB;GAC9B,iBAAiB;EACnB,CAAC,CAAC,CACD,YAAY,CAAC,CAAC;CACnB,CAAC;AACH;;;;;;;;;;;;;;;;;;AAmBA,MAAa,yBAAyB,eACpCC,2CAA4B,UAAU,MAAM,CAAC"}
1
+ {"version":3,"file":"useEditor.cjs","names":["isEnabled","inject","DestroyRef","Injector","INTLAYER_TOKEN","signal","runInInjectionContext","effect","provideAppInitializer"],"sources":["../../../src/editor/useEditor.ts"],"sourcesContent":["import {\n DestroyRef,\n effect,\n Injector,\n inject,\n provideAppInitializer,\n runInInjectionContext,\n signal,\n} from '@angular/core';\nimport type { EditorStateManager } from '@intlayer/editor';\nimport { isEnabled } from '@intlayer/editor/isEnabled';\nimport type { Locale } from '@intlayer/types/allLocales';\n// Import from the standalone token file to avoid a circular dependency:\n// installIntlayer.ts → useEditor.ts → ../client → installIntlayer.ts\nimport { INTLAYER_TOKEN, type IntlayerProvider } from '../client/intlayerToken';\nimport { setLocaleInStorage } from '../client/useLocaleStorage';\n\n/**\n * Initialises the Intlayer editor client singleton when the editor is enabled.\n * Syncs the current locale from the provided Intlayer client into the editor\n * manager so the editor always knows which locale the app is displaying.\n *\n * Must be called inside an Angular injection context (e.g. a component\n * constructor, `provideAppInitializer`, or `runInInjectionContext`).\n *\n * @param client - The IntlayerProvider instance to sync locale from.\n * When omitted the function injects `INTLAYER_TOKEN` from the DI tree,\n * so it still works when called directly from a component.\n */\nexport const useEditor = (client?: IntlayerProvider | null): void => {\n if (process.env.INTLAYER_EDITOR_ENABLED === 'false' || !isEnabled) return;\n\n const destroyRef = inject(DestroyRef, { optional: true });\n const injector = inject(Injector);\n\n // Resolve the client: use the passed-in reference or fall back to injection.\n const resolvedClient =\n client ??\n inject<IntlayerProvider>(INTLAYER_TOKEN, { optional: true } as any);\n\n // `manager` signal is set once the async import resolves.\n // Using a signal lets an `effect()` react to it becoming available.\n const manager = signal<EditorStateManager | null>(null);\n\n // Guard: prevents the async callback from acting after the view is destroyed.\n let stopped = false;\n\n // Initialise the editor client\n import('@intlayer/editor')\n .then(({ initEditorClient }) => {\n if (stopped) return;\n manager.set(initEditorClient());\n })\n .catch(() => {});\n\n // Keep the editor locale in sync with the Angular locale signal\n const effectRef = runInInjectionContext(injector, () =>\n effect(() => {\n const m = manager();\n const locale = resolvedClient?.locale();\n if (m && locale) m.currentLocale.set(locale as Locale);\n })\n );\n\n // Apply the locales requested by the editor\n const localeRequestEffectRef = runInInjectionContext(injector, () =>\n effect((onCleanup) => {\n const m = manager();\n\n if (!m || !resolvedClient) return;\n\n onCleanup(\n m.onLocaleChangeRequested((requestedLocale) => {\n resolvedClient.setLocale(requestedLocale);\n setLocaleInStorage(requestedLocale, true);\n })\n );\n })\n );\n\n // Tear down on destroy\n destroyRef?.onDestroy(() => {\n stopped = true;\n effectRef.destroy();\n localeRequestEffectRef.destroy();\n manager.set(null);\n import('@intlayer/editor')\n .then(({ stopEditorClient }) => {\n stopEditorClient();\n })\n .catch(() => {});\n });\n};\n\n/**\n * Angular provider that wires `useEditor` into the application initialisation\n * phase via `provideAppInitializer`.\n *\n * `provideIntlayer()` already calls this internally, so you only need this\n * function when you want to manage providers individually.\n *\n * @example\n * ```ts\n * // app.config.ts\n * import { provideIntlayer, provideIntlayerEditor } from 'angular-intlayer';\n *\n * export const appConfig: ApplicationConfig = {\n * providers: [provideIntlayer(), provideIntlayerEditor()],\n * };\n * ```\n */\nexport const provideIntlayerEditor = (client?: IntlayerProvider | null) =>\n provideAppInitializer(() => useEditor(client));\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA6BA,MAAa,aAAa,WAA2C;CACnE,IAAI,QAAQ,IAAI,4BAA4B,WAAW,CAACA,sCAAW;CAEnE,MAAM,iBAAaC,sBAAOC,0BAAY,EAAE,UAAU,KAAK,CAAC;CACxD,MAAM,eAAWD,sBAAOE,sBAAQ;CAGhC,MAAM,iBACJ,cACAF,sBAAyBG,6CAAgB,EAAE,UAAU,KAAK,CAAQ;CAIpE,MAAM,cAAUC,sBAAkC,IAAI;CAGtD,IAAI,UAAU;CAGd,OAAO,mBAAmB,CACvB,MAAM,EAAE,uBAAuB;EAC9B,IAAI,SAAS;EACb,QAAQ,IAAI,iBAAiB,CAAC;CAChC,CAAC,CAAC,CACD,YAAY,CAAC,CAAC;CAGjB,MAAM,gBAAYC,qCAAsB,oBACtCC,4BAAa;EACX,MAAM,IAAI,QAAQ;EAClB,MAAM,SAAS,gBAAgB,OAAO;EACtC,IAAI,KAAK,QAAQ,EAAE,cAAc,IAAI,MAAgB;CACvD,CAAC,CACH;CAGA,MAAM,6BAAyBD,qCAAsB,oBACnDC,uBAAQ,cAAc;EACpB,MAAM,IAAI,QAAQ;EAElB,IAAI,CAAC,KAAK,CAAC,gBAAgB;EAE3B,UACE,EAAE,yBAAyB,oBAAoB;GAC7C,eAAe,UAAU,eAAe;GACxC,mDAAmB,iBAAiB,IAAI;EAC1C,CAAC,CACH;CACF,CAAC,CACH;CAGA,YAAY,gBAAgB;EAC1B,UAAU;EACV,UAAU,QAAQ;EAClB,uBAAuB,QAAQ;EAC/B,QAAQ,IAAI,IAAI;EAChB,OAAO,mBAAmB,CACvB,MAAM,EAAE,uBAAuB;GAC9B,iBAAiB;EACnB,CAAC,CAAC,CACD,YAAY,CAAC,CAAC;CACnB,CAAC;AACH;;;;;;;;;;;;;;;;;;AAmBA,MAAa,yBAAyB,eACpCC,2CAA4B,UAAU,MAAM,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { setLocaleInStorage } from "../client/useLocaleStorage.mjs";
1
2
  import { INTLAYER_TOKEN } from "../client/intlayerToken.mjs";
2
3
  import { DestroyRef, Injector, effect, inject, provideAppInitializer, runInInjectionContext, signal } from "@angular/core";
3
4
  import { isEnabled } from "@intlayer/editor/isEnabled";
@@ -31,9 +32,18 @@ const useEditor = (client) => {
31
32
  const locale = resolvedClient?.locale();
32
33
  if (m && locale) m.currentLocale.set(locale);
33
34
  }));
35
+ const localeRequestEffectRef = runInInjectionContext(injector, () => effect((onCleanup) => {
36
+ const m = manager();
37
+ if (!m || !resolvedClient) return;
38
+ onCleanup(m.onLocaleChangeRequested((requestedLocale) => {
39
+ resolvedClient.setLocale(requestedLocale);
40
+ setLocaleInStorage(requestedLocale, true);
41
+ }));
42
+ }));
34
43
  destroyRef?.onDestroy(() => {
35
44
  stopped = true;
36
45
  effectRef.destroy();
46
+ localeRequestEffectRef.destroy();
37
47
  manager.set(null);
38
48
  import("@intlayer/editor").then(({ stopEditorClient }) => {
39
49
  stopEditorClient();
@@ -1 +1 @@
1
- {"version":3,"file":"useEditor.mjs","names":[],"sources":["../../../src/editor/useEditor.ts"],"sourcesContent":["import {\n DestroyRef,\n effect,\n Injector,\n inject,\n provideAppInitializer,\n runInInjectionContext,\n signal,\n} from '@angular/core';\nimport type { EditorStateManager } from '@intlayer/editor';\nimport { isEnabled } from '@intlayer/editor/isEnabled';\nimport type { Locale } from '@intlayer/types/allLocales';\n// Import from the standalone token file to avoid a circular dependency:\n// installIntlayer.ts → useEditor.ts → ../client → installIntlayer.ts\nimport { INTLAYER_TOKEN, type IntlayerProvider } from '../client/intlayerToken';\n\n/**\n * Initialises the Intlayer editor client singleton when the editor is enabled.\n * Syncs the current locale from the provided Intlayer client into the editor\n * manager so the editor always knows which locale the app is displaying.\n *\n * Must be called inside an Angular injection context (e.g. a component\n * constructor, `provideAppInitializer`, or `runInInjectionContext`).\n *\n * @param client - The IntlayerProvider instance to sync locale from.\n * When omitted the function injects `INTLAYER_TOKEN` from the DI tree,\n * so it still works when called directly from a component.\n */\nexport const useEditor = (client?: IntlayerProvider | null): void => {\n if (process.env.INTLAYER_EDITOR_ENABLED === 'false' || !isEnabled) return;\n\n const destroyRef = inject(DestroyRef, { optional: true });\n const injector = inject(Injector);\n\n // Resolve the client: use the passed-in reference or fall back to injection.\n const resolvedClient =\n client ??\n inject<IntlayerProvider>(INTLAYER_TOKEN, { optional: true } as any);\n\n // `manager` signal is set once the async import resolves.\n // Using a signal lets an `effect()` react to it becoming available.\n const manager = signal<EditorStateManager | null>(null);\n\n // Guard: prevents the async callback from acting after the view is destroyed.\n let stopped = false;\n\n // Initialise the editor client\n import('@intlayer/editor')\n .then(({ initEditorClient }) => {\n if (stopped) return;\n manager.set(initEditorClient());\n })\n .catch(() => {});\n\n // Keep the editor locale in sync with the Angular locale signal\n const effectRef = runInInjectionContext(injector, () =>\n effect(() => {\n const m = manager();\n const locale = resolvedClient?.locale();\n if (m && locale) m.currentLocale.set(locale as Locale);\n })\n );\n\n // Tear down on destroy\n destroyRef?.onDestroy(() => {\n stopped = true;\n effectRef.destroy();\n manager.set(null);\n import('@intlayer/editor')\n .then(({ stopEditorClient }) => {\n stopEditorClient();\n })\n .catch(() => {});\n });\n};\n\n/**\n * Angular provider that wires `useEditor` into the application initialisation\n * phase via `provideAppInitializer`.\n *\n * `provideIntlayer()` already calls this internally, so you only need this\n * function when you want to manage providers individually.\n *\n * @example\n * ```ts\n * // app.config.ts\n * import { provideIntlayer, provideIntlayerEditor } from 'angular-intlayer';\n *\n * export const appConfig: ApplicationConfig = {\n * providers: [provideIntlayer(), provideIntlayerEditor()],\n * };\n * ```\n */\nexport const provideIntlayerEditor = (client?: IntlayerProvider | null) =>\n provideAppInitializer(() => useEditor(client));\n"],"mappings":";;;;;;;;;;;;;;;;;AA4BA,MAAa,aAAa,WAA2C;CACnE,IAAI,QAAQ,IAAI,4BAA4B,WAAW,CAAC,WAAW;CAEnE,MAAM,aAAa,OAAO,YAAY,EAAE,UAAU,KAAK,CAAC;CACxD,MAAM,WAAW,OAAO,QAAQ;CAGhC,MAAM,iBACJ,UACA,OAAyB,gBAAgB,EAAE,UAAU,KAAK,CAAQ;CAIpE,MAAM,UAAU,OAAkC,IAAI;CAGtD,IAAI,UAAU;CAGd,OAAO,mBAAmB,CACvB,MAAM,EAAE,uBAAuB;EAC9B,IAAI,SAAS;EACb,QAAQ,IAAI,iBAAiB,CAAC;CAChC,CAAC,CAAC,CACD,YAAY,CAAC,CAAC;CAGjB,MAAM,YAAY,sBAAsB,gBACtC,aAAa;EACX,MAAM,IAAI,QAAQ;EAClB,MAAM,SAAS,gBAAgB,OAAO;EACtC,IAAI,KAAK,QAAQ,EAAE,cAAc,IAAI,MAAgB;CACvD,CAAC,CACH;CAGA,YAAY,gBAAgB;EAC1B,UAAU;EACV,UAAU,QAAQ;EAClB,QAAQ,IAAI,IAAI;EAChB,OAAO,mBAAmB,CACvB,MAAM,EAAE,uBAAuB;GAC9B,iBAAiB;EACnB,CAAC,CAAC,CACD,YAAY,CAAC,CAAC;CACnB,CAAC;AACH;;;;;;;;;;;;;;;;;;AAmBA,MAAa,yBAAyB,WACpC,4BAA4B,UAAU,MAAM,CAAC"}
1
+ {"version":3,"file":"useEditor.mjs","names":[],"sources":["../../../src/editor/useEditor.ts"],"sourcesContent":["import {\n DestroyRef,\n effect,\n Injector,\n inject,\n provideAppInitializer,\n runInInjectionContext,\n signal,\n} from '@angular/core';\nimport type { EditorStateManager } from '@intlayer/editor';\nimport { isEnabled } from '@intlayer/editor/isEnabled';\nimport type { Locale } from '@intlayer/types/allLocales';\n// Import from the standalone token file to avoid a circular dependency:\n// installIntlayer.ts → useEditor.ts → ../client → installIntlayer.ts\nimport { INTLAYER_TOKEN, type IntlayerProvider } from '../client/intlayerToken';\nimport { setLocaleInStorage } from '../client/useLocaleStorage';\n\n/**\n * Initialises the Intlayer editor client singleton when the editor is enabled.\n * Syncs the current locale from the provided Intlayer client into the editor\n * manager so the editor always knows which locale the app is displaying.\n *\n * Must be called inside an Angular injection context (e.g. a component\n * constructor, `provideAppInitializer`, or `runInInjectionContext`).\n *\n * @param client - The IntlayerProvider instance to sync locale from.\n * When omitted the function injects `INTLAYER_TOKEN` from the DI tree,\n * so it still works when called directly from a component.\n */\nexport const useEditor = (client?: IntlayerProvider | null): void => {\n if (process.env.INTLAYER_EDITOR_ENABLED === 'false' || !isEnabled) return;\n\n const destroyRef = inject(DestroyRef, { optional: true });\n const injector = inject(Injector);\n\n // Resolve the client: use the passed-in reference or fall back to injection.\n const resolvedClient =\n client ??\n inject<IntlayerProvider>(INTLAYER_TOKEN, { optional: true } as any);\n\n // `manager` signal is set once the async import resolves.\n // Using a signal lets an `effect()` react to it becoming available.\n const manager = signal<EditorStateManager | null>(null);\n\n // Guard: prevents the async callback from acting after the view is destroyed.\n let stopped = false;\n\n // Initialise the editor client\n import('@intlayer/editor')\n .then(({ initEditorClient }) => {\n if (stopped) return;\n manager.set(initEditorClient());\n })\n .catch(() => {});\n\n // Keep the editor locale in sync with the Angular locale signal\n const effectRef = runInInjectionContext(injector, () =>\n effect(() => {\n const m = manager();\n const locale = resolvedClient?.locale();\n if (m && locale) m.currentLocale.set(locale as Locale);\n })\n );\n\n // Apply the locales requested by the editor\n const localeRequestEffectRef = runInInjectionContext(injector, () =>\n effect((onCleanup) => {\n const m = manager();\n\n if (!m || !resolvedClient) return;\n\n onCleanup(\n m.onLocaleChangeRequested((requestedLocale) => {\n resolvedClient.setLocale(requestedLocale);\n setLocaleInStorage(requestedLocale, true);\n })\n );\n })\n );\n\n // Tear down on destroy\n destroyRef?.onDestroy(() => {\n stopped = true;\n effectRef.destroy();\n localeRequestEffectRef.destroy();\n manager.set(null);\n import('@intlayer/editor')\n .then(({ stopEditorClient }) => {\n stopEditorClient();\n })\n .catch(() => {});\n });\n};\n\n/**\n * Angular provider that wires `useEditor` into the application initialisation\n * phase via `provideAppInitializer`.\n *\n * `provideIntlayer()` already calls this internally, so you only need this\n * function when you want to manage providers individually.\n *\n * @example\n * ```ts\n * // app.config.ts\n * import { provideIntlayer, provideIntlayerEditor } from 'angular-intlayer';\n *\n * export const appConfig: ApplicationConfig = {\n * providers: [provideIntlayer(), provideIntlayerEditor()],\n * };\n * ```\n */\nexport const provideIntlayerEditor = (client?: IntlayerProvider | null) =>\n provideAppInitializer(() => useEditor(client));\n"],"mappings":";;;;;;;;;;;;;;;;;;AA6BA,MAAa,aAAa,WAA2C;CACnE,IAAI,QAAQ,IAAI,4BAA4B,WAAW,CAAC,WAAW;CAEnE,MAAM,aAAa,OAAO,YAAY,EAAE,UAAU,KAAK,CAAC;CACxD,MAAM,WAAW,OAAO,QAAQ;CAGhC,MAAM,iBACJ,UACA,OAAyB,gBAAgB,EAAE,UAAU,KAAK,CAAQ;CAIpE,MAAM,UAAU,OAAkC,IAAI;CAGtD,IAAI,UAAU;CAGd,OAAO,mBAAmB,CACvB,MAAM,EAAE,uBAAuB;EAC9B,IAAI,SAAS;EACb,QAAQ,IAAI,iBAAiB,CAAC;CAChC,CAAC,CAAC,CACD,YAAY,CAAC,CAAC;CAGjB,MAAM,YAAY,sBAAsB,gBACtC,aAAa;EACX,MAAM,IAAI,QAAQ;EAClB,MAAM,SAAS,gBAAgB,OAAO;EACtC,IAAI,KAAK,QAAQ,EAAE,cAAc,IAAI,MAAgB;CACvD,CAAC,CACH;CAGA,MAAM,yBAAyB,sBAAsB,gBACnD,QAAQ,cAAc;EACpB,MAAM,IAAI,QAAQ;EAElB,IAAI,CAAC,KAAK,CAAC,gBAAgB;EAE3B,UACE,EAAE,yBAAyB,oBAAoB;GAC7C,eAAe,UAAU,eAAe;GACxC,mBAAmB,iBAAiB,IAAI;EAC1C,CAAC,CACH;CACF,CAAC,CACH;CAGA,YAAY,gBAAgB;EAC1B,UAAU;EACV,UAAU,QAAQ;EAClB,uBAAuB,QAAQ;EAC/B,QAAQ,IAAI,IAAI;EAChB,OAAO,mBAAmB,CACvB,MAAM,EAAE,uBAAuB;GAC9B,iBAAiB;EACnB,CAAC,CAAC,CACD,YAAY,CAAC,CAAC;CACnB,CAAC;AACH;;;;;;;;;;;;;;;;;;AAmBA,MAAa,yBAAyB,WACpC,4BAA4B,UAAU,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useEditor.d.ts","names":[],"sources":["../../../src/editor/useEditor.ts"],"mappings":";;;;;;;;;;;;;;qBA4Ba,YAAS,SAAa;;;;;;;;;;;;;;;;;;qBAiEtB,wBAAqB,SAAa,oDAAuB"}
1
+ {"version":3,"file":"useEditor.d.ts","names":[],"sources":["../../../src/editor/useEditor.ts"],"mappings":";;;;;;;;;;;;;;qBA6Ba,YAAS,SAAa;;;;;;;;;;;;;;;;;;qBAkFtB,wBAAqB,SAAa,oDAAuB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-intlayer",
3
- "version": "9.6.0",
3
+ "version": "9.7.0",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Angular applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -120,20 +120,20 @@
120
120
  "@babel/core": "^8.0.1",
121
121
  "@babel/plugin-syntax-import-attributes": "7.29.7",
122
122
  "@babel/preset-env": "8.0.2",
123
- "@intlayer/config": "9.6.0",
124
- "@intlayer/core": "9.6.0",
125
- "@intlayer/dictionaries-entry": "9.6.0",
126
- "@intlayer/editor": "9.6.0",
127
- "@intlayer/engine": "9.6.0",
128
- "@intlayer/types": "9.6.0",
129
- "@intlayer/webpack": "9.6.0",
123
+ "@intlayer/config": "9.7.0",
124
+ "@intlayer/core": "9.7.0",
125
+ "@intlayer/dictionaries-entry": "9.7.0",
126
+ "@intlayer/editor": "9.7.0",
127
+ "@intlayer/engine": "9.7.0",
128
+ "@intlayer/types": "9.7.0",
129
+ "@intlayer/webpack": "9.7.0",
130
130
  "babel-loader": "10.1.1",
131
131
  "defu": "6.1.7"
132
132
  },
133
133
  "devDependencies": {
134
134
  "@angular/common": "22.1.5",
135
135
  "@angular/core": "22.1.5",
136
- "@types/node": "^22",
136
+ "@types/node": "^26",
137
137
  "@types/webpack": "5.28.5",
138
138
  "@utils/ts-config": "1.0.4",
139
139
  "@utils/ts-config-types": "1.0.4",
@@ -156,7 +156,7 @@
156
156
  }
157
157
  },
158
158
  "optionalDependencies": {
159
- "@intlayer/analytics": "9.6.0"
159
+ "@intlayer/analytics": "9.7.0"
160
160
  },
161
161
  "engines": {
162
162
  "node": ">=14.18"