lit-intlayer 9.5.10 → 9.5.11
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.
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { ResolvedEditor } from '@intlayer/types/module_augmentation';
|
|
2
|
-
|
|
2
|
+
type IntlayerNodeMembers<T> = {
|
|
3
3
|
raw: T;
|
|
4
4
|
value: T;
|
|
5
5
|
toString: () => string;
|
|
6
6
|
valueOf: () => T;
|
|
7
7
|
toJSON: () => T;
|
|
8
8
|
__update: (next: IntlayerNode<T>) => void;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Content node returned by `useIntlayer`.
|
|
12
|
+
*
|
|
13
|
+
* Without the editor it is typed as its value plus the node members, so it
|
|
14
|
+
* can be used wherever a string is expected. With the editor, the node renders the editor wrapper,
|
|
15
|
+
* so string usages must go through `.value`.
|
|
16
|
+
*/
|
|
17
|
+
export type IntlayerNode<T = string> = ResolvedEditor<T & IntlayerNodeMembers<T>, IntlayerNodeMembers<T>>;
|
|
17
18
|
export declare const renderIntlayerNode: <T>({ value, additionalProps, }: {
|
|
18
19
|
value: T;
|
|
19
20
|
children?: any;
|
|
20
21
|
additionalProps?: Record<string, unknown>;
|
|
21
22
|
[key: string]: unknown;
|
|
22
23
|
}) => IntlayerNode<T>;
|
|
24
|
+
export {};
|
|
23
25
|
//# sourceMappingURL=renderIntlayerNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderIntlayerNode.d.ts","sourceRoot":"","sources":["../../src/renderIntlayerNode.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAE1E,
|
|
1
|
+
{"version":3,"file":"renderIntlayerNode.d.ts","sourceRoot":"","sources":["../../src/renderIntlayerNode.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAE1E,KAAK,mBAAmB,CAAC,CAAC,IAAI;IAC5B,GAAG,EAAE,CAAC,CAAC;IACP,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,MAAM,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,MAAM,IAAI,cAAc,CACnD,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,EAC1B,mBAAmB,CAAC,CAAC,CAAC,CACvB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,CAAC,EACD,6BAGC;IACD,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,KAAG,YAAY,CAAC,CAAC,CAuCjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lit-intlayer",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Lit applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -104,11 +104,11 @@
|
|
|
104
104
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@intlayer/api": "9.5.
|
|
108
|
-
"@intlayer/config": "9.5.
|
|
109
|
-
"@intlayer/core": "9.5.
|
|
110
|
-
"@intlayer/editor": "9.5.
|
|
111
|
-
"@intlayer/types": "9.5.
|
|
107
|
+
"@intlayer/api": "9.5.11",
|
|
108
|
+
"@intlayer/config": "9.5.11",
|
|
109
|
+
"@intlayer/core": "9.5.11",
|
|
110
|
+
"@intlayer/editor": "9.5.11",
|
|
111
|
+
"@intlayer/types": "9.5.11"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@types/node": "^22",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"vitest": "5.0.2"
|
|
126
126
|
},
|
|
127
127
|
"peerDependencies": {
|
|
128
|
-
"intlayer": "9.5.
|
|
128
|
+
"intlayer": "9.5.11",
|
|
129
129
|
"lit": ">=3.0.0"
|
|
130
130
|
},
|
|
131
131
|
"peerDependenciesMeta": {
|