@intlayer/design-system 5.8.1 → 6.0.0-canary.0
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/.vite/manifest.json +34 -106
- package/dist/better-auth.CMQ3rA-I-7umXOENE.js.map +1 -1
- package/dist/better-auth.CMQ3rA-I-C2nBKRMa.cjs.map +1 -1
- package/dist/components/Breadcrumb/breadcrumb.content.cjs +3 -1
- package/dist/components/Breadcrumb/breadcrumb.content.cjs.map +1 -1
- package/dist/components/Breadcrumb/breadcrumb.content.d.ts +3 -0
- package/dist/components/Breadcrumb/breadcrumb.content.d.ts.map +1 -1
- package/dist/components/Breadcrumb/breadcrumb.content.mjs +3 -1
- package/dist/components/Breadcrumb/breadcrumb.content.mjs.map +1 -1
- package/dist/components/Breadcrumb/index.cjs.map +1 -1
- package/dist/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/components/Breadcrumb/index.mjs.map +1 -1
- package/dist/components/CopyButton/CopyButton.content.cjs +3 -1
- package/dist/components/CopyButton/CopyButton.content.cjs.map +1 -1
- package/dist/components/CopyButton/CopyButton.content.d.ts +3 -0
- package/dist/components/CopyButton/CopyButton.content.d.ts.map +1 -1
- package/dist/components/CopyButton/CopyButton.content.mjs +3 -1
- package/dist/components/CopyButton/CopyButton.content.mjs.map +1 -1
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs +7 -3
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs.map +1 -1
- package/dist/components/DictionaryEditor/DictionaryEditor.d.ts.map +1 -1
- package/dist/components/DictionaryEditor/DictionaryEditor.mjs +7 -3
- package/dist/components/DictionaryEditor/DictionaryEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditor.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditor.mjs +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs +83 -34
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +83 -34
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +13 -9
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +12 -8
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs +27 -13
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +27 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +27 -13
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.cjs +9 -4
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts +9 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.mjs +9 -4
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +29 -25
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +27 -23
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +37 -17
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +64 -2
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +37 -17
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs +25 -12
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts +25 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs +25 -12
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +4 -5
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +4 -5
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/JSONEditor.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/JSONEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/JSONEditor.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/JSONEditor.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/JSONEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs +25 -12
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +25 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs +25 -12
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +36 -31
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +36 -31
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +32 -28
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +32 -5
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +32 -28
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureEditor.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/StructureEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureEditor.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/StructureEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs +2 -5
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs +2 -5
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs +9 -4
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts +9 -0
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs +9 -4
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs +3 -3
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs +3 -3
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs +4 -6
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.d.ts +3 -3
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs +4 -6
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.cjs +7 -3
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts +7 -0
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.mjs +7 -3
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs +9 -6
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +9 -4
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs +9 -6
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs +28 -14
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +29 -2
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs +28 -14
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs.map +1 -1
- package/dist/components/DropDown/index.cjs +2 -2
- package/dist/components/DropDown/index.cjs.map +1 -1
- package/dist/components/DropDown/index.d.ts.map +1 -1
- package/dist/components/DropDown/index.mjs +2 -2
- package/dist/components/DropDown/index.mjs.map +1 -1
- package/dist/components/EditableField/EditableFieldTextArea.cjs +2 -5
- package/dist/components/EditableField/EditableFieldTextArea.cjs.map +1 -1
- package/dist/components/EditableField/EditableFieldTextArea.mjs +2 -5
- package/dist/components/EditableField/EditableFieldTextArea.mjs.map +1 -1
- package/dist/components/ExpandCollapse/ExpandCollapse.cjs.map +1 -1
- package/dist/components/ExpandCollapse/ExpandCollapse.d.ts +2 -2
- package/dist/components/ExpandCollapse/ExpandCollapse.d.ts.map +1 -1
- package/dist/components/ExpandCollapse/ExpandCollapse.mjs.map +1 -1
- package/dist/components/ExpandCollapse/expandCollapse.content.cjs +5 -2
- package/dist/components/ExpandCollapse/expandCollapse.content.cjs.map +1 -1
- package/dist/components/ExpandCollapse/expandCollapse.content.d.ts +3 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.d.ts.map +1 -1
- package/dist/components/ExpandCollapse/expandCollapse.content.mjs +5 -2
- package/dist/components/ExpandCollapse/expandCollapse.content.mjs.map +1 -1
- package/dist/components/Flags/Flag.cjs +2 -1
- package/dist/components/Flags/Flag.cjs.map +1 -1
- package/dist/components/Flags/Flag.d.ts.map +1 -1
- package/dist/components/Flags/Flag.mjs +2 -1
- package/dist/components/Flags/Flag.mjs.map +1 -1
- package/dist/components/IDE/Code.cjs +8 -8
- package/dist/components/IDE/Code.cjs.map +1 -1
- package/dist/components/IDE/Code.mjs +8 -8
- package/dist/components/IDE/Code.mjs.map +1 -1
- package/dist/components/IDE/CodeBlockClient.cjs +1 -1
- package/dist/components/IDE/CodeBlockClient.cjs.map +1 -1
- package/dist/components/IDE/CodeBlockClient.d.ts +1 -1
- package/dist/components/IDE/CodeBlockClient.d.ts.map +1 -1
- package/dist/components/IDE/CodeBlockClient.mjs +1 -1
- package/dist/components/IDE/CodeBlockClient.mjs.map +1 -1
- package/dist/components/IDE/CodeContext.cjs +1 -3
- package/dist/components/IDE/CodeContext.cjs.map +1 -1
- package/dist/components/IDE/CodeContext.mjs +1 -3
- package/dist/components/IDE/CodeContext.mjs.map +1 -1
- package/dist/components/IDE/code.content.cjs +5 -2
- package/dist/components/IDE/code.content.cjs.map +1 -1
- package/dist/components/IDE/code.content.d.ts +5 -0
- package/dist/components/IDE/code.content.d.ts.map +1 -1
- package/dist/components/IDE/code.content.mjs +5 -2
- package/dist/components/IDE/code.content.mjs.map +1 -1
- package/dist/components/IDE/copyCode.content.cjs +5 -2
- package/dist/components/IDE/copyCode.content.cjs.map +1 -1
- package/dist/components/IDE/copyCode.content.d.ts +5 -0
- package/dist/components/IDE/copyCode.content.d.ts.map +1 -1
- package/dist/components/IDE/copyCode.content.mjs +5 -2
- package/dist/components/IDE/copyCode.content.mjs.map +1 -1
- package/dist/components/Input/Checkbox.cjs.map +1 -1
- package/dist/components/Input/Checkbox.d.ts +2 -2
- package/dist/components/Input/Checkbox.d.ts.map +1 -1
- package/dist/components/Input/Checkbox.mjs.map +1 -1
- package/dist/components/Loader/index.content.cjs +6 -1
- package/dist/components/Loader/index.content.cjs.map +1 -1
- package/dist/components/Loader/index.content.d.ts +33 -2
- package/dist/components/Loader/index.content.d.ts.map +1 -1
- package/dist/components/Loader/index.content.mjs +6 -1
- package/dist/components/Loader/index.content.mjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +1 -3
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -3
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs +1 -3
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs +1 -3
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.cjs +17 -8
- package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.cjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts +17 -0
- package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.mjs +17 -8
- package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.mjs.map +1 -1
- package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.cjs +13 -6
- package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.cjs.map +1 -1
- package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts +13 -0
- package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts.map +1 -1
- package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.mjs +13 -6
- package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.mjs.map +1 -1
- package/dist/components/Modal/Modal.cjs +2 -4
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.mjs +2 -4
- package/dist/components/Modal/Modal.mjs.map +1 -1
- package/dist/components/Navbar/MobileNavbar.cjs +1 -3
- package/dist/components/Navbar/MobileNavbar.cjs.map +1 -1
- package/dist/components/Navbar/MobileNavbar.mjs +1 -3
- package/dist/components/Navbar/MobileNavbar.mjs.map +1 -1
- package/dist/components/Navbar/index.cjs +2 -4
- package/dist/components/Navbar/index.cjs.map +1 -1
- package/dist/components/Navbar/index.mjs +2 -4
- package/dist/components/Navbar/index.mjs.map +1 -1
- package/dist/components/SwitchSelector/index.cjs +1 -3
- package/dist/components/SwitchSelector/index.cjs.map +1 -1
- package/dist/components/SwitchSelector/index.mjs +1 -3
- package/dist/components/SwitchSelector/index.mjs.map +1 -1
- package/dist/components/TabSelector/TabSelector.cjs +1 -3
- package/dist/components/TabSelector/TabSelector.cjs.map +1 -1
- package/dist/components/TabSelector/TabSelector.d.ts +1 -1
- package/dist/components/TabSelector/TabSelector.d.ts.map +1 -1
- package/dist/components/TabSelector/TabSelector.mjs +1 -3
- package/dist/components/TabSelector/TabSelector.mjs.map +1 -1
- package/dist/components/Table/table.content.cjs +3 -1
- package/dist/components/Table/table.content.cjs.map +1 -1
- package/dist/components/Table/table.content.d.ts +3 -0
- package/dist/components/Table/table.content.d.ts.map +1 -1
- package/dist/components/Table/table.content.mjs +3 -1
- package/dist/components/Table/table.content.mjs.map +1 -1
- package/dist/components/Tag/index.cjs +22 -88
- package/dist/components/Tag/index.cjs.map +1 -1
- package/dist/components/Tag/index.d.ts +5 -5
- package/dist/components/Tag/index.mjs +22 -88
- package/dist/components/Tag/index.mjs.map +1 -1
- package/dist/components/TextArea/AutocompleteTextArea.cjs +20 -21
- package/dist/components/TextArea/AutocompleteTextArea.cjs.map +1 -1
- package/dist/components/TextArea/AutocompleteTextArea.d.ts.map +1 -1
- package/dist/components/TextArea/AutocompleteTextArea.mjs +20 -21
- package/dist/components/TextArea/AutocompleteTextArea.mjs.map +1 -1
- package/dist/hooks/auth.cjs +26 -11
- package/dist/hooks/auth.cjs.map +1 -1
- package/dist/hooks/auth.mjs +26 -11
- package/dist/hooks/auth.mjs.map +1 -1
- package/dist/hooks/index.cjs +65 -66
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.ts +1 -3
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.mjs +4 -8
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/hooks/reactQuery.cjs +648 -0
- package/dist/hooks/reactQuery.cjs.map +1 -0
- package/dist/hooks/reactQuery.d.ts +899 -0
- package/dist/hooks/reactQuery.d.ts.map +1 -0
- package/dist/hooks/reactQuery.mjs +646 -0
- package/dist/hooks/reactQuery.mjs.map +1 -0
- package/dist/hooks/useAuth/useOAuth2.cjs +13 -10
- package/dist/hooks/useAuth/useOAuth2.cjs.map +1 -1
- package/dist/hooks/useAuth/useOAuth2.d.ts +1 -1
- package/dist/hooks/useAuth/useOAuth2.d.ts.map +1 -1
- package/dist/hooks/useAuth/useOAuth2.mjs +13 -10
- package/dist/hooks/useAuth/useOAuth2.mjs.map +1 -1
- package/dist/hooks/useAuth/useSession.cjs +23 -26
- package/dist/hooks/useAuth/useSession.cjs.map +1 -1
- package/dist/hooks/useAuth/useSession.d.ts +4 -352
- package/dist/hooks/useAuth/useSession.d.ts.map +1 -1
- package/dist/hooks/useAuth/useSession.mjs +23 -26
- package/dist/hooks/useAuth/useSession.mjs.map +1 -1
- package/dist/hooks/useIntlayerAPI.cjs +2 -3
- package/dist/hooks/useIntlayerAPI.cjs.map +1 -1
- package/dist/hooks/useIntlayerAPI.mjs +2 -3
- package/dist/hooks/useIntlayerAPI.mjs.map +1 -1
- package/dist/hooks/useUser/index.cjs +6 -9
- package/dist/hooks/useUser/index.cjs.map +1 -1
- package/dist/hooks/useUser/index.d.ts +2 -18
- package/dist/hooks/useUser/index.d.ts.map +1 -1
- package/dist/hooks/useUser/index.mjs +6 -9
- package/dist/hooks/useUser/index.mjs.map +1 -1
- package/dist/index-BCuMWKyy.js.map +1 -1
- package/dist/index-BYzBot7l.cjs.map +1 -1
- package/dist/providers/ReactQueryProvider.cjs +85 -0
- package/dist/providers/ReactQueryProvider.cjs.map +1 -0
- package/dist/providers/ReactQueryProvider.d.ts +13 -0
- package/dist/providers/ReactQueryProvider.d.ts.map +1 -0
- package/dist/providers/ReactQueryProvider.mjs +85 -0
- package/dist/providers/ReactQueryProvider.mjs.map +1 -0
- package/dist/providers/index.cjs +5 -0
- package/dist/{hooks/useAsync → providers}/index.cjs.map +1 -1
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.mjs +5 -0
- package/dist/{hooks/useAsync → providers}/index.mjs.map +1 -1
- package/package.json +31 -21
- package/dist/hooks/intlayerAPIHooks.cjs +0 -542
- package/dist/hooks/intlayerAPIHooks.cjs.map +0 -1
- package/dist/hooks/intlayerAPIHooks.d.ts +0 -968
- package/dist/hooks/intlayerAPIHooks.d.ts.map +0 -1
- package/dist/hooks/intlayerAPIHooks.mjs +0 -542
- package/dist/hooks/intlayerAPIHooks.mjs.map +0 -1
- package/dist/hooks/useAsync/index.cjs +0 -8
- package/dist/hooks/useAsync/index.d.ts +0 -3
- package/dist/hooks/useAsync/index.d.ts.map +0 -1
- package/dist/hooks/useAsync/index.mjs +0 -8
- package/dist/hooks/useAsync/useAsync.cjs +0 -244
- package/dist/hooks/useAsync/useAsync.cjs.map +0 -1
- package/dist/hooks/useAsync/useAsync.d.ts +0 -73
- package/dist/hooks/useAsync/useAsync.d.ts.map +0 -1
- package/dist/hooks/useAsync/useAsync.mjs +0 -244
- package/dist/hooks/useAsync/useAsync.mjs.map +0 -1
- package/dist/hooks/useAsync/useAsyncStateStore.cjs +0 -150
- package/dist/hooks/useAsync/useAsyncStateStore.cjs.map +0 -1
- package/dist/hooks/useAsync/useAsyncStateStore.d.ts +0 -52
- package/dist/hooks/useAsync/useAsyncStateStore.d.ts.map +0 -1
- package/dist/hooks/useAsync/useAsyncStateStore.mjs +0 -150
- package/dist/hooks/useAsync/useAsyncStateStore.mjs.map +0 -1
- package/dist/hooks/useAsync/useAsyncWrapper.cjs +0 -10
- package/dist/hooks/useAsync/useAsyncWrapper.cjs.map +0 -1
- package/dist/hooks/useAsync/useAsyncWrapper.d.ts +0 -37
- package/dist/hooks/useAsync/useAsyncWrapper.d.ts.map +0 -1
- package/dist/hooks/useAsync/useAsyncWrapper.mjs +0 -10
- package/dist/hooks/useAsync/useAsyncWrapper.mjs.map +0 -1
- package/dist/hooks/useGetAllDictionaries.cjs +0 -35
- package/dist/hooks/useGetAllDictionaries.cjs.map +0 -1
- package/dist/hooks/useGetAllDictionaries.d.ts +0 -11
- package/dist/hooks/useGetAllDictionaries.d.ts.map +0 -1
- package/dist/hooks/useGetAllDictionaries.mjs +0 -35
- package/dist/hooks/useGetAllDictionaries.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/design-system",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-canary.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Intlayer design system, including UI components used in the Intlayer editor, website, and visual editor/CMS.",
|
|
6
6
|
"keywords": [
|
|
@@ -42,6 +42,11 @@
|
|
|
42
42
|
"import": "./dist/hooks/index.mjs",
|
|
43
43
|
"require": "./dist/hooks/index.cjs"
|
|
44
44
|
},
|
|
45
|
+
"./providers": {
|
|
46
|
+
"types": "./dist/providers/index.d.ts",
|
|
47
|
+
"import": "./dist/providers/index.mjs",
|
|
48
|
+
"require": "./dist/providers/index.cjs"
|
|
49
|
+
},
|
|
45
50
|
"./libs": {
|
|
46
51
|
"types": "./dist/libs/index.d.ts",
|
|
47
52
|
"import": "./dist/libs/index.mjs",
|
|
@@ -80,13 +85,13 @@
|
|
|
80
85
|
"tailwind-merge": "^3.3.0",
|
|
81
86
|
"zod": "^3.25.56",
|
|
82
87
|
"zustand": "^4.5.6",
|
|
83
|
-
"@intlayer/
|
|
84
|
-
"@intlayer/
|
|
85
|
-
"@intlayer/
|
|
86
|
-
"
|
|
87
|
-
"intlayer": "
|
|
88
|
-
"react
|
|
89
|
-
"
|
|
88
|
+
"@intlayer/api": "6.0.0-canary.0",
|
|
89
|
+
"@intlayer/config": "6.0.0-canary.0",
|
|
90
|
+
"@intlayer/core": "6.0.0-canary.0",
|
|
91
|
+
"intlayer": "6.0.0-canary.0",
|
|
92
|
+
"@intlayer/dictionaries-entry": "6.0.0-canary.0",
|
|
93
|
+
"@intlayer/editor-react": "6.0.0-canary.0",
|
|
94
|
+
"react-intlayer": "6.0.0-canary.0"
|
|
90
95
|
},
|
|
91
96
|
"devDependencies": {
|
|
92
97
|
"@chromatic-com/storybook": "^3.2.7",
|
|
@@ -101,6 +106,9 @@
|
|
|
101
106
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
102
107
|
"@tailwindcss/cli": "^4.0.14",
|
|
103
108
|
"@tailwindcss/vite": "^4.0.14",
|
|
109
|
+
"@tanstack/query-persist-client-core": "^5.85.5",
|
|
110
|
+
"@tanstack/query-sync-storage-persister": "^5.85.5",
|
|
111
|
+
"@tanstack/react-query": "^5.85.5",
|
|
104
112
|
"@testing-library/jest-dom": "^6.6.3",
|
|
105
113
|
"@testing-library/react": "^16.2.0",
|
|
106
114
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -111,26 +119,28 @@
|
|
|
111
119
|
"@typescript-eslint/parser": "^8.33.1",
|
|
112
120
|
"@vitejs/plugin-react": "^5.0.0",
|
|
113
121
|
"concurrently": "^9.2.0",
|
|
114
|
-
"eslint": "^9.
|
|
122
|
+
"eslint": "^9.34.0",
|
|
115
123
|
"fast-glob": "^3.3.3",
|
|
116
124
|
"lucide-react": "^0.541.0",
|
|
117
|
-
"prettier": "^3.
|
|
125
|
+
"prettier": "^3.6.2",
|
|
118
126
|
"rimraf": "^6.0.1",
|
|
119
127
|
"storybook": "^8.6.14",
|
|
120
128
|
"tailwindcss": "^4.1.8",
|
|
121
129
|
"typescript": "^5.9.2",
|
|
122
130
|
"vite": "^7.1.2",
|
|
123
131
|
"vite-plugin-dts": "^4.5.3",
|
|
124
|
-
"vitest": "^3.2.
|
|
132
|
+
"vitest": "^3.2.4",
|
|
125
133
|
"@utils/eslint-config": "1.0.4",
|
|
126
134
|
"@utils/ts-config": "1.0.4",
|
|
127
|
-
"@utils/ts-config-types": "1.0.4",
|
|
128
135
|
"@utils/tsup-config": "1.0.4",
|
|
129
|
-
"@
|
|
130
|
-
"vite-intlayer": "
|
|
136
|
+
"@utils/ts-config-types": "1.0.4",
|
|
137
|
+
"vite-intlayer": "6.0.0-canary.0"
|
|
131
138
|
},
|
|
132
139
|
"peerDependencies": {
|
|
133
140
|
"@monaco-editor/react": "^4.7.0",
|
|
141
|
+
"@tanstack/query-persist-client-core": "^5.85.5",
|
|
142
|
+
"@tanstack/query-sync-storage-persister": "^5.85.5",
|
|
143
|
+
"@tanstack/react-query": "^5.85.5",
|
|
134
144
|
"clsx": "^2.1.1",
|
|
135
145
|
"framer-motion": "^12.16.0",
|
|
136
146
|
"fuse.js": "^7.1.0",
|
|
@@ -138,13 +148,13 @@
|
|
|
138
148
|
"react-dom": ">=16.0.0",
|
|
139
149
|
"tailwind-merge": "^3.3.0",
|
|
140
150
|
"zustand": "^4.5.6",
|
|
141
|
-
"
|
|
142
|
-
"@intlayer/
|
|
143
|
-
"@intlayer/
|
|
144
|
-
"@intlayer/
|
|
145
|
-
"@intlayer/
|
|
146
|
-
"intlayer": "
|
|
147
|
-
"
|
|
151
|
+
"react-intlayer": "6.0.0-canary.0",
|
|
152
|
+
"@intlayer/config": "6.0.0-canary.0",
|
|
153
|
+
"@intlayer/dictionaries-entry": "6.0.0-canary.0",
|
|
154
|
+
"@intlayer/api": "6.0.0-canary.0",
|
|
155
|
+
"@intlayer/core": "6.0.0-canary.0",
|
|
156
|
+
"@intlayer/editor-react": "6.0.0-canary.0",
|
|
157
|
+
"intlayer": "6.0.0-canary.0"
|
|
148
158
|
},
|
|
149
159
|
"scripts": {
|
|
150
160
|
"build": "pnpm clean & pnpm build:ci",
|
|
@@ -1,542 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const editorReact = require("@intlayer/editor-react");
|
|
5
|
-
require("../components/Toaster/Toast.cjs");
|
|
6
|
-
const components_Toaster_useToast = require("../components/Toaster/useToast.cjs");
|
|
7
|
-
require("react/jsx-runtime");
|
|
8
|
-
const hooks_useAsync_useAsync = require("./useAsync/useAsync.cjs");
|
|
9
|
-
const hooks_useAuth_useAuth = require("./useAuth/useAuth.cjs");
|
|
10
|
-
require("@intlayer/api");
|
|
11
|
-
require("@intlayer/config/built");
|
|
12
|
-
require("../better-auth.CMQ3rA-I-C2nBKRMa.cjs");
|
|
13
|
-
require("./useAsync/useAsyncStateStore.cjs");
|
|
14
|
-
const hooks_useIntlayerAPI = require("./useIntlayerAPI.cjs");
|
|
15
|
-
var define_process_env_default = {};
|
|
16
|
-
const formatErrorCode = (errorCode) => errorCode.split("_").join(" ");
|
|
17
|
-
const useErrorHandling = (options) => {
|
|
18
|
-
const { toast } = components_Toaster_useToast.useToast();
|
|
19
|
-
return {
|
|
20
|
-
...options,
|
|
21
|
-
onError: (errorMessage) => {
|
|
22
|
-
let error;
|
|
23
|
-
try {
|
|
24
|
-
if (typeof errorMessage === "undefined") return;
|
|
25
|
-
error = JSON.parse(errorMessage);
|
|
26
|
-
} catch (e) {
|
|
27
|
-
error = errorMessage;
|
|
28
|
-
}
|
|
29
|
-
[error].flatMap((error2) => error2).forEach(
|
|
30
|
-
(error2) => toast({
|
|
31
|
-
title: formatErrorCode(
|
|
32
|
-
(define_process_env_default.NODE_ENV === "production" ? error2.title : error2.code) ?? "Error"
|
|
33
|
-
),
|
|
34
|
-
description: error2.message ?? errorMessage ?? "An error occurred",
|
|
35
|
-
variant: "error"
|
|
36
|
-
})
|
|
37
|
-
);
|
|
38
|
-
options.onError?.(errorMessage);
|
|
39
|
-
},
|
|
40
|
-
onSuccess: (data) => {
|
|
41
|
-
if (data?.error) {
|
|
42
|
-
toast({
|
|
43
|
-
title: formatErrorCode(
|
|
44
|
-
data.error.title ?? data.error.code ?? "Error"
|
|
45
|
-
),
|
|
46
|
-
description: data.error.message ?? data.error.code ?? "An error occurred",
|
|
47
|
-
variant: "error"
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
if (data?.message)
|
|
51
|
-
toast({
|
|
52
|
-
title: data.message,
|
|
53
|
-
description: data.description,
|
|
54
|
-
variant: "success"
|
|
55
|
-
});
|
|
56
|
-
options.onSuccess?.(data);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
const useAuthEnable = (options, { requireUser, requireProject, requireOrganization } = {}) => {
|
|
61
|
-
const configuration = editorReact.useConfiguration();
|
|
62
|
-
const { oAuth2AccessToken, session } = hooks_useAuth_useAuth.useAuth({
|
|
63
|
-
intlayerConfiguration: configuration
|
|
64
|
-
});
|
|
65
|
-
const isEnabledOption = options?.enable ?? true;
|
|
66
|
-
const user = session ? session.user : oAuth2AccessToken?.user;
|
|
67
|
-
const organization = session ? session.organization : oAuth2AccessToken?.organization;
|
|
68
|
-
const project = session ? session.project : oAuth2AccessToken?.project;
|
|
69
|
-
const isUserEnabled = requireUser ? Boolean(user) : true;
|
|
70
|
-
const isProjectEnabled = requireProject ? Boolean(project) : true;
|
|
71
|
-
const isOrganizationEnabled = requireOrganization ? Boolean(organization) : true;
|
|
72
|
-
const isEnabled = isEnabledOption && isUserEnabled && isProjectEnabled && isOrganizationEnabled;
|
|
73
|
-
return {
|
|
74
|
-
...options,
|
|
75
|
-
enable: isEnabled
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
const useAppAsync = (key, asyncFunction, options, authOptions) => {
|
|
79
|
-
const optionsWithAuth = useAuthEnable(options ?? {}, authOptions);
|
|
80
|
-
const optionsWithErrorHandling = useErrorHandling(optionsWithAuth);
|
|
81
|
-
return hooks_useAsync_useAsync.useAsync(key, asyncFunction, optionsWithErrorHandling);
|
|
82
|
-
};
|
|
83
|
-
const useEditorAsync = (key, asyncFunction, options) => {
|
|
84
|
-
const optionsWithErrorHandling = useErrorHandling(options ?? {});
|
|
85
|
-
return hooks_useAsync_useAsync.useAsync(key, asyncFunction, optionsWithErrorHandling);
|
|
86
|
-
};
|
|
87
|
-
const useLogin = (args) => useAppAsync("login", hooks_useIntlayerAPI.useIntlayerAuth().signInEmail, {
|
|
88
|
-
invalidateQueries: ["getSession"],
|
|
89
|
-
...args
|
|
90
|
-
});
|
|
91
|
-
const useGetVerifyEmailStatus = (args) => useAppAsync(
|
|
92
|
-
"getVerifyEmailStatus",
|
|
93
|
-
hooks_useIntlayerAPI.useIntlayerAuth().verifyEmailSession,
|
|
94
|
-
args
|
|
95
|
-
);
|
|
96
|
-
const useRegister = (args) => useAppAsync("register", hooks_useIntlayerAPI.useIntlayerAuth().signUpEmail, {
|
|
97
|
-
invalidateQueries: ["getSession"],
|
|
98
|
-
...args
|
|
99
|
-
});
|
|
100
|
-
const useLogout = (args) => useAppAsync("logout", hooks_useIntlayerAPI.useIntlayerAuth().signOut, {
|
|
101
|
-
...args
|
|
102
|
-
});
|
|
103
|
-
const useChangePassword = (args) => useAppAsync("changePassword", hooks_useIntlayerAPI.useIntlayerAuth().changePasswordSession, args);
|
|
104
|
-
const useAskResetPassword = (args) => useAppAsync(
|
|
105
|
-
"askResetPassword",
|
|
106
|
-
hooks_useIntlayerAPI.useIntlayerAuth().requestPasswordResetSession,
|
|
107
|
-
args
|
|
108
|
-
);
|
|
109
|
-
const useResetPassword = (args) => useAppAsync("resetPassword", hooks_useIntlayerAPI.useIntlayerAuth().resetPassword, args);
|
|
110
|
-
const useVerifyEmail = (args) => useAppAsync("verifyEmail", hooks_useIntlayerAPI.useIntlayerAuth().verifyEmailSession, args);
|
|
111
|
-
const useGetUserByAccount = (args) => useAppAsync("getUserByAccount", hooks_useIntlayerAPI.useIntlayerAuth().accountInfo, args);
|
|
112
|
-
const useGetUsers = (args) => useAppAsync(
|
|
113
|
-
"getUsers",
|
|
114
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().user.getUsers,
|
|
115
|
-
{
|
|
116
|
-
cache: true,
|
|
117
|
-
store: true,
|
|
118
|
-
retryLimit: 3,
|
|
119
|
-
autoFetch: true,
|
|
120
|
-
revalidateTime: 5 * 60 * 1e3,
|
|
121
|
-
// 5 minutes
|
|
122
|
-
...args
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
requireUser: true
|
|
126
|
-
}
|
|
127
|
-
);
|
|
128
|
-
const useCreateUser = (args) => useAppAsync("createUser", hooks_useIntlayerAPI.useIntlayerAuth().updateUser, {
|
|
129
|
-
invalidateQueries: ["getUsers"],
|
|
130
|
-
...args
|
|
131
|
-
});
|
|
132
|
-
const useUpdateUser = (args) => useAppAsync("updateUser", hooks_useIntlayerAPI.useIntlayerOAuth().user.updateUser, {
|
|
133
|
-
invalidateQueries: ["getSession"],
|
|
134
|
-
...args
|
|
135
|
-
});
|
|
136
|
-
const useDeleteUser = (args) => useAppAsync("deleteUser", hooks_useIntlayerAPI.useIntlayerOAuth().user.deleteUser, {
|
|
137
|
-
invalidateQueries: ["getUsers"],
|
|
138
|
-
...args
|
|
139
|
-
});
|
|
140
|
-
const useGetOrganizations = (args) => useAppAsync(
|
|
141
|
-
"getOrganizations",
|
|
142
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().organization.getOrganizations,
|
|
143
|
-
{
|
|
144
|
-
cache: true,
|
|
145
|
-
store: true,
|
|
146
|
-
retryLimit: 3,
|
|
147
|
-
autoFetch: true,
|
|
148
|
-
revalidation: true,
|
|
149
|
-
revalidateTime: 5 * 60 * 1e3,
|
|
150
|
-
// 5 minutes
|
|
151
|
-
...args
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
requireUser: true
|
|
155
|
-
}
|
|
156
|
-
);
|
|
157
|
-
const useAddOrganization = (args) => useAppAsync(
|
|
158
|
-
"addOrganization",
|
|
159
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().organization.addOrganization,
|
|
160
|
-
{
|
|
161
|
-
invalidateQueries: ["getOrganizations"],
|
|
162
|
-
...args
|
|
163
|
-
}
|
|
164
|
-
);
|
|
165
|
-
const useUpdateOrganization = (args) => useAppAsync(
|
|
166
|
-
"updateOrganization",
|
|
167
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().organization.updateOrganization,
|
|
168
|
-
{
|
|
169
|
-
invalidateQueries: ["getSession"],
|
|
170
|
-
...args
|
|
171
|
-
}
|
|
172
|
-
);
|
|
173
|
-
const useUpdateOrganizationMembers = (args) => useAppAsync(
|
|
174
|
-
"updateOrganizationMembers",
|
|
175
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().organization.updateOrganizationMembers,
|
|
176
|
-
{
|
|
177
|
-
invalidateQueries: ["getOrganizations", "getSession"],
|
|
178
|
-
...args
|
|
179
|
-
}
|
|
180
|
-
);
|
|
181
|
-
const useAddOrganizationMember = (args) => useAppAsync(
|
|
182
|
-
"addOrganizationMember",
|
|
183
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().organization.addOrganizationMember,
|
|
184
|
-
{
|
|
185
|
-
invalidateQueries: ["getOrganizations", "getSession"],
|
|
186
|
-
...args
|
|
187
|
-
}
|
|
188
|
-
);
|
|
189
|
-
const useDeleteOrganization = (args) => useAppAsync(
|
|
190
|
-
"deleteOrganization",
|
|
191
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().organization.deleteOrganization,
|
|
192
|
-
{
|
|
193
|
-
invalidateQueries: ["getOrganizations", "getSession"],
|
|
194
|
-
...args
|
|
195
|
-
}
|
|
196
|
-
);
|
|
197
|
-
const useSelectOrganization = (args) => useAppAsync(
|
|
198
|
-
"selectOrganization",
|
|
199
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().organization.selectOrganization,
|
|
200
|
-
{
|
|
201
|
-
invalidateQueries: ["getSession"],
|
|
202
|
-
...args
|
|
203
|
-
}
|
|
204
|
-
);
|
|
205
|
-
const useUnselectOrganization = (args) => useAppAsync(
|
|
206
|
-
"unselectOrganization",
|
|
207
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().organization.unselectOrganization,
|
|
208
|
-
{
|
|
209
|
-
invalidateQueries: ["getSession"],
|
|
210
|
-
...args
|
|
211
|
-
}
|
|
212
|
-
);
|
|
213
|
-
const useGetProjects = (args) => useAppAsync(
|
|
214
|
-
"getProjects",
|
|
215
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().project.getProjects,
|
|
216
|
-
{
|
|
217
|
-
cache: true,
|
|
218
|
-
store: true,
|
|
219
|
-
retryLimit: 3,
|
|
220
|
-
autoFetch: true,
|
|
221
|
-
revalidation: true,
|
|
222
|
-
revalidateTime: 5 * 60 * 1e3,
|
|
223
|
-
// 5 minutes
|
|
224
|
-
...args
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
requireUser: true,
|
|
228
|
-
requireOrganization: true
|
|
229
|
-
}
|
|
230
|
-
);
|
|
231
|
-
const useAddProject = (args) => useAppAsync("addProject", hooks_useIntlayerAPI.useIntlayerOAuth().project.addProject, {
|
|
232
|
-
invalidateQueries: ["getProjects"],
|
|
233
|
-
...args
|
|
234
|
-
});
|
|
235
|
-
const useUpdateProject = (args) => useAppAsync("updateProject", hooks_useIntlayerAPI.useIntlayerOAuth().project.updateProject, {
|
|
236
|
-
invalidateQueries: ["getSession"],
|
|
237
|
-
...args
|
|
238
|
-
});
|
|
239
|
-
const useUpdateProjectMembers = (args) => useAppAsync(
|
|
240
|
-
"updateProjectMembers",
|
|
241
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().project.updateProjectMembers,
|
|
242
|
-
{
|
|
243
|
-
invalidateQueries: ["getSession"],
|
|
244
|
-
...args
|
|
245
|
-
}
|
|
246
|
-
);
|
|
247
|
-
const useDeleteProject = (args) => useAppAsync("deleteProject", hooks_useIntlayerAPI.useIntlayerOAuth().project.deleteProject, {
|
|
248
|
-
invalidateQueries: ["getProjects", "getSession"],
|
|
249
|
-
...args
|
|
250
|
-
});
|
|
251
|
-
const useSelectProject = (args) => useAppAsync("selectProject", hooks_useIntlayerAPI.useIntlayerOAuth().project.selectProject, {
|
|
252
|
-
invalidateQueries: ["getSession"],
|
|
253
|
-
...args
|
|
254
|
-
});
|
|
255
|
-
const useUnselectProject = (args) => useAppAsync("unselectProject", hooks_useIntlayerAPI.useIntlayerOAuth().project.unselectProject, {
|
|
256
|
-
invalidateQueries: ["getSession"],
|
|
257
|
-
...args
|
|
258
|
-
});
|
|
259
|
-
const useAddNewAccessKey = (args) => useAppAsync("addNewAccessKey", hooks_useIntlayerAPI.useIntlayerOAuth().project.addNewAccessKey, {
|
|
260
|
-
invalidateQueries: ["getSession"],
|
|
261
|
-
...args
|
|
262
|
-
});
|
|
263
|
-
const useDeleteAccessKey = (args) => useAppAsync("deleteAccessKey", hooks_useIntlayerAPI.useIntlayerOAuth().project.deleteAccessKey, {
|
|
264
|
-
invalidateQueries: ["getSession"],
|
|
265
|
-
...args
|
|
266
|
-
});
|
|
267
|
-
const useRefreshAccessKey = (args) => useAppAsync("refreshAccessKey", hooks_useIntlayerAPI.useIntlayerOAuth().project.refreshAccessKey, {
|
|
268
|
-
invalidateQueries: ["getSession"],
|
|
269
|
-
...args
|
|
270
|
-
});
|
|
271
|
-
const useGetDictionaries = (args) => useAppAsync(
|
|
272
|
-
"getDictionaries",
|
|
273
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().dictionary.getDictionaries,
|
|
274
|
-
{
|
|
275
|
-
cache: true,
|
|
276
|
-
store: true,
|
|
277
|
-
retryLimit: 3,
|
|
278
|
-
autoFetch: true,
|
|
279
|
-
revalidation: true,
|
|
280
|
-
revalidateTime: 5 * 60 * 1e3,
|
|
281
|
-
// 5 minutes
|
|
282
|
-
...args
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
requireUser: true,
|
|
286
|
-
requireOrganization: true,
|
|
287
|
-
requireProject: true
|
|
288
|
-
}
|
|
289
|
-
);
|
|
290
|
-
const useGetDictionariesKeys = (args) => useAppAsync(
|
|
291
|
-
"getDictionariesKeys",
|
|
292
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().dictionary.getDictionariesKeys,
|
|
293
|
-
{
|
|
294
|
-
cache: true,
|
|
295
|
-
store: true,
|
|
296
|
-
retryLimit: 3,
|
|
297
|
-
autoFetch: true,
|
|
298
|
-
revalidation: true,
|
|
299
|
-
revalidateTime: 5 * 60 * 1e3,
|
|
300
|
-
// 5 minutes
|
|
301
|
-
...args
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
requireUser: true,
|
|
305
|
-
requireOrganization: true,
|
|
306
|
-
requireProject: true
|
|
307
|
-
}
|
|
308
|
-
);
|
|
309
|
-
const useGetDictionary = (args) => useAppAsync(
|
|
310
|
-
"getDictionary",
|
|
311
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().dictionary.getDictionary,
|
|
312
|
-
{
|
|
313
|
-
cache: true,
|
|
314
|
-
store: true,
|
|
315
|
-
retryLimit: 3,
|
|
316
|
-
revalidation: true,
|
|
317
|
-
revalidateTime: 5 * 60 * 1e3,
|
|
318
|
-
// 5 minutes
|
|
319
|
-
...args
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
requireUser: true,
|
|
323
|
-
requireOrganization: true,
|
|
324
|
-
requireProject: true
|
|
325
|
-
}
|
|
326
|
-
);
|
|
327
|
-
const useAddDictionary = (args) => useAppAsync("addDictionary", hooks_useIntlayerAPI.useIntlayerOAuth().dictionary.addDictionary, {
|
|
328
|
-
invalidateQueries: ["getDictionaries", "getDictionariesKeys"],
|
|
329
|
-
...args
|
|
330
|
-
});
|
|
331
|
-
const usePushDictionaries = (args) => useAppAsync(
|
|
332
|
-
"pushDictionaries",
|
|
333
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().dictionary.pushDictionaries,
|
|
334
|
-
{
|
|
335
|
-
invalidateQueries: [
|
|
336
|
-
"getDictionaries",
|
|
337
|
-
"getDictionary",
|
|
338
|
-
"getDictionariesKeys"
|
|
339
|
-
],
|
|
340
|
-
...args
|
|
341
|
-
}
|
|
342
|
-
);
|
|
343
|
-
const useUpdateDictionary = (args) => useAppAsync(
|
|
344
|
-
"updateDictionary",
|
|
345
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().dictionary.updateDictionary,
|
|
346
|
-
{
|
|
347
|
-
invalidateQueries: ["getDictionaries", "getDictionary"],
|
|
348
|
-
...args
|
|
349
|
-
}
|
|
350
|
-
);
|
|
351
|
-
const useDeleteDictionary = (args) => useAppAsync(
|
|
352
|
-
"deleteDictionary",
|
|
353
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().dictionary.deleteDictionary,
|
|
354
|
-
{
|
|
355
|
-
invalidateQueries: [
|
|
356
|
-
"getDictionaries",
|
|
357
|
-
"getDictionary",
|
|
358
|
-
"getDictionariesKeys"
|
|
359
|
-
],
|
|
360
|
-
...args
|
|
361
|
-
}
|
|
362
|
-
);
|
|
363
|
-
const useGetTags = (args) => useAppAsync(
|
|
364
|
-
"getTags",
|
|
365
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().tag.getTags,
|
|
366
|
-
{
|
|
367
|
-
cache: true,
|
|
368
|
-
store: true,
|
|
369
|
-
retryLimit: 3,
|
|
370
|
-
autoFetch: true,
|
|
371
|
-
revalidation: true,
|
|
372
|
-
revalidateTime: 5 * 60 * 1e3,
|
|
373
|
-
// 5 minutes
|
|
374
|
-
...args
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
requireUser: true,
|
|
378
|
-
requireOrganization: true
|
|
379
|
-
}
|
|
380
|
-
);
|
|
381
|
-
const useAddTag = (args) => useAppAsync("addTag", hooks_useIntlayerAPI.useIntlayerOAuth().tag.addTag, {
|
|
382
|
-
invalidateQueries: ["getTags"],
|
|
383
|
-
...args
|
|
384
|
-
});
|
|
385
|
-
const useUpdateTag = (args) => useAppAsync("updateTag", hooks_useIntlayerAPI.useIntlayerOAuth().tag.updateTag, {
|
|
386
|
-
invalidateQueries: ["getTags"],
|
|
387
|
-
...args
|
|
388
|
-
});
|
|
389
|
-
const useDeleteTag = (args) => useAppAsync("deleteTag", hooks_useIntlayerAPI.useIntlayerOAuth().tag.deleteTag, {
|
|
390
|
-
invalidateQueries: ["getTags"],
|
|
391
|
-
...args
|
|
392
|
-
});
|
|
393
|
-
const useGetPricing = (args) => useAppAsync("getPricing", hooks_useIntlayerAPI.useIntlayerOAuth().stripe.getPricing, {
|
|
394
|
-
store: true,
|
|
395
|
-
cache: true,
|
|
396
|
-
...args
|
|
397
|
-
});
|
|
398
|
-
const useGetSubscription = (args) => useAppAsync(
|
|
399
|
-
"getSubscription",
|
|
400
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().stripe.getSubscription,
|
|
401
|
-
args,
|
|
402
|
-
{
|
|
403
|
-
requireUser: true,
|
|
404
|
-
requireOrganization: true
|
|
405
|
-
}
|
|
406
|
-
);
|
|
407
|
-
const useCancelSubscription = (args) => useAppAsync(
|
|
408
|
-
"cancelSubscription",
|
|
409
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().stripe.cancelSubscription,
|
|
410
|
-
{ invalidateQueries: ["getSession"], ...args },
|
|
411
|
-
{
|
|
412
|
-
requireUser: true,
|
|
413
|
-
requireOrganization: true
|
|
414
|
-
}
|
|
415
|
-
);
|
|
416
|
-
const useTranslateJSONDeclaration = (args) => useAppAsync("translateJSON", hooks_useIntlayerAPI.useIntlayerOAuth().ai.translateJSON, args, {
|
|
417
|
-
requireUser: true,
|
|
418
|
-
requireOrganization: true,
|
|
419
|
-
requireProject: true
|
|
420
|
-
});
|
|
421
|
-
const useAuditContentDeclaration = (args) => useAppAsync(
|
|
422
|
-
"auditContentDeclaration",
|
|
423
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().ai.auditContentDeclaration,
|
|
424
|
-
args,
|
|
425
|
-
{
|
|
426
|
-
requireUser: true,
|
|
427
|
-
requireOrganization: true,
|
|
428
|
-
requireProject: true
|
|
429
|
-
}
|
|
430
|
-
);
|
|
431
|
-
const useAuditContentDeclarationMetadata = (args) => useAppAsync(
|
|
432
|
-
"auditContentDeclaration",
|
|
433
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().ai.auditContentDeclarationMetadata,
|
|
434
|
-
args,
|
|
435
|
-
{
|
|
436
|
-
requireUser: true,
|
|
437
|
-
requireOrganization: true,
|
|
438
|
-
requireProject: true
|
|
439
|
-
}
|
|
440
|
-
);
|
|
441
|
-
const useAuditContentDeclarationField = (args) => useAppAsync(
|
|
442
|
-
"auditContentDeclarationField",
|
|
443
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().ai.auditContentDeclarationField,
|
|
444
|
-
args,
|
|
445
|
-
{
|
|
446
|
-
requireUser: true,
|
|
447
|
-
requireOrganization: true,
|
|
448
|
-
requireProject: true
|
|
449
|
-
}
|
|
450
|
-
);
|
|
451
|
-
const useAuditTag = (args) => useAppAsync("auditTag", hooks_useIntlayerAPI.useIntlayerOAuth().ai.auditTag, args, {
|
|
452
|
-
requireUser: true,
|
|
453
|
-
requireOrganization: true,
|
|
454
|
-
requireProject: true
|
|
455
|
-
});
|
|
456
|
-
const useAskDocQuestion = (args) => useAppAsync("askDocQuestion", hooks_useIntlayerAPI.useIntlayerOAuth().ai.askDocQuestion, args);
|
|
457
|
-
const useAutocomplete = (args) => useAppAsync("autocomplete", hooks_useIntlayerAPI.useIntlayerOAuth().ai.autocomplete, args);
|
|
458
|
-
const useSearchDoc = (args) => useAppAsync("searchDoc", hooks_useIntlayerAPI.useIntlayerOAuth().search.searchDoc, args);
|
|
459
|
-
const useSubscribeToNewsletter = (args) => useAppAsync(
|
|
460
|
-
"subscribeToNewsletter",
|
|
461
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().newsletter.subscribeToNewsletter,
|
|
462
|
-
args
|
|
463
|
-
);
|
|
464
|
-
const useUnsubscribeFromNewsletter = (args) => useAppAsync(
|
|
465
|
-
"unsubscribeFromNewsletter",
|
|
466
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().newsletter.unsubscribeFromNewsletter,
|
|
467
|
-
args
|
|
468
|
-
);
|
|
469
|
-
const useGetNewsletterStatus = (args) => useAppAsync(
|
|
470
|
-
"getNewsletterStatus",
|
|
471
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().newsletter.getNewsletterStatus,
|
|
472
|
-
args
|
|
473
|
-
);
|
|
474
|
-
const useWriteDictionary = (args) => useEditorAsync(
|
|
475
|
-
"writeDictionary",
|
|
476
|
-
hooks_useIntlayerAPI.useIntlayerOAuth().editor.writeDictionary,
|
|
477
|
-
args
|
|
478
|
-
);
|
|
479
|
-
const useGetEditorDictionaries = (args) => useEditorAsync("getDictionaries", hooks_useIntlayerAPI.useIntlayerOAuth().editor.getDictionaries, {
|
|
480
|
-
store: true,
|
|
481
|
-
cache: true,
|
|
482
|
-
...args
|
|
483
|
-
});
|
|
484
|
-
exports.useAddDictionary = useAddDictionary;
|
|
485
|
-
exports.useAddNewAccessKey = useAddNewAccessKey;
|
|
486
|
-
exports.useAddOrganization = useAddOrganization;
|
|
487
|
-
exports.useAddOrganizationMember = useAddOrganizationMember;
|
|
488
|
-
exports.useAddProject = useAddProject;
|
|
489
|
-
exports.useAddTag = useAddTag;
|
|
490
|
-
exports.useAskDocQuestion = useAskDocQuestion;
|
|
491
|
-
exports.useAskResetPassword = useAskResetPassword;
|
|
492
|
-
exports.useAuditContentDeclaration = useAuditContentDeclaration;
|
|
493
|
-
exports.useAuditContentDeclarationField = useAuditContentDeclarationField;
|
|
494
|
-
exports.useAuditContentDeclarationMetadata = useAuditContentDeclarationMetadata;
|
|
495
|
-
exports.useAuditTag = useAuditTag;
|
|
496
|
-
exports.useAutocomplete = useAutocomplete;
|
|
497
|
-
exports.useCancelSubscription = useCancelSubscription;
|
|
498
|
-
exports.useChangePassword = useChangePassword;
|
|
499
|
-
exports.useCreateUser = useCreateUser;
|
|
500
|
-
exports.useDeleteAccessKey = useDeleteAccessKey;
|
|
501
|
-
exports.useDeleteDictionary = useDeleteDictionary;
|
|
502
|
-
exports.useDeleteOrganization = useDeleteOrganization;
|
|
503
|
-
exports.useDeleteProject = useDeleteProject;
|
|
504
|
-
exports.useDeleteTag = useDeleteTag;
|
|
505
|
-
exports.useDeleteUser = useDeleteUser;
|
|
506
|
-
exports.useGetDictionaries = useGetDictionaries;
|
|
507
|
-
exports.useGetDictionariesKeys = useGetDictionariesKeys;
|
|
508
|
-
exports.useGetDictionary = useGetDictionary;
|
|
509
|
-
exports.useGetEditorDictionaries = useGetEditorDictionaries;
|
|
510
|
-
exports.useGetNewsletterStatus = useGetNewsletterStatus;
|
|
511
|
-
exports.useGetOrganizations = useGetOrganizations;
|
|
512
|
-
exports.useGetPricing = useGetPricing;
|
|
513
|
-
exports.useGetProjects = useGetProjects;
|
|
514
|
-
exports.useGetSubscription = useGetSubscription;
|
|
515
|
-
exports.useGetTags = useGetTags;
|
|
516
|
-
exports.useGetUserByAccount = useGetUserByAccount;
|
|
517
|
-
exports.useGetUsers = useGetUsers;
|
|
518
|
-
exports.useGetVerifyEmailStatus = useGetVerifyEmailStatus;
|
|
519
|
-
exports.useLogin = useLogin;
|
|
520
|
-
exports.useLogout = useLogout;
|
|
521
|
-
exports.usePushDictionaries = usePushDictionaries;
|
|
522
|
-
exports.useRefreshAccessKey = useRefreshAccessKey;
|
|
523
|
-
exports.useRegister = useRegister;
|
|
524
|
-
exports.useResetPassword = useResetPassword;
|
|
525
|
-
exports.useSearchDoc = useSearchDoc;
|
|
526
|
-
exports.useSelectOrganization = useSelectOrganization;
|
|
527
|
-
exports.useSelectProject = useSelectProject;
|
|
528
|
-
exports.useSubscribeToNewsletter = useSubscribeToNewsletter;
|
|
529
|
-
exports.useTranslateJSONDeclaration = useTranslateJSONDeclaration;
|
|
530
|
-
exports.useUnselectOrganization = useUnselectOrganization;
|
|
531
|
-
exports.useUnselectProject = useUnselectProject;
|
|
532
|
-
exports.useUnsubscribeFromNewsletter = useUnsubscribeFromNewsletter;
|
|
533
|
-
exports.useUpdateDictionary = useUpdateDictionary;
|
|
534
|
-
exports.useUpdateOrganization = useUpdateOrganization;
|
|
535
|
-
exports.useUpdateOrganizationMembers = useUpdateOrganizationMembers;
|
|
536
|
-
exports.useUpdateProject = useUpdateProject;
|
|
537
|
-
exports.useUpdateProjectMembers = useUpdateProjectMembers;
|
|
538
|
-
exports.useUpdateTag = useUpdateTag;
|
|
539
|
-
exports.useUpdateUser = useUpdateUser;
|
|
540
|
-
exports.useVerifyEmail = useVerifyEmail;
|
|
541
|
-
exports.useWriteDictionary = useWriteDictionary;
|
|
542
|
-
//# sourceMappingURL=intlayerAPIHooks.cjs.map
|