intlayer-editor 3.5.0 → 3.5.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/cjs/ContentSelectorWrapper.cjs +67 -0
- package/dist/cjs/ContentSelectorWrapper.cjs.map +1 -0
- package/dist/cjs/DictionaryEditionDrawer/DictionaryEditionDrawer.cjs +156 -0
- package/dist/cjs/DictionaryEditionDrawer/DictionaryEditionDrawer.cjs.map +1 -0
- package/dist/cjs/DictionaryEditionDrawer/index.cjs +25 -0
- package/dist/cjs/DictionaryEditionDrawer/index.cjs.map +1 -0
- package/dist/cjs/DictionaryEditionDrawer/useDictionaryEditionDrawer.cjs +79 -0
- package/dist/cjs/DictionaryEditionDrawer/useDictionaryEditionDrawer.cjs.map +1 -0
- package/dist/cjs/DictionaryListDrawer/DictionaryListDrawer.cjs +89 -0
- package/dist/cjs/DictionaryListDrawer/DictionaryListDrawer.cjs.map +1 -0
- package/dist/cjs/DictionaryListDrawer/dictionaryListDrawerIdentifier.cjs +29 -0
- package/dist/cjs/DictionaryListDrawer/dictionaryListDrawerIdentifier.cjs.map +1 -0
- package/dist/cjs/DictionaryListDrawer/index.cjs +25 -0
- package/dist/cjs/DictionaryListDrawer/index.cjs.map +1 -0
- package/dist/cjs/IntlayerEditorProvider.cjs +92 -0
- package/dist/cjs/IntlayerEditorProvider.cjs.map +1 -0
- package/dist/cjs/index.cjs +27 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/styles/style.css +2 -0
- package/dist/cjs/styles/style.css.map +1 -0
- package/dist/cjs/styles/tailwind.cjs +41 -0
- package/dist/cjs/styles/tailwind.cjs.map +1 -0
- package/dist/esm/ContentSelectorWrapper.mjs +48 -0
- package/dist/esm/ContentSelectorWrapper.mjs.map +1 -0
- package/dist/esm/DictionaryEditionDrawer/DictionaryEditionDrawer.mjs +141 -0
- package/dist/esm/DictionaryEditionDrawer/DictionaryEditionDrawer.mjs.map +1 -0
- package/dist/esm/DictionaryEditionDrawer/index.mjs +3 -0
- package/dist/esm/DictionaryEditionDrawer/index.mjs.map +1 -0
- package/dist/esm/DictionaryEditionDrawer/useDictionaryEditionDrawer.mjs +58 -0
- package/dist/esm/DictionaryEditionDrawer/useDictionaryEditionDrawer.mjs.map +1 -0
- package/dist/esm/DictionaryListDrawer/DictionaryListDrawer.mjs +71 -0
- package/dist/esm/DictionaryListDrawer/DictionaryListDrawer.mjs.map +1 -0
- package/dist/esm/DictionaryListDrawer/dictionaryListDrawerIdentifier.mjs +5 -0
- package/dist/esm/DictionaryListDrawer/dictionaryListDrawerIdentifier.mjs.map +1 -0
- package/dist/esm/DictionaryListDrawer/index.mjs +3 -0
- package/dist/esm/DictionaryListDrawer/index.mjs.map +1 -0
- package/dist/esm/IntlayerEditorProvider.mjs +71 -0
- package/dist/esm/IntlayerEditorProvider.mjs.map +1 -0
- package/dist/esm/index.mjs +4 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/styles/style.css +2 -0
- package/dist/esm/styles/style.css.map +1 -0
- package/dist/esm/styles/tailwind.mjs +9 -0
- package/dist/esm/styles/tailwind.mjs.map +1 -0
- package/dist/types/ContentSelectorWrapper.d.ts +11 -0
- package/dist/types/ContentSelectorWrapper.d.ts.map +1 -0
- package/dist/types/DictionaryEditionDrawer/DictionaryEditionDrawer.d.ts +22 -0
- package/dist/types/DictionaryEditionDrawer/DictionaryEditionDrawer.d.ts.map +1 -0
- package/dist/types/DictionaryEditionDrawer/index.d.ts +3 -0
- package/dist/types/DictionaryEditionDrawer/index.d.ts.map +1 -0
- package/dist/types/DictionaryEditionDrawer/useDictionaryEditionDrawer.d.ts +20 -0
- package/dist/types/DictionaryEditionDrawer/useDictionaryEditionDrawer.d.ts.map +1 -0
- package/dist/types/DictionaryListDrawer/DictionaryListDrawer.d.ts +3 -0
- package/dist/types/DictionaryListDrawer/DictionaryListDrawer.d.ts.map +1 -0
- package/dist/types/DictionaryListDrawer/dictionaryListDrawerIdentifier.d.ts +2 -0
- package/dist/types/DictionaryListDrawer/dictionaryListDrawerIdentifier.d.ts.map +1 -0
- package/dist/types/DictionaryListDrawer/index.d.ts +3 -0
- package/dist/types/DictionaryListDrawer/index.d.ts.map +1 -0
- package/dist/types/IntlayerEditorProvider.d.ts +21 -0
- package/dist/types/IntlayerEditorProvider.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/styles/tailwind.d.ts +4 -0
- package/dist/types/styles/tailwind.d.ts.map +1 -0
- package/package.json +10 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DictionaryEditionDrawer/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Dictionary, DictionaryValue, KeyPath } from '@intlayer/core';
|
|
2
|
+
export declare const getDrawerIdentifier: (dictionaryId: string) => string;
|
|
3
|
+
type DictionaryId = string;
|
|
4
|
+
type DictionaryPath = string;
|
|
5
|
+
export type FileContent = {
|
|
6
|
+
dictionaryPath?: DictionaryPath;
|
|
7
|
+
dictionaryId: string;
|
|
8
|
+
keyPath?: KeyPath[];
|
|
9
|
+
};
|
|
10
|
+
type DictionaryEditionDrawer = {
|
|
11
|
+
focusedContent: FileContent | null;
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
open: (content: FileContent) => void;
|
|
14
|
+
close: () => void;
|
|
15
|
+
setDictionariesRecord: (dictionariesRecord: Record<DictionaryId, Dictionary>) => void;
|
|
16
|
+
getEditedContentValue: (dictionaryId: DictionaryId, keyPath: KeyPath[]) => DictionaryValue | undefined;
|
|
17
|
+
};
|
|
18
|
+
export declare const useDictionaryEditionDrawer: (dictionaryId: string) => DictionaryEditionDrawer;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=useDictionaryEditionDrawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDictionaryEditionDrawer.d.ts","sourceRoot":"","sources":["../../../src/DictionaryEditionDrawer/useDictionaryEditionDrawer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAS3E,eAAO,MAAM,mBAAmB,iBAAkB,MAAM,WAClB,CAAC;AAEvC,KAAK,YAAY,GAAG,MAAM,CAAC;AAC3B,KAAK,cAAc,GAAG,MAAM,CAAC;AAE7B,MAAM,MAAM,WAAW,GAAG;IACxB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,cAAc,EAAE,WAAW,GAAG,IAAI,CAAC;IACnC,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACrC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,qBAAqB,EAAE,CACrB,kBAAkB,EAAE,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,KACjD,IAAI,CAAC;IACV,qBAAqB,EAAE,CACrB,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,OAAO,EAAE,KACf,eAAe,GAAG,SAAS,CAAC;CAClC,CAAC;AAQF,eAAO,MAAM,0BAA0B,iBACvB,MAAM,KACnB,uBAgDF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DictionaryListDrawer.d.ts","sourceRoot":"","sources":["../../../src/DictionaryListDrawer/DictionaryListDrawer.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAwB,EAAE,EAAE,MAAM,OAAO,CAAC;AAKjD,eAAO,MAAM,oBAAoB,EAAE,EAgElC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictionaryListDrawerIdentifier.d.ts","sourceRoot":"","sources":["../../../src/DictionaryListDrawer/dictionaryListDrawerIdentifier.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DictionaryListDrawer/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type FC, type PropsWithChildren } from 'react';
|
|
2
|
+
type IntlayerEditorValue = {
|
|
3
|
+
isEditorEnabled: boolean;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Context that store the current locale on the client side
|
|
7
|
+
*/
|
|
8
|
+
export declare const IntlayerEditorContext: import("react").Context<IntlayerEditorValue>;
|
|
9
|
+
/**
|
|
10
|
+
* Hook that provides the current locale
|
|
11
|
+
*/
|
|
12
|
+
export declare const useIntlayerEditorContext: () => IntlayerEditorValue;
|
|
13
|
+
export type IntlayerEditorProviderProps = PropsWithChildren<{
|
|
14
|
+
isEnabled?: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* Provider that store the current locale on the client side
|
|
18
|
+
*/
|
|
19
|
+
export declare const IntlayerEditorProvider: FC<IntlayerEditorProviderProps>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=IntlayerEditorProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntlayerEditorProvider.d.ts","sourceRoot":"","sources":["../../src/IntlayerEditorProvider.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,EAAE,EACP,KAAK,iBAAiB,EAKvB,MAAM,OAAO,CAAC;AAEf,KAAK,mBAAmB,GAAG;IACzB,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,8CAEhC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB,2BAA0C,CAAC;AAEhF,MAAM,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CAwDlE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwind.d.ts","sourceRoot":"","sources":["../../../src/styles/tailwind.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,EAAE,EACrB,oBAAoB,EACrB,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAChC,eAAe,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intlayer-editor",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "IntLayer Editor is a tool that allow you to edit your IntLayer declaration files using a graphical interface.",
|
|
6
6
|
"keywords": [
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"react": "^18.3.1",
|
|
75
75
|
"react-dom": "^18.3.1",
|
|
76
76
|
"zustand": "^5.0.1",
|
|
77
|
-
"@intlayer/
|
|
78
|
-
"@intlayer/
|
|
79
|
-
"@intlayer/
|
|
77
|
+
"@intlayer/core": "^3.5.2",
|
|
78
|
+
"@intlayer/design-system": "^3.5.2",
|
|
79
|
+
"@intlayer/config": "^3.5.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@babel/generator": "7.26.2",
|
|
@@ -98,15 +98,15 @@
|
|
|
98
98
|
"tsup": "^8.3.5",
|
|
99
99
|
"typescript": "^5.7.2",
|
|
100
100
|
"@utils/eslint-config": "^1.0.4",
|
|
101
|
+
"@utils/tsup-config": "^1.0.4",
|
|
101
102
|
"@utils/ts-config": "^1.0.4",
|
|
102
|
-
"@utils/ts-config-types": "^1.0.4"
|
|
103
|
-
"@utils/tsup-config": "^1.0.4"
|
|
103
|
+
"@utils/ts-config-types": "^1.0.4"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
|
-
"@intlayer/config": "^3.5.
|
|
107
|
-
"@intlayer/core": "^3.5.
|
|
108
|
-
"@intlayer/design-system": "^3.5.
|
|
109
|
-
"react-intlayer": "^3.5.
|
|
106
|
+
"@intlayer/config": "^3.5.2",
|
|
107
|
+
"@intlayer/core": "^3.5.2",
|
|
108
|
+
"@intlayer/design-system": "^3.5.2",
|
|
109
|
+
"react-intlayer": "^3.5.2"
|
|
110
110
|
},
|
|
111
111
|
"engines": {
|
|
112
112
|
"node": ">=14.18"
|