solid-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/types/plugins.d.ts +5 -5
- package/package.json +7 -7
package/dist/types/plugins.d.ts
CHANGED
|
@@ -25,9 +25,9 @@ export type InsertionCond<T, _S, _L> = T extends {
|
|
|
25
25
|
nodeType: NodeType | string;
|
|
26
26
|
[NodeType.Insertion]: string;
|
|
27
27
|
fields: readonly string[];
|
|
28
|
-
} ?
|
|
29
|
-
[K in T['fields'][number]]:
|
|
30
|
-
}) => JSX.Element : never;
|
|
28
|
+
} ? <V extends {
|
|
29
|
+
[K in T['fields'][number]]: JSX.Element;
|
|
30
|
+
}>(values: V) => V[keyof V] extends string | number ? IntlayerNode<string> : IntlayerNode<JSX.Element> : never;
|
|
31
31
|
/** Insertion plugin for Solid. Handles component/element insertion. */
|
|
32
32
|
export declare const insertionPlugin: Plugins;
|
|
33
33
|
/**
|
|
@@ -61,10 +61,10 @@ export declare const htmlPlugin: Plugins;
|
|
|
61
61
|
/** ---------------------------------------------
|
|
62
62
|
* PLUGINS RESULT
|
|
63
63
|
* --------------------------------------------- */
|
|
64
|
-
export interface IInterpreterPluginSolid<T,
|
|
64
|
+
export interface IInterpreterPluginSolid<T, _S, _L extends LocalesValues> {
|
|
65
65
|
solidNode: SolidNodeCond<T>;
|
|
66
66
|
solidIntlayerNode: IntlayerNodeCond<T>;
|
|
67
|
-
solidInsertion: InsertionCond<T
|
|
67
|
+
solidInsertion: InsertionCond<T>;
|
|
68
68
|
solidMarkdown: MarkdownCond<T>;
|
|
69
69
|
solidHtml: HTMLPluginCond<T>;
|
|
70
70
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-intlayer",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Solid applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@intlayer/api": "8.0.
|
|
78
|
-
"@intlayer/config": "8.0.
|
|
79
|
-
"@intlayer/core": "8.0.
|
|
80
|
-
"@intlayer/editor": "8.0.
|
|
81
|
-
"@intlayer/types": "8.0.
|
|
77
|
+
"@intlayer/api": "8.0.2",
|
|
78
|
+
"@intlayer/config": "8.0.2",
|
|
79
|
+
"@intlayer/core": "8.0.2",
|
|
80
|
+
"@intlayer/editor": "8.0.2",
|
|
81
|
+
"@intlayer/types": "8.0.2"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@intlayer/unmerged-dictionaries-entry": "8.0.
|
|
84
|
+
"@intlayer/unmerged-dictionaries-entry": "8.0.2",
|
|
85
85
|
"@solidjs/testing-library": "0.8.10",
|
|
86
86
|
"@testing-library/jest-dom": "6.9.1",
|
|
87
87
|
"@testing-library/user-event": "14.6.1",
|