svelte-intlayer 9.5.8 → 9.5.9-canary.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.
Files changed (2) hide show
  1. package/dist/plugins.js +2 -15
  2. package/package.json +1 -1
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
- if (typeof children === 'object' &&
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.8",
3
+ "version": "9.5.9-canary.0",
4
4
  "description": "Easily internationalize i18n your Svelte applications with type-safe multilingual content management.",
5
5
  "keywords": [
6
6
  "intlayer",