svelte-intlayer 8.0.1 → 8.0.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/plugins.d.ts +4 -4
- package/package.json +7 -7
package/dist/plugins.d.ts
CHANGED
|
@@ -34,9 +34,9 @@ export type InsertionCond<T, _S, _L> = T extends {
|
|
|
34
34
|
nodeType: NodeType | string;
|
|
35
35
|
[NodeType.Insertion]: string;
|
|
36
36
|
fields: readonly string[];
|
|
37
|
-
} ?
|
|
38
|
-
[K in T['fields'][number]]:
|
|
39
|
-
}) => any : never;
|
|
37
|
+
} ? <V extends {
|
|
38
|
+
[K in T['fields'][number]]: any;
|
|
39
|
+
}>(values: V) => V[keyof V] extends string | number ? IntlayerNode<string> : IntlayerNode<any> : never;
|
|
40
40
|
/** Insertion plugin for Svelte. Handles component insertion. */
|
|
41
41
|
export declare const insertionPlugin: Plugins;
|
|
42
42
|
/**
|
|
@@ -69,7 +69,7 @@ export type HTMLPluginCond<T> = T extends {
|
|
|
69
69
|
export declare const htmlPlugin: Plugins;
|
|
70
70
|
export interface IInterpreterPluginSvelte<T, S, L extends LocalesValues> {
|
|
71
71
|
svelteIntlayerNode: T extends string | number ? IntlayerNode<T> : never;
|
|
72
|
-
svelteInsertion: InsertionCond<T
|
|
72
|
+
svelteInsertion: InsertionCond<T>;
|
|
73
73
|
svelteMarkdown: MarkdownCond<T, S, L>;
|
|
74
74
|
svelteHtml: HTMLPluginCond<T>;
|
|
75
75
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-intlayer",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "Easily internationalize i18n your Svelte applications with type-safe multilingual content management.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intlayer",
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@intlayer/api": "8.0.
|
|
77
|
-
"@intlayer/config": "8.0.
|
|
78
|
-
"@intlayer/core": "8.0.
|
|
79
|
-
"@intlayer/editor": "8.0.
|
|
80
|
-
"@intlayer/types": "8.0.
|
|
81
|
-
"@intlayer/unmerged-dictionaries-entry": "8.0.
|
|
76
|
+
"@intlayer/api": "8.0.2",
|
|
77
|
+
"@intlayer/config": "8.0.2",
|
|
78
|
+
"@intlayer/core": "8.0.2",
|
|
79
|
+
"@intlayer/editor": "8.0.2",
|
|
80
|
+
"@intlayer/types": "8.0.2",
|
|
81
|
+
"@intlayer/unmerged-dictionaries-entry": "8.0.2"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@sveltejs/adapter-auto": "^7.0.0",
|