@intlayer/design-system 5.7.8 → 5.8.1-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 +127 -91
- package/dist/{better-auth.8zoxzg-F-D8e0X4ys.js → better-auth.CMQ3rA-I-7umXOENE.js} +1 -7
- package/dist/better-auth.CMQ3rA-I-7umXOENE.js.map +1 -0
- package/dist/{better-auth.8zoxzg-F-BEBqzpjz.cjs → better-auth.CMQ3rA-I-C2nBKRMa.cjs} +1 -7
- package/dist/better-auth.CMQ3rA-I-C2nBKRMa.cjs.map +1 -0
- package/dist/components/Accordion/Accordion.cjs +2 -2
- package/dist/components/Accordion/Accordion.cjs.map +1 -1
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.mjs +3 -3
- package/dist/components/Accordion/Accordion.mjs.map +1 -1
- package/dist/components/Badge/index.cjs +69 -12
- package/dist/components/Badge/index.cjs.map +1 -1
- package/dist/components/Badge/index.d.ts +18 -2
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.mjs +69 -12
- package/dist/components/Badge/index.mjs.map +1 -1
- package/dist/components/Breadcrumb/index.cjs +4 -5
- package/dist/components/Breadcrumb/index.cjs.map +1 -1
- package/dist/components/Breadcrumb/index.d.ts +2 -1
- package/dist/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/components/Breadcrumb/index.mjs +7 -8
- package/dist/components/Breadcrumb/index.mjs.map +1 -1
- package/dist/components/Button/Button.cjs +95 -40
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.d.ts +42 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.mjs +96 -41
- package/dist/components/Button/Button.mjs.map +1 -1
- package/dist/components/Button/index.cjs +5 -0
- package/dist/components/Button/index.cjs.map +1 -1
- package/dist/components/Button/index.mjs +7 -2
- package/dist/components/Container/index.cjs +67 -0
- package/dist/components/Container/index.cjs.map +1 -1
- package/dist/components/Container/index.d.ts +53 -0
- package/dist/components/Container/index.d.ts.map +1 -1
- package/dist/components/Container/index.mjs +67 -0
- package/dist/components/Container/index.mjs.map +1 -1
- package/dist/components/ContentEditor/ContentEditor.cjs +3 -1
- package/dist/components/ContentEditor/ContentEditor.cjs.map +1 -1
- package/dist/components/ContentEditor/ContentEditor.d.ts.map +1 -1
- package/dist/components/ContentEditor/ContentEditor.mjs +3 -1
- package/dist/components/ContentEditor/ContentEditor.mjs.map +1 -1
- package/dist/components/ContentEditor/ContentEditorInput.cjs +7 -7
- package/dist/components/ContentEditor/ContentEditorInput.cjs.map +1 -1
- package/dist/components/ContentEditor/ContentEditorInput.d.ts +1 -1
- package/dist/components/ContentEditor/ContentEditorInput.d.ts.map +1 -1
- package/dist/components/ContentEditor/ContentEditorInput.mjs +9 -9
- package/dist/components/ContentEditor/ContentEditorInput.mjs.map +1 -1
- package/dist/components/CopyButton/CopyButton.content.cjs.map +1 -0
- package/dist/components/CopyButton/CopyButton.content.d.ts.map +1 -0
- package/dist/components/CopyButton/CopyButton.content.mjs.map +1 -0
- package/dist/components/CopyButton/index.cjs +4 -5
- package/dist/components/CopyButton/index.cjs.map +1 -1
- package/dist/components/CopyButton/index.d.ts.map +1 -1
- package/dist/components/CopyButton/index.mjs +6 -7
- package/dist/components/CopyButton/index.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs +29 -33
- 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 +32 -36
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +4 -6
- 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 +5 -7
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs +2 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs +2 -3
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs +3 -4
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +5 -5
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +6 -6
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +2 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +3 -24
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs +2 -3
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs +2 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs +3 -4
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +6 -10
- 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 +9 -13
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +8 -9
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +10 -11
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs +2 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +1 -2
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +2 -3
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +14 -14
- 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 +16 -16
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +2 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +3 -24
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs +11 -12
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs +13 -14
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs +3 -2
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts +1 -0
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs +2 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs +5 -8
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs +7 -10
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs +1 -1
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs +2 -1
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +1 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs +1 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs +2 -1
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +1 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs +1 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs.map +1 -1
- package/dist/components/DropDown/index.cjs +11 -2
- package/dist/components/DropDown/index.cjs.map +1 -1
- package/dist/components/DropDown/index.d.ts +7 -2
- package/dist/components/DropDown/index.d.ts.map +1 -1
- package/dist/components/DropDown/index.mjs +12 -3
- package/dist/components/DropDown/index.mjs.map +1 -1
- package/dist/components/EditableField/EditableFieldLayout.cjs +9 -9
- package/dist/components/EditableField/EditableFieldLayout.cjs.map +1 -1
- package/dist/components/EditableField/EditableFieldLayout.d.ts +1 -1
- package/dist/components/EditableField/EditableFieldLayout.d.ts.map +1 -1
- package/dist/components/EditableField/EditableFieldLayout.mjs +10 -10
- package/dist/components/EditableField/EditableFieldLayout.mjs.map +1 -1
- package/dist/components/EditableField/EditableFieldTextArea.cjs +1 -1
- package/dist/components/EditableField/EditableFieldTextArea.mjs +1 -1
- package/dist/components/ExpandCollapse/ExpandCollapse.cjs +56 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.cjs.map +1 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.d.ts +9 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.d.ts.map +1 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.mjs +56 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.mjs.map +1 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.cjs +41 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.cjs.map +1 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.d.ts +40 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.d.ts.map +1 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.mjs +42 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.mjs.map +1 -0
- package/dist/components/ExpandCollapse/index.cjs +5 -0
- package/dist/components/ExpandCollapse/index.cjs.map +1 -0
- package/dist/components/ExpandCollapse/index.d.ts +2 -0
- package/dist/components/ExpandCollapse/index.d.ts.map +1 -0
- package/dist/components/ExpandCollapse/index.mjs +5 -0
- package/dist/components/ExpandCollapse/index.mjs.map +1 -0
- package/dist/components/Form/FormBase.cjs +1 -1
- package/dist/components/Form/FormBase.mjs +1 -1
- package/dist/components/Form/elements/FormElementWrapper.cjs +2 -2
- package/dist/components/Form/elements/FormElementWrapper.mjs +2 -2
- package/dist/components/IDE/Code.cjs +12 -1
- package/dist/components/IDE/Code.cjs.map +1 -1
- package/dist/components/IDE/Code.d.ts +1 -0
- package/dist/components/IDE/Code.d.ts.map +1 -1
- package/dist/components/IDE/Code.mjs +12 -1
- package/dist/components/IDE/Code.mjs.map +1 -1
- package/dist/components/IDE/CodeBlockClient.cjs +2 -2
- package/dist/components/IDE/CodeBlockClient.cjs.map +1 -1
- package/dist/components/IDE/CodeBlockClient.mjs +2 -2
- package/dist/components/IDE/CodeBlockClient.mjs.map +1 -1
- package/dist/components/IDE/CodeBlockServer.cjs +2 -2
- package/dist/components/IDE/CodeBlockServer.cjs.map +1 -1
- package/dist/components/IDE/CodeBlockServer.mjs +2 -2
- package/dist/components/IDE/CodeBlockServer.mjs.map +1 -1
- package/dist/components/IDE/CodeContext.cjs +1 -1
- package/dist/components/IDE/CodeContext.mjs +1 -1
- package/dist/components/IDE/CopyCode.cjs +2 -3
- package/dist/components/IDE/CopyCode.cjs.map +1 -1
- package/dist/components/IDE/CopyCode.d.ts.map +1 -1
- package/dist/components/IDE/CopyCode.mjs +4 -5
- package/dist/components/IDE/CopyCode.mjs.map +1 -1
- package/dist/components/Input/Checkbox.cjs +21 -0
- package/dist/components/Input/Checkbox.cjs.map +1 -1
- package/dist/components/Input/Checkbox.d.ts +21 -1
- package/dist/components/Input/Checkbox.d.ts.map +1 -1
- package/dist/components/Input/Checkbox.mjs +21 -0
- package/dist/components/Input/Checkbox.mjs.map +1 -1
- package/dist/components/Input/Input.cjs +12 -0
- package/dist/components/Input/Input.cjs.map +1 -1
- package/dist/components/Input/Input.d.ts +13 -2
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/Input.mjs +12 -0
- package/dist/components/Input/Input.mjs.map +1 -1
- package/dist/components/Input/index.cjs +4 -0
- package/dist/components/Input/index.cjs.map +1 -1
- package/dist/components/Input/index.mjs +6 -2
- package/dist/components/Link/Link.cjs +60 -19
- package/dist/components/Link/Link.cjs.map +1 -1
- package/dist/components/Link/Link.d.ts +27 -2
- package/dist/components/Link/Link.d.ts.map +1 -1
- package/dist/components/Link/Link.mjs +60 -19
- package/dist/components/Link/Link.mjs.map +1 -1
- package/dist/components/Link/index.cjs +3 -0
- package/dist/components/Link/index.cjs.map +1 -1
- package/dist/components/Link/index.mjs +4 -1
- package/dist/components/Loader/index.content.d.ts +2 -24
- package/dist/components/Loader/index.content.d.ts.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +8 -9
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.d.ts.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +11 -12
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs +1 -1
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs +4 -5
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.map +1 -1
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts.map +1 -1
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +6 -7
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs.map +1 -1
- package/dist/components/MarkDownRender/index.cjs +17 -23
- package/dist/components/MarkDownRender/index.cjs.map +1 -1
- package/dist/components/MarkDownRender/index.d.ts.map +1 -1
- package/dist/components/MarkDownRender/index.mjs +18 -24
- package/dist/components/MarkDownRender/index.mjs.map +1 -1
- package/dist/components/Modal/Modal.cjs +14 -5
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.d.ts +10 -4
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.mjs +16 -7
- package/dist/components/Modal/Modal.mjs.map +1 -1
- package/dist/components/Modal/index.cjs +1 -0
- package/dist/components/Modal/index.cjs.map +1 -1
- package/dist/components/Modal/index.mjs +3 -2
- package/dist/components/Navbar/DesktopNavbar.cjs +2 -2
- package/dist/components/Navbar/DesktopNavbar.cjs.map +1 -1
- package/dist/components/Navbar/DesktopNavbar.d.ts.map +1 -1
- package/dist/components/Navbar/DesktopNavbar.mjs +3 -3
- package/dist/components/Navbar/DesktopNavbar.mjs.map +1 -1
- package/dist/components/Navbar/MobileNavbar.cjs +1 -1
- package/dist/components/Navbar/MobileNavbar.mjs +1 -1
- package/dist/components/Navbar/index.cjs +2 -2
- package/dist/components/Navbar/index.cjs.map +1 -1
- package/dist/components/Navbar/index.mjs +2 -2
- package/dist/components/Navbar/index.mjs.map +1 -1
- package/dist/components/Popover/index.cjs +12 -0
- package/dist/components/Popover/index.cjs.map +1 -1
- package/dist/components/Popover/index.d.ts +10 -2
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.mjs +13 -1
- package/dist/components/Popover/index.mjs.map +1 -1
- package/dist/components/RightDrawer/RightDrawer.cjs +5 -5
- package/dist/components/RightDrawer/RightDrawer.cjs.map +1 -1
- package/dist/components/RightDrawer/RightDrawer.mjs +6 -6
- package/dist/components/RightDrawer/RightDrawer.mjs.map +1 -1
- package/dist/components/Select/Multiselect.cjs +1 -1
- package/dist/components/Select/Multiselect.cjs.map +1 -1
- package/dist/components/Select/Multiselect.mjs +2 -2
- package/dist/components/Select/Multiselect.mjs.map +1 -1
- package/dist/components/Select/Select.cjs +12 -1
- package/dist/components/Select/Select.cjs.map +1 -1
- package/dist/components/Select/Select.d.ts +5 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.mjs +12 -1
- package/dist/components/Select/Select.mjs.map +1 -1
- package/dist/components/Select/index.cjs +1 -0
- package/dist/components/Select/index.cjs.map +1 -1
- package/dist/components/Select/index.mjs +2 -1
- package/dist/components/SocialNetworks/index.cjs +1 -1
- package/dist/components/SocialNetworks/index.cjs.map +1 -1
- package/dist/components/SocialNetworks/index.mjs +1 -1
- package/dist/components/SocialNetworks/index.mjs.map +1 -1
- package/dist/components/SwitchSelector/index.cjs +89 -18
- package/dist/components/SwitchSelector/index.cjs.map +1 -1
- package/dist/components/SwitchSelector/index.d.ts +16 -2
- package/dist/components/SwitchSelector/index.d.ts.map +1 -1
- package/dist/components/SwitchSelector/index.mjs +90 -19
- package/dist/components/SwitchSelector/index.mjs.map +1 -1
- package/dist/components/TabSelector/TabSelector.cjs +12 -1
- package/dist/components/TabSelector/TabSelector.cjs.map +1 -1
- package/dist/components/TabSelector/TabSelector.d.ts +12 -1
- package/dist/components/TabSelector/TabSelector.d.ts.map +1 -1
- package/dist/components/TabSelector/TabSelector.mjs +13 -2
- package/dist/components/TabSelector/TabSelector.mjs.map +1 -1
- package/dist/components/TabSelector/index.cjs +1 -0
- package/dist/components/TabSelector/index.cjs.map +1 -1
- package/dist/components/TabSelector/index.d.ts +1 -0
- package/dist/components/TabSelector/index.d.ts.map +1 -1
- package/dist/components/TabSelector/index.mjs +3 -2
- package/dist/components/Table/Table.cjs +58 -0
- package/dist/components/Table/Table.cjs.map +1 -0
- package/dist/components/Table/Table.d.ts +7 -0
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/Table.mjs +58 -0
- package/dist/components/Table/Table.mjs.map +1 -0
- package/dist/components/Table/index.cjs +5 -0
- package/dist/components/Table/index.cjs.map +1 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Table/index.mjs +5 -0
- package/dist/components/Table/index.mjs.map +1 -0
- package/dist/components/Table/table.content.cjs +24 -0
- package/dist/components/Table/table.content.cjs.map +1 -0
- package/dist/components/Table/table.content.d.ts +40 -0
- package/dist/components/Table/table.content.d.ts.map +1 -0
- package/dist/components/Table/table.content.mjs +25 -0
- package/dist/components/Table/table.content.mjs.map +1 -0
- package/dist/components/Tag/index.cjs +131 -22
- package/dist/components/Tag/index.cjs.map +1 -1
- package/dist/components/Tag/index.d.ts +37 -5
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.mjs +132 -23
- package/dist/components/Tag/index.mjs.map +1 -1
- package/dist/components/TextArea/AutocompleteTextArea.cjs +1 -1
- package/dist/components/TextArea/AutocompleteTextArea.mjs +1 -1
- package/dist/components/TextArea/TextArea.cjs.map +1 -1
- package/dist/components/TextArea/TextArea.d.ts +5 -3
- package/dist/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.mjs.map +1 -1
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs +1 -1
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs.map +1 -1
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs +2 -2
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs.map +1 -1
- package/dist/components/index.cjs +36 -0
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.mjs +49 -13
- package/dist/components/index.mjs.map +1 -1
- package/dist/hooks/auth.cjs +2 -2
- package/dist/hooks/auth.cjs.map +1 -1
- package/dist/hooks/auth.mjs +1 -1
- package/dist/hooks/auth.mjs.map +1 -1
- package/dist/hooks/intlayerAPIHooks.cjs +1 -1
- package/dist/hooks/intlayerAPIHooks.d.ts +1 -1
- package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
- package/dist/hooks/intlayerAPIHooks.mjs +1 -1
- package/dist/hooks/useAsync/useAsync.cjs +6 -6
- package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
- package/dist/hooks/useAsync/useAsync.mjs +6 -6
- package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
- package/dist/hooks/useUser/index.cjs +1 -1
- package/dist/hooks/useUser/index.mjs +1 -1
- package/dist/index-BCuMWKyy.js.map +1 -1
- package/dist/index-BYzBot7l.cjs.map +1 -1
- package/dist/{parse-BJVwmz92.cjs → parse-Ltyyb1op.cjs} +9 -11
- package/dist/parse-Ltyyb1op.cjs.map +1 -0
- package/dist/{parse-pnJgclyf.js → parse-Vrm0h1r9.js} +30 -32
- package/dist/parse-Vrm0h1r9.js.map +1 -0
- package/dist/{schemas-BIuxHDyZ.js → schemas-DEXdAbCK.js} +75 -46
- package/dist/schemas-DEXdAbCK.js.map +1 -0
- package/dist/{schemas-Q6C7ZNs3.cjs → schemas-lh5OFOvX.cjs} +75 -46
- package/dist/schemas-lh5OFOvX.cjs.map +1 -0
- package/dist/{zod-K7y5gPX4.cjs → zod-BvUVjPTw.cjs} +11 -11
- package/dist/zod-BvUVjPTw.cjs.map +1 -0
- package/dist/{zod-D4WapgbL.js → zod-CJrbzxwg.js} +11 -11
- package/dist/zod-CJrbzxwg.js.map +1 -0
- package/package.json +42 -35
- package/dist/better-auth.8zoxzg-F-BEBqzpjz.cjs.map +0 -1
- package/dist/better-auth.8zoxzg-F-D8e0X4ys.js.map +0 -1
- package/dist/components/Headers/SectionScroller.cjs +0 -29
- package/dist/components/Headers/SectionScroller.cjs.map +0 -1
- package/dist/components/Headers/SectionScroller.d.ts +0 -2
- package/dist/components/Headers/SectionScroller.d.ts.map +0 -1
- package/dist/components/Headers/SectionScroller.mjs +0 -29
- package/dist/components/Headers/SectionScroller.mjs.map +0 -1
- package/dist/components/IDE/CopyButton.content.cjs.map +0 -1
- package/dist/components/IDE/CopyButton.content.d.ts.map +0 -1
- package/dist/components/IDE/CopyButton.content.mjs.map +0 -1
- package/dist/parse-BJVwmz92.cjs.map +0 -1
- package/dist/parse-pnJgclyf.js.map +0 -1
- package/dist/schemas-BIuxHDyZ.js.map +0 -1
- package/dist/schemas-Q6C7ZNs3.cjs.map +0 -1
- package/dist/zod-D4WapgbL.js.map +0 -1
- package/dist/zod-K7y5gPX4.cjs.map +0 -1
- /package/dist/components/{IDE → CopyButton}/CopyButton.content.cjs +0 -0
- /package/dist/components/{IDE → CopyButton}/CopyButton.content.d.ts +0 -0
- /package/dist/components/{IDE → CopyButton}/CopyButton.content.mjs +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const parse$1 = require("./parse-
|
|
2
|
+
const parse$1 = require("./parse-Ltyyb1op.cjs");
|
|
3
3
|
const cuid = /^[cC][^\s-]{8,}$/;
|
|
4
4
|
const cuid2 = /^[0-9a-z]+$/;
|
|
5
5
|
const ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
@@ -59,11 +59,12 @@ const $ZodCheck = /* @__PURE__ */ parse$1.$constructor("$ZodCheck", (inst, def)
|
|
|
59
59
|
(_a = inst._zod).onattach ?? (_a.onattach = []);
|
|
60
60
|
});
|
|
61
61
|
const $ZodCheckMaxLength = /* @__PURE__ */ parse$1.$constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
62
|
+
var _a;
|
|
62
63
|
$ZodCheck.init(inst, def);
|
|
63
|
-
inst._zod.when = (payload) => {
|
|
64
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
64
65
|
const val = payload.value;
|
|
65
66
|
return !parse$1.nullish(val) && val.length !== void 0;
|
|
66
|
-
};
|
|
67
|
+
});
|
|
67
68
|
inst._zod.onattach.push((inst2) => {
|
|
68
69
|
const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
69
70
|
if (def.maximum < curr)
|
|
@@ -87,11 +88,12 @@ const $ZodCheckMaxLength = /* @__PURE__ */ parse$1.$constructor("$ZodCheckMaxLen
|
|
|
87
88
|
};
|
|
88
89
|
});
|
|
89
90
|
const $ZodCheckMinLength = /* @__PURE__ */ parse$1.$constructor("$ZodCheckMinLength", (inst, def) => {
|
|
91
|
+
var _a;
|
|
90
92
|
$ZodCheck.init(inst, def);
|
|
91
|
-
inst._zod.when = (payload) => {
|
|
93
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
92
94
|
const val = payload.value;
|
|
93
95
|
return !parse$1.nullish(val) && val.length !== void 0;
|
|
94
|
-
};
|
|
96
|
+
});
|
|
95
97
|
inst._zod.onattach.push((inst2) => {
|
|
96
98
|
const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
97
99
|
if (def.minimum > curr)
|
|
@@ -115,11 +117,12 @@ const $ZodCheckMinLength = /* @__PURE__ */ parse$1.$constructor("$ZodCheckMinLen
|
|
|
115
117
|
};
|
|
116
118
|
});
|
|
117
119
|
const $ZodCheckLengthEquals = /* @__PURE__ */ parse$1.$constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
120
|
+
var _a;
|
|
118
121
|
$ZodCheck.init(inst, def);
|
|
119
|
-
inst._zod.when = (payload) => {
|
|
122
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
120
123
|
const val = payload.value;
|
|
121
124
|
return !parse$1.nullish(val) && val.length !== void 0;
|
|
122
|
-
};
|
|
125
|
+
});
|
|
123
126
|
inst._zod.onattach.push((inst2) => {
|
|
124
127
|
const bag = inst2._zod.bag;
|
|
125
128
|
bag.minimum = def.length;
|
|
@@ -136,6 +139,8 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ parse$1.$constructor("$ZodCheckLen
|
|
|
136
139
|
payload.issues.push({
|
|
137
140
|
origin,
|
|
138
141
|
...tooBig ? { code: "too_big", maximum: def.length } : { code: "too_small", minimum: def.length },
|
|
142
|
+
inclusive: true,
|
|
143
|
+
exact: true,
|
|
139
144
|
input: payload.value,
|
|
140
145
|
inst,
|
|
141
146
|
continue: !def.abort
|
|
@@ -143,7 +148,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ parse$1.$constructor("$ZodCheckLen
|
|
|
143
148
|
};
|
|
144
149
|
});
|
|
145
150
|
const $ZodCheckStringFormat = /* @__PURE__ */ parse$1.$constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
146
|
-
var _a;
|
|
151
|
+
var _a, _b;
|
|
147
152
|
$ZodCheck.init(inst, def);
|
|
148
153
|
inst._zod.onattach.push((inst2) => {
|
|
149
154
|
const bag = inst2._zod.bag;
|
|
@@ -153,22 +158,24 @@ const $ZodCheckStringFormat = /* @__PURE__ */ parse$1.$constructor("$ZodCheckStr
|
|
|
153
158
|
bag.patterns.add(def.pattern);
|
|
154
159
|
}
|
|
155
160
|
});
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
161
|
+
if (def.pattern)
|
|
162
|
+
(_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
163
|
+
def.pattern.lastIndex = 0;
|
|
164
|
+
if (def.pattern.test(payload.value))
|
|
165
|
+
return;
|
|
166
|
+
payload.issues.push({
|
|
167
|
+
origin: "string",
|
|
168
|
+
code: "invalid_format",
|
|
169
|
+
format: def.format,
|
|
170
|
+
input: payload.value,
|
|
171
|
+
...def.pattern ? { pattern: def.pattern.toString() } : {},
|
|
172
|
+
inst,
|
|
173
|
+
continue: !def.abort
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
else
|
|
177
|
+
(_b = inst._zod).check ?? (_b.check = () => {
|
|
170
178
|
});
|
|
171
|
-
});
|
|
172
179
|
});
|
|
173
180
|
const $ZodCheckRegex = /* @__PURE__ */ parse$1.$constructor("$ZodCheckRegex", (inst, def) => {
|
|
174
181
|
$ZodCheckStringFormat.init(inst, def);
|
|
@@ -313,7 +320,6 @@ const version = {
|
|
|
313
320
|
const $ZodType = /* @__PURE__ */ parse$1.$constructor("$ZodType", (inst, def) => {
|
|
314
321
|
var _a;
|
|
315
322
|
inst ?? (inst = {});
|
|
316
|
-
parse$1.defineLazy(inst._zod, "id", () => def.type + "_" + parse$1.randomString(10));
|
|
317
323
|
inst._zod.def = def;
|
|
318
324
|
inst._zod.bag = inst._zod.bag || {};
|
|
319
325
|
inst._zod.version = version;
|
|
@@ -336,8 +342,8 @@ const $ZodType = /* @__PURE__ */ parse$1.$constructor("$ZodType", (inst, def) =>
|
|
|
336
342
|
let isAborted = parse$1.aborted(payload);
|
|
337
343
|
let asyncResult;
|
|
338
344
|
for (const ch of checks2) {
|
|
339
|
-
if (ch._zod.when) {
|
|
340
|
-
const shouldRun = ch._zod.when(payload);
|
|
345
|
+
if (ch._zod.def.when) {
|
|
346
|
+
const shouldRun = ch._zod.def.when(payload);
|
|
341
347
|
if (!shouldRun)
|
|
342
348
|
continue;
|
|
343
349
|
} else if (isAborted) {
|
|
@@ -451,7 +457,9 @@ const $ZodURL = /* @__PURE__ */ parse$1.$constructor("$ZodURL", (inst, def) => {
|
|
|
451
457
|
$ZodStringFormat.init(inst, def);
|
|
452
458
|
inst._zod.check = (payload) => {
|
|
453
459
|
try {
|
|
454
|
-
const
|
|
460
|
+
const orig = payload.value;
|
|
461
|
+
const url = new URL(orig);
|
|
462
|
+
const href = url.href;
|
|
455
463
|
if (def.hostname) {
|
|
456
464
|
def.hostname.lastIndex = 0;
|
|
457
465
|
if (!def.hostname.test(url.hostname)) {
|
|
@@ -480,6 +488,11 @@ const $ZodURL = /* @__PURE__ */ parse$1.$constructor("$ZodURL", (inst, def) => {
|
|
|
480
488
|
});
|
|
481
489
|
}
|
|
482
490
|
}
|
|
491
|
+
if (!orig.endsWith("/") && href.endsWith("/")) {
|
|
492
|
+
payload.value = href.slice(0, -1);
|
|
493
|
+
} else {
|
|
494
|
+
payload.value = href;
|
|
495
|
+
}
|
|
483
496
|
return;
|
|
484
497
|
} catch (_) {
|
|
485
498
|
payload.issues.push({
|
|
@@ -523,7 +536,6 @@ const $ZodKSUID = /* @__PURE__ */ parse$1.$constructor("$ZodKSUID", (inst, def)
|
|
|
523
536
|
const $ZodISODateTime = /* @__PURE__ */ parse$1.$constructor("$ZodISODateTime", (inst, def) => {
|
|
524
537
|
def.pattern ?? (def.pattern = datetime$1(def));
|
|
525
538
|
$ZodStringFormat.init(inst, def);
|
|
526
|
-
inst._zod.check;
|
|
527
539
|
});
|
|
528
540
|
const $ZodISODate = /* @__PURE__ */ parse$1.$constructor("$ZodISODate", (inst, def) => {
|
|
529
541
|
def.pattern ?? (def.pattern = date$1);
|
|
@@ -532,7 +544,6 @@ const $ZodISODate = /* @__PURE__ */ parse$1.$constructor("$ZodISODate", (inst, d
|
|
|
532
544
|
const $ZodISOTime = /* @__PURE__ */ parse$1.$constructor("$ZodISOTime", (inst, def) => {
|
|
533
545
|
def.pattern ?? (def.pattern = time$1(def));
|
|
534
546
|
$ZodStringFormat.init(inst, def);
|
|
535
|
-
inst._zod.check;
|
|
536
547
|
});
|
|
537
548
|
const $ZodISODuration = /* @__PURE__ */ parse$1.$constructor("$ZodISODuration", (inst, def) => {
|
|
538
549
|
def.pattern ?? (def.pattern = duration$1);
|
|
@@ -661,6 +672,8 @@ function isValidJWT(token, algorithm = null) {
|
|
|
661
672
|
if (tokensParts.length !== 3)
|
|
662
673
|
return false;
|
|
663
674
|
const [header] = tokensParts;
|
|
675
|
+
if (!header)
|
|
676
|
+
return false;
|
|
664
677
|
const parsedHeader = JSON.parse(atob(header));
|
|
665
678
|
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT")
|
|
666
679
|
return false;
|
|
@@ -799,19 +812,20 @@ const $ZodObject = /* @__PURE__ */ parse$1.$constructor("$ZodObject", (inst, def
|
|
|
799
812
|
});
|
|
800
813
|
const generateFastpass = (shape) => {
|
|
801
814
|
const doc = new Doc(["shape", "payload", "ctx"]);
|
|
802
|
-
const
|
|
815
|
+
const normalized = _normalized.value;
|
|
803
816
|
const parseStr = (key) => {
|
|
804
817
|
const k = parse$1.esc(key);
|
|
805
818
|
return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
806
819
|
};
|
|
807
820
|
doc.write(`const input = payload.value;`);
|
|
808
821
|
const ids = /* @__PURE__ */ Object.create(null);
|
|
809
|
-
|
|
810
|
-
|
|
822
|
+
let counter = 0;
|
|
823
|
+
for (const key of normalized.keys) {
|
|
824
|
+
ids[key] = `key_${counter++}`;
|
|
811
825
|
}
|
|
812
826
|
doc.write(`const newResult = {}`);
|
|
813
|
-
for (const key of keys) {
|
|
814
|
-
if (optionalKeys.has(key)) {
|
|
827
|
+
for (const key of normalized.keys) {
|
|
828
|
+
if (normalized.optionalKeys.has(key)) {
|
|
815
829
|
const id = ids[key];
|
|
816
830
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
817
831
|
const k = parse$1.esc(key);
|
|
@@ -856,7 +870,7 @@ const $ZodObject = /* @__PURE__ */ parse$1.$constructor("$ZodObject", (inst, def
|
|
|
856
870
|
const jit = !parse$1.globalConfig.jitless;
|
|
857
871
|
const allowsEval = parse$1.allowsEval;
|
|
858
872
|
const fastEnabled = jit && allowsEval.value;
|
|
859
|
-
const
|
|
873
|
+
const catchall = def.catchall;
|
|
860
874
|
let value;
|
|
861
875
|
inst._zod.parse = (payload, ctx) => {
|
|
862
876
|
value ?? (value = _normalized.value);
|
|
@@ -944,6 +958,8 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
944
958
|
}
|
|
945
959
|
const $ZodUnion = /* @__PURE__ */ parse$1.$constructor("$ZodUnion", (inst, def) => {
|
|
946
960
|
$ZodType.init(inst, def);
|
|
961
|
+
parse$1.defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
|
|
962
|
+
parse$1.defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
|
|
947
963
|
parse$1.defineLazy(inst._zod, "values", () => {
|
|
948
964
|
if (def.options.every((o) => o._zod.values)) {
|
|
949
965
|
return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
@@ -984,7 +1000,7 @@ const $ZodUnion = /* @__PURE__ */ parse$1.$constructor("$ZodUnion", (inst, def)
|
|
|
984
1000
|
const $ZodIntersection = /* @__PURE__ */ parse$1.$constructor("$ZodIntersection", (inst, def) => {
|
|
985
1001
|
$ZodType.init(inst, def);
|
|
986
1002
|
inst._zod.parse = (payload, ctx) => {
|
|
987
|
-
const
|
|
1003
|
+
const input = payload.value;
|
|
988
1004
|
const left = def.left._zod.run({ value: input, issues: [] }, ctx);
|
|
989
1005
|
const right = def.right._zod.run({ value: input, issues: [] }, ctx);
|
|
990
1006
|
const async = left instanceof Promise || right instanceof Promise;
|
|
@@ -1105,6 +1121,9 @@ const $ZodOptional = /* @__PURE__ */ parse$1.$constructor("$ZodOptional", (inst,
|
|
|
1105
1121
|
return pattern ? new RegExp(`^(${parse$1.cleanRegex(pattern.source)})?$`) : void 0;
|
|
1106
1122
|
});
|
|
1107
1123
|
inst._zod.parse = (payload, ctx) => {
|
|
1124
|
+
if (def.innerType._zod.optin === "optional") {
|
|
1125
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1126
|
+
}
|
|
1108
1127
|
if (payload.value === void 0) {
|
|
1109
1128
|
return payload;
|
|
1110
1129
|
}
|
|
@@ -1188,7 +1207,7 @@ function handleNonOptionalResult(payload, inst) {
|
|
|
1188
1207
|
}
|
|
1189
1208
|
const $ZodCatch = /* @__PURE__ */ parse$1.$constructor("$ZodCatch", (inst, def) => {
|
|
1190
1209
|
$ZodType.init(inst, def);
|
|
1191
|
-
|
|
1210
|
+
inst._zod.optin = "optional";
|
|
1192
1211
|
parse$1.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
1193
1212
|
parse$1.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1194
1213
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -1245,6 +1264,7 @@ function handlePipeResult(left, def, ctx) {
|
|
|
1245
1264
|
const $ZodReadonly = /* @__PURE__ */ parse$1.$constructor("$ZodReadonly", (inst, def) => {
|
|
1246
1265
|
$ZodType.init(inst, def);
|
|
1247
1266
|
parse$1.defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
1267
|
+
parse$1.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1248
1268
|
parse$1.defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
1249
1269
|
parse$1.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
1250
1270
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -1294,7 +1314,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
1294
1314
|
}
|
|
1295
1315
|
class $ZodRegistry {
|
|
1296
1316
|
constructor() {
|
|
1297
|
-
this._map = /* @__PURE__ */ new
|
|
1317
|
+
this._map = /* @__PURE__ */ new Map();
|
|
1298
1318
|
this._idmap = /* @__PURE__ */ new Map();
|
|
1299
1319
|
}
|
|
1300
1320
|
add(schema, ..._meta) {
|
|
@@ -1308,7 +1328,16 @@ class $ZodRegistry {
|
|
|
1308
1328
|
}
|
|
1309
1329
|
return this;
|
|
1310
1330
|
}
|
|
1331
|
+
clear() {
|
|
1332
|
+
this._map = /* @__PURE__ */ new Map();
|
|
1333
|
+
this._idmap = /* @__PURE__ */ new Map();
|
|
1334
|
+
return this;
|
|
1335
|
+
}
|
|
1311
1336
|
remove(schema) {
|
|
1337
|
+
const meta = this._map.get(schema);
|
|
1338
|
+
if (meta && typeof meta === "object" && "id" in meta) {
|
|
1339
|
+
this._idmap.delete(meta.id);
|
|
1340
|
+
}
|
|
1312
1341
|
this._map.delete(schema);
|
|
1313
1342
|
return this;
|
|
1314
1343
|
}
|
|
@@ -1769,10 +1798,10 @@ const ZodType = /* @__PURE__ */ parse$1.$constructor("ZodType", (inst, def) => {
|
|
|
1769
1798
|
};
|
|
1770
1799
|
inst.clone = (def2, params) => parse$1.clone(inst, def2, params);
|
|
1771
1800
|
inst.brand = () => inst;
|
|
1772
|
-
inst.register = (reg, meta) => {
|
|
1801
|
+
inst.register = ((reg, meta) => {
|
|
1773
1802
|
reg.add(inst, meta);
|
|
1774
1803
|
return inst;
|
|
1775
|
-
};
|
|
1804
|
+
});
|
|
1776
1805
|
inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
|
|
1777
1806
|
inst.safeParse = (data, params) => safeParse(inst, data, params);
|
|
1778
1807
|
inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -2217,10 +2246,10 @@ const ZodCustom = /* @__PURE__ */ parse$1.$constructor("ZodCustom", (inst, def)
|
|
|
2217
2246
|
$ZodCustom.init(inst, def);
|
|
2218
2247
|
ZodType.init(inst, def);
|
|
2219
2248
|
});
|
|
2220
|
-
function check(fn
|
|
2249
|
+
function check(fn) {
|
|
2221
2250
|
const ch = new $ZodCheck({
|
|
2222
|
-
check: "custom"
|
|
2223
|
-
...
|
|
2251
|
+
check: "custom"
|
|
2252
|
+
// ...util.normalizeParams(params),
|
|
2224
2253
|
});
|
|
2225
2254
|
ch._zod.check = fn;
|
|
2226
2255
|
return ch;
|
|
@@ -2228,7 +2257,7 @@ function check(fn, params) {
|
|
|
2228
2257
|
function refine(fn, _params = {}) {
|
|
2229
2258
|
return _refine(ZodCustom, fn, _params);
|
|
2230
2259
|
}
|
|
2231
|
-
function superRefine(fn
|
|
2260
|
+
function superRefine(fn) {
|
|
2232
2261
|
const ch = check((payload) => {
|
|
2233
2262
|
payload.addIssue = (issue) => {
|
|
2234
2263
|
if (typeof issue === "string") {
|
|
@@ -2245,10 +2274,10 @@ function superRefine(fn, params) {
|
|
|
2245
2274
|
}
|
|
2246
2275
|
};
|
|
2247
2276
|
return fn(payload.value, payload);
|
|
2248
|
-
}
|
|
2277
|
+
});
|
|
2249
2278
|
return ch;
|
|
2250
2279
|
}
|
|
2251
2280
|
exports.array = array;
|
|
2252
2281
|
exports.object = object;
|
|
2253
2282
|
exports.string = string;
|
|
2254
|
-
//# sourceMappingURL=schemas-
|
|
2283
|
+
//# sourceMappingURL=schemas-lh5OFOvX.cjs.map
|