angular-intlayer 7.3.9 → 7.3.10
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/cjs/webpack/mergeConfig.cjs +3 -4
- package/dist/cjs/webpack/mergeConfig.cjs.map +1 -1
- package/dist/esm/webpack/mergeConfig.mjs +3 -3
- package/dist/esm/webpack/mergeConfig.mjs.map +1 -1
- package/dist/types/client/installIntlayer.d.ts +2 -2
- package/dist/types/editor/ContentSelectorWrapper.component.d.ts +3 -3
- package/dist/types/editor/EditedContentRenderer.component.d.ts +2 -2
- package/dist/types/editor/useCrossURLPathState.d.ts +3 -3
- package/dist/types/plugins.d.ts.map +1 -1
- package/package.json +9 -9
|
@@ -2,13 +2,12 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
let node_path = require("node:path");
|
|
3
3
|
let __intlayer_config = require("@intlayer/config");
|
|
4
4
|
let __intlayer_webpack = require("@intlayer/webpack");
|
|
5
|
-
let
|
|
6
|
-
deepmerge = require_rolldown_runtime.__toESM(deepmerge);
|
|
5
|
+
let defu = require("defu");
|
|
7
6
|
|
|
8
7
|
//#region src/webpack/mergeConfig.ts
|
|
9
8
|
const mergeConfig = (baseConfig) => {
|
|
10
9
|
const intlayerConfig = (0, __intlayer_config.getConfiguration)();
|
|
11
|
-
return (0,
|
|
10
|
+
return (0, defu.defu)({
|
|
12
11
|
resolve: { alias: (0, __intlayer_config.getAlias)({
|
|
13
12
|
configuration: intlayerConfig,
|
|
14
13
|
formatter: (value) => (0, node_path.resolve)(value)
|
|
@@ -25,7 +24,7 @@ const mergeConfig = (baseConfig) => {
|
|
|
25
24
|
loader: "node-loader"
|
|
26
25
|
}] },
|
|
27
26
|
plugins: [new __intlayer_webpack.IntlayerPlugin(intlayerConfig)]
|
|
28
|
-
});
|
|
27
|
+
}, baseConfig);
|
|
29
28
|
};
|
|
30
29
|
|
|
31
30
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeConfig.cjs","names":["IntlayerPlugin"],"sources":["../../../src/webpack/mergeConfig.ts"],"sourcesContent":["import { resolve } from 'node:path';\nimport { getAlias, getConfiguration } from '@intlayer/config';\nimport { IntlayerPlugin } from '@intlayer/webpack'; // adjust path if needed\nimport
|
|
1
|
+
{"version":3,"file":"mergeConfig.cjs","names":["IntlayerPlugin"],"sources":["../../../src/webpack/mergeConfig.ts"],"sourcesContent":["import { resolve } from 'node:path';\nimport { getAlias, getConfiguration } from '@intlayer/config';\nimport { IntlayerPlugin } from '@intlayer/webpack'; // adjust path if needed\nimport { defu } from 'defu';\n/** @ts-ignore Configuration type exist but raise error */\nimport type { Configuration as WebpackConfig } from 'webpack';\n\nexport const mergeConfig = (baseConfig: WebpackConfig): WebpackConfig => {\n const intlayerConfig = getConfiguration();\n\n const config = {\n resolve: {\n alias: getAlias({\n configuration: intlayerConfig,\n formatter: (value: string) => resolve(value), // get absolute path\n }),\n },\n externals: {\n esbuild: 'esbuild',\n module: 'module',\n fs: 'fs',\n chokidar: 'chokidar',\n fsevents: 'fsevents',\n },\n module: {\n rules: [\n {\n test: /\\.node$/,\n loader: 'node-loader',\n },\n ],\n },\n plugins: [new IntlayerPlugin(intlayerConfig)],\n };\n\n return defu(config, baseConfig) as WebpackConfig;\n};\n"],"mappings":";;;;;;;AAOA,MAAa,eAAe,eAA6C;CACvE,MAAM,0DAAmC;AA2BzC,uBAzBe;EACb,SAAS,EACP,uCAAgB;GACd,eAAe;GACf,YAAY,iCAA0B,MAAM;GAC7C,CAAC,EACH;EACD,WAAW;GACT,SAAS;GACT,QAAQ;GACR,IAAI;GACJ,UAAU;GACV,UAAU;GACX;EACD,QAAQ,EACN,OAAO,CACL;GACE,MAAM;GACN,QAAQ;GACT,CACF,EACF;EACD,SAAS,CAAC,IAAIA,kCAAe,eAAe,CAAC;EAC9C,EAEmB,WAAW"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { resolve } from "node:path";
|
|
2
2
|
import { getAlias, getConfiguration } from "@intlayer/config";
|
|
3
3
|
import { IntlayerPlugin } from "@intlayer/webpack";
|
|
4
|
-
import
|
|
4
|
+
import { defu } from "defu";
|
|
5
5
|
|
|
6
6
|
//#region src/webpack/mergeConfig.ts
|
|
7
7
|
const mergeConfig = (baseConfig) => {
|
|
8
8
|
const intlayerConfig = getConfiguration();
|
|
9
|
-
return
|
|
9
|
+
return defu({
|
|
10
10
|
resolve: { alias: getAlias({
|
|
11
11
|
configuration: intlayerConfig,
|
|
12
12
|
formatter: (value) => resolve(value)
|
|
@@ -23,7 +23,7 @@ const mergeConfig = (baseConfig) => {
|
|
|
23
23
|
loader: "node-loader"
|
|
24
24
|
}] },
|
|
25
25
|
plugins: [new IntlayerPlugin(intlayerConfig)]
|
|
26
|
-
});
|
|
26
|
+
}, baseConfig);
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeConfig.mjs","names":[],"sources":["../../../src/webpack/mergeConfig.ts"],"sourcesContent":["import { resolve } from 'node:path';\nimport { getAlias, getConfiguration } from '@intlayer/config';\nimport { IntlayerPlugin } from '@intlayer/webpack'; // adjust path if needed\nimport
|
|
1
|
+
{"version":3,"file":"mergeConfig.mjs","names":[],"sources":["../../../src/webpack/mergeConfig.ts"],"sourcesContent":["import { resolve } from 'node:path';\nimport { getAlias, getConfiguration } from '@intlayer/config';\nimport { IntlayerPlugin } from '@intlayer/webpack'; // adjust path if needed\nimport { defu } from 'defu';\n/** @ts-ignore Configuration type exist but raise error */\nimport type { Configuration as WebpackConfig } from 'webpack';\n\nexport const mergeConfig = (baseConfig: WebpackConfig): WebpackConfig => {\n const intlayerConfig = getConfiguration();\n\n const config = {\n resolve: {\n alias: getAlias({\n configuration: intlayerConfig,\n formatter: (value: string) => resolve(value), // get absolute path\n }),\n },\n externals: {\n esbuild: 'esbuild',\n module: 'module',\n fs: 'fs',\n chokidar: 'chokidar',\n fsevents: 'fsevents',\n },\n module: {\n rules: [\n {\n test: /\\.node$/,\n loader: 'node-loader',\n },\n ],\n },\n plugins: [new IntlayerPlugin(intlayerConfig)],\n };\n\n return defu(config, baseConfig) as WebpackConfig;\n};\n"],"mappings":";;;;;;AAOA,MAAa,eAAe,eAA6C;CACvE,MAAM,iBAAiB,kBAAkB;AA2BzC,QAAO,KAzBQ;EACb,SAAS,EACP,OAAO,SAAS;GACd,eAAe;GACf,YAAY,UAAkB,QAAQ,MAAM;GAC7C,CAAC,EACH;EACD,WAAW;GACT,SAAS;GACT,QAAQ;GACR,IAAI;GACJ,UAAU;GACV,UAAU;GACX;EACD,QAAQ,EACN,OAAO,CACL;GACE,MAAM;GACN,QAAQ;GACT,CACF,EACF;EACD,SAAS,CAAC,IAAI,eAAe,eAAe,CAAC;EAC9C,EAEmB,WAAW"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core3 from "@angular/core";
|
|
2
2
|
import { InjectionToken, Signal } from "@angular/core";
|
|
3
3
|
import { LocalesValues } from "@intlayer/types";
|
|
4
4
|
|
|
5
5
|
//#region src/client/installIntlayer.d.ts
|
|
6
6
|
declare const INTLAYER_TOKEN: InjectionToken<IntlayerProvider>;
|
|
7
7
|
declare class IntlayerProvider {
|
|
8
|
-
isCookieEnabled:
|
|
8
|
+
isCookieEnabled: _angular_core3.WritableSignal<boolean>;
|
|
9
9
|
private _locale;
|
|
10
10
|
readonly locale: Signal<LocalesValues>;
|
|
11
11
|
setLocale: (locale: LocalesValues) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core4 from "@angular/core";
|
|
2
2
|
import { NodeProps } from "@intlayer/core";
|
|
3
3
|
|
|
4
4
|
//#region src/editor/ContentSelectorWrapper.component.d.ts
|
|
@@ -16,8 +16,8 @@ declare class ContentSelectorWrapperComponent {
|
|
|
16
16
|
private focusDictionary;
|
|
17
17
|
private editorEnabled;
|
|
18
18
|
constructor();
|
|
19
|
-
isSelected:
|
|
20
|
-
enabled:
|
|
19
|
+
isSelected: _angular_core4.Signal<boolean>;
|
|
20
|
+
enabled: _angular_core4.Signal<boolean>;
|
|
21
21
|
handleSelect(): void;
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core0 from "@angular/core";
|
|
2
2
|
import { KeyPath, Locale } from "@intlayer/types";
|
|
3
3
|
|
|
4
4
|
//#region src/editor/EditedContentRenderer.component.d.ts
|
|
@@ -16,7 +16,7 @@ declare class EditedContentRendererComponent {
|
|
|
16
16
|
/**
|
|
17
17
|
* Object → getContent → string, same as the React version.
|
|
18
18
|
*/
|
|
19
|
-
renderedContent:
|
|
19
|
+
renderedContent: _angular_core0.Signal<string>;
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
22
|
export { EditedContentRendererComponent, EditedContentRendererProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCrossFrameState } from "./useCrossFrameState.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _angular_core1 from "@angular/core";
|
|
3
3
|
|
|
4
4
|
//#region src/editor/useCrossURLPathState.d.ts
|
|
5
5
|
|
|
@@ -9,14 +9,14 @@ import * as _angular_core4 from "@angular/core";
|
|
|
9
9
|
* @param opts - Options for controlling emit and receive behavior
|
|
10
10
|
* @returns A tuple containing [state signal, setState function, forceSync function]
|
|
11
11
|
*/
|
|
12
|
-
declare const useCrossURLPathState: (initial?: string, opts?: Parameters<typeof useCrossFrameState>[2]) => [
|
|
12
|
+
declare const useCrossURLPathState: (initial?: string, opts?: Parameters<typeof useCrossFrameState>[2]) => [_angular_core1.Signal<string>, (v: string | ((prev: string) => string)) => void, () => void];
|
|
13
13
|
/**
|
|
14
14
|
* Hook for host applications to push URL path changes into the shared state
|
|
15
15
|
* This also monkey patches history methods to capture navigation events
|
|
16
16
|
* @param initial - The initial URL path
|
|
17
17
|
* @returns A tuple containing [state signal, setState function]
|
|
18
18
|
*/
|
|
19
|
-
declare const useCrossURLPathSetter: (initial?: string) => readonly [
|
|
19
|
+
declare const useCrossURLPathSetter: (initial?: string) => readonly [_angular_core1.Signal<string>, (v: string | ((prev: string) => string)) => void];
|
|
20
20
|
//#endregion
|
|
21
21
|
export { useCrossURLPathSetter, useCrossURLPathState };
|
|
22
22
|
//# sourceMappingURL=useCrossURLPathState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","names":[],"sources":["../../src/plugins.ts"],"sourcesContent":[],"mappings":";;;;;;;AAgBA;AAAkC,KAAtB,gBAAsB,CAAA,CAAA,CAAA,GAAA,CAAA,SAAA,MAAA,GAAA,MAAA,GAC9B,YAD8B,CACjB,CADiB,CAAA,GAAA,KAAA;AACjB,UAGA,YAHA,CAAA,CAAA,EAAA,IAAA,CAAA,CAAA,CAAA,CAAA;EAAb,KAAA,EAIK,CAJL;EAAY,QAAA,CAAA,EAAA,GAAA;EAGC,eAAY,CAAA,EAGT,CAHS;AAO7B;AAyBA;AAAoC,cAzBvB,mBAyBuB,EAzBF,OAyBE;;;;AAKvB,KALD,kBAyDX,CAAA,CAAA,CAAA,GAzDmC,CAyDnC,
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","names":[],"sources":["../../src/plugins.ts"],"sourcesContent":[],"mappings":";;;;;;;AAgBA;AAAkC,KAAtB,gBAAsB,CAAA,CAAA,CAAA,GAAA,CAAA,SAAA,MAAA,GAAA,MAAA,GAC9B,YAD8B,CACjB,CADiB,CAAA,GAAA,KAAA;AACjB,UAGA,YAHA,CAAA,CAAA,EAAA,IAAA,CAAA,CAAA,CAAA,CAAA;EAAb,KAAA,EAIK,CAJL;EAAY,QAAA,CAAA,EAAA,GAAA;EAGC,eAAY,CAAA,EAGT,CAHS;AAO7B;AAyBA;AAAoC,cAzBvB,mBAyBuB,EAzBF,OAyBE;;;;AAKvB,KALD,kBAyDX,CAAA,CAAA,CAAA,GAzDmC,CAyDnC,SApDkC,MAoDlC,GAxDG,YAwDH,CAAA,MAAA,EAAA;EAEW,QAAA,EA1DyB,oBA0Db,CAAA,MAAA,CAAA;CAAM,CAAA,GAAA,KAAA;;AAE3B,cAxDU,oBAwDD,EAxDuB,OAwDvB;AAG0B,KAL1B,YAK0B,CAAA,CAAA,CAAA,GALR,CAKQ,SAAA;EAArB,QAAA,EAJL,QAIK,GAAA,MAAA;EAA0D,CAHxE,QAAA,CAAS,QAAA,CAG+D,EAAA,KAAA,EAAA;EAArB,QAAA,CAAA,EAAA,KAAA,EAAA;CAAlD,GAAA,YAAA,CAAa,oBAAb,CAAkC,CAAlC,CAAA,EAAA;EAAY,QAAA,EAAsC,oBAAtC,CAA2D,CAA3D,CAAA;AAGhB,CAAA,CAAA,GAAa,KAAA;AA2BI,cA3BJ,cA2B6B,EA3Bb,OA2Ba;;;;AAE9B,UAFK,yBAEL,CAAA,CAAA,CAAA,CAAA;EAAY,YAAA,EADR,gBACQ,CADS,CACT,CAAA;EAQZ,QAAA,EARA,YAQA,CARa,CAQb,CAAA;AAKZ;;;;;;KALY,uBAAA,GAA0B;;;;KAK1B,0BAA0B,uBACpC,GACA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-intlayer",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Angular applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -85,14 +85,14 @@
|
|
|
85
85
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@intlayer/chokidar": "7.3.
|
|
89
|
-
"@intlayer/config": "7.3.
|
|
90
|
-
"@intlayer/core": "7.3.
|
|
91
|
-
"@intlayer/dictionaries-entry": "7.3.
|
|
92
|
-
"@intlayer/editor": "7.3.
|
|
93
|
-
"@intlayer/types": "7.3.
|
|
94
|
-
"@intlayer/webpack": "7.3.
|
|
95
|
-
"
|
|
88
|
+
"@intlayer/chokidar": "7.3.10",
|
|
89
|
+
"@intlayer/config": "7.3.10",
|
|
90
|
+
"@intlayer/core": "7.3.10",
|
|
91
|
+
"@intlayer/dictionaries-entry": "7.3.10",
|
|
92
|
+
"@intlayer/editor": "7.3.10",
|
|
93
|
+
"@intlayer/types": "7.3.10",
|
|
94
|
+
"@intlayer/webpack": "7.3.10",
|
|
95
|
+
"defu": "6.1.4"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@types/node": "24.10.1",
|