svelte-intlayer 9.5.8 → 9.5.9
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/plugins.js +2 -15
- package/package.json +7 -7
package/dist/plugins.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { editor, internationalization } from '@intlayer/config/built';
|
|
2
|
-
import { conditionPlugin, enumerationPlugin, fallbackPlugin, filePlugin, genderPlugin, isInterpolableWrapperNode, nestedPlugin, pluralPlugin, selectPlugin, transformInterpolableNode, translationPlugin, } from '@intlayer/core/interpreter';
|
|
2
|
+
import { conditionPlugin, enumerationPlugin, fallbackPlugin, filePlugin, genderPlugin, isInterpolableWrapperNode, nestedPlugin, pluralPlugin, resolveInsertedSelector, selectPlugin, transformInterpolableNode, translationPlugin, } from '@intlayer/core/interpreter';
|
|
3
3
|
import * as NodeTypes from '@intlayer/types/nodeType';
|
|
4
4
|
import { reportExposure } from './analytics/exposureSink';
|
|
5
5
|
import { default as ContentSelector } from './editor/ContentSelector.svelte';
|
|
@@ -206,20 +206,7 @@ export const insertionPlugin = process.env.INTLAYER_NODE_TYPE_INSERTION === 'fal
|
|
|
206
206
|
keyPath: newKeyPath,
|
|
207
207
|
plugins: [insertionStringPlugin, ...(props.plugins ?? [])],
|
|
208
208
|
});
|
|
209
|
-
|
|
210
|
-
children !== null &&
|
|
211
|
-
'nodeType' in children &&
|
|
212
|
-
[NodeTypes.ENUMERATION, NodeTypes.CONDITION].includes(children.nodeType)) {
|
|
213
|
-
return (values) => (arg) => {
|
|
214
|
-
const func = result;
|
|
215
|
-
const inner = func(arg);
|
|
216
|
-
if (typeof inner === 'function') {
|
|
217
|
-
return inner(values);
|
|
218
|
-
}
|
|
219
|
-
return inner;
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
return result;
|
|
209
|
+
return resolveInsertedSelector(children, result);
|
|
223
210
|
},
|
|
224
211
|
};
|
|
225
212
|
/** Markdown string plugin. Replaces string node with a component that render the markdown. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-intlayer",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.9",
|
|
4
4
|
"description": "Easily internationalize i18n your Svelte applications with type-safe multilingual content management.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intlayer",
|
|
@@ -83,11 +83,11 @@
|
|
|
83
83
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@intlayer/api": "9.5.
|
|
87
|
-
"@intlayer/config": "9.5.
|
|
88
|
-
"@intlayer/core": "9.5.
|
|
89
|
-
"@intlayer/editor": "9.5.
|
|
90
|
-
"@intlayer/types": "9.5.
|
|
86
|
+
"@intlayer/api": "9.5.9",
|
|
87
|
+
"@intlayer/config": "9.5.9",
|
|
88
|
+
"@intlayer/core": "9.5.9",
|
|
89
|
+
"@intlayer/editor": "9.5.9",
|
|
90
|
+
"@intlayer/types": "9.5.9"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@sveltejs/adapter-auto": "7.0.1",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"svelte": ">=5.0.0"
|
|
110
110
|
},
|
|
111
111
|
"optionalDependencies": {
|
|
112
|
-
"@intlayer/analytics": "9.5.
|
|
112
|
+
"@intlayer/analytics": "9.5.9"
|
|
113
113
|
},
|
|
114
114
|
"engines": {
|
|
115
115
|
"node": ">=14.18"
|