angular-intlayer 9.8.1 → 9.8.2
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/client/useDictionaryAsync.cjs +1 -1
- package/dist/cjs/client/useDictionaryDynamic.cjs +1 -1
- package/dist/cjs/esbuild/plugin.cjs +3 -3
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/plugins.cjs +1 -1
- package/dist/esm/client/useDictionaryAsync.mjs +1 -1
- package/dist/esm/client/useDictionaryDynamic.mjs +1 -1
- package/dist/esm/esbuild/plugin.mjs +3 -3
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/plugins.mjs +1 -1
- package/dist/types/client/useDictionary.d.ts +1 -1
- package/dist/types/client/useDictionaryAsync.d.ts +1 -1
- package/dist/types/client/useDictionaryDynamic.d.ts +1 -1
- package/dist/types/getDictionary.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +10 -10
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_client_intlayerToken = require("./intlayerToken.cjs");
|
|
5
5
|
const require_client_useDictionary = require("./useDictionary.cjs");
|
|
6
|
-
let _angular_core = require("@angular/core");
|
|
7
6
|
let _intlayer_core_interpreter = require("@intlayer/core/interpreter");
|
|
7
|
+
let _angular_core = require("@angular/core");
|
|
8
8
|
|
|
9
9
|
// src/client/useDictionaryAsync.ts
|
|
10
10
|
/**
|
|
@@ -5,9 +5,9 @@ const require_getDictionary = require("../getDictionary.cjs");
|
|
|
5
5
|
const require_client_intlayerToken = require("./intlayerToken.cjs");
|
|
6
6
|
const require_client_useDictionary = require("./useDictionary.cjs");
|
|
7
7
|
const require_client_useLoadDynamic = require("./useLoadDynamic.cjs");
|
|
8
|
+
let _intlayer_core_interpreter = require("@intlayer/core/interpreter");
|
|
8
9
|
let _angular_core = require("@angular/core");
|
|
9
10
|
let _intlayer_core_dictionaryManipulator = require("@intlayer/core/dictionaryManipulator");
|
|
10
|
-
let _intlayer_core_interpreter = require("@intlayer/core/interpreter");
|
|
11
11
|
|
|
12
12
|
// src/client/useDictionaryDynamic.ts
|
|
13
13
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_esbuild_hiddenDirectory = require("./hiddenDirectory.cjs");
|
|
3
3
|
const require_esbuild_resolvePackageExport = require("./resolvePackageExport.cjs");
|
|
4
|
-
let node_fs_promises = require("node:fs/promises");
|
|
5
4
|
let node_module = require("node:module");
|
|
6
5
|
let node_path = require("node:path");
|
|
6
|
+
let _intlayer_config_node = require("@intlayer/config/node");
|
|
7
|
+
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
8
|
+
let node_fs_promises = require("node:fs/promises");
|
|
7
9
|
let _intlayer_config_dictionaryPreload = require("@intlayer/config/dictionaryPreload");
|
|
8
10
|
let _intlayer_config_envVars = require("@intlayer/config/envVars");
|
|
9
11
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
10
|
-
let _intlayer_config_node = require("@intlayer/config/node");
|
|
11
|
-
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
12
12
|
let _intlayer_dictionaries_entry = require("@intlayer/dictionaries-entry");
|
|
13
13
|
let _intlayer_engine_build = require("@intlayer/engine/build");
|
|
14
14
|
let _intlayer_engine_cli = require("@intlayer/engine/cli");
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_getDictionary = require("./getDictionary.cjs");
|
|
3
|
+
const require_getIntlayer = require("./getIntlayer.cjs");
|
|
2
4
|
const require_client_intlayerToken = require("./client/intlayerToken.cjs");
|
|
3
5
|
const require_analytics_useAnalytics = require("./analytics/useAnalytics.cjs");
|
|
4
6
|
const require_analytics_useConversion = require("./analytics/useConversion.cjs");
|
|
5
7
|
const require_analytics_useExperiment = require("./analytics/useExperiment.cjs");
|
|
6
8
|
const require_client_installIntlayer = require("./client/installIntlayer.cjs");
|
|
7
|
-
const require_getDictionary = require("./getDictionary.cjs");
|
|
8
|
-
const require_getIntlayer = require("./getIntlayer.cjs");
|
|
9
9
|
const require_client_useDictionary = require("./client/useDictionary.cjs");
|
|
10
10
|
const require_client_useDictionaryAsync = require("./client/useDictionaryAsync.cjs");
|
|
11
11
|
const require_client_useLoadDynamic = require("./client/useLoadDynamic.cjs");
|
package/dist/cjs/plugins.cjs
CHANGED
|
@@ -3,9 +3,9 @@ const require_runtime = require("./_virtual/_rolldown/runtime.cjs");
|
|
|
3
3
|
const require_analytics_exposureSink = require("./analytics/exposureSink.cjs");
|
|
4
4
|
const require_editor_ContentSelector_component = require("./editor/ContentSelector.component.cjs");
|
|
5
5
|
const require_renderIntlayerNode = require("./renderIntlayerNode.cjs");
|
|
6
|
+
let _intlayer_core_interpreter = require("@intlayer/core/interpreter");
|
|
6
7
|
let _angular_core = require("@angular/core");
|
|
7
8
|
let _intlayer_config_built = require("@intlayer/config/built");
|
|
8
|
-
let _intlayer_core_interpreter = require("@intlayer/core/interpreter");
|
|
9
9
|
let _intlayer_core_markdown = require("@intlayer/core/markdown");
|
|
10
10
|
let _intlayer_types_nodeType = require("@intlayer/types/nodeType");
|
|
11
11
|
_intlayer_types_nodeType = require_runtime.__toESM(_intlayer_types_nodeType);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { INTLAYER_TOKEN } from "./intlayerToken.mjs";
|
|
4
4
|
import { useDictionary } from "./useDictionary.mjs";
|
|
5
|
-
import { computed, inject } from "@angular/core";
|
|
6
5
|
import { resolveInterpreterLocale } from "@intlayer/core/interpreter";
|
|
6
|
+
import { computed, inject } from "@angular/core";
|
|
7
7
|
|
|
8
8
|
// src/client/useDictionaryAsync.ts
|
|
9
9
|
/**
|
|
@@ -4,9 +4,9 @@ import { getDictionary as getDictionary$1 } from "../getDictionary.mjs";
|
|
|
4
4
|
import { INTLAYER_TOKEN } from "./intlayerToken.mjs";
|
|
5
5
|
import { useDictionary } from "./useDictionary.mjs";
|
|
6
6
|
import { useLoadDynamic } from "./useLoadDynamic.mjs";
|
|
7
|
+
import { resolveInterpreterLocale } from "@intlayer/core/interpreter";
|
|
7
8
|
import { computed, inject, signal } from "@angular/core";
|
|
8
9
|
import { getPreloadedDictionary, isQualifiedDynamicLoaderMap, parseDictionarySelector, resolveDictionaryArgument, resolveQualifiedDynamicContentAsync } from "@intlayer/core/dictionaryManipulator";
|
|
9
|
-
import { resolveInterpreterLocale } from "@intlayer/core/interpreter";
|
|
10
10
|
|
|
11
11
|
// src/client/useDictionaryDynamic.ts
|
|
12
12
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { isInHiddenDirectory } from "./hiddenDirectory.mjs";
|
|
2
2
|
import { resolvePackageExport } from "./resolvePackageExport.mjs";
|
|
3
|
+
import { readFile } from "node:fs/promises";
|
|
3
4
|
import { createRequire } from "node:module";
|
|
4
5
|
import { basename, dirname, join, relative } from "node:path";
|
|
5
|
-
import { getConfiguration } from "@intlayer/config/node";
|
|
6
|
-
import { getAlias, getHasDictionarySelector, getUnusedNodeTypesAsync, normalizePath } from "@intlayer/config/utils";
|
|
7
|
-
import { readFile } from "node:fs/promises";
|
|
8
6
|
import { addDynamicEntryPreload, createDynamicEntryFilter, resolvePreloadModuleId } from "@intlayer/config/dictionaryPreload";
|
|
9
7
|
import { formatDictionarySelectorEnvVar, formatNodeTypeToEnvVar, getConfigEnvVars } from "@intlayer/config/envVars";
|
|
10
8
|
import { getAppLogger } from "@intlayer/config/logger";
|
|
9
|
+
import { getConfiguration } from "@intlayer/config/node";
|
|
10
|
+
import { getAlias, getHasDictionarySelector, getUnusedNodeTypesAsync, normalizePath } from "@intlayer/config/utils";
|
|
11
11
|
import { getDictionaries } from "@intlayer/dictionaries-entry";
|
|
12
12
|
import { prepareIntlayer } from "@intlayer/engine/build";
|
|
13
13
|
import { logConfigDetails } from "@intlayer/engine/cli";
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { getDictionary } from "./getDictionary.mjs";
|
|
2
|
+
import { getIntlayer } from "./getIntlayer.mjs";
|
|
1
3
|
import { INTLAYER_TOKEN, IntlayerProvider, createIntlayerClient } from "./client/intlayerToken.mjs";
|
|
2
4
|
import { provideIntlayerAnalytics, useAnalytics } from "./analytics/useAnalytics.mjs";
|
|
3
5
|
import { useConversion } from "./analytics/useConversion.mjs";
|
|
4
6
|
import { useExperiment } from "./analytics/useExperiment.mjs";
|
|
5
7
|
import { installIntlayer, provideIntlayer } from "./client/installIntlayer.mjs";
|
|
6
|
-
import { getDictionary } from "./getDictionary.mjs";
|
|
7
|
-
import { getIntlayer } from "./getIntlayer.mjs";
|
|
8
8
|
import { useDictionary } from "./client/useDictionary.mjs";
|
|
9
9
|
import { useDictionaryAsync } from "./client/useDictionaryAsync.mjs";
|
|
10
10
|
import { useLoadDynamic } from "./client/useLoadDynamic.mjs";
|
package/dist/esm/plugins.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { reportExposure } from "./analytics/exposureSink.mjs";
|
|
2
2
|
import { ContentSelectorWrapperComponent } from "./editor/ContentSelector.component.mjs";
|
|
3
3
|
import { renderIntlayerNode } from "./renderIntlayerNode.mjs";
|
|
4
|
+
import { bindInsertedValues, conditionPlugin, enumerationPlugin, fallbackPlugin, filePlugin, genderPlugin, getInsertion, isInterpolableWrapperNode, nestedPlugin, pluralPlugin, resolveInterpreterLocale, selectPlugin, transformInterpolableNode, translationPlugin } from "@intlayer/core/interpreter";
|
|
4
5
|
import { signal, untracked } from "@angular/core";
|
|
5
6
|
import { editor, internationalization } from "@intlayer/config/built";
|
|
6
|
-
import { bindInsertedValues, conditionPlugin, enumerationPlugin, fallbackPlugin, filePlugin, genderPlugin, getInsertion, isInterpolableWrapperNode, nestedPlugin, pluralPlugin, resolveInterpreterLocale, selectPlugin, transformInterpolableNode, translationPlugin } from "@intlayer/core/interpreter";
|
|
7
7
|
import { compile, getMarkdownMetadata } from "@intlayer/core/markdown";
|
|
8
8
|
import * as NodeTypes from "@intlayer/types/nodeType";
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeepTransformContent } from "../plugins.js";
|
|
2
|
+
import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup, ResolveQualifiedDictionaryContent } from "@intlayer/types/dictionary";
|
|
2
3
|
import { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
4
|
import { Signal } from "@angular/core";
|
|
4
|
-
import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup, ResolveQualifiedDictionaryContent } from "@intlayer/types/dictionary";
|
|
5
5
|
/**
|
|
6
6
|
* Angular hook that transforms a dictionary (or qualified dictionary group)
|
|
7
7
|
* and returns its reactive content for the given locale or selector.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
2
1
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
|
+
import { LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
3
3
|
/**
|
|
4
4
|
* On the server side, Hook that transform a dictionary and return the content
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeclaredLocales, DictionaryKeys, DictionarySelectorForKey, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
2
1
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
|
+
import { DeclaredLocales, DictionaryKeys, DictionarySelectorForKey, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
3
3
|
import { QualifiedDynamicLoaderMap } from "@intlayer/core/dictionaryManipulator";
|
|
4
4
|
/**
|
|
5
5
|
* Lazily loads a dictionary (plain or qualified) and returns its reactive
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeepTransformContent } from "./plugins.js";
|
|
2
|
-
import { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
2
|
import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup, ResolveQualifiedDictionaryContent } from "@intlayer/types/dictionary";
|
|
3
|
+
import { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
4
4
|
/**
|
|
5
5
|
* Transforms a dictionary (or qualified dictionary group) and returns its
|
|
6
6
|
* content for the given locale or selector (`{ item }`, `{ variant }`,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IntlayerNode } from "./renderIntlayerNode.js";
|
|
2
2
|
import { DeepTransformContent, HTMLPluginCond, IInterpreterPluginAngular, IInterpreterPluginState, InsertionPluginCond, IntlayerNodeCond, MarkdownCond, MarkdownStringCond, getPlugins, htmlPlugin, insertionPlugin, intlayerNodePlugins, markdownPlugin, markdownStringPlugin } from "./plugins.js";
|
|
3
|
+
import "./analytics/index.js";
|
|
3
4
|
import { INTLAYER_TOKEN, IntlayerProvider, createIntlayerClient } from "./client/intlayerToken.js";
|
|
4
5
|
import { provideIntlayerAnalytics, useAnalytics } from "./analytics/useAnalytics.js";
|
|
5
6
|
import { ConversionParams, useConversion } from "./analytics/useConversion.js";
|
|
6
7
|
import { ExperimentState, useExperiment } from "./analytics/useExperiment.js";
|
|
7
|
-
import "./
|
|
8
|
+
import "./client/index.js";
|
|
8
9
|
import { installIntlayer, provideIntlayer } from "./client/installIntlayer.js";
|
|
9
10
|
import { useDictionary } from "./client/useDictionary.js";
|
|
10
11
|
import { useDictionaryAsync } from "./client/useDictionaryAsync.js";
|
|
@@ -13,7 +14,6 @@ import { isUpdatableNode, useIntlayer } from "./client/useIntlayer.js";
|
|
|
13
14
|
import { useLoadDynamic } from "./client/useLoadDynamic.js";
|
|
14
15
|
import { UseLocaleProps, UseLocaleResult, useLocale } from "./client/useLocale.js";
|
|
15
16
|
import { usePathname } from "./client/usePathname.js";
|
|
16
|
-
import "./client/index.js";
|
|
17
17
|
import { getDictionary } from "./getDictionary.js";
|
|
18
18
|
import { getIntlayer } from "./getIntlayer.js";
|
|
19
19
|
import { IntlayerNodeComponent } from "./UI/IntlayerNode.component.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-intlayer",
|
|
3
|
-
"version": "9.8.
|
|
3
|
+
"version": "9.8.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Angular applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -120,13 +120,13 @@
|
|
|
120
120
|
"@babel/core": "^8.0.1",
|
|
121
121
|
"@babel/plugin-syntax-import-attributes": "7.29.7",
|
|
122
122
|
"@babel/preset-env": "8.0.7",
|
|
123
|
-
"@intlayer/config": "9.8.
|
|
124
|
-
"@intlayer/core": "9.8.
|
|
125
|
-
"@intlayer/dictionaries-entry": "9.8.
|
|
126
|
-
"@intlayer/editor": "9.8.
|
|
127
|
-
"@intlayer/engine": "9.8.
|
|
128
|
-
"@intlayer/types": "9.8.
|
|
129
|
-
"@intlayer/webpack": "9.8.
|
|
123
|
+
"@intlayer/config": "9.8.2",
|
|
124
|
+
"@intlayer/core": "9.8.2",
|
|
125
|
+
"@intlayer/dictionaries-entry": "9.8.2",
|
|
126
|
+
"@intlayer/editor": "9.8.2",
|
|
127
|
+
"@intlayer/engine": "9.8.2",
|
|
128
|
+
"@intlayer/types": "9.8.2",
|
|
129
|
+
"@intlayer/webpack": "9.8.2",
|
|
130
130
|
"babel-loader": "10.1.1",
|
|
131
131
|
"defu": "6.1.7"
|
|
132
132
|
},
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"rimraf": "6.1.4",
|
|
143
143
|
"tsdown": "0.23.7",
|
|
144
144
|
"typescript": "7.0.2",
|
|
145
|
-
"vitest": "5.1.
|
|
145
|
+
"vitest": "5.1.1"
|
|
146
146
|
},
|
|
147
147
|
"peerDependencies": {
|
|
148
148
|
"@angular/common": ">=15",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
"optionalDependencies": {
|
|
159
|
-
"@intlayer/analytics": "9.8.
|
|
159
|
+
"@intlayer/analytics": "9.8.2"
|
|
160
160
|
},
|
|
161
161
|
"engines": {
|
|
162
162
|
"node": ">=14.18"
|