@fuf-stack/pixels 1.9.0 → 1.10.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/Accordion/Accordion.cjs +63 -0
- package/dist/Accordion/Accordion.cjs.map +1 -0
- package/dist/Accordion/Accordion.d.cts +154 -0
- package/dist/Accordion/Accordion.d.cts.map +1 -0
- package/dist/Accordion/Accordion.d.ts +154 -0
- package/dist/Accordion/Accordion.d.ts.map +1 -0
- package/dist/Accordion/Accordion.js +61 -0
- package/dist/{chunk-NSYHAJM2.cjs.map → Accordion/Accordion.js.map} +1 -1
- package/dist/Accordion/index.cjs +11 -10
- package/dist/Accordion/index.cjs.map +1 -1
- package/dist/Accordion/index.d.cts +2 -11
- package/dist/Accordion/index.d.ts +2 -11
- package/dist/Accordion/index.js +6 -11
- package/dist/Accordion/index.js.map +1 -1
- package/dist/Alert/Alert.cjs +61 -0
- package/dist/Alert/Alert.cjs.map +1 -0
- package/dist/Alert/Alert.d.cts +155 -0
- package/dist/Alert/Alert.d.cts.map +1 -0
- package/dist/Alert/Alert.d.ts +155 -0
- package/dist/Alert/Alert.d.ts.map +1 -0
- package/dist/Alert/Alert.js +59 -0
- package/dist/Alert/Alert.js.map +1 -0
- package/dist/Alert/index.cjs +11 -10
- package/dist/Alert/index.cjs.map +1 -1
- package/dist/Alert/index.d.cts +2 -10
- package/dist/Alert/index.d.ts +2 -10
- package/dist/Alert/index.js +6 -11
- package/dist/Alert/index.js.map +1 -1
- package/dist/Avatar/Avatar.cjs +31 -0
- package/dist/Avatar/Avatar.cjs.map +1 -0
- package/dist/Avatar/Avatar.d.cts +80 -0
- package/dist/Avatar/Avatar.d.cts.map +1 -0
- package/dist/Avatar/Avatar.d.ts +80 -0
- package/dist/Avatar/Avatar.d.ts.map +1 -0
- package/dist/Avatar/Avatar.js +30 -0
- package/dist/Avatar/Avatar.js.map +1 -0
- package/dist/Avatar/index.cjs +10 -8
- package/dist/Avatar/index.cjs.map +1 -1
- package/dist/Avatar/index.d.cts +2 -11
- package/dist/Avatar/index.d.ts +2 -11
- package/dist/Avatar/index.js +6 -9
- package/dist/Avatar/index.js.map +1 -1
- package/dist/AvatarGroup/AvatarGroup.cjs +42 -0
- package/dist/AvatarGroup/AvatarGroup.cjs.map +1 -0
- package/dist/AvatarGroup/AvatarGroup.d.cts +33 -0
- package/dist/AvatarGroup/AvatarGroup.d.cts.map +1 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +33 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts.map +1 -0
- package/dist/AvatarGroup/AvatarGroup.js +41 -0
- package/dist/AvatarGroup/AvatarGroup.js.map +1 -0
- package/dist/AvatarGroup/index.cjs +10 -9
- package/dist/AvatarGroup/index.cjs.map +1 -1
- package/dist/AvatarGroup/index.d.cts +2 -12
- package/dist/AvatarGroup/index.d.ts +2 -12
- package/dist/AvatarGroup/index.js +6 -10
- package/dist/AvatarGroup/index.js.map +1 -1
- package/dist/Badge/Badge.cjs +29 -0
- package/dist/Badge/Badge.cjs.map +1 -0
- package/dist/Badge/Badge.d.cts +72 -0
- package/dist/Badge/Badge.d.cts.map +1 -0
- package/dist/Badge/Badge.d.ts +72 -0
- package/dist/Badge/Badge.d.ts.map +1 -0
- package/dist/Badge/Badge.js +28 -0
- package/dist/Badge/Badge.js.map +1 -0
- package/dist/Badge/index.cjs +10 -8
- package/dist/Badge/index.cjs.map +1 -1
- package/dist/Badge/index.d.cts +2 -11
- package/dist/Badge/index.d.ts +2 -11
- package/dist/Badge/index.js +6 -9
- package/dist/Badge/index.js.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.cjs +58 -0
- package/dist/Breadcrumb/Breadcrumb.cjs.map +1 -0
- package/dist/Breadcrumb/Breadcrumb.d.cts +117 -0
- package/dist/Breadcrumb/Breadcrumb.d.cts.map +1 -0
- package/dist/Breadcrumb/Breadcrumb.d.ts +117 -0
- package/dist/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/Breadcrumb/Breadcrumb.js +56 -0
- package/dist/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/Breadcrumb/index.cjs +11 -10
- package/dist/Breadcrumb/index.cjs.map +1 -1
- package/dist/Breadcrumb/index.d.cts +2 -11
- package/dist/Breadcrumb/index.d.ts +2 -11
- package/dist/Breadcrumb/index.js +6 -11
- package/dist/Breadcrumb/index.js.map +1 -1
- package/dist/Button/Button.cjs +111 -0
- package/dist/Button/Button.cjs.map +1 -0
- package/dist/Button/Button.d.cts +262 -0
- package/dist/Button/Button.d.cts.map +1 -0
- package/dist/Button/Button.d.ts +262 -0
- package/dist/Button/Button.d.ts.map +1 -0
- package/dist/Button/Button.js +109 -0
- package/dist/Button/Button.js.map +1 -0
- package/dist/Button/index.cjs +11 -10
- package/dist/Button/index.cjs.map +1 -1
- package/dist/Button/index.d.cts +2 -10
- package/dist/Button/index.d.ts +2 -10
- package/dist/Button/index.js +6 -11
- package/dist/Button/index.js.map +1 -1
- package/dist/Button/subcomponents/LoadingSpinner.cjs +31 -0
- package/dist/Button/subcomponents/LoadingSpinner.cjs.map +1 -0
- package/dist/Button/subcomponents/LoadingSpinner.js +30 -0
- package/dist/Button/subcomponents/LoadingSpinner.js.map +1 -0
- package/dist/ButtonGroup/ButtonGroup.cjs +10 -0
- package/dist/ButtonGroup/ButtonGroup.cjs.map +1 -0
- package/dist/ButtonGroup/ButtonGroup.d.cts +10 -0
- package/dist/ButtonGroup/ButtonGroup.d.cts.map +1 -0
- package/dist/ButtonGroup/ButtonGroup.d.ts +10 -0
- package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -0
- package/dist/ButtonGroup/ButtonGroup.js +10 -0
- package/dist/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/ButtonGroup/index.cjs +10 -8
- package/dist/ButtonGroup/index.cjs.map +1 -1
- package/dist/ButtonGroup/index.d.cts +2 -7
- package/dist/ButtonGroup/index.d.ts +2 -7
- package/dist/ButtonGroup/index.js +6 -9
- package/dist/ButtonGroup/index.js.map +1 -1
- package/dist/Card/Card.cjs +48 -0
- package/dist/Card/Card.cjs.map +1 -0
- package/dist/Card/Card.d.cts +74 -0
- package/dist/Card/Card.d.cts.map +1 -0
- package/dist/Card/Card.d.ts +74 -0
- package/dist/Card/Card.d.ts.map +1 -0
- package/dist/Card/Card.js +46 -0
- package/dist/Card/Card.js.map +1 -0
- package/dist/Card/index.cjs +11 -10
- package/dist/Card/index.cjs.map +1 -1
- package/dist/Card/index.d.cts +2 -10
- package/dist/Card/index.d.ts +2 -10
- package/dist/Card/index.js +6 -11
- package/dist/Card/index.js.map +1 -1
- package/dist/Drawer/Drawer.cjs +86 -0
- package/dist/Drawer/Drawer.cjs.map +1 -0
- package/dist/Drawer/Drawer.d.cts +134 -0
- package/dist/Drawer/Drawer.d.cts.map +1 -0
- package/dist/Drawer/Drawer.d.ts +134 -0
- package/dist/Drawer/Drawer.d.ts.map +1 -0
- package/dist/Drawer/Drawer.js +80 -0
- package/dist/Drawer/Drawer.js.map +1 -0
- package/dist/Drawer/index.cjs +15 -18
- package/dist/Drawer/index.cjs.map +1 -1
- package/dist/Drawer/index.d.cts +2 -12
- package/dist/Drawer/index.d.ts +2 -12
- package/dist/Drawer/index.js +6 -19
- package/dist/Drawer/index.js.map +1 -1
- package/dist/Json/Json.cjs +87 -0
- package/dist/Json/Json.cjs.map +1 -0
- package/dist/Json/Json.d.cts +32 -0
- package/dist/Json/Json.d.cts.map +1 -0
- package/dist/Json/Json.d.ts +32 -0
- package/dist/Json/Json.d.ts.map +1 -0
- package/dist/Json/Json.js +86 -0
- package/dist/Json/Json.js.map +1 -0
- package/dist/Json/index.cjs +10 -9
- package/dist/Json/index.cjs.map +1 -1
- package/dist/Json/index.d.cts +2 -8
- package/dist/Json/index.d.ts +2 -8
- package/dist/Json/index.js +6 -10
- package/dist/Json/index.js.map +1 -1
- package/dist/Json/jsonParser.cjs +21 -0
- package/dist/Json/jsonParser.cjs.map +1 -0
- package/dist/Json/jsonParser.js +21 -0
- package/dist/Json/jsonParser.js.map +1 -0
- package/dist/Json/subcomponents/CopiedRenderer.cjs +46 -0
- package/dist/Json/subcomponents/CopiedRenderer.cjs.map +1 -0
- package/dist/Json/subcomponents/CopiedRenderer.js +45 -0
- package/dist/Json/subcomponents/CopiedRenderer.js.map +1 -0
- package/dist/Json/subcomponents/ErrorRenderer.cjs +53 -0
- package/dist/Json/subcomponents/ErrorRenderer.cjs.map +1 -0
- package/dist/Json/subcomponents/ErrorRenderer.js +52 -0
- package/dist/Json/subcomponents/ErrorRenderer.js.map +1 -0
- package/dist/Json/subcomponents/NullRenderer.cjs +23 -0
- package/dist/Json/subcomponents/NullRenderer.cjs.map +1 -0
- package/dist/Json/subcomponents/NullRenderer.js +22 -0
- package/dist/Json/subcomponents/NullRenderer.js.map +1 -0
- package/dist/{index.css → Json/theme.css} +5 -7
- package/dist/Label/Label.cjs +84 -0
- package/dist/Label/Label.cjs.map +1 -0
- package/dist/Label/Label.d.cts +225 -0
- package/dist/Label/Label.d.cts.map +1 -0
- package/dist/Label/Label.d.ts +225 -0
- package/dist/Label/Label.d.ts.map +1 -0
- package/dist/Label/Label.js +82 -0
- package/dist/Label/Label.js.map +1 -0
- package/dist/Label/index.cjs +11 -10
- package/dist/Label/index.cjs.map +1 -1
- package/dist/Label/index.d.cts +2 -11
- package/dist/Label/index.d.ts +2 -11
- package/dist/Label/index.js +6 -11
- package/dist/Label/index.js.map +1 -1
- package/dist/Menu/Menu.cjs +87 -0
- package/dist/Menu/Menu.cjs.map +1 -0
- package/dist/Menu/Menu.d.cts +110 -0
- package/dist/Menu/Menu.d.cts.map +1 -0
- package/dist/Menu/Menu.d.ts +110 -0
- package/dist/Menu/Menu.d.ts.map +1 -0
- package/dist/Menu/Menu.js +86 -0
- package/dist/Menu/Menu.js.map +1 -0
- package/dist/Menu/VerticalDotsIcon.cjs +23 -0
- package/dist/Menu/VerticalDotsIcon.cjs.map +1 -0
- package/dist/Menu/VerticalDotsIcon.js +22 -0
- package/dist/Menu/VerticalDotsIcon.js.map +1 -0
- package/dist/Menu/index.cjs +10 -8
- package/dist/Menu/index.cjs.map +1 -1
- package/dist/Menu/index.d.cts +2 -13
- package/dist/Menu/index.d.ts +2 -13
- package/dist/Menu/index.js +6 -9
- package/dist/Menu/index.js.map +1 -1
- package/dist/Modal/Modal.cjs +57 -0
- package/dist/Modal/Modal.cjs.map +1 -0
- package/dist/Modal/Modal.d.cts +126 -0
- package/dist/Modal/Modal.d.cts.map +1 -0
- package/dist/Modal/Modal.d.ts +126 -0
- package/dist/Modal/Modal.d.ts.map +1 -0
- package/dist/Modal/Modal.js +55 -0
- package/dist/Modal/Modal.js.map +1 -0
- package/dist/Modal/index.cjs +11 -10
- package/dist/Modal/index.cjs.map +1 -1
- package/dist/Modal/index.d.cts +2 -11
- package/dist/Modal/index.d.ts +2 -11
- package/dist/Modal/index.js +6 -11
- package/dist/Modal/index.js.map +1 -1
- package/dist/Popover/Popover.cjs +72 -0
- package/dist/Popover/Popover.cjs.map +1 -0
- package/dist/Popover/Popover.d.cts +124 -0
- package/dist/Popover/Popover.d.cts.map +1 -0
- package/dist/Popover/Popover.d.ts +124 -0
- package/dist/Popover/Popover.d.ts.map +1 -0
- package/dist/Popover/Popover.js +71 -0
- package/dist/Popover/Popover.js.map +1 -0
- package/dist/Popover/index.cjs +10 -9
- package/dist/Popover/index.cjs.map +1 -1
- package/dist/Popover/index.d.cts +2 -13
- package/dist/Popover/index.d.ts +2 -13
- package/dist/Popover/index.js +6 -10
- package/dist/Popover/index.js.map +1 -1
- package/dist/Progress/Progress.cjs +57 -0
- package/dist/Progress/Progress.cjs.map +1 -0
- package/dist/Progress/Progress.d.cts +146 -0
- package/dist/Progress/Progress.d.cts.map +1 -0
- package/dist/Progress/Progress.d.ts +146 -0
- package/dist/Progress/Progress.d.ts.map +1 -0
- package/dist/Progress/Progress.js +55 -0
- package/dist/Progress/Progress.js.map +1 -0
- package/dist/Progress/index.cjs +11 -11
- package/dist/Progress/index.cjs.map +1 -1
- package/dist/Progress/index.d.cts +2 -10
- package/dist/Progress/index.d.ts +2 -10
- package/dist/Progress/index.js +6 -12
- package/dist/Progress/index.js.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.cjs +102 -0
- package/dist/ProgressCircular/ProgressCircular.cjs.map +1 -0
- package/dist/ProgressCircular/ProgressCircular.d.cts +239 -0
- package/dist/ProgressCircular/ProgressCircular.d.cts.map +1 -0
- package/dist/ProgressCircular/ProgressCircular.d.ts +239 -0
- package/dist/ProgressCircular/ProgressCircular.d.ts.map +1 -0
- package/dist/ProgressCircular/ProgressCircular.js +100 -0
- package/dist/ProgressCircular/ProgressCircular.js.map +1 -0
- package/dist/ProgressCircular/index.cjs +11 -11
- package/dist/ProgressCircular/index.cjs.map +1 -1
- package/dist/ProgressCircular/index.d.cts +2 -10
- package/dist/ProgressCircular/index.d.ts +2 -10
- package/dist/ProgressCircular/index.js +6 -12
- package/dist/ProgressCircular/index.js.map +1 -1
- package/dist/ScrollShadow/ScrollShadow.cjs +22 -0
- package/dist/ScrollShadow/ScrollShadow.cjs.map +1 -0
- package/dist/ScrollShadow/ScrollShadow.d.cts +31 -0
- package/dist/ScrollShadow/ScrollShadow.d.cts.map +1 -0
- package/dist/ScrollShadow/ScrollShadow.d.ts +31 -0
- package/dist/ScrollShadow/ScrollShadow.d.ts.map +1 -0
- package/dist/ScrollShadow/ScrollShadow.js +21 -0
- package/dist/ScrollShadow/ScrollShadow.js.map +1 -0
- package/dist/ScrollShadow/index.cjs +10 -10
- package/dist/ScrollShadow/index.cjs.map +1 -1
- package/dist/ScrollShadow/index.d.cts +2 -23
- package/dist/ScrollShadow/index.d.ts +2 -23
- package/dist/ScrollShadow/index.js +5 -10
- package/dist/ScrollShadow/index.js.map +1 -1
- package/dist/SearchInput/SearchInput.cjs +53 -0
- package/dist/SearchInput/SearchInput.cjs.map +1 -0
- package/dist/SearchInput/SearchInput.d.cts +86 -0
- package/dist/SearchInput/SearchInput.d.cts.map +1 -0
- package/dist/SearchInput/SearchInput.d.ts +86 -0
- package/dist/SearchInput/SearchInput.d.ts.map +1 -0
- package/dist/SearchInput/SearchInput.js +52 -0
- package/dist/SearchInput/SearchInput.js.map +1 -0
- package/dist/SearchInput/index.cjs +9 -70
- package/dist/SearchInput/index.cjs.map +1 -1
- package/dist/SearchInput/index.d.cts +2 -89
- package/dist/SearchInput/index.d.ts +2 -89
- package/dist/SearchInput/index.js +4 -70
- package/dist/SearchInput/index.js.map +1 -1
- package/dist/Table/Table.cjs +75 -0
- package/dist/{chunk-YUR6N2RB.cjs.map → Table/Table.cjs.map} +1 -1
- package/dist/Table/Table.d.cts +178 -0
- package/dist/Table/Table.d.cts.map +1 -0
- package/dist/Table/Table.d.ts +178 -0
- package/dist/Table/Table.d.ts.map +1 -0
- package/dist/Table/Table.js +73 -0
- package/dist/Table/Table.js.map +1 -0
- package/dist/Table/index.cjs +11 -10
- package/dist/Table/index.cjs.map +1 -1
- package/dist/Table/index.d.cts +2 -10
- package/dist/Table/index.d.ts +2 -10
- package/dist/Table/index.js +6 -11
- package/dist/Table/index.js.map +1 -1
- package/dist/Tabs/Tabs.cjs +49 -0
- package/dist/Tabs/Tabs.cjs.map +1 -0
- package/dist/Tabs/Tabs.d.cts +138 -0
- package/dist/Tabs/Tabs.d.cts.map +1 -0
- package/dist/Tabs/Tabs.d.ts +138 -0
- package/dist/Tabs/Tabs.d.ts.map +1 -0
- package/dist/Tabs/Tabs.js +47 -0
- package/dist/Tabs/Tabs.js.map +1 -0
- package/dist/Tabs/index.cjs +11 -10
- package/dist/Tabs/index.cjs.map +1 -1
- package/dist/Tabs/index.d.cts +2 -11
- package/dist/Tabs/index.d.ts +2 -11
- package/dist/Tabs/index.js +6 -11
- package/dist/Tabs/index.js.map +1 -1
- package/dist/Toast/Toast.cjs +90 -0
- package/dist/Toast/Toast.cjs.map +1 -0
- package/dist/Toast/Toast.d.cts +76 -0
- package/dist/Toast/Toast.d.cts.map +1 -0
- package/dist/Toast/Toast.d.ts +76 -0
- package/dist/Toast/Toast.d.ts.map +1 -0
- package/dist/Toast/Toast.js +89 -0
- package/dist/Toast/Toast.js.map +1 -0
- package/dist/Toast/Toaster.cjs +11 -0
- package/dist/Toast/Toaster.cjs.map +1 -0
- package/dist/Toast/Toaster.d.cts +9 -0
- package/dist/Toast/Toaster.d.cts.map +1 -0
- package/dist/Toast/Toaster.d.ts +9 -0
- package/dist/Toast/Toaster.d.ts.map +1 -0
- package/dist/Toast/Toaster.js +10 -0
- package/dist/Toast/Toaster.js.map +1 -0
- package/dist/Toast/index.cjs +12 -11
- package/dist/Toast/index.cjs.map +1 -1
- package/dist/Toast/index.d.cts +3 -12
- package/dist/Toast/index.d.ts +3 -12
- package/dist/Toast/index.js +7 -12
- package/dist/Toast/index.js.map +1 -1
- package/dist/Tooltip/Tooltip.cjs +105 -0
- package/dist/Tooltip/Tooltip.cjs.map +1 -0
- package/dist/Tooltip/Tooltip.d.cts +208 -0
- package/dist/Tooltip/Tooltip.d.cts.map +1 -0
- package/dist/Tooltip/Tooltip.d.ts +208 -0
- package/dist/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/Tooltip/Tooltip.js +104 -0
- package/dist/Tooltip/Tooltip.js.map +1 -0
- package/dist/Tooltip/index.cjs +10 -9
- package/dist/Tooltip/index.cjs.map +1 -1
- package/dist/Tooltip/index.d.cts +2 -11
- package/dist/Tooltip/index.d.ts +2 -11
- package/dist/Tooltip/index.js +6 -10
- package/dist/Tooltip/index.js.map +1 -1
- package/dist/_virtual/_rolldown/runtime.cjs +25 -0
- package/dist/_virtual/_rolldown/runtime.js +24 -0
- package/dist/hooks/useDebounce/index.cjs +3 -8
- package/dist/hooks/useDebounce/index.d.cts +2 -9
- package/dist/hooks/useDebounce/index.d.ts +2 -9
- package/dist/hooks/useDebounce/index.js +2 -8
- package/dist/hooks/useDebounce/useDebounce.cjs +37 -0
- package/dist/hooks/useDebounce/useDebounce.cjs.map +1 -0
- package/dist/hooks/useDebounce/useDebounce.d.cts +11 -0
- package/dist/hooks/useDebounce/useDebounce.d.cts.map +1 -0
- package/dist/hooks/useDebounce/useDebounce.d.ts +11 -0
- package/dist/hooks/useDebounce/useDebounce.d.ts.map +1 -0
- package/dist/hooks/useDebounce/useDebounce.js +36 -0
- package/dist/hooks/useDebounce/useDebounce.js.map +1 -0
- package/dist/hooks/useIsInitialRenderCycle/index.cjs +3 -8
- package/dist/hooks/useIsInitialRenderCycle/index.d.cts +2 -8
- package/dist/hooks/useIsInitialRenderCycle/index.d.ts +2 -8
- package/dist/hooks/useIsInitialRenderCycle/index.js +2 -8
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.cjs +19 -0
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.cjs.map +1 -0
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.cts +10 -0
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.cts.map +1 -0
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.ts +10 -0
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.ts.map +1 -0
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.js +18 -0
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.js.map +1 -0
- package/dist/hooks/useLocalStorage/index.cjs +3 -8
- package/dist/hooks/useLocalStorage/index.d.cts +2 -5
- package/dist/hooks/useLocalStorage/index.d.ts +2 -5
- package/dist/hooks/useLocalStorage/index.js +2 -8
- package/dist/hooks/useLocalStorage/useLocalStorage.cjs +54 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.cjs.map +1 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.d.cts +7 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.d.cts.map +1 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.d.ts +7 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.d.ts.map +1 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.js +53 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.js.map +1 -0
- package/dist/index.cjs +72 -137
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -41
- package/dist/index.d.ts +27 -41
- package/dist/index.js +31 -138
- package/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/extends.cjs +22 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/extends.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/extends.js +19 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/extends.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.cjs +16 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.cjs +22 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +19 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/Container.cjs +68 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/Container.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/Container.js +67 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/Container.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.cjs +29 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.js +28 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/Copied.cjs +82 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/Copied.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/Copied.js +82 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/Copied.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/KeyValues.cjs +150 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/KeyValues.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/KeyValues.js +149 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/KeyValues.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/NestedClose.cjs +46 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/NestedClose.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/NestedClose.js +46 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/NestedClose.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/NestedOpen.cjs +107 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/NestedOpen.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/NestedOpen.js +107 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/NestedOpen.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/Value.cjs +31 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/Value.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/Value.js +31 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/Value.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.cjs +12 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.js +11 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/index.cjs +131 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/index.js +131 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/Copied.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/Copied.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/Copied.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/Copied.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/CountInfo.cjs +41 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/CountInfo.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/CountInfo.js +40 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/CountInfo.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/CountInfoExtra.cjs +37 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/CountInfoExtra.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/CountInfoExtra.js +36 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/CountInfoExtra.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/Ellipsis.cjs +35 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/Ellipsis.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/Ellipsis.js +34 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/Ellipsis.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/KeyName.cjs +38 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/KeyName.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/KeyName.js +37 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/KeyName.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/Row.cjs +46 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/Row.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/Row.js +45 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/section/Row.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Expands.cjs +38 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Expands.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Expands.js +35 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Expands.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Section.cjs +82 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Section.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Section.js +78 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Section.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/ShowTools.cjs +38 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/ShowTools.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/ShowTools.js +35 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/ShowTools.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Symbols.cjs +95 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Symbols.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Symbols.js +92 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Symbols.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Types.cjs +136 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Types.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Types.js +133 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store/Types.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store.cjs +72 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store.js +67 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/store.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/Arrow.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/Arrow.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/Arrow.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/Arrow.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BraceLeft.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BraceLeft.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BraceLeft.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BraceLeft.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BraceRight.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BraceRight.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BraceRight.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BraceRight.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BracketsLeft.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BracketsLeft.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BracketsLeft.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BracketsLeft.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BracketsRight.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BracketsRight.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BracketsRight.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/BracketsRight.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/Colon.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/Colon.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/Colon.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/Colon.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/Quote.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/Quote.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/Quote.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/Quote.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/ValueQuote.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/ValueQuote.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/ValueQuote.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/ValueQuote.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/index.cjs +144 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/index.js +139 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/symbol/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Bigint.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Bigint.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Bigint.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Bigint.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Date.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Date.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Date.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Date.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/False.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/False.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/False.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/False.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Float.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Float.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Float.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Float.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Int.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Int.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Int.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Int.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Map.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Map.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Map.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Map.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Nan.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Nan.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Nan.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Nan.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Null.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Null.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Null.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Null.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Set.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Set.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Set.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Set.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/String.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/String.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/String.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/String.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/True.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/True.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/True.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/True.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Undefined.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Undefined.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Undefined.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Undefined.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Url.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Url.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Url.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/Url.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/index.cjs +402 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/index.js +389 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/types/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useHighlight.cjs +39 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useHighlight.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useHighlight.js +38 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useHighlight.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useRender.cjs +41 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useRender.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useRender.js +39 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useRender.js.map +1 -0
- package/dist/utils/createWithSuspense/createWithSuspense.cjs +153 -0
- package/dist/utils/createWithSuspense/createWithSuspense.cjs.map +1 -0
- package/dist/utils/createWithSuspense/createWithSuspense.d.cts +73 -0
- package/dist/utils/createWithSuspense/createWithSuspense.d.cts.map +1 -0
- package/dist/utils/createWithSuspense/createWithSuspense.d.ts +73 -0
- package/dist/utils/createWithSuspense/createWithSuspense.d.ts.map +1 -0
- package/dist/utils/createWithSuspense/createWithSuspense.js +151 -0
- package/dist/utils/createWithSuspense/createWithSuspense.js.map +1 -0
- package/dist/utils/createWithSuspense/index.cjs +3 -8
- package/dist/utils/createWithSuspense/index.d.cts +2 -72
- package/dist/utils/createWithSuspense/index.d.ts +2 -72
- package/dist/utils/createWithSuspense/index.js +2 -8
- package/package.json +33 -32
- package/dist/Accordion-BX1Npq3Q.d.cts +0 -140
- package/dist/Accordion-BX1Npq3Q.d.ts +0 -140
- package/dist/Alert-CWjAMyih.d.cts +0 -145
- package/dist/Alert-CWjAMyih.d.ts +0 -145
- package/dist/Avatar-DTg6mH8E.d.cts +0 -73
- package/dist/Avatar-DTg6mH8E.d.ts +0 -73
- package/dist/AvatarGroup-9wz1iZH4.d.ts +0 -23
- package/dist/AvatarGroup-BYAaERBV.d.cts +0 -23
- package/dist/Badge-DkO-EJif.d.cts +0 -63
- package/dist/Badge-DkO-EJif.d.ts +0 -63
- package/dist/Breadcrumb-CW1qsIoL.d.cts +0 -123
- package/dist/Breadcrumb-CW1qsIoL.d.ts +0 -123
- package/dist/Button-nJ22qVMK.d.cts +0 -262
- package/dist/Button-nJ22qVMK.d.ts +0 -262
- package/dist/ButtonGroup-CUxpALRo.d.cts +0 -9
- package/dist/ButtonGroup-CUxpALRo.d.ts +0 -9
- package/dist/Card-2AwIQqnR.d.cts +0 -75
- package/dist/Card-2AwIQqnR.d.ts +0 -75
- package/dist/Drawer-Bd7lsUl9.d.cts +0 -118
- package/dist/Drawer-Bd7lsUl9.d.ts +0 -118
- package/dist/Json/index.css +0 -59
- package/dist/Json/index.css.map +0 -1
- package/dist/Json-Dny90Wml.d.cts +0 -24
- package/dist/Json-Dny90Wml.d.ts +0 -24
- package/dist/Label-B5fd7vp_.d.cts +0 -215
- package/dist/Label-B5fd7vp_.d.ts +0 -215
- package/dist/Menu-C9M_q1Z6.d.cts +0 -101
- package/dist/Menu-C9M_q1Z6.d.ts +0 -101
- package/dist/Modal-BwFQz60I.d.cts +0 -115
- package/dist/Modal-BwFQz60I.d.ts +0 -115
- package/dist/Popover-DKzS6RUP.d.cts +0 -112
- package/dist/Popover-DKzS6RUP.d.ts +0 -112
- package/dist/Progress-Deph-HCf.d.cts +0 -133
- package/dist/Progress-Deph-HCf.d.ts +0 -133
- package/dist/ProgressCircular-CkZsOW4R.d.cts +0 -228
- package/dist/ProgressCircular-CkZsOW4R.d.ts +0 -228
- package/dist/Table-LKaPSY4D.d.cts +0 -161
- package/dist/Table-LKaPSY4D.d.ts +0 -161
- package/dist/Tabs-BM4tl_1j.d.cts +0 -122
- package/dist/Tabs-BM4tl_1j.d.ts +0 -122
- package/dist/Toaster-BtcILj3f.d.ts +0 -79
- package/dist/Toaster-D28PKRWz.d.cts +0 -79
- package/dist/Tooltip-DoIaNgTC.d.cts +0 -195
- package/dist/Tooltip-DoIaNgTC.d.ts +0 -195
- package/dist/chunk-2NMIKTA5.js +0 -184
- package/dist/chunk-2NMIKTA5.js.map +0 -1
- package/dist/chunk-3SXXVV5T.js +0 -124
- package/dist/chunk-3SXXVV5T.js.map +0 -1
- package/dist/chunk-3WD7CGWD.cjs +0 -37
- package/dist/chunk-3WD7CGWD.cjs.map +0 -1
- package/dist/chunk-4AXE6KZW.js +0 -127
- package/dist/chunk-4AXE6KZW.js.map +0 -1
- package/dist/chunk-4SBEERL5.js +0 -145
- package/dist/chunk-4SBEERL5.js.map +0 -1
- package/dist/chunk-4Y4W74D7.js +0 -48
- package/dist/chunk-4Y4W74D7.js.map +0 -1
- package/dist/chunk-5ZT7C5IP.cjs +0 -169
- package/dist/chunk-5ZT7C5IP.cjs.map +0 -1
- package/dist/chunk-6PCFYEJH.cjs +0 -86
- package/dist/chunk-6PCFYEJH.cjs.map +0 -1
- package/dist/chunk-73HT7W6F.js +0 -104
- package/dist/chunk-73HT7W6F.js.map +0 -1
- package/dist/chunk-77J7NZYB.cjs +0 -48
- package/dist/chunk-77J7NZYB.cjs.map +0 -1
- package/dist/chunk-AHEA4IJV.cjs +0 -84
- package/dist/chunk-AHEA4IJV.cjs.map +0 -1
- package/dist/chunk-B2PDISUU.cjs +0 -77
- package/dist/chunk-B2PDISUU.cjs.map +0 -1
- package/dist/chunk-BPBEZCSP.cjs +0 -127
- package/dist/chunk-BPBEZCSP.cjs.map +0 -1
- package/dist/chunk-CUNIBDOS.js +0 -89
- package/dist/chunk-CUNIBDOS.js.map +0 -1
- package/dist/chunk-D6Z3F5C2.js +0 -86
- package/dist/chunk-D6Z3F5C2.js.map +0 -1
- package/dist/chunk-FLDEDIE2.js +0 -37
- package/dist/chunk-FLDEDIE2.js.map +0 -1
- package/dist/chunk-FNQ7VO32.js +0 -13
- package/dist/chunk-FNQ7VO32.js.map +0 -1
- package/dist/chunk-FQJ32476.cjs +0 -145
- package/dist/chunk-FQJ32476.cjs.map +0 -1
- package/dist/chunk-FVQDVD3E.cjs +0 -184
- package/dist/chunk-FVQDVD3E.cjs.map +0 -1
- package/dist/chunk-G3YTOGEG.cjs +0 -80
- package/dist/chunk-G3YTOGEG.cjs.map +0 -1
- package/dist/chunk-GKYJUGD4.js +0 -14
- package/dist/chunk-GKYJUGD4.js.map +0 -1
- package/dist/chunk-HG7AE6Q2.cjs +0 -49
- package/dist/chunk-HG7AE6Q2.cjs.map +0 -1
- package/dist/chunk-HMYQTHGT.js +0 -80
- package/dist/chunk-HMYQTHGT.js.map +0 -1
- package/dist/chunk-HSREBNZV.js +0 -66
- package/dist/chunk-HSREBNZV.js.map +0 -1
- package/dist/chunk-I5QMH3J5.cjs +0 -96
- package/dist/chunk-I5QMH3J5.cjs.map +0 -1
- package/dist/chunk-IBX6A72P.cjs +0 -90
- package/dist/chunk-IBX6A72P.cjs.map +0 -1
- package/dist/chunk-IGRNC5NX.js +0 -98
- package/dist/chunk-IGRNC5NX.js.map +0 -1
- package/dist/chunk-ITHJ52SN.cjs +0 -29
- package/dist/chunk-ITHJ52SN.cjs.map +0 -1
- package/dist/chunk-IXBNFKOS.cjs +0 -62
- package/dist/chunk-IXBNFKOS.cjs.map +0 -1
- package/dist/chunk-K5VPNWIJ.cjs +0 -103
- package/dist/chunk-K5VPNWIJ.cjs.map +0 -1
- package/dist/chunk-KGNCVUGN.js +0 -77
- package/dist/chunk-KGNCVUGN.js.map +0 -1
- package/dist/chunk-M3Y2DZZE.js +0 -62
- package/dist/chunk-M3Y2DZZE.js.map +0 -1
- package/dist/chunk-MF5KUM5I.js +0 -124
- package/dist/chunk-MF5KUM5I.js.map +0 -1
- package/dist/chunk-NSYHAJM2.cjs +0 -104
- package/dist/chunk-NZ5FWOC6.js +0 -2812
- package/dist/chunk-NZ5FWOC6.js.map +0 -1
- package/dist/chunk-OAIRL2FN.js +0 -84
- package/dist/chunk-OAIRL2FN.js.map +0 -1
- package/dist/chunk-OFZQFYUT.js +0 -103
- package/dist/chunk-OFZQFYUT.js.map +0 -1
- package/dist/chunk-OLU26V56.cjs +0 -98
- package/dist/chunk-OLU26V56.cjs.map +0 -1
- package/dist/chunk-ON3PVFZY.cjs +0 -14
- package/dist/chunk-ON3PVFZY.cjs.map +0 -1
- package/dist/chunk-P7QMPWKS.cjs +0 -2812
- package/dist/chunk-P7QMPWKS.cjs.map +0 -1
- package/dist/chunk-RPULU7LC.cjs +0 -89
- package/dist/chunk-RPULU7LC.cjs.map +0 -1
- package/dist/chunk-SDZX5VJZ.js +0 -96
- package/dist/chunk-SDZX5VJZ.js.map +0 -1
- package/dist/chunk-SRDRLHAA.js +0 -169
- package/dist/chunk-SRDRLHAA.js.map +0 -1
- package/dist/chunk-TJTBJ2NT.js +0 -90
- package/dist/chunk-TJTBJ2NT.js.map +0 -1
- package/dist/chunk-U5J6GTQE.js +0 -123
- package/dist/chunk-U5J6GTQE.js.map +0 -1
- package/dist/chunk-UEQG424R.js +0 -49
- package/dist/chunk-UEQG424R.js.map +0 -1
- package/dist/chunk-VD7VRLYO.js +0 -112
- package/dist/chunk-VD7VRLYO.js.map +0 -1
- package/dist/chunk-VHESFBAQ.cjs +0 -66
- package/dist/chunk-VHESFBAQ.cjs.map +0 -1
- package/dist/chunk-WCE3O6UA.cjs +0 -123
- package/dist/chunk-WCE3O6UA.cjs.map +0 -1
- package/dist/chunk-Y3RSI2KV.cjs +0 -13
- package/dist/chunk-Y3RSI2KV.cjs.map +0 -1
- package/dist/chunk-YUR6N2RB.cjs +0 -124
- package/dist/chunk-YWEUUA52.cjs +0 -112
- package/dist/chunk-YWEUUA52.cjs.map +0 -1
- package/dist/chunk-ZIAB3EXU.cjs +0 -124
- package/dist/chunk-ZIAB3EXU.cjs.map +0 -1
- package/dist/chunk-ZLSX6FH3.js +0 -29
- package/dist/chunk-ZLSX6FH3.js.map +0 -1
- package/dist/hooks/useDebounce/index.cjs.map +0 -1
- package/dist/hooks/useDebounce/index.js.map +0 -1
- package/dist/hooks/useIsInitialRenderCycle/index.cjs.map +0 -1
- package/dist/hooks/useIsInitialRenderCycle/index.js.map +0 -1
- package/dist/hooks/useLocalStorage/index.cjs.map +0 -1
- package/dist/hooks/useLocalStorage/index.js.map +0 -1
- package/dist/index.css.map +0 -1
- package/dist/utils/createWithSuspense/index.cjs.map +0 -1
- package/dist/utils/createWithSuspense/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRender.js","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useRender.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport { useEffect } from 'react';\nimport { useSymbolsDispatch } from \"../store/Symbols.js\";\nimport { useTypesDispatch } from \"../store/Types.js\";\nimport { useSectionDispatch } from \"../store/Section.js\";\nexport function useSymbolsRender(currentProps, props, key) {\n var dispatch = useSymbolsDispatch();\n var cls = [currentProps.className, props.className].filter(Boolean).join(' ');\n var reset = _extends({}, currentProps, props, {\n className: cls,\n style: _extends({}, currentProps.style, props.style),\n children: props.children || currentProps.children\n });\n useEffect(() => dispatch({\n [key]: reset\n }), [props]);\n}\nexport function useTypesRender(currentProps, props, key) {\n var dispatch = useTypesDispatch();\n var cls = [currentProps.className, props.className].filter(Boolean).join(' ');\n var reset = _extends({}, currentProps, props, {\n className: cls,\n style: _extends({}, currentProps.style, props.style),\n children: props.children || currentProps.children\n });\n useEffect(() => dispatch({\n [key]: reset\n }), [props]);\n}\nexport function useSectionRender(currentProps, props, key) {\n var dispatch = useSectionDispatch();\n var cls = [currentProps.className, props.className].filter(Boolean).join(' ');\n var reset = _extends({}, currentProps, props, {\n className: cls,\n style: _extends({}, currentProps.style, props.style),\n children: props.children || currentProps.children\n });\n useEffect(() => dispatch({\n [key]: reset\n }), [props]);\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAKA,SAAgB,iBAAiB,cAAc,OAAO,KAAK;CACzD,IAAI,WAAW,mBAAmB;CAElC,IAAI,SAAA,GAAA,eAAA,SAAiB,CAAC,GAAG,cAAc,OAAO;EAC5C,WAFQ,CAAC,aAAa,WAAW,MAAM,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAE1D;EACb,QAAA,GAAA,eAAA,SAAgB,CAAC,GAAG,aAAa,OAAO,MAAM,KAAK;EACnD,UAAU,MAAM,YAAY,aAAa;CAC3C,CAAC;CACD,gBAAgB,SAAS,GACtB,MAAM,MACT,CAAC,GAAG,CAAC,KAAK,CAAC;AACb;AACA,SAAgB,eAAe,cAAc,OAAO,KAAK;CACvD,IAAI,WAAW,iBAAiB;CAEhC,IAAI,SAAA,GAAA,eAAA,SAAiB,CAAC,GAAG,cAAc,OAAO;EAC5C,WAFQ,CAAC,aAAa,WAAW,MAAM,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAE1D;EACb,QAAA,GAAA,eAAA,SAAgB,CAAC,GAAG,aAAa,OAAO,MAAM,KAAK;EACnD,UAAU,MAAM,YAAY,aAAa;CAC3C,CAAC;CACD,gBAAgB,SAAS,GACtB,MAAM,MACT,CAAC,GAAG,CAAC,KAAK,CAAC;AACb;AACA,SAAgB,iBAAiB,cAAc,OAAO,KAAK;CACzD,IAAI,WAAW,mBAAmB;CAElC,IAAI,SAAA,GAAA,eAAA,SAAiB,CAAC,GAAG,cAAc,OAAO;EAC5C,WAFQ,CAAC,aAAa,WAAW,MAAM,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAE1D;EACb,QAAA,GAAA,eAAA,SAAgB,CAAC,GAAG,aAAa,OAAO,MAAM,KAAK;EACnD,UAAU,MAAM,YAAY,aAAa;CAC3C,CAAC;CACD,gBAAgB,SAAS,GACtB,MAAM,MACT,CAAC,GAAG,CAAC,KAAK,CAAC;AACb"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
let react = require("react");
|
|
4
|
+
react = require_runtime.__toESM(react);
|
|
5
|
+
let _fuf_stack_pixel_motion = require("@fuf-stack/pixel-motion");
|
|
6
|
+
//#region src/utils/createWithSuspense/createWithSuspense.tsx
|
|
7
|
+
var ErrorBoundary = class extends react.Component {
|
|
8
|
+
constructor(props) {
|
|
9
|
+
super(props);
|
|
10
|
+
this.state = {
|
|
11
|
+
error: null,
|
|
12
|
+
errorInfo: null
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
static getDerivedStateFromError(error) {
|
|
16
|
+
return { error };
|
|
17
|
+
}
|
|
18
|
+
componentDidCatch(error, errorInfo) {
|
|
19
|
+
const { onError } = this.props;
|
|
20
|
+
this.setState({ errorInfo });
|
|
21
|
+
onError?.(error, errorInfo);
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
const { error, errorInfo } = this.state;
|
|
25
|
+
const { fallback, children, shouldAnimate } = this.props;
|
|
26
|
+
if (error) {
|
|
27
|
+
const errorFallback = fallback(error, errorInfo ?? { componentStack: "" });
|
|
28
|
+
if (!shouldAnimate) return errorFallback;
|
|
29
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_fuf_stack_pixel_motion.motion.div, {
|
|
30
|
+
animate: {
|
|
31
|
+
height: "auto",
|
|
32
|
+
opacity: 1
|
|
33
|
+
},
|
|
34
|
+
initial: {
|
|
35
|
+
height: 0,
|
|
36
|
+
opacity: 0
|
|
37
|
+
},
|
|
38
|
+
style: { overflow: "hidden" },
|
|
39
|
+
transition: {
|
|
40
|
+
height: {
|
|
41
|
+
duration: .2,
|
|
42
|
+
ease: "easeInOut"
|
|
43
|
+
},
|
|
44
|
+
opacity: {
|
|
45
|
+
duration: .2,
|
|
46
|
+
delay: .2
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
children: errorFallback
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
return children;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Factory function to create a project-specific withSuspense HOC with default configuration.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```tsx
|
|
60
|
+
* // In your project setup file
|
|
61
|
+
* export const withSuspense = createWithSuspense({
|
|
62
|
+
* defaultFallback: <YourSpinner />,
|
|
63
|
+
* errorFallback: (error) => <YourErrorComponent error={error} />,
|
|
64
|
+
* onError: (error, errorInfo) => {
|
|
65
|
+
* console.error('Caught error:', error, errorInfo);
|
|
66
|
+
* // Send to error tracking service
|
|
67
|
+
* },
|
|
68
|
+
* });
|
|
69
|
+
*
|
|
70
|
+
* // Then use throughout your project
|
|
71
|
+
* const MyComponent = withSuspense(({ userId }) => {
|
|
72
|
+
* const user = use(fetchUser(userId));
|
|
73
|
+
* return <div>{user.name}</div>;
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
function createWithSuspense(config = {}) {
|
|
78
|
+
const { defaultFallback = null, disableAnimation: defaultDisableAnimation = false, errorFallback: defaultErrorFallback, onError: defaultOnError } = config;
|
|
79
|
+
return function withSuspense(WrappedComponent, options) {
|
|
80
|
+
const fallback = options?.fallback ?? defaultFallback;
|
|
81
|
+
const errorFallback = options?.errorFallback ?? defaultErrorFallback;
|
|
82
|
+
const disableErrorBoundary = options?.disableErrorBoundary ?? false;
|
|
83
|
+
const disableAnimation = options?.disableAnimation ?? defaultDisableAnimation;
|
|
84
|
+
const WithSuspenseComponent = (props) => {
|
|
85
|
+
const prefersReducedMotion = (0, _fuf_stack_pixel_motion.useReducedMotion)();
|
|
86
|
+
const shouldAnimate = !disableAnimation && !prefersReducedMotion;
|
|
87
|
+
const wrapWithMotion = (children) => {
|
|
88
|
+
if (!shouldAnimate) return children;
|
|
89
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_fuf_stack_pixel_motion.motion.div, {
|
|
90
|
+
animate: {
|
|
91
|
+
height: "auto",
|
|
92
|
+
opacity: 1
|
|
93
|
+
},
|
|
94
|
+
exit: {
|
|
95
|
+
height: 0,
|
|
96
|
+
opacity: 0
|
|
97
|
+
},
|
|
98
|
+
initial: {
|
|
99
|
+
height: 0,
|
|
100
|
+
opacity: 0
|
|
101
|
+
},
|
|
102
|
+
style: { overflow: "hidden" },
|
|
103
|
+
transition: {
|
|
104
|
+
height: {
|
|
105
|
+
duration: .2,
|
|
106
|
+
ease: "easeInOut"
|
|
107
|
+
},
|
|
108
|
+
opacity: {
|
|
109
|
+
duration: .2,
|
|
110
|
+
delay: .2
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
children
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
const content = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Suspense, {
|
|
117
|
+
fallback: shouldAnimate ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_fuf_stack_pixel_motion.motion.div, {
|
|
118
|
+
exit: {
|
|
119
|
+
height: 0,
|
|
120
|
+
opacity: 0
|
|
121
|
+
},
|
|
122
|
+
initial: {
|
|
123
|
+
height: "auto",
|
|
124
|
+
opacity: 1
|
|
125
|
+
},
|
|
126
|
+
style: { overflow: "hidden" },
|
|
127
|
+
transition: {
|
|
128
|
+
height: {
|
|
129
|
+
duration: .3,
|
|
130
|
+
ease: "easeInOut"
|
|
131
|
+
},
|
|
132
|
+
opacity: { duration: .2 }
|
|
133
|
+
},
|
|
134
|
+
children: fallback
|
|
135
|
+
}, "fallback") : fallback,
|
|
136
|
+
children: wrapWithMotion(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(WrappedComponent, { ...props }))
|
|
137
|
+
});
|
|
138
|
+
if (!errorFallback || disableErrorBoundary) return content;
|
|
139
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ErrorBoundary, {
|
|
140
|
+
fallback: errorFallback,
|
|
141
|
+
onError: defaultOnError,
|
|
142
|
+
shouldAnimate,
|
|
143
|
+
children: content
|
|
144
|
+
});
|
|
145
|
+
};
|
|
146
|
+
WithSuspenseComponent.displayName = `withSuspense(${WrappedComponent.displayName ?? WrappedComponent.name ?? "Component"})`;
|
|
147
|
+
return WithSuspenseComponent;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
151
|
+
exports.createWithSuspense = createWithSuspense;
|
|
152
|
+
|
|
153
|
+
//# sourceMappingURL=createWithSuspense.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createWithSuspense.cjs","names":["Component","motion","Suspense"],"sources":["../../../src/utils/createWithSuspense/createWithSuspense.tsx"],"sourcesContent":["import type { ComponentType, ErrorInfo, ReactNode } from 'react';\n\nimport React, { Component, Suspense } from 'react';\n\nimport { motion, useReducedMotion } from '@fuf-stack/pixel-motion';\n\ninterface ErrorBoundaryProps {\n children: ReactNode;\n fallback: (error: Error, errorInfo: ErrorInfo) => ReactNode;\n // eslint-disable-next-line react/require-default-props\n shouldAnimate?: boolean;\n // eslint-disable-next-line react/require-default-props\n onError?: (error: Error, errorInfo: ErrorInfo) => void;\n}\n\ninterface ErrorBoundaryState {\n error: Error | null;\n errorInfo: ErrorInfo | null;\n}\n\nclass ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {\n constructor(props: ErrorBoundaryProps) {\n super(props);\n this.state = { error: null, errorInfo: null };\n }\n\n static getDerivedStateFromError(error: Error): Partial<ErrorBoundaryState> {\n return { error };\n }\n\n componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n const { onError } = this.props;\n this.setState({ errorInfo });\n onError?.(error, errorInfo);\n }\n\n // eslint-disable-next-line @typescript-eslint/promise-function-async\n render() {\n const { error, errorInfo } = this.state;\n const { fallback, children, shouldAnimate } = this.props;\n\n if (error) {\n // errorInfo might not be set yet in getDerivedStateFromError,\n // so we provide a default empty errorInfo to prevent errors from bubbling up\n const errorFallback = fallback(\n error,\n errorInfo ?? { componentStack: '' },\n );\n\n if (!shouldAnimate) {\n return errorFallback;\n }\n\n return (\n <motion.div\n animate={{ height: 'auto', opacity: 1 }}\n initial={{ height: 0, opacity: 0 }}\n style={{ overflow: 'hidden' }}\n transition={{\n height: { duration: 0.2, ease: 'easeInOut' },\n opacity: { duration: 0.2, delay: 0.2 },\n }}\n >\n {errorFallback}\n </motion.div>\n );\n }\n\n return children;\n }\n}\n\nexport interface CreateWithSuspenseConfig {\n /**\n * Default fallback to show while suspending\n */\n defaultFallback?: ReactNode;\n /**\n * Disable height animation between loading and loaded states\n * @default false\n */\n disableAnimation?: boolean;\n /**\n * Error boundary fallback renderer\n * @param error - The error that was caught\n * @param errorInfo - Additional error information\n */\n errorFallback?: (error: Error, errorInfo: ErrorInfo) => ReactNode;\n /**\n * Callback when an error is caught\n * @param error - The error that was caught\n * @param errorInfo - Additional error information\n */\n onError?: (error: Error, errorInfo: ErrorInfo) => void;\n}\n\nexport interface WithSuspenseOptions {\n /**\n * Override the default fallback for this specific component\n */\n fallback?: ReactNode;\n /**\n * Override the error boundary for this specific component\n */\n errorFallback?: (error: Error, errorInfo: ErrorInfo) => ReactNode;\n /**\n * Disable height animation for this specific component\n */\n disableAnimation?: boolean;\n /**\n * Disable error boundary for this specific component\n */\n disableErrorBoundary?: boolean;\n}\n\n/**\n * Factory function to create a project-specific withSuspense HOC with default configuration.\n *\n * @example\n * ```tsx\n * // In your project setup file\n * export const withSuspense = createWithSuspense({\n * defaultFallback: <YourSpinner />,\n * errorFallback: (error) => <YourErrorComponent error={error} />,\n * onError: (error, errorInfo) => {\n * console.error('Caught error:', error, errorInfo);\n * // Send to error tracking service\n * },\n * });\n *\n * // Then use throughout your project\n * const MyComponent = withSuspense(({ userId }) => {\n * const user = use(fetchUser(userId));\n * return <div>{user.name}</div>;\n * });\n * ```\n */\nexport function createWithSuspense(config: CreateWithSuspenseConfig = {}) {\n const {\n defaultFallback = null,\n disableAnimation: defaultDisableAnimation = false,\n errorFallback: defaultErrorFallback,\n onError: defaultOnError,\n } = config;\n\n return function withSuspense<P extends object>(\n WrappedComponent: ComponentType<P>,\n options?: WithSuspenseOptions,\n ) {\n const fallback = options?.fallback ?? defaultFallback;\n const errorFallback = options?.errorFallback ?? defaultErrorFallback;\n const disableErrorBoundary = options?.disableErrorBoundary ?? false;\n const disableAnimation =\n options?.disableAnimation ?? defaultDisableAnimation;\n\n const WithSuspenseComponent = (props: P) => {\n const prefersReducedMotion = useReducedMotion();\n const shouldAnimate = !disableAnimation && !prefersReducedMotion;\n\n // Wrap content in motion wrapper if animation is enabled\n const wrapWithMotion = (children: ReactNode): ReactNode => {\n if (!shouldAnimate) {\n return children;\n }\n\n return (\n <motion.div\n animate={{ height: 'auto', opacity: 1 }}\n exit={{ height: 0, opacity: 0 }}\n initial={{ height: 0, opacity: 0 }}\n style={{ overflow: 'hidden' }}\n transition={{\n height: { duration: 0.2, ease: 'easeInOut' },\n opacity: { duration: 0.2, delay: 0.2 }, // Fade in after height animation\n }}\n >\n {children}\n </motion.div>\n );\n };\n\n const animatedFallback = shouldAnimate ? (\n <motion.div\n key=\"fallback\"\n exit={{ height: 0, opacity: 0 }}\n initial={{ height: 'auto', opacity: 1 }}\n style={{ overflow: 'hidden' }}\n transition={{\n height: { duration: 0.3, ease: 'easeInOut' },\n opacity: { duration: 0.2 },\n }}\n >\n {fallback}\n </motion.div>\n ) : (\n fallback\n );\n\n const content = (\n <Suspense fallback={animatedFallback}>\n {wrapWithMotion(<WrappedComponent {...props} />)}\n </Suspense>\n );\n\n // If no error boundary configured or explicitly disabled, return just Suspense\n if (!errorFallback || disableErrorBoundary) {\n return content;\n }\n\n return (\n <ErrorBoundary\n fallback={errorFallback}\n onError={defaultOnError}\n shouldAnimate={shouldAnimate}\n >\n {content}\n </ErrorBoundary>\n );\n };\n\n WithSuspenseComponent.displayName = `withSuspense(${\n WrappedComponent.displayName ?? WrappedComponent.name ?? 'Component'\n })`;\n\n return WithSuspenseComponent;\n };\n}\n"],"mappings":";;;;;;AAoBA,IAAM,gBAAN,cAA4BA,MAAAA,UAAkD;CAC5E,YAAY,OAA2B;EACrC,MAAM,KAAK;EACX,KAAK,QAAQ;GAAE,OAAO;GAAM,WAAW;EAAK;CAC9C;CAEA,OAAO,yBAAyB,OAA2C;EACzE,OAAO,EAAE,MAAM;CACjB;CAEA,kBAAkB,OAAc,WAAsB;EACpD,MAAM,EAAE,YAAY,KAAK;EACzB,KAAK,SAAS,EAAE,UAAU,CAAC;EAC3B,UAAU,OAAO,SAAS;CAC5B;CAGA,SAAS;EACP,MAAM,EAAE,OAAO,cAAc,KAAK;EAClC,MAAM,EAAE,UAAU,UAAU,kBAAkB,KAAK;EAEnD,IAAI,OAAO;GAGT,MAAM,gBAAgB,SACpB,OACA,aAAa,EAAE,gBAAgB,GAAG,CACpC;GAEA,IAAI,CAAC,eACH,OAAO;GAGT,OACE,iBAAA,GAAA,kBAAA,KAACC,wBAAAA,OAAO,KAAR;IACE,SAAS;KAAE,QAAQ;KAAQ,SAAS;IAAE;IACtC,SAAS;KAAE,QAAQ;KAAG,SAAS;IAAE;IACjC,OAAO,EAAE,UAAU,SAAS;IAC5B,YAAY;KACV,QAAQ;MAAE,UAAU;MAAK,MAAM;KAAY;KAC3C,SAAS;MAAE,UAAU;MAAK,OAAO;KAAI;IACvC;cAEC;GACS,CAAA;EAEhB;EAEA,OAAO;CACT;AACF;;;;;;;;;;;;;;;;;;;;;;;AAmEA,SAAgB,mBAAmB,SAAmC,CAAC,GAAG;CACxE,MAAM,EACJ,kBAAkB,MAClB,kBAAkB,0BAA0B,OAC5C,eAAe,sBACf,SAAS,mBACP;CAEJ,OAAO,SAAS,aACd,kBACA,SACA;EACA,MAAM,WAAW,SAAS,YAAY;EACtC,MAAM,gBAAgB,SAAS,iBAAiB;EAChD,MAAM,uBAAuB,SAAS,wBAAwB;EAC9D,MAAM,mBACJ,SAAS,oBAAoB;EAE/B,MAAM,yBAAyB,UAAa;GAC1C,MAAM,wBAAA,GAAA,wBAAA,kBAAwC;GAC9C,MAAM,gBAAgB,CAAC,oBAAoB,CAAC;GAG5C,MAAM,kBAAkB,aAAmC;IACzD,IAAI,CAAC,eACH,OAAO;IAGT,OACE,iBAAA,GAAA,kBAAA,KAACA,wBAAAA,OAAO,KAAR;KACE,SAAS;MAAE,QAAQ;MAAQ,SAAS;KAAE;KACtC,MAAM;MAAE,QAAQ;MAAG,SAAS;KAAE;KAC9B,SAAS;MAAE,QAAQ;MAAG,SAAS;KAAE;KACjC,OAAO,EAAE,UAAU,SAAS;KAC5B,YAAY;MACV,QAAQ;OAAE,UAAU;OAAK,MAAM;MAAY;MAC3C,SAAS;OAAE,UAAU;OAAK,OAAO;MAAI;KACvC;KAEC;IACS,CAAA;GAEhB;GAmBA,MAAM,UACJ,iBAAA,GAAA,kBAAA,KAACC,MAAAA,UAAD;IAAU,UAlBa,gBACvB,iBAAA,GAAA,kBAAA,KAACD,wBAAAA,OAAO,KAAR;KAEE,MAAM;MAAE,QAAQ;MAAG,SAAS;KAAE;KAC9B,SAAS;MAAE,QAAQ;MAAQ,SAAS;KAAE;KACtC,OAAO,EAAE,UAAU,SAAS;KAC5B,YAAY;MACV,QAAQ;OAAE,UAAU;OAAK,MAAM;MAAY;MAC3C,SAAS,EAAE,UAAU,GAAI;KAC3B;eAEC;IACS,GAVN,UAUM,IAEZ;cAKG,eAAe,iBAAA,GAAA,kBAAA,KAAC,kBAAD,EAAkB,GAAI,MAAQ,CAAA,CAAC;GACvC,CAAA;GAIZ,IAAI,CAAC,iBAAiB,sBACpB,OAAO;GAGT,OACE,iBAAA,GAAA,kBAAA,KAAC,eAAD;IACE,UAAU;IACV,SAAS;IACM;cAEd;GACY,CAAA;EAEnB;EAEA,sBAAsB,cAAc,gBAClC,iBAAiB,eAAe,iBAAiB,QAAQ,YAC1D;EAED,OAAO;CACT;AACF"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ComponentType, ErrorInfo, ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/createWithSuspense/createWithSuspense.d.ts
|
|
4
|
+
interface CreateWithSuspenseConfig {
|
|
5
|
+
/**
|
|
6
|
+
* Default fallback to show while suspending
|
|
7
|
+
*/
|
|
8
|
+
defaultFallback?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Disable height animation between loading and loaded states
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
disableAnimation?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Error boundary fallback renderer
|
|
16
|
+
* @param error - The error that was caught
|
|
17
|
+
* @param errorInfo - Additional error information
|
|
18
|
+
*/
|
|
19
|
+
errorFallback?: (error: Error, errorInfo: ErrorInfo) => ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Callback when an error is caught
|
|
22
|
+
* @param error - The error that was caught
|
|
23
|
+
* @param errorInfo - Additional error information
|
|
24
|
+
*/
|
|
25
|
+
onError?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
26
|
+
}
|
|
27
|
+
interface WithSuspenseOptions {
|
|
28
|
+
/**
|
|
29
|
+
* Override the default fallback for this specific component
|
|
30
|
+
*/
|
|
31
|
+
fallback?: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Override the error boundary for this specific component
|
|
34
|
+
*/
|
|
35
|
+
errorFallback?: (error: Error, errorInfo: ErrorInfo) => ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Disable height animation for this specific component
|
|
38
|
+
*/
|
|
39
|
+
disableAnimation?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Disable error boundary for this specific component
|
|
42
|
+
*/
|
|
43
|
+
disableErrorBoundary?: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Factory function to create a project-specific withSuspense HOC with default configuration.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```tsx
|
|
50
|
+
* // In your project setup file
|
|
51
|
+
* export const withSuspense = createWithSuspense({
|
|
52
|
+
* defaultFallback: <YourSpinner />,
|
|
53
|
+
* errorFallback: (error) => <YourErrorComponent error={error} />,
|
|
54
|
+
* onError: (error, errorInfo) => {
|
|
55
|
+
* console.error('Caught error:', error, errorInfo);
|
|
56
|
+
* // Send to error tracking service
|
|
57
|
+
* },
|
|
58
|
+
* });
|
|
59
|
+
*
|
|
60
|
+
* // Then use throughout your project
|
|
61
|
+
* const MyComponent = withSuspense(({ userId }) => {
|
|
62
|
+
* const user = use(fetchUser(userId));
|
|
63
|
+
* return <div>{user.name}</div>;
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
declare function createWithSuspense(config?: CreateWithSuspenseConfig): <P extends object>(WrappedComponent: ComponentType<P>, options?: WithSuspenseOptions) => {
|
|
68
|
+
(props: P): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
displayName: string;
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
export { CreateWithSuspenseConfig, WithSuspenseOptions, createWithSuspense };
|
|
73
|
+
//# sourceMappingURL=createWithSuspense.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createWithSuspense.d.cts","names":[],"sources":["../../../src/utils/createWithSuspense/createWithSuspense.tsx"],"mappings":";;;UAwEiB,wBAAA;;AAAjB;;EAIE,eAAA,GAAkB,SAAA;EAAA;;;;EAKlB,gBAAA;EAYoC;;;;;EANpC,aAAA,IAAiB,KAAA,EAAO,KAAA,EAAO,SAAA,EAAW,SAAA,KAAc,SAAA;EAAxD;;;;;EAMA,OAAA,IAAW,KAAA,EAAO,KAAA,EAAO,SAAA,EAAW,SAAA;AAAA;AAAA,UAGrB,mBAAA;EAHJ;;;EAOX,QAAA,GAAW,SAAA;EAPkC;AAG/C;;EAQE,aAAA,IAAiB,KAAA,EAAO,KAAA,EAAO,SAAA,EAAW,SAAA,KAAc,SAAA;EAJ7C;;;EAQX,gBAAA;EAJiE;;;EAQjE,oBAAA;AAAA;;;;;;;;;AAAoB;AAyBtB;;;;;;;;;;;;;iBAAgB,kBAAA,CAAmB,MAAA,GAAQ,wBAAA,sBASvC,gBAAA,EAAkB,aAAA,CAAc,CAAA,GAChC,OAAA,GAAU,mBAAA;EAAA,QAQ4B,CAAA,+BAAC,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ComponentType, ErrorInfo, ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/createWithSuspense/createWithSuspense.d.ts
|
|
4
|
+
interface CreateWithSuspenseConfig {
|
|
5
|
+
/**
|
|
6
|
+
* Default fallback to show while suspending
|
|
7
|
+
*/
|
|
8
|
+
defaultFallback?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Disable height animation between loading and loaded states
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
disableAnimation?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Error boundary fallback renderer
|
|
16
|
+
* @param error - The error that was caught
|
|
17
|
+
* @param errorInfo - Additional error information
|
|
18
|
+
*/
|
|
19
|
+
errorFallback?: (error: Error, errorInfo: ErrorInfo) => ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Callback when an error is caught
|
|
22
|
+
* @param error - The error that was caught
|
|
23
|
+
* @param errorInfo - Additional error information
|
|
24
|
+
*/
|
|
25
|
+
onError?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
26
|
+
}
|
|
27
|
+
interface WithSuspenseOptions {
|
|
28
|
+
/**
|
|
29
|
+
* Override the default fallback for this specific component
|
|
30
|
+
*/
|
|
31
|
+
fallback?: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Override the error boundary for this specific component
|
|
34
|
+
*/
|
|
35
|
+
errorFallback?: (error: Error, errorInfo: ErrorInfo) => ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Disable height animation for this specific component
|
|
38
|
+
*/
|
|
39
|
+
disableAnimation?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Disable error boundary for this specific component
|
|
42
|
+
*/
|
|
43
|
+
disableErrorBoundary?: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Factory function to create a project-specific withSuspense HOC with default configuration.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```tsx
|
|
50
|
+
* // In your project setup file
|
|
51
|
+
* export const withSuspense = createWithSuspense({
|
|
52
|
+
* defaultFallback: <YourSpinner />,
|
|
53
|
+
* errorFallback: (error) => <YourErrorComponent error={error} />,
|
|
54
|
+
* onError: (error, errorInfo) => {
|
|
55
|
+
* console.error('Caught error:', error, errorInfo);
|
|
56
|
+
* // Send to error tracking service
|
|
57
|
+
* },
|
|
58
|
+
* });
|
|
59
|
+
*
|
|
60
|
+
* // Then use throughout your project
|
|
61
|
+
* const MyComponent = withSuspense(({ userId }) => {
|
|
62
|
+
* const user = use(fetchUser(userId));
|
|
63
|
+
* return <div>{user.name}</div>;
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
declare function createWithSuspense(config?: CreateWithSuspenseConfig): <P extends object>(WrappedComponent: ComponentType<P>, options?: WithSuspenseOptions) => {
|
|
68
|
+
(props: P): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
displayName: string;
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
export { CreateWithSuspenseConfig, WithSuspenseOptions, createWithSuspense };
|
|
73
|
+
//# sourceMappingURL=createWithSuspense.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createWithSuspense.d.ts","names":[],"sources":["../../../src/utils/createWithSuspense/createWithSuspense.tsx"],"mappings":";;;UAwEiB,wBAAA;;AAAjB;;EAIE,eAAA,GAAkB,SAAA;EAAA;;;;EAKlB,gBAAA;EAYoC;;;;;EANpC,aAAA,IAAiB,KAAA,EAAO,KAAA,EAAO,SAAA,EAAW,SAAA,KAAc,SAAA;EAAxD;;;;;EAMA,OAAA,IAAW,KAAA,EAAO,KAAA,EAAO,SAAA,EAAW,SAAA;AAAA;AAAA,UAGrB,mBAAA;EAHJ;;;EAOX,QAAA,GAAW,SAAA;EAPkC;AAG/C;;EAQE,aAAA,IAAiB,KAAA,EAAO,KAAA,EAAO,SAAA,EAAW,SAAA,KAAc,SAAA;EAJ7C;;;EAQX,gBAAA;EAJiE;;;EAQjE,oBAAA;AAAA;;;;;;;;;AAAoB;AAyBtB;;;;;;;;;;;;;iBAAgB,kBAAA,CAAmB,MAAA,GAAQ,wBAAA,sBASvC,gBAAA,EAAkB,aAAA,CAAc,CAAA,GAChC,OAAA,GAAU,mBAAA;EAAA,QAQ4B,CAAA,+BAAC,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Component, Suspense } from "react";
|
|
3
|
+
import { motion, useReducedMotion } from "@fuf-stack/pixel-motion";
|
|
4
|
+
//#region src/utils/createWithSuspense/createWithSuspense.tsx
|
|
5
|
+
var ErrorBoundary = class extends Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
this.state = {
|
|
9
|
+
error: null,
|
|
10
|
+
errorInfo: null
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
static getDerivedStateFromError(error) {
|
|
14
|
+
return { error };
|
|
15
|
+
}
|
|
16
|
+
componentDidCatch(error, errorInfo) {
|
|
17
|
+
const { onError } = this.props;
|
|
18
|
+
this.setState({ errorInfo });
|
|
19
|
+
onError?.(error, errorInfo);
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
const { error, errorInfo } = this.state;
|
|
23
|
+
const { fallback, children, shouldAnimate } = this.props;
|
|
24
|
+
if (error) {
|
|
25
|
+
const errorFallback = fallback(error, errorInfo ?? { componentStack: "" });
|
|
26
|
+
if (!shouldAnimate) return errorFallback;
|
|
27
|
+
return /* @__PURE__ */ jsx(motion.div, {
|
|
28
|
+
animate: {
|
|
29
|
+
height: "auto",
|
|
30
|
+
opacity: 1
|
|
31
|
+
},
|
|
32
|
+
initial: {
|
|
33
|
+
height: 0,
|
|
34
|
+
opacity: 0
|
|
35
|
+
},
|
|
36
|
+
style: { overflow: "hidden" },
|
|
37
|
+
transition: {
|
|
38
|
+
height: {
|
|
39
|
+
duration: .2,
|
|
40
|
+
ease: "easeInOut"
|
|
41
|
+
},
|
|
42
|
+
opacity: {
|
|
43
|
+
duration: .2,
|
|
44
|
+
delay: .2
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
children: errorFallback
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return children;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Factory function to create a project-specific withSuspense HOC with default configuration.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```tsx
|
|
58
|
+
* // In your project setup file
|
|
59
|
+
* export const withSuspense = createWithSuspense({
|
|
60
|
+
* defaultFallback: <YourSpinner />,
|
|
61
|
+
* errorFallback: (error) => <YourErrorComponent error={error} />,
|
|
62
|
+
* onError: (error, errorInfo) => {
|
|
63
|
+
* console.error('Caught error:', error, errorInfo);
|
|
64
|
+
* // Send to error tracking service
|
|
65
|
+
* },
|
|
66
|
+
* });
|
|
67
|
+
*
|
|
68
|
+
* // Then use throughout your project
|
|
69
|
+
* const MyComponent = withSuspense(({ userId }) => {
|
|
70
|
+
* const user = use(fetchUser(userId));
|
|
71
|
+
* return <div>{user.name}</div>;
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
function createWithSuspense(config = {}) {
|
|
76
|
+
const { defaultFallback = null, disableAnimation: defaultDisableAnimation = false, errorFallback: defaultErrorFallback, onError: defaultOnError } = config;
|
|
77
|
+
return function withSuspense(WrappedComponent, options) {
|
|
78
|
+
const fallback = options?.fallback ?? defaultFallback;
|
|
79
|
+
const errorFallback = options?.errorFallback ?? defaultErrorFallback;
|
|
80
|
+
const disableErrorBoundary = options?.disableErrorBoundary ?? false;
|
|
81
|
+
const disableAnimation = options?.disableAnimation ?? defaultDisableAnimation;
|
|
82
|
+
const WithSuspenseComponent = (props) => {
|
|
83
|
+
const prefersReducedMotion = useReducedMotion();
|
|
84
|
+
const shouldAnimate = !disableAnimation && !prefersReducedMotion;
|
|
85
|
+
const wrapWithMotion = (children) => {
|
|
86
|
+
if (!shouldAnimate) return children;
|
|
87
|
+
return /* @__PURE__ */ jsx(motion.div, {
|
|
88
|
+
animate: {
|
|
89
|
+
height: "auto",
|
|
90
|
+
opacity: 1
|
|
91
|
+
},
|
|
92
|
+
exit: {
|
|
93
|
+
height: 0,
|
|
94
|
+
opacity: 0
|
|
95
|
+
},
|
|
96
|
+
initial: {
|
|
97
|
+
height: 0,
|
|
98
|
+
opacity: 0
|
|
99
|
+
},
|
|
100
|
+
style: { overflow: "hidden" },
|
|
101
|
+
transition: {
|
|
102
|
+
height: {
|
|
103
|
+
duration: .2,
|
|
104
|
+
ease: "easeInOut"
|
|
105
|
+
},
|
|
106
|
+
opacity: {
|
|
107
|
+
duration: .2,
|
|
108
|
+
delay: .2
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
children
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
const content = /* @__PURE__ */ jsx(Suspense, {
|
|
115
|
+
fallback: shouldAnimate ? /* @__PURE__ */ jsx(motion.div, {
|
|
116
|
+
exit: {
|
|
117
|
+
height: 0,
|
|
118
|
+
opacity: 0
|
|
119
|
+
},
|
|
120
|
+
initial: {
|
|
121
|
+
height: "auto",
|
|
122
|
+
opacity: 1
|
|
123
|
+
},
|
|
124
|
+
style: { overflow: "hidden" },
|
|
125
|
+
transition: {
|
|
126
|
+
height: {
|
|
127
|
+
duration: .3,
|
|
128
|
+
ease: "easeInOut"
|
|
129
|
+
},
|
|
130
|
+
opacity: { duration: .2 }
|
|
131
|
+
},
|
|
132
|
+
children: fallback
|
|
133
|
+
}, "fallback") : fallback,
|
|
134
|
+
children: wrapWithMotion(/* @__PURE__ */ jsx(WrappedComponent, { ...props }))
|
|
135
|
+
});
|
|
136
|
+
if (!errorFallback || disableErrorBoundary) return content;
|
|
137
|
+
return /* @__PURE__ */ jsx(ErrorBoundary, {
|
|
138
|
+
fallback: errorFallback,
|
|
139
|
+
onError: defaultOnError,
|
|
140
|
+
shouldAnimate,
|
|
141
|
+
children: content
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
WithSuspenseComponent.displayName = `withSuspense(${WrappedComponent.displayName ?? WrappedComponent.name ?? "Component"})`;
|
|
145
|
+
return WithSuspenseComponent;
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
//#endregion
|
|
149
|
+
export { createWithSuspense };
|
|
150
|
+
|
|
151
|
+
//# sourceMappingURL=createWithSuspense.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createWithSuspense.js","names":[],"sources":["../../../src/utils/createWithSuspense/createWithSuspense.tsx"],"sourcesContent":["import type { ComponentType, ErrorInfo, ReactNode } from 'react';\n\nimport React, { Component, Suspense } from 'react';\n\nimport { motion, useReducedMotion } from '@fuf-stack/pixel-motion';\n\ninterface ErrorBoundaryProps {\n children: ReactNode;\n fallback: (error: Error, errorInfo: ErrorInfo) => ReactNode;\n // eslint-disable-next-line react/require-default-props\n shouldAnimate?: boolean;\n // eslint-disable-next-line react/require-default-props\n onError?: (error: Error, errorInfo: ErrorInfo) => void;\n}\n\ninterface ErrorBoundaryState {\n error: Error | null;\n errorInfo: ErrorInfo | null;\n}\n\nclass ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {\n constructor(props: ErrorBoundaryProps) {\n super(props);\n this.state = { error: null, errorInfo: null };\n }\n\n static getDerivedStateFromError(error: Error): Partial<ErrorBoundaryState> {\n return { error };\n }\n\n componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n const { onError } = this.props;\n this.setState({ errorInfo });\n onError?.(error, errorInfo);\n }\n\n // eslint-disable-next-line @typescript-eslint/promise-function-async\n render() {\n const { error, errorInfo } = this.state;\n const { fallback, children, shouldAnimate } = this.props;\n\n if (error) {\n // errorInfo might not be set yet in getDerivedStateFromError,\n // so we provide a default empty errorInfo to prevent errors from bubbling up\n const errorFallback = fallback(\n error,\n errorInfo ?? { componentStack: '' },\n );\n\n if (!shouldAnimate) {\n return errorFallback;\n }\n\n return (\n <motion.div\n animate={{ height: 'auto', opacity: 1 }}\n initial={{ height: 0, opacity: 0 }}\n style={{ overflow: 'hidden' }}\n transition={{\n height: { duration: 0.2, ease: 'easeInOut' },\n opacity: { duration: 0.2, delay: 0.2 },\n }}\n >\n {errorFallback}\n </motion.div>\n );\n }\n\n return children;\n }\n}\n\nexport interface CreateWithSuspenseConfig {\n /**\n * Default fallback to show while suspending\n */\n defaultFallback?: ReactNode;\n /**\n * Disable height animation between loading and loaded states\n * @default false\n */\n disableAnimation?: boolean;\n /**\n * Error boundary fallback renderer\n * @param error - The error that was caught\n * @param errorInfo - Additional error information\n */\n errorFallback?: (error: Error, errorInfo: ErrorInfo) => ReactNode;\n /**\n * Callback when an error is caught\n * @param error - The error that was caught\n * @param errorInfo - Additional error information\n */\n onError?: (error: Error, errorInfo: ErrorInfo) => void;\n}\n\nexport interface WithSuspenseOptions {\n /**\n * Override the default fallback for this specific component\n */\n fallback?: ReactNode;\n /**\n * Override the error boundary for this specific component\n */\n errorFallback?: (error: Error, errorInfo: ErrorInfo) => ReactNode;\n /**\n * Disable height animation for this specific component\n */\n disableAnimation?: boolean;\n /**\n * Disable error boundary for this specific component\n */\n disableErrorBoundary?: boolean;\n}\n\n/**\n * Factory function to create a project-specific withSuspense HOC with default configuration.\n *\n * @example\n * ```tsx\n * // In your project setup file\n * export const withSuspense = createWithSuspense({\n * defaultFallback: <YourSpinner />,\n * errorFallback: (error) => <YourErrorComponent error={error} />,\n * onError: (error, errorInfo) => {\n * console.error('Caught error:', error, errorInfo);\n * // Send to error tracking service\n * },\n * });\n *\n * // Then use throughout your project\n * const MyComponent = withSuspense(({ userId }) => {\n * const user = use(fetchUser(userId));\n * return <div>{user.name}</div>;\n * });\n * ```\n */\nexport function createWithSuspense(config: CreateWithSuspenseConfig = {}) {\n const {\n defaultFallback = null,\n disableAnimation: defaultDisableAnimation = false,\n errorFallback: defaultErrorFallback,\n onError: defaultOnError,\n } = config;\n\n return function withSuspense<P extends object>(\n WrappedComponent: ComponentType<P>,\n options?: WithSuspenseOptions,\n ) {\n const fallback = options?.fallback ?? defaultFallback;\n const errorFallback = options?.errorFallback ?? defaultErrorFallback;\n const disableErrorBoundary = options?.disableErrorBoundary ?? false;\n const disableAnimation =\n options?.disableAnimation ?? defaultDisableAnimation;\n\n const WithSuspenseComponent = (props: P) => {\n const prefersReducedMotion = useReducedMotion();\n const shouldAnimate = !disableAnimation && !prefersReducedMotion;\n\n // Wrap content in motion wrapper if animation is enabled\n const wrapWithMotion = (children: ReactNode): ReactNode => {\n if (!shouldAnimate) {\n return children;\n }\n\n return (\n <motion.div\n animate={{ height: 'auto', opacity: 1 }}\n exit={{ height: 0, opacity: 0 }}\n initial={{ height: 0, opacity: 0 }}\n style={{ overflow: 'hidden' }}\n transition={{\n height: { duration: 0.2, ease: 'easeInOut' },\n opacity: { duration: 0.2, delay: 0.2 }, // Fade in after height animation\n }}\n >\n {children}\n </motion.div>\n );\n };\n\n const animatedFallback = shouldAnimate ? (\n <motion.div\n key=\"fallback\"\n exit={{ height: 0, opacity: 0 }}\n initial={{ height: 'auto', opacity: 1 }}\n style={{ overflow: 'hidden' }}\n transition={{\n height: { duration: 0.3, ease: 'easeInOut' },\n opacity: { duration: 0.2 },\n }}\n >\n {fallback}\n </motion.div>\n ) : (\n fallback\n );\n\n const content = (\n <Suspense fallback={animatedFallback}>\n {wrapWithMotion(<WrappedComponent {...props} />)}\n </Suspense>\n );\n\n // If no error boundary configured or explicitly disabled, return just Suspense\n if (!errorFallback || disableErrorBoundary) {\n return content;\n }\n\n return (\n <ErrorBoundary\n fallback={errorFallback}\n onError={defaultOnError}\n shouldAnimate={shouldAnimate}\n >\n {content}\n </ErrorBoundary>\n );\n };\n\n WithSuspenseComponent.displayName = `withSuspense(${\n WrappedComponent.displayName ?? WrappedComponent.name ?? 'Component'\n })`;\n\n return WithSuspenseComponent;\n };\n}\n"],"mappings":";;;;AAoBA,IAAM,gBAAN,cAA4B,UAAkD;CAC5E,YAAY,OAA2B;EACrC,MAAM,KAAK;EACX,KAAK,QAAQ;GAAE,OAAO;GAAM,WAAW;EAAK;CAC9C;CAEA,OAAO,yBAAyB,OAA2C;EACzE,OAAO,EAAE,MAAM;CACjB;CAEA,kBAAkB,OAAc,WAAsB;EACpD,MAAM,EAAE,YAAY,KAAK;EACzB,KAAK,SAAS,EAAE,UAAU,CAAC;EAC3B,UAAU,OAAO,SAAS;CAC5B;CAGA,SAAS;EACP,MAAM,EAAE,OAAO,cAAc,KAAK;EAClC,MAAM,EAAE,UAAU,UAAU,kBAAkB,KAAK;EAEnD,IAAI,OAAO;GAGT,MAAM,gBAAgB,SACpB,OACA,aAAa,EAAE,gBAAgB,GAAG,CACpC;GAEA,IAAI,CAAC,eACH,OAAO;GAGT,OACE,oBAAC,OAAO,KAAR;IACE,SAAS;KAAE,QAAQ;KAAQ,SAAS;IAAE;IACtC,SAAS;KAAE,QAAQ;KAAG,SAAS;IAAE;IACjC,OAAO,EAAE,UAAU,SAAS;IAC5B,YAAY;KACV,QAAQ;MAAE,UAAU;MAAK,MAAM;KAAY;KAC3C,SAAS;MAAE,UAAU;MAAK,OAAO;KAAI;IACvC;cAEC;GACS,CAAA;EAEhB;EAEA,OAAO;CACT;AACF;;;;;;;;;;;;;;;;;;;;;;;AAmEA,SAAgB,mBAAmB,SAAmC,CAAC,GAAG;CACxE,MAAM,EACJ,kBAAkB,MAClB,kBAAkB,0BAA0B,OAC5C,eAAe,sBACf,SAAS,mBACP;CAEJ,OAAO,SAAS,aACd,kBACA,SACA;EACA,MAAM,WAAW,SAAS,YAAY;EACtC,MAAM,gBAAgB,SAAS,iBAAiB;EAChD,MAAM,uBAAuB,SAAS,wBAAwB;EAC9D,MAAM,mBACJ,SAAS,oBAAoB;EAE/B,MAAM,yBAAyB,UAAa;GAC1C,MAAM,uBAAuB,iBAAiB;GAC9C,MAAM,gBAAgB,CAAC,oBAAoB,CAAC;GAG5C,MAAM,kBAAkB,aAAmC;IACzD,IAAI,CAAC,eACH,OAAO;IAGT,OACE,oBAAC,OAAO,KAAR;KACE,SAAS;MAAE,QAAQ;MAAQ,SAAS;KAAE;KACtC,MAAM;MAAE,QAAQ;MAAG,SAAS;KAAE;KAC9B,SAAS;MAAE,QAAQ;MAAG,SAAS;KAAE;KACjC,OAAO,EAAE,UAAU,SAAS;KAC5B,YAAY;MACV,QAAQ;OAAE,UAAU;OAAK,MAAM;MAAY;MAC3C,SAAS;OAAE,UAAU;OAAK,OAAO;MAAI;KACvC;KAEC;IACS,CAAA;GAEhB;GAmBA,MAAM,UACJ,oBAAC,UAAD;IAAU,UAlBa,gBACvB,oBAAC,OAAO,KAAR;KAEE,MAAM;MAAE,QAAQ;MAAG,SAAS;KAAE;KAC9B,SAAS;MAAE,QAAQ;MAAQ,SAAS;KAAE;KACtC,OAAO,EAAE,UAAU,SAAS;KAC5B,YAAY;MACV,QAAQ;OAAE,UAAU;OAAK,MAAM;MAAY;MAC3C,SAAS,EAAE,UAAU,GAAI;KAC3B;eAEC;IACS,GAVN,UAUM,IAEZ;cAKG,eAAe,oBAAC,kBAAD,EAAkB,GAAI,MAAQ,CAAA,CAAC;GACvC,CAAA;GAIZ,IAAI,CAAC,iBAAiB,sBACpB,OAAO;GAGT,OACE,oBAAC,eAAD;IACE,UAAU;IACV,SAAS;IACM;cAEd;GACY,CAAA;EAEnB;EAEA,sBAAsB,cAAc,gBAClC,iBAAiB,eAAe,iBAAiB,QAAQ,YAC1D;EAED,OAAO;CACT;AACF"}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
require('../../chunk-AHEA4IJV.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.createWithSuspense = _chunkWCE3O6UAcjs.createWithSuspense;
|
|
8
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_createWithSuspense = require("./createWithSuspense.cjs");
|
|
3
|
+
exports.createWithSuspense = require_createWithSuspense.createWithSuspense;
|
|
@@ -1,72 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface CreateWithSuspenseConfig {
|
|
5
|
-
/**
|
|
6
|
-
* Default fallback to show while suspending
|
|
7
|
-
*/
|
|
8
|
-
defaultFallback?: ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* Disable height animation between loading and loaded states
|
|
11
|
-
* @default false
|
|
12
|
-
*/
|
|
13
|
-
disableAnimation?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Error boundary fallback renderer
|
|
16
|
-
* @param error - The error that was caught
|
|
17
|
-
* @param errorInfo - Additional error information
|
|
18
|
-
*/
|
|
19
|
-
errorFallback?: (error: Error, errorInfo: ErrorInfo) => ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Callback when an error is caught
|
|
22
|
-
* @param error - The error that was caught
|
|
23
|
-
* @param errorInfo - Additional error information
|
|
24
|
-
*/
|
|
25
|
-
onError?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
26
|
-
}
|
|
27
|
-
interface WithSuspenseOptions {
|
|
28
|
-
/**
|
|
29
|
-
* Override the default fallback for this specific component
|
|
30
|
-
*/
|
|
31
|
-
fallback?: ReactNode;
|
|
32
|
-
/**
|
|
33
|
-
* Override the error boundary for this specific component
|
|
34
|
-
*/
|
|
35
|
-
errorFallback?: (error: Error, errorInfo: ErrorInfo) => ReactNode;
|
|
36
|
-
/**
|
|
37
|
-
* Disable height animation for this specific component
|
|
38
|
-
*/
|
|
39
|
-
disableAnimation?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Disable error boundary for this specific component
|
|
42
|
-
*/
|
|
43
|
-
disableErrorBoundary?: boolean;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Factory function to create a project-specific withSuspense HOC with default configuration.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```tsx
|
|
50
|
-
* // In your project setup file
|
|
51
|
-
* export const withSuspense = createWithSuspense({
|
|
52
|
-
* defaultFallback: <YourSpinner />,
|
|
53
|
-
* errorFallback: (error) => <YourErrorComponent error={error} />,
|
|
54
|
-
* onError: (error, errorInfo) => {
|
|
55
|
-
* console.error('Caught error:', error, errorInfo);
|
|
56
|
-
* // Send to error tracking service
|
|
57
|
-
* },
|
|
58
|
-
* });
|
|
59
|
-
*
|
|
60
|
-
* // Then use throughout your project
|
|
61
|
-
* const MyComponent = withSuspense(({ userId }) => {
|
|
62
|
-
* const user = use(fetchUser(userId));
|
|
63
|
-
* return <div>{user.name}</div>;
|
|
64
|
-
* });
|
|
65
|
-
* ```
|
|
66
|
-
*/
|
|
67
|
-
declare function createWithSuspense(config?: CreateWithSuspenseConfig): <P extends object>(WrappedComponent: ComponentType<P>, options?: WithSuspenseOptions) => {
|
|
68
|
-
(props: P): react_jsx_runtime.JSX.Element;
|
|
69
|
-
displayName: string;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export { type CreateWithSuspenseConfig, type WithSuspenseOptions, createWithSuspense };
|
|
1
|
+
import { CreateWithSuspenseConfig, WithSuspenseOptions, createWithSuspense } from "./createWithSuspense.cjs";
|
|
2
|
+
export { type CreateWithSuspenseConfig, type WithSuspenseOptions, createWithSuspense };
|
|
@@ -1,72 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface CreateWithSuspenseConfig {
|
|
5
|
-
/**
|
|
6
|
-
* Default fallback to show while suspending
|
|
7
|
-
*/
|
|
8
|
-
defaultFallback?: ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* Disable height animation between loading and loaded states
|
|
11
|
-
* @default false
|
|
12
|
-
*/
|
|
13
|
-
disableAnimation?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Error boundary fallback renderer
|
|
16
|
-
* @param error - The error that was caught
|
|
17
|
-
* @param errorInfo - Additional error information
|
|
18
|
-
*/
|
|
19
|
-
errorFallback?: (error: Error, errorInfo: ErrorInfo) => ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Callback when an error is caught
|
|
22
|
-
* @param error - The error that was caught
|
|
23
|
-
* @param errorInfo - Additional error information
|
|
24
|
-
*/
|
|
25
|
-
onError?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
26
|
-
}
|
|
27
|
-
interface WithSuspenseOptions {
|
|
28
|
-
/**
|
|
29
|
-
* Override the default fallback for this specific component
|
|
30
|
-
*/
|
|
31
|
-
fallback?: ReactNode;
|
|
32
|
-
/**
|
|
33
|
-
* Override the error boundary for this specific component
|
|
34
|
-
*/
|
|
35
|
-
errorFallback?: (error: Error, errorInfo: ErrorInfo) => ReactNode;
|
|
36
|
-
/**
|
|
37
|
-
* Disable height animation for this specific component
|
|
38
|
-
*/
|
|
39
|
-
disableAnimation?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Disable error boundary for this specific component
|
|
42
|
-
*/
|
|
43
|
-
disableErrorBoundary?: boolean;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Factory function to create a project-specific withSuspense HOC with default configuration.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```tsx
|
|
50
|
-
* // In your project setup file
|
|
51
|
-
* export const withSuspense = createWithSuspense({
|
|
52
|
-
* defaultFallback: <YourSpinner />,
|
|
53
|
-
* errorFallback: (error) => <YourErrorComponent error={error} />,
|
|
54
|
-
* onError: (error, errorInfo) => {
|
|
55
|
-
* console.error('Caught error:', error, errorInfo);
|
|
56
|
-
* // Send to error tracking service
|
|
57
|
-
* },
|
|
58
|
-
* });
|
|
59
|
-
*
|
|
60
|
-
* // Then use throughout your project
|
|
61
|
-
* const MyComponent = withSuspense(({ userId }) => {
|
|
62
|
-
* const user = use(fetchUser(userId));
|
|
63
|
-
* return <div>{user.name}</div>;
|
|
64
|
-
* });
|
|
65
|
-
* ```
|
|
66
|
-
*/
|
|
67
|
-
declare function createWithSuspense(config?: CreateWithSuspenseConfig): <P extends object>(WrappedComponent: ComponentType<P>, options?: WithSuspenseOptions) => {
|
|
68
|
-
(props: P): react_jsx_runtime.JSX.Element;
|
|
69
|
-
displayName: string;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export { type CreateWithSuspenseConfig, type WithSuspenseOptions, createWithSuspense };
|
|
1
|
+
import { CreateWithSuspenseConfig, WithSuspenseOptions, createWithSuspense } from "./createWithSuspense.js";
|
|
2
|
+
export { type CreateWithSuspenseConfig, type WithSuspenseOptions, createWithSuspense };
|