@intlayer/design-system 5.3.9 → 5.3.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.
Files changed (52) hide show
  1. package/dist/.vite/manifest.json +19 -19
  2. package/dist/components/Auth/useAuth/index.cjs +1 -1
  3. package/dist/components/Auth/useAuth/index.cjs.map +1 -1
  4. package/dist/components/Auth/useAuth/index.mjs +1 -1
  5. package/dist/components/Auth/useAuth/index.mjs.map +1 -1
  6. package/dist/components/Auth/useAuth/useOAuth2.cjs +1 -1
  7. package/dist/components/Auth/useAuth/useOAuth2.cjs.map +1 -1
  8. package/dist/components/Auth/useAuth/useOAuth2.d.ts.map +1 -1
  9. package/dist/components/Auth/useAuth/useOAuth2.mjs +1 -1
  10. package/dist/components/Auth/useAuth/useOAuth2.mjs.map +1 -1
  11. package/dist/components/Command/index.d.ts +6 -55
  12. package/dist/components/Command/index.d.ts.map +1 -1
  13. package/dist/components/DictionaryEditor/DictionaryEditor.cjs +1 -1
  14. package/dist/components/DictionaryEditor/DictionaryEditor.mjs +1 -1
  15. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs +1 -1
  16. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.mjs +1 -1
  17. package/dist/components/DictionaryEditor/NodeWrapper/ConditionWrapper.cjs +1 -1
  18. package/dist/components/DictionaryEditor/NodeWrapper/ConditionWrapper.mjs +1 -1
  19. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs +1 -1
  20. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.mjs +1 -1
  21. package/dist/components/DictionaryEditor/NodeWrapper/InsertionWrapper.cjs +1 -1
  22. package/dist/components/DictionaryEditor/NodeWrapper/InsertionWrapper.d.ts +1 -1
  23. package/dist/components/DictionaryEditor/NodeWrapper/InsertionWrapper.d.ts.map +1 -1
  24. package/dist/components/DictionaryEditor/NodeWrapper/InsertionWrapper.mjs +1 -1
  25. package/dist/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.cjs +1 -1
  26. package/dist/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.mjs +1 -1
  27. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs +1 -1
  28. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs +1 -1
  29. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs +1 -1
  30. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.mjs +1 -1
  31. package/dist/components/DictionaryEditor/NodeWrapper/index.cjs +2 -2
  32. package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts +1 -1
  33. package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts.map +1 -1
  34. package/dist/components/DictionaryEditor/NodeWrapper/index.mjs +2 -2
  35. package/dist/components/Headers/index.cjs +25 -40
  36. package/dist/components/Headers/index.cjs.map +1 -1
  37. package/dist/components/Headers/index.d.ts.map +1 -1
  38. package/dist/components/Headers/index.mjs +25 -40
  39. package/dist/components/Headers/index.mjs.map +1 -1
  40. package/dist/components/MarkDownRender/index.cjs +9 -12
  41. package/dist/components/MarkDownRender/index.cjs.map +1 -1
  42. package/dist/components/MarkDownRender/index.d.ts.map +1 -1
  43. package/dist/components/MarkDownRender/index.mjs +9 -12
  44. package/dist/components/MarkDownRender/index.mjs.map +1 -1
  45. package/dist/{index-s_Ar0FDw.cjs → index-DW4Wnns5.cjs} +18 -17
  46. package/dist/index-DW4Wnns5.cjs.map +1 -0
  47. package/dist/{index-CEoL1j7H.js → index-aPP3MzPT.js} +19 -18
  48. package/dist/index-aPP3MzPT.js.map +1 -0
  49. package/dist/tailwind.css +2 -2
  50. package/package.json +47 -47
  51. package/dist/index-CEoL1j7H.js.map +0 -1
  52. package/dist/index-s_Ar0FDw.cjs.map +0 -1
@@ -63,22 +63,22 @@
63
63
  "src/hooks/useScrollBlockage/useScrollBlockageStore.ts"
64
64
  ]
65
65
  },
