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.
Files changed (65) hide show
  1. package/dist/cjs/ContentSelectorWrapper.cjs +67 -0
  2. package/dist/cjs/ContentSelectorWrapper.cjs.map +1 -0
  3. package/dist/cjs/DictionaryEditionDrawer/DictionaryEditionDrawer.cjs +156 -0
  4. package/dist/cjs/DictionaryEditionDrawer/DictionaryEditionDrawer.cjs.map +1 -0
  5. package/dist/cjs/DictionaryEditionDrawer/index.cjs +25 -0
  6. package/dist/cjs/DictionaryEditionDrawer/index.cjs.map +1 -0
  7. package/dist/cjs/DictionaryEditionDrawer/useDictionaryEditionDrawer.cjs +79 -0
  8. package/dist/cjs/DictionaryEditionDrawer/useDictionaryEditionDrawer.cjs.map +1 -0
  9. package/dist/cjs/DictionaryListDrawer/DictionaryListDrawer.cjs +89 -0
  10. package/dist/cjs/DictionaryListDrawer/DictionaryListDrawer.cjs.map +1 -0
  11. package/dist/cjs/DictionaryListDrawer/dictionaryListDrawerIdentifier.cjs +29 -0
  12. package/dist/cjs/DictionaryListDrawer/dictionaryListDrawerIdentifier.cjs.map +1 -0
  13. package/dist/cjs/DictionaryListDrawer/index.cjs +25 -0
  14. package/dist/cjs/DictionaryListDrawer/index.cjs.map +1 -0
  15. package/dist/cjs/IntlayerEditorProvider.cjs +92 -0
  16. package/dist/cjs/IntlayerEditorProvider.cjs.map +1 -0
  17. package/dist/cjs/index.cjs +27 -0
  18. package/dist/cjs/index.cjs.map +1 -0
  19. package/dist/cjs/styles/style.css +2 -0
  20. package/dist/cjs/styles/style.css.map +1 -0
  21. package/dist/cjs/styles/tailwind.cjs +41 -0
  22. package/dist/cjs/styles/tailwind.cjs.map +1 -0
  23. package/dist/esm/ContentSelectorWrapper.mjs +48 -0
  24. package/dist/esm/ContentSelectorWrapper.mjs.map +1 -0
  25. package/dist/esm/DictionaryEditionDrawer/DictionaryEditionDrawer.mjs +141 -0
  26. package/dist/esm/DictionaryEditionDrawer/DictionaryEditionDrawer.mjs.map +1 -0
  27. package/dist/esm/DictionaryEditionDrawer/index.mjs +3 -0
  28. package/dist/esm/DictionaryEditionDrawer/index.mjs.map +1 -0
  29. package/dist/esm/DictionaryEditionDrawer/useDictionaryEditionDrawer.mjs +58 -0
  30. package/dist/esm/DictionaryEditionDrawer/useDictionaryEditionDrawer.mjs.map +1 -0
  31. package/dist/esm/DictionaryListDrawer/DictionaryListDrawer.mjs +71 -0
  32. package/dist/esm/DictionaryListDrawer/DictionaryListDrawer.mjs.map +1 -0
  33. package/dist/esm/DictionaryListDrawer/dictionaryListDrawerIdentifier.mjs +5 -0
  34. package/dist/esm/DictionaryListDrawer/dictionaryListDrawerIdentifier.mjs.map +1 -0
  35. package/dist/esm/DictionaryListDrawer/index.mjs +3 -0
  36. package/dist/esm/DictionaryListDrawer/index.mjs.map +1 -0
  37. package/dist/esm/IntlayerEditorProvider.mjs +71 -0
  38. package/dist/esm/IntlayerEditorProvider.mjs.map +1 -0
  39. package/dist/esm/index.mjs +4 -0
  40. package/dist/esm/index.mjs.map +1 -0
  41. package/dist/esm/styles/style.css +2 -0
  42. package/dist/esm/styles/style.css.map +1 -0
  43. package/dist/esm/styles/tailwind.mjs +9 -0
  44. package/dist/esm/styles/tailwind.mjs.map +1 -0
  45. package/dist/types/ContentSelectorWrapper.d.ts +11 -0
  46. package/dist/types/ContentSelectorWrapper.d.ts.map +1 -0
  47. package/dist/types/DictionaryEditionDrawer/DictionaryEditionDrawer.d.ts +22 -0
  48. package/dist/types/DictionaryEditionDrawer/DictionaryEditionDrawer.d.ts.map +1 -0
  49. package/dist/types/DictionaryEditionDrawer/index.d.ts +3 -0
  50. package/dist/types/DictionaryEditionDrawer/index.d.ts.map +1 -0
  51. package/dist/types/DictionaryEditionDrawer/useDictionaryEditionDrawer.d.ts +20 -0
  52. package/dist/types/DictionaryEditionDrawer/useDictionaryEditionDrawer.d.ts.map +1 -0
  53. package/dist/types/DictionaryListDrawer/DictionaryListDrawer.d.ts +3 -0
  54. package/dist/types/DictionaryListDrawer/DictionaryListDrawer.d.ts.map +1 -0
  55. package/dist/types/DictionaryListDrawer/dictionaryListDrawerIdentifier.d.ts +2 -0
  56. package/dist/types/DictionaryListDrawer/dictionaryListDrawerIdentifier.d.ts.map +1 -0
  57. package/dist/types/DictionaryListDrawer/index.d.ts +3 -0
  58. package/dist/types/DictionaryListDrawer/index.d.ts.map +1 -0
  59. package/dist/types/IntlayerEditorProvider.d.ts +21 -0
  60. package/dist/types/IntlayerEditorProvider.d.ts.map +1 -0
  61. package/dist/types/index.d.ts +4 -0
  62. package/dist/types/index.d.ts.map +1 -0
  63. package/dist/types/styles/tailwind.d.ts +4 -0
  64. package/dist/types/styles/tailwind.d.ts.map +1 -0
  65. 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,3 @@
1
+ import { FC } from 'react';
2
+ export declare const DictionaryListDrawer: FC;
3
+ //# sourceMappingURL=DictionaryListDrawer.d.ts.map
@@ -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,2 @@
1
+ export declare const dictionaryListDrawerIdentifier = "dictionaryList";
2
+ //# sourceMappingURL=dictionaryListDrawerIdentifier.d.ts.map
@@ -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,3 @@
1
+ export * from './DictionaryListDrawer';
2
+ export * from './dictionaryListDrawerIdentifier';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,4 @@
1
+ export * from './DictionaryEditionDrawer/index';
2
+ export * from './DictionaryListDrawer/index';
3
+ export * from './IntlayerEditorProvider';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -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,4 @@
1
+ import tailwindConfig, { tailwindPresetConfig } from '@intlayer/design-system/tailwind-config';
2
+ export { tailwindPresetConfig };
3
+ export default tailwindConfig;
4
+ //# sourceMappingURL=tailwind.d.ts.map
@@ -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.0",
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/config": "^3.5.0",
78
- "@intlayer/core": "^3.5.0",
79
- "@intlayer/design-system": "^3.5.0"
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.0",
107
- "@intlayer/core": "^3.5.0",
108
- "@intlayer/design-system": "^3.5.0",
109
- "react-intlayer": "^3.5.0"
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"