66
- "_index-CEoL1j7H.js": {
67
- "file": "index-CEoL1j7H.js",
66
+ "_index-DW4Wnns5.cjs": {
67
+ "file": "index-DW4Wnns5.cjs",
68
68
  "name": "index",
69
69
  "imports": [
70
70
  "src/components/DictionaryEditor/ItemLayout.tsx",
71
- "src/components/DictionaryEditor/NodeWrapper/StringWrapper.tsx",
72
- "src/components/DictionaryEditor/NodeWrapper/FileWrapper.tsx"
71
+ "src/components/DictionaryEditor/NodeWrapper/FileWrapper.tsx",
72
+ "src/components/DictionaryEditor/NodeWrapper/StringWrapper.tsx"
73
73
  ]
74
74
  },
75
- "_index-s_Ar0FDw.cjs": {
76
- "file": "index-s_Ar0FDw.cjs",
75
+ "_index-aPP3MzPT.js": {
76
+ "file": "index-aPP3MzPT.js",
77
77
  "name": "index",
78
78
  "imports": [
79
79
  "src/components/DictionaryEditor/ItemLayout.tsx",
80
- "src/components/DictionaryEditor/NodeWrapper/StringWrapper.tsx",
81
- "src/components/DictionaryEditor/NodeWrapper/FileWrapper.tsx"
80
+ "src/components/DictionaryEditor/NodeWrapper/FileWrapper.tsx",
81
+ "src/components/DictionaryEditor/NodeWrapper/StringWrapper.tsx"
82
82
  ]
83
83
  },
84
84
  "_zod-BV4nCGJE.js": {
@@ -716,7 +716,7 @@
716
716
  "isEntry": true,
717
717
  "imports": [
718
718
  "src/components/DictionaryFieldEditor/SaveForm/SaveForm.tsx",
719
- "_index-s_Ar0FDw.cjs"
719
+ "_index-DW4Wnns5.cjs"
720
720
  ]
721
721
  },
722
722
  "src/components/DictionaryEditor/ItemLayout.tsx": {
@@ -736,7 +736,7 @@
736
736
  "isEntry": true,
737
737
  "imports": [
738
738
  "src/components/DictionaryEditor/ItemLayout.tsx",
739
- "_index-s_Ar0FDw.cjs"
739
+ "_index-DW4Wnns5.cjs"
740
740
  ]
741
741
  },
742
742
  "src/components/DictionaryEditor/NodeWrapper/ConditionWrapper.tsx": {
@@ -745,7 +745,7 @@
745
745
  "src": "src/components/DictionaryEditor/NodeWrapper/ConditionWrapper.tsx",
746
746
  "isEntry": true,
747
747
  "imports": [
748
- "_index-s_Ar0FDw.cjs"
748
+ "_index-DW4Wnns5.cjs"
749
749
  ]
750
750
  },
751
751
  "src/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.tsx": {
@@ -754,7 +754,7 @@
754
754
  "src": "src/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.tsx",
755
755
  "isEntry": true,
756
756
  "imports": [
757
- "_index-s_Ar0FDw.cjs"
757
+ "_index-DW4Wnns5.cjs"
758
758
  ]
759
759
  },
760
760
  "src/components/DictionaryEditor/NodeWrapper/FileWrapper.tsx": {
@@ -772,7 +772,7 @@
772
772
  "src": "src/components/DictionaryEditor/NodeWrapper/InsertionWrapper.tsx",
773
773
  "isEntry": true,
774
774
  "imports": [
775
- "_index-s_Ar0FDw.cjs"
775
+ "_index-DW4Wnns5.cjs"
776
776
  ]
777
777
  },
778
778
  "src/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.tsx": {
@@ -781,7 +781,7 @@
781
781
  "src": "src/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.tsx",
782
782
  "isEntry": true,
783
783
  "imports": [
784
- "_index-s_Ar0FDw.cjs"
784
+ "_index-DW4Wnns5.cjs"
785
785
  ]
786
786
  },
787
787
  "src/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.tsx": {
@@ -791,7 +791,7 @@
791
791
  "isEntry": true,
792
792
  "imports": [
793
793
  "src/components/DictionaryEditor/ItemLayout.tsx",
794
- "_index-s_Ar0FDw.cjs"
794
+ "_index-DW4Wnns5.cjs"
795
795
  ]
796
796
  },
797
797
  "src/components/DictionaryEditor/NodeWrapper/StringWrapper.tsx": {
@@ -813,7 +813,7 @@
813
813
  "src": "src/components/DictionaryEditor/NodeWrapper/TranslationWrapper.tsx",
814
814
  "isEntry": true,
815
815
  "imports": [
816
- "_index-s_Ar0FDw.cjs"
816
+ "_index-DW4Wnns5.cjs"
817
817
  ]
818
818
  },
819
819
  "src/components/DictionaryEditor/NodeWrapper/index.tsx": {
@@ -822,9 +822,9 @@
822
822
  "src": "src/components/DictionaryEditor/NodeWrapper/index.tsx",
823
823
  "isEntry": true,
824
824
  "imports": [
825
- "_index-s_Ar0FDw.cjs",
826
- "src/components/DictionaryEditor/NodeWrapper/StringWrapper.tsx",
827
- "src/components/DictionaryEditor/NodeWrapper/FileWrapper.tsx"
825
+ "_index-DW4Wnns5.cjs",
826
+ "src/components/DictionaryEditor/NodeWrapper/FileWrapper.tsx",
827
+ "src/components/DictionaryEditor/NodeWrapper/StringWrapper.tsx"
828
828
  ]
829
829
  },
830
830
  "src/components/DictionaryEditor/index.tsx": {
@@ -22,7 +22,7 @@ const useAuth = ({
22
22
  csrfToken,
23
23
  csrfTokenFetched,
24
24
  oAuth2AccessToken,
25
- isAuthenticated: Boolean(session || oAuth2AccessToken),
25
+ isAuthenticated: Boolean(session?.user || oAuth2AccessToken),
26
26
  isProjectAdmin: session?.isProjectAdmin,
27
27
  isOrganizationAdmin: session?.isOrganizationAdmin
28
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../src/components/Auth/useAuth/index.tsx"],"sourcesContent":["'use client';\n\nimport type {\n OAuth2Token,\n OrganizationAPI,\n ProjectAPI,\n UserAPI,\n} from '@intlayer/backend';\nimport type { IntlayerConfig } from '@intlayer/config/client';\nimport { useCSRF } from './useCSRF';\nimport { useOAuth2 } from './useOAuth2';\nimport { useSession } from './useSession';\n\nexport type Session = {\n user: UserAPI | null;\n organization: OrganizationAPI | null;\n project: ProjectAPI | null;\n isOrganizationAdmin: boolean;\n isProjectAdmin: boolean;\n};\n\ntype SessionContextProps = {\n session: Session | null | undefined;\n setSession: (session: Session | null) => void;\n fetchSession: () => Promise<Session | null | undefined>;\n revalidateSession: () => Promise<Session | null | undefined>;\n csrfToken: string | null | undefined;\n csrfTokenFetched: boolean;\n isAuthenticated: boolean;\n oAuth2AccessToken: OAuth2Token | null | undefined;\n isProjectAdmin: boolean | null | undefined;\n isOrganizationAdmin: boolean | null | undefined;\n};\n\nexport const useAuth = ({\n session: sessionProp,\n intlayerConfiguration,\n}: {\n session?: Session | null;\n intlayerConfiguration?: IntlayerConfig;\n} = {}): SessionContextProps => {\n const { csrfToken, csrfTokenFetched } = useCSRF(intlayerConfiguration);\n const { session, fetchSession, revalidateSession, setSession } = useSession(\n sessionProp,\n intlayerConfiguration\n );\n const { oAuth2AccessToken } = useOAuth2(intlayerConfiguration);\n\n return {\n session,\n fetchSession,\n setSession,\n revalidateSession,\n csrfToken,\n csrfTokenFetched,\n oAuth2AccessToken,\n isAuthenticated: Boolean(session || oAuth2AccessToken),\n isProjectAdmin: session?.isProjectAdmin,\n isOrganizationAdmin: session?.isOrganizationAdmin,\n };\n};\n"],"names":["useCSRF","useSession","useOAuth2"],"mappings":";;;;;;AAkCO,MAAM,UAAU,CAAC;AAAA,EACtB,SAAS;AAAA,EACT;AACF,IAGI,OAA4B;AAC9B,QAAM,EAAE,WAAW,qBAAqBA,gCAAAA,QAAQ,qBAAqB;AACrE,QAAM,EAAE,SAAS,cAAc,mBAAmB,WAAe,IAAAC,mCAAA;AAAA,IAC/D;AAAA,IACA;AAAA,EACF;AACA,QAAM,EAAE,kBAAA,IAAsBC,kCAAA,UAAU,qBAAqB;AAEtD,SAAA;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,iBAAiB,QAAQ,WAAW,iBAAiB;AAAA,IACrD,gBAAgB,SAAS;AAAA,IACzB,qBAAqB,SAAS;AAAA,EAChC;AACF;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../src/components/Auth/useAuth/index.tsx"],"sourcesContent":["'use client';\n\nimport type {\n OAuth2Token,\n OrganizationAPI,\n ProjectAPI,\n UserAPI,\n} from '@intlayer/backend';\nimport type { IntlayerConfig } from '@intlayer/config/client';\nimport { useCSRF } from './useCSRF';\nimport { useOAuth2 } from './useOAuth2';\nimport { useSession } from './useSession';\n\nexport type Session = {\n user: UserAPI | null;\n organization: OrganizationAPI | null;\n project: ProjectAPI | null;\n isOrganizationAdmin: boolean;\n isProjectAdmin: boolean;\n};\n\ntype SessionContextProps = {\n session: Session | null | undefined;\n setSession: (session: Session | null) => void;\n fetchSession: () => Promise<Session | null | undefined>;\n revalidateSession: () => Promise<Session | null | undefined>;\n csrfToken: string | null | undefined;\n csrfTokenFetched: boolean;\n isAuthenticated: boolean;\n oAuth2AccessToken: OAuth2Token | null | undefined;\n isProjectAdmin: boolean | null | undefined;\n isOrganizationAdmin: boolean | null | undefined;\n};\n\nexport const useAuth = ({\n session: sessionProp,\n intlayerConfiguration,\n}: {\n session?: Session | null;\n intlayerConfiguration?: IntlayerConfig;\n} = {}): SessionContextProps => {\n const { csrfToken, csrfTokenFetched } = useCSRF(intlayerConfiguration);\n const { session, fetchSession, revalidateSession, setSession } = useSession(\n sessionProp,\n intlayerConfiguration\n );\n const { oAuth2AccessToken } = useOAuth2(intlayerConfiguration);\n\n return {\n session,\n fetchSession,\n setSession,\n revalidateSession,\n csrfToken,\n csrfTokenFetched,\n oAuth2AccessToken,\n isAuthenticated: Boolean(session?.user || oAuth2AccessToken),\n isProjectAdmin: session?.isProjectAdmin,\n isOrganizationAdmin: session?.isOrganizationAdmin,\n };\n};\n"],"names":["useCSRF","useSession","useOAuth2"],"mappings":";;;;;;AAkCO,MAAM,UAAU,CAAC;AAAA,EACtB,SAAS;AAAA,EACT;AACF,IAGI,OAA4B;AAC9B,QAAM,EAAE,WAAW,qBAAqBA,gCAAAA,QAAQ,qBAAqB;AACrE,QAAM,EAAE,SAAS,cAAc,mBAAmB,WAAe,IAAAC,mCAAA;AAAA,IAC/D;AAAA,IACA;AAAA,EACF;AACA,QAAM,EAAE,kBAAA,IAAsBC,kCAAA,UAAU,qBAAqB;AAEtD,SAAA;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,iBAAiB,QAAQ,SAAS,QAAQ,iBAAiB;AAAA,IAC3D,gBAAgB,SAAS;AAAA,IACzB,qBAAqB,SAAS;AAAA,EAChC;AACF;;"}
@@ -20,7 +20,7 @@ const useAuth = ({
20
20
  csrfToken,
21
21
  csrfTokenFetched,
22
22
  oAuth2AccessToken,
23
- isAuthenticated: Boolean(session || oAuth2AccessToken),
23
+ isAuthenticated: Boolean(session?.user || oAuth2AccessToken),
24
24
  isProjectAdmin: session?.isProjectAdmin,
25
25
  isOrganizationAdmin: session?.isOrganizationAdmin
26
26
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../src/components/Auth/useAuth/index.tsx"],"sourcesContent":["'use client';\n\nimport type {\n OAuth2Token,\n OrganizationAPI,\n ProjectAPI,\n UserAPI,\n} from '@intlayer/backend';\nimport type { IntlayerConfig } from '@intlayer/config/client';\nimport { useCSRF } from './useCSRF';\nimport { useOAuth2 } from './useOAuth2';\nimport { useSession } from './useSession';\n\nexport type Session = {\n user: UserAPI | null;\n organization: OrganizationAPI | null;\n project: ProjectAPI | null;\n isOrganizationAdmin: boolean;\n isProjectAdmin: boolean;\n};\n\ntype SessionContextProps = {\n session: Session | null | undefined;\n setSession: (session: Session | null) => void;\n fetchSession: () => Promise<Session | null | undefined>;\n revalidateSession: () => Promise<Session | null | undefined>;\n csrfToken: string | null | undefined;\n csrfTokenFetched: boolean;\n isAuthenticated: boolean;\n oAuth2AccessToken: OAuth2Token | null | undefined;\n isProjectAdmin: boolean | null | undefined;\n isOrganizationAdmin: boolean | null | undefined;\n};\n\nexport const useAuth = ({\n session: sessionProp,\n intlayerConfiguration,\n}: {\n session?: Session | null;\n intlayerConfiguration?: IntlayerConfig;\n} = {}): SessionContextProps => {\n const { csrfToken, csrfTokenFetched } = useCSRF(intlayerConfiguration);\n const { session, fetchSession, revalidateSession, setSession } = useSession(\n sessionProp,\n intlayerConfiguration\n );\n const { oAuth2AccessToken } = useOAuth2(intlayerConfiguration);\n\n return {\n session,\n fetchSession,\n setSession,\n revalidateSession,\n csrfToken,\n csrfTokenFetched,\n oAuth2AccessToken,\n isAuthenticated: Boolean(session || oAuth2AccessToken),\n isProjectAdmin: session?.isProjectAdmin,\n isOrganizationAdmin: session?.isOrganizationAdmin,\n };\n};\n"],"names":[],"mappings":";;;;AAkCO,MAAM,UAAU,CAAC;AAAA,EACtB,SAAS;AAAA,EACT;AACF,IAGI,OAA4B;AAC9B,QAAM,EAAE,WAAW,qBAAqB,QAAQ,qBAAqB;AACrE,QAAM,EAAE,SAAS,cAAc,mBAAmB,WAAe,IAAA;AAAA,IAC/D;AAAA,IACA;AAAA,EACF;AACA,QAAM,EAAE,kBAAA,IAAsB,UAAU,qBAAqB;AAEtD,SAAA;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,iBAAiB,QAAQ,WAAW,iBAAiB;AAAA,IACrD,gBAAgB,SAAS;AAAA,IACzB,qBAAqB,SAAS;AAAA,EAChC;AACF;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../src/components/Auth/useAuth/index.tsx"],"sourcesContent":["'use client';\n\nimport type {\n OAuth2Token,\n OrganizationAPI,\n ProjectAPI,\n UserAPI,\n} from '@intlayer/backend';\nimport type { IntlayerConfig } from '@intlayer/config/client';\nimport { useCSRF } from './useCSRF';\nimport { useOAuth2 } from './useOAuth2';\nimport { useSession } from './useSession';\n\nexport type Session = {\n user: UserAPI | null;\n organization: OrganizationAPI | null;\n project: ProjectAPI | null;\n isOrganizationAdmin: boolean;\n isProjectAdmin: boolean;\n};\n\ntype SessionContextProps = {\n session: Session | null | undefined;\n setSession: (session: Session | null) => void;\n fetchSession: () => Promise<Session | null | undefined>;\n revalidateSession: () => Promise<Session | null | undefined>;\n csrfToken: string | null | undefined;\n csrfTokenFetched: boolean;\n isAuthenticated: boolean;\n oAuth2AccessToken: OAuth2Token | null | undefined;\n isProjectAdmin: boolean | null | undefined;\n isOrganizationAdmin: boolean | null | undefined;\n};\n\nexport const useAuth = ({\n session: sessionProp,\n intlayerConfiguration,\n}: {\n session?: Session | null;\n intlayerConfiguration?: IntlayerConfig;\n} = {}): SessionContextProps => {\n const { csrfToken, csrfTokenFetched } = useCSRF(intlayerConfiguration);\n const { session, fetchSession, revalidateSession, setSession } = useSession(\n sessionProp,\n intlayerConfiguration\n );\n const { oAuth2AccessToken } = useOAuth2(intlayerConfiguration);\n\n return {\n session,\n fetchSession,\n setSession,\n revalidateSession,\n csrfToken,\n csrfTokenFetched,\n oAuth2AccessToken,\n isAuthenticated: Boolean(session?.user || oAuth2AccessToken),\n isProjectAdmin: session?.isProjectAdmin,\n isOrganizationAdmin: session?.isOrganizationAdmin,\n };\n};\n"],"names":[],"mappings":";;;;AAkCO,MAAM,UAAU,CAAC;AAAA,EACtB,SAAS;AAAA,EACT;AACF,IAGI,OAA4B;AAC9B,QAAM,EAAE,WAAW,qBAAqB,QAAQ,qBAAqB;AACrE,QAAM,EAAE,SAAS,cAAc,mBAAmB,WAAe,IAAA;AAAA,IAC/D;AAAA,IACA;AAAA,EACF;AACA,QAAM,EAAE,kBAAA,IAAsB,UAAU,qBAAqB;AAEtD,SAAA;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,iBAAiB,QAAQ,SAAS,QAAQ,iBAAiB;AAAA,IAC3D,gBAAgB,SAAS;AAAA,IACzB,qBAAqB,SAAS;AAAA,EAChC;AACF;"}
@@ -11,7 +11,7 @@ const useOAuth2 = (intlayerConfiguration) => {
11
11
  const intlayerAPI = api.getIntlayerAPI(void 0, config);
12
12
  const { data } = hooks_useAsync_useAsync.useAsync(
13
13
  "getOAuth2AccessToken",
14
- () => intlayerAPI.auth.getOAuth2AccessToken(),
14
+ intlayerAPI.auth.getOAuth2AccessToken,
15
15
  {
16
16
  cache: true,
17
17
  autoFetch: true,
@@ -1 +1 @@
1
- {"version":3,"file":"useOAuth2.cjs","sources":["../../../../src/components/Auth/useAuth/useOAuth2.ts"],"sourcesContent":["'use client';\n\nimport { getIntlayerAPI } from '@intlayer/api';\nimport type { IntlayerConfig } from '@intlayer/config/client';\nimport defaultConfiguration from '@intlayer/config/built';\n\nimport { useConfiguration } from '@intlayer/editor-react';\nimport { useAsync } from '../../../hooks/useAsync/useAsync';\n\nexport const useOAuth2 = (intlayerConfiguration?: IntlayerConfig) => {\n const configuration = useConfiguration();\n const config = intlayerConfiguration ?? configuration ?? defaultConfiguration;\n const intlayerAPI = getIntlayerAPI(undefined, config);\n\n const { data } = useAsync(\n 'getOAuth2AccessToken',\n () => intlayerAPI.auth.getOAuth2AccessToken(),\n {\n cache: true,\n autoFetch: true,\n enable: !!(config.editor.clientId && config.editor.clientSecret),\n }\n );\n\n const oAuth2AccessToken = data?.data;\n\n return {\n oAuth2AccessToken,\n };\n};\n"],"names":["useConfiguration","getIntlayerAPI","useAsync"],"mappings":";;;;;;;AASa,MAAA,YAAY,CAAC,0BAA2C;AACnE,QAAM,gBAAgBA,YAAAA,iBAAiB;AACjC,QAAA,SAAS,yBAAyB,iBAAiB;AACnD,QAAA,cAAcC,IAAAA,eAAe,QAAW,MAAM;AAE9C,QAAA,EAAE,SAASC,wBAAA;AAAA,IACf;AAAA,IACA,MAAM,YAAY,KAAK,qBAAqB;AAAA,IAC5C;AAAA,MACE,OAAO;AAAA,MACP,WAAW;AAAA,MACX,QAAQ,CAAC,EAAE,OAAO,OAAO,YAAY,OAAO,OAAO;AAAA,IAAA;AAAA,EAEvD;AAEA,QAAM,oBAAoB,MAAM;AAEzB,SAAA;AAAA,IACL;AAAA,EACF;AACF;;"}
1
+ {"version":3,"file":"useOAuth2.cjs","sources":["../../../../src/components/Auth/useAuth/useOAuth2.ts"],"sourcesContent":["'use client';\n\nimport { getIntlayerAPI } from '@intlayer/api';\nimport defaultConfiguration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/config/client';\n\nimport { useConfiguration } from '@intlayer/editor-react';\nimport { useAsync } from '../../../hooks/useAsync/useAsync';\n\nexport const useOAuth2 = (intlayerConfiguration?: IntlayerConfig) => {\n const configuration = useConfiguration();\n const config = intlayerConfiguration ?? configuration ?? defaultConfiguration;\n const intlayerAPI = getIntlayerAPI(undefined, config);\n\n const { data } = useAsync(\n 'getOAuth2AccessToken',\n intlayerAPI.auth.getOAuth2AccessToken,\n {\n cache: true,\n autoFetch: true,\n enable: !!(config.editor.clientId && config.editor.clientSecret),\n }\n );\n\n const oAuth2AccessToken = data?.data;\n\n return {\n oAuth2AccessToken,\n };\n};\n"],"names":["useConfiguration","getIntlayerAPI","useAsync"],"mappings":";;;;;;;AASa,MAAA,YAAY,CAAC,0BAA2C;AACnE,QAAM,gBAAgBA,YAAAA,iBAAiB;AACjC,QAAA,SAAS,yBAAyB,iBAAiB;AACnD,QAAA,cAAcC,IAAAA,eAAe,QAAW,MAAM;AAE9C,QAAA,EAAE,SAASC,wBAAA;AAAA,IACf;AAAA,IACA,YAAY,KAAK;AAAA,IACjB;AAAA,MACE,OAAO;AAAA,MACP,WAAW;AAAA,MACX,QAAQ,CAAC,EAAE,OAAO,OAAO,YAAY,OAAO,OAAO;AAAA,IAAA;AAAA,EAEvD;AAEA,QAAM,oBAAoB,MAAM;AAEzB,SAAA;AAAA,IACL;AAAA,EACF;AACF;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useOAuth2.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/useAuth/useOAuth2.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAM9D,eAAO,MAAM,SAAS,GAAI,wBAAwB,cAAc;;CAoB/D,CAAC"}
1
+ {"version":3,"file":"useOAuth2.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/useAuth/useOAuth2.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAK9D,eAAO,MAAM,SAAS,GAAI,wBAAwB,cAAc;;CAoB/D,CAAC"}
@@ -9,7 +9,7 @@ const useOAuth2 = (intlayerConfiguration) => {
9
9
  const intlayerAPI = getIntlayerAPI(void 0, config);
10
10
  const { data } = useAsync(
11
11
  "getOAuth2AccessToken",
12
- () => intlayerAPI.auth.getOAuth2AccessToken(),
12
+ intlayerAPI.auth.getOAuth2AccessToken,
13
13
  {
14
14
  cache: true,
15
15
  autoFetch: true,
@@ -1 +1 @@
1
- {"version":3,"file":"useOAuth2.mjs","sources":["../../../../src/components/Auth/useAuth/useOAuth2.ts"],"sourcesContent":["'use client';\n\nimport { getIntlayerAPI } from '@intlayer/api';\nimport type { IntlayerConfig } from '@intlayer/config/client';\nimport defaultConfiguration from '@intlayer/config/built';\n\nimport { useConfiguration } from '@intlayer/editor-react';\nimport { useAsync } from '../../../hooks/useAsync/useAsync';\n\nexport const useOAuth2 = (intlayerConfiguration?: IntlayerConfig) => {\n const configuration = useConfiguration();\n const config = intlayerConfiguration ?? configuration ?? defaultConfiguration;\n const intlayerAPI = getIntlayerAPI(undefined, config);\n\n const { data } = useAsync(\n 'getOAuth2AccessToken',\n () => intlayerAPI.auth.getOAuth2AccessToken(),\n {\n cache: true,\n autoFetch: true,\n enable: !!(config.editor.clientId && config.editor.clientSecret),\n }\n );\n\n const oAuth2AccessToken = data?.data;\n\n return {\n oAuth2AccessToken,\n };\n};\n"],"names":[],"mappings":";;;;;AASa,MAAA,YAAY,CAAC,0BAA2C;AACnE,QAAM,gBAAgB,iBAAiB;AACjC,QAAA,SAAS,yBAAyB,iBAAiB;AACnD,QAAA,cAAc,eAAe,QAAW,MAAM;AAE9C,QAAA,EAAE,SAAS;AAAA,IACf;AAAA,IACA,MAAM,YAAY,KAAK,qBAAqB;AAAA,IAC5C;AAAA,MACE,OAAO;AAAA,MACP,WAAW;AAAA,MACX,QAAQ,CAAC,EAAE,OAAO,OAAO,YAAY,OAAO,OAAO;AAAA,IAAA;AAAA,EAEvD;AAEA,QAAM,oBAAoB,MAAM;AAEzB,SAAA;AAAA,IACL;AAAA,EACF;AACF;"}
1
+ {"version":3,"file":"useOAuth2.mjs","sources":["../../../../src/components/Auth/useAuth/useOAuth2.ts"],"sourcesContent":["'use client';\n\nimport { getIntlayerAPI } from '@intlayer/api';\nimport defaultConfiguration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/config/client';\n\nimport { useConfiguration } from '@intlayer/editor-react';\nimport { useAsync } from '../../../hooks/useAsync/useAsync';\n\nexport const useOAuth2 = (intlayerConfiguration?: IntlayerConfig) => {\n const configuration = useConfiguration();\n const config = intlayerConfiguration ?? configuration ?? defaultConfiguration;\n const intlayerAPI = getIntlayerAPI(undefined, config);\n\n const { data } = useAsync(\n 'getOAuth2AccessToken',\n intlayerAPI.auth.getOAuth2AccessToken,\n {\n cache: true,\n autoFetch: true,\n enable: !!(config.editor.clientId && config.editor.clientSecret),\n }\n );\n\n const oAuth2AccessToken = data?.data;\n\n return {\n oAuth2AccessToken,\n };\n};\n"],"names":[],"mappings":";;;;;AASa,MAAA,YAAY,CAAC,0BAA2C;AACnE,QAAM,gBAAgB,iBAAiB;AACjC,QAAA,SAAS,yBAAyB,iBAAiB;AACnD,QAAA,cAAc,eAAe,QAAW,MAAM;AAE9C,QAAA,EAAE,SAAS;AAAA,IACf;AAAA,IACA,YAAY,KAAK;AAAA,IACjB;AAAA,MACE,OAAO;AAAA,MACP,WAAW;AAAA,MACX,QAAQ,CAAC,EAAE,OAAO,OAAO,YAAY,OAAO,OAAO;AAAA,IAAA;AAAA,EAEvD;AAEA,QAAM,oBAAoB,MAAM;AAEzB,SAAA;AAAA,IACL;AAAA,EACF;AACF;"}
@@ -21,61 +21,12 @@ export declare const CommandRoot: FC<ComponentProps<typeof CommandPrimitive>>;
21
21
  */
22
22
  export declare const Command: {
23
23
  Dialog: FC<DialogProps>;
24
- Input: FC<Omit<Pick<Pick<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof import('react').InputHTMLAttributes<HTMLInputElement>> & {
25
- ref?: React.Ref<HTMLInputElement>;
26
- } & {
27
- asChild?: boolean;
28
- }, "key" | "asChild" | keyof import('react').InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
29
- value?: string;
30
- onValueChange?: (search: string) => void;
31
- } & import('react').RefAttributes<HTMLInputElement>>;
32
- List: FC<{
33
- children?: React.ReactNode;
34
- } & Pick<Pick<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & {
35
- ref?: React.Ref<HTMLDivElement>;
36
- } & {
37
- asChild?: boolean;
38
- }, "key" | "asChild" | keyof HTMLAttributes<HTMLDivElement>> & {
39
- label?: string;
40
- } & import('react').RefAttributes<HTMLDivElement>>;
41
- Empty: FC<{
42
- children?: React.ReactNode;
43
- } & Pick<Pick<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & {
44
- ref?: React.Ref<HTMLDivElement>;
45
- } & {
46
- asChild?: boolean;
47
- }, "key" | "asChild" | keyof HTMLAttributes<HTMLDivElement>> & import('react').RefAttributes<HTMLDivElement>>;
48
- Group: FC<{
49
- children?: React.ReactNode;
50
- } & Omit<Pick<Pick<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & {
51
- ref?: React.Ref<HTMLDivElement>;
52
- } & {
53
- asChild?: boolean;
54
- }, "key" | "asChild" | keyof HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
55
- heading?: React.ReactNode;
56
- value?: string;
57
- forceMount?: boolean;
58
- } & import('react').RefAttributes<HTMLDivElement>>;
59
- Separator: FC<Pick<Pick<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & {
60
- ref?: React.Ref<HTMLDivElement>;
61
- } & {
62
- asChild?: boolean;
63
- }, "key" | "asChild" | keyof HTMLAttributes<HTMLDivElement>> & {
64
- alwaysRender?: boolean;
65
- } & import('react').RefAttributes<HTMLDivElement>>;
66
- Item: FC<{
67
- children?: React.ReactNode;
68
- } & Omit<Pick<Pick<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & {
69
- ref?: React.Ref<HTMLDivElement>;
70
- } & {
71
- asChild?: boolean;
72
- }, "key" | "asChild" | keyof HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
73
- disabled?: boolean;
74
- onSelect?: (value: string) => void;
75
- value?: string;
76
- keywords?: string[];
77
- forceMount?: boolean;
78
- } & import('react').RefAttributes<HTMLDivElement>>;
24
+ Input: FC<{}>;
25
+ List: FC<{}>;
26
+ Empty: FC<{}>;
27
+ Group: FC<{}>;
28
+ Separator: FC<{}>;
29
+ Item: FC<{}>;
79
30
  Shortcut: ({ className, ...props }: HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
80
31
  propTypes?: any;
81
32
  displayName?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Command/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG1E,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAWnE,CAAC;AA8FF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO;;;cAWmoV,MAAO,GAAG;;;;;;;;mBA1IjoV,MAAO,SAAS;;cA0I+8R,MAAO,GAAG;;;;;;;mBA1Iz+R,MAAO,SAAS;;cA0Iwwd,MAAO,GAAG;;;;;mBA1Ilyd,MAAO,SAAS;;cA0IsyW,MAAO,GAAG;;;;kBAAmO,MAAO,SAAS;;;;;cAAqe,MAAO,GAAG;;;;;;;mBA1IliY,MAAO,SAAS;;cA0I89S,MAAO,GAAG;;;;;;;;;;wCAxCrhT,cAAc,CAAC,eAAe,CAAC;;;CAuCjC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Command/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG1E,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAWnE,CAAC;AA8FF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO;;;;;;;;wCA7BjB,cAAc,CAAC,eAAe,CAAC;;;CAuCjC,CAAC"}
@@ -5,7 +5,7 @@ const jsxRuntime = require("react/jsx-runtime");
5
5
  const ReactExports = require("react");
6
6
  const editorReact = require("@intlayer/editor-react");
7
7
  const components_DictionaryFieldEditor_SaveForm_SaveForm = require("../DictionaryFieldEditor/SaveForm/SaveForm.cjs");
8
- const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../index-s_Ar0FDw.cjs");
8
+ const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../index-DW4Wnns5.cjs");
9
9
  const DictionaryEditor = ({
10
10
  dictionary,
11
11
  mode,
@@ -3,7 +3,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import { createElement } from "react";
4
4
  import { useEditedContent, useFocusDictionary } from "@intlayer/editor-react";
5
5
  import { SaveForm } from "../DictionaryFieldEditor/SaveForm/SaveForm.mjs";
6
- import { N as NodeWrapper } from "../../index-CEoL1j7H.js";
6
+ import { N as NodeWrapper } from "../../index-aPP3MzPT.js";
7
7
  const DictionaryEditor = ({
8
8
  dictionary,
9
9
  mode,
@@ -3,6 +3,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("react/jsx-runtime");
4
4
  require("@intlayer/core");
5
5
  require("../ItemLayout.cjs");
6
- const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-s_Ar0FDw.cjs");
6
+ const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-DW4Wnns5.cjs");
7
7
  exports.ArrayWrapper = components_DictionaryEditor_NodeWrapper_ArrayWrapper.ArrayWrapper;
8
8
  //# sourceMappingURL=ArrayWrapper.cjs.map
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@intlayer/core";
3
3
  import "../ItemLayout.mjs";
4
- import { A } from "../../../index-CEoL1j7H.js";
4
+ import { A } from "../../../index-aPP3MzPT.js";
5
5
  export {
6
6
  A as ArrayWrapper
7
7
  };
@@ -3,6 +3,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("react/jsx-runtime");
4
4
  require("react");
5
5
  require("@intlayer/core");
6
- const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-s_Ar0FDw.cjs");
6
+ const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-DW4Wnns5.cjs");
7
7
  exports.ConditionWrapper = components_DictionaryEditor_NodeWrapper_ArrayWrapper.ConditionWrapper;
8
8
  //# sourceMappingURL=ConditionWrapper.cjs.map
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "@intlayer/core";
4
- import { C } from "../../../index-CEoL1j7H.js";
4
+ import { C } from "../../../index-aPP3MzPT.js";
5
5
  export {
6
6
  C as ConditionWrapper
7
7
  };
@@ -3,6 +3,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("react/jsx-runtime");
4
4
  require("react");
5
5
  require("@intlayer/core");
6
- const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-s_Ar0FDw.cjs");
6
+ const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-DW4Wnns5.cjs");
7
7
  exports.EnumerationWrapper = components_DictionaryEditor_NodeWrapper_ArrayWrapper.EnumerationWrapper;
8
8
  //# sourceMappingURL=EnumerationWrapper.cjs.map
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "@intlayer/core";
4
- import { E } from "../../../index-CEoL1j7H.js";
4
+ import { E } from "../../../index-aPP3MzPT.js";
5
5
  export {
6
6
  E as EnumerationWrapper
7
7
  };
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("react/jsx-runtime");
4
4
  require("@intlayer/core");
5
- const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-s_Ar0FDw.cjs");
5
+ const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-DW4Wnns5.cjs");
6
6
  exports.InsertionWrapper = components_DictionaryEditor_NodeWrapper_ArrayWrapper.InsertionWrapper;
7
7
  //# sourceMappingURL=InsertionWrapper.cjs.map
@@ -1,4 +1,4 @@
1
- import { InsertionContent, ContentNode } from '@intlayer/core';
1
+ import { ContentNode, InsertionContent } from '@intlayer/core';
2
2
  import { FC } from 'react';
3
3
  import { NodeWrapperProps } from './index';
4
4
  type InsertionWrapperProps = Omit<NodeWrapperProps, 'section'> & {
@@ -1 +1 @@
1
- {"version":3,"file":"InsertionWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryEditor/NodeWrapper/InsertionWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE7D,KAAK,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,GAAG;IAC/D,OAAO,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAiBtD,CAAC"}
1
+ {"version":3,"file":"InsertionWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryEditor/NodeWrapper/InsertionWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EAEtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE7D,KAAK,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,GAAG;IAC/D,OAAO,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAiBtD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@intlayer/core";
3
- import { I } from "../../../index-CEoL1j7H.js";
3
+ import { I } from "../../../index-aPP3MzPT.js";
4
4
  export {
5
5
  I as InsertionWrapper
6
6
  };
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("react/jsx-runtime");
4
4
  require("@intlayer/core");
5
- const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-s_Ar0FDw.cjs");
5
+ const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-DW4Wnns5.cjs");
6
6
  exports.MarkdownWrapper = components_DictionaryEditor_NodeWrapper_ArrayWrapper.MarkdownWrapper;
7
7
  //# sourceMappingURL=MarkdownWrapper.cjs.map
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@intlayer/core";
3
- import { M } from "../../../index-CEoL1j7H.js";
3
+ import { M } from "../../../index-aPP3MzPT.js";
4
4
  export {
5
5
  M as MarkdownWrapper
6
6
  };
@@ -3,6 +3,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("react/jsx-runtime");
4
4
  require("@intlayer/core");
5
5
  require("../ItemLayout.cjs");
6
- const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-s_Ar0FDw.cjs");
6
+ const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-DW4Wnns5.cjs");
7
7
  exports.NestedObjectWrapper = components_DictionaryEditor_NodeWrapper_ArrayWrapper.NestedObjectWrapper;
8
8
  //# sourceMappingURL=NestedObjectWrapper.cjs.map
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@intlayer/core";
3
3
  import "../ItemLayout.mjs";
4
- import { a } from "../../../index-CEoL1j7H.js";
4
+ import { a } from "../../../index-aPP3MzPT.js";
5
5
  export {
6
6
  a as NestedObjectWrapper
7
7
  };
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("react/jsx-runtime");
4
4
  require("@intlayer/core");
5
- const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-s_Ar0FDw.cjs");
5
+ const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-DW4Wnns5.cjs");
6
6
  exports.TranslationWrapper = components_DictionaryEditor_NodeWrapper_ArrayWrapper.TranslationWrapper;
7
7
  //# sourceMappingURL=TranslationWrapper.cjs.map
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@intlayer/core";
3
- import { T } from "../../../index-CEoL1j7H.js";
3
+ import { T } from "../../../index-aPP3MzPT.js";
4
4
  export {
5
5
  T as TranslationWrapper
6
6
  };
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("react/jsx-runtime");
4
4
  require("@intlayer/core");
5
- const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-s_Ar0FDw.cjs");
6
- require("./StringWrapper.cjs");
5
+ const components_DictionaryEditor_NodeWrapper_ArrayWrapper = require("../../../index-DW4Wnns5.cjs");
7
6
  require("./FileWrapper.cjs");
7
+ require("./StringWrapper.cjs");
8
8
  exports.NodeWrapper = components_DictionaryEditor_NodeWrapper_ArrayWrapper.NodeWrapper;
9
9
  exports.traceKeys = components_DictionaryEditor_NodeWrapper_ArrayWrapper.traceKeys;
10
10
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { Locales } from '@intlayer/config/client';
2
- import { KeyPath, ContentNode, Dictionary } from '@intlayer/core';
2
+ import { ContentNode, Dictionary, KeyPath } from '@intlayer/core';
3
3
  import { ReactNode, FC } from 'react';
4
4
  export declare const traceKeys: string[];
5
5
  export type NodeWrapperProps = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryEditor/NodeWrapper/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAQL,KAAK,OAAO,EACZ,KAAK,WAAW,EAEhB,KAAK,UAAU,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAW3C,eAAO,MAAM,SAAS,EAAE,MAAM,EAAmC,CAAC;AAElE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,eAAe,EAAE,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,OAAO,EAAE,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC7E,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,WAAW,CAAC;IAC3B,cAAc,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;IACtC,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IAC7C,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IAC3C,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,SAAS,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAwF5C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryEditor/NodeWrapper/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAKL,KAAK,WAAW,EAChB,KAAK,UAAU,EAIf,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAW3C,eAAO,MAAM,SAAS,EAAE,MAAM,EAAmC,CAAC;AAElE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,eAAe,EAAE,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,OAAO,EAAE,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC7E,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,WAAW,CAAC;IAC3B,cAAc,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;IACtC,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IAC7C,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IAC3C,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,SAAS,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA4F5C,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@intlayer/core";
3
- import { N, t } from "../../../index-CEoL1j7H.js";
4
- import "./StringWrapper.mjs";
3
+ import { N, t } from "../../../index-aPP3MzPT.js";
5
4
  import "./FileWrapper.mjs";
5
+ import "./StringWrapper.mjs";
6
6
  export {
7
7
  N as NodeWrapper,
8
8
  t as traceKeys
@@ -7,61 +7,46 @@ const styledAfter = `after:content-['#'] after:scale-75 after:px-6 after:text-ne
7
7
  const StyledH1 = ({
8
8
  className,
9
9
  ...props
10
- }) => (
11
- // eslint-disable-next-line jsx-a11y/heading-has-content
12
- /* @__PURE__ */ jsxRuntime.jsx("h1", { className: utils_cn.cn("mt-5 text-2xl font-bold", className), ...props })
13
- );
10
+ }) => /* @__PURE__ */ jsxRuntime.jsx("h1", { className: utils_cn.cn("mt-5 text-2xl font-bold", className), ...props });
14
11
  const StyledH2 = ({
15
12
  className,
16
13
  ...props
17
- }) => (
18
- // eslint-disable-next-line jsx-a11y/heading-has-content
19
- /* @__PURE__ */ jsxRuntime.jsx(
20
- "h2",
21
- {
22
- className: utils_cn.cn("mt-5 text-2xl font-bold", styledHeading, className),
23
- ...props
24
- }
25
- )
14
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
15
+ "h2",
16
+ {
17
+ className: utils_cn.cn("mt-16 mb-2 text-2xl font-bold", styledHeading, className),
18
+ ...props
19
+ }
26
20
  );
27
21
  const StyledH3 = ({
28
22
  className,
29
23
  ...props
30
- }) => (
31
- // eslint-disable-next-line jsx-a11y/heading-has-content
32
- /* @__PURE__ */ jsxRuntime.jsx(
33
- "h3",
34
- {
35
- className: utils_cn.cn("mt-3 text-xl font-bold", styledHeading, className),
36
- ...props
37
- }
38
- )
24
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
25
+ "h3",
26
+ {
27
+ className: utils_cn.cn("mt-5 mb-2 text-xl font-bold", styledHeading, className),
28
+ ...props
29
+ }
39
30
  );
40
31
  const StyledH4 = ({
41
32
  className,
42
33
  ...props
43
- }) => (
44
- // eslint-disable-next-line jsx-a11y/heading-has-content
45
- /* @__PURE__ */ jsxRuntime.jsx(
46
- "h4",
47
- {
48
- className: utils_cn.cn("mt-3 text-lg font-bold", styledHeading, className),
49
- ...props
50
- }
51
- )
34
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
35
+ "h4",
36
+ {
37
+ className: utils_cn.cn("mt-3 text-lg font-bold", styledHeading, className),
38
+ ...props
39
+ }
52
40
  );
53
41
  const StyledH5 = ({
54
42
  className,
55
43
  ...props
56
- }) => (
57
- // eslint-disable-next-line jsx-a11y/heading-has-content
58
- /* @__PURE__ */ jsxRuntime.jsx(
59
- "h5",
60
- {
61
- className: utils_cn.cn("mt-3 text-base font-bold", styledHeading, className),
62
- ...props
63
- }
64
- )
44
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
45
+ "h5",
46
+ {
47
+ className: utils_cn.cn("mt-3 text-base font-bold", styledHeading, className),
48
+ ...props
49
+ }
65
50
  );
66
51
  const getId = (children) => String(children).normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/\s+/g, "-").toLowerCase();
67
52
  const scrollToHash = (id) => {