@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,87 @@
|
|
|
1
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_index = require("../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");
|
|
3
|
+
const require_jsonParser = require("./jsonParser.cjs");
|
|
4
|
+
const require_CopiedRenderer = require("./subcomponents/CopiedRenderer.cjs");
|
|
5
|
+
const require_ErrorRenderer = require("./subcomponents/ErrorRenderer.cjs");
|
|
6
|
+
const require_NullRenderer = require("./subcomponents/NullRenderer.cjs");
|
|
7
|
+
require("./theme.cjs");
|
|
8
|
+
let _fuf_stack_pixel_utils = require("@fuf-stack/pixel-utils");
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
+
let react = require("react");
|
|
11
|
+
//#region src/Json/Json.tsx
|
|
12
|
+
/**
|
|
13
|
+
* Handles copying text or object values to clipboard.
|
|
14
|
+
*
|
|
15
|
+
* @param rawValue - The original value to copy (can be an object or primitive)
|
|
16
|
+
* @param onCopy - Optional callback function triggered after copying with the copied value
|
|
17
|
+
*
|
|
18
|
+
* This function:
|
|
19
|
+
* 1. Detects if the value is an object (not null and typeof 'object')
|
|
20
|
+
* 2. Converts objects to JSON strings for clipboard copying
|
|
21
|
+
* 3. Uses setTimeout to write the value to clipboard in the next render cycle
|
|
22
|
+
* - This is necessary because JsonView (CopiedRenderer) normally handles copying itself,
|
|
23
|
+
* but its copied value doesn't follow the same isObject logic
|
|
24
|
+
* - By using setTimeout, we ensure our properly formatted value overwrites any previous copy operation
|
|
25
|
+
* 4. Calls the optional onCopy callback with the copied value if provided
|
|
26
|
+
*
|
|
27
|
+
* Note: The text parameter is kept for API consistency but is not used in the copying process
|
|
28
|
+
*/
|
|
29
|
+
const handleCopy = (rawValue, onCopy) => {
|
|
30
|
+
let isObject = false;
|
|
31
|
+
try {
|
|
32
|
+
if (rawValue !== require_NullRenderer.default && typeof rawValue === "object") isObject = true;
|
|
33
|
+
} catch (_err) {}
|
|
34
|
+
const copyValue = isObject ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
35
|
+
setTimeout(async () => {
|
|
36
|
+
return navigator.clipboard.writeText(copyValue);
|
|
37
|
+
}, 1);
|
|
38
|
+
if (onCopy) onCopy(copyValue);
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Json renderer based on [react-json-view](https://uiwjs.github.io/react-json-view)
|
|
42
|
+
* with improved error handling, accessibility, and customization options
|
|
43
|
+
*/
|
|
44
|
+
const Json = ({ className = void 0, collapsed = false, errorRenderer = void 0, maxHeight = void 0, onCopy = void 0, value }) => {
|
|
45
|
+
const [showDetails, setShowDetails] = (0, react.useState)(false);
|
|
46
|
+
let content = null;
|
|
47
|
+
let error = null;
|
|
48
|
+
try {
|
|
49
|
+
const parsedValue = require_jsonParser.getValue(value);
|
|
50
|
+
content = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
51
|
+
className: "relative",
|
|
52
|
+
style: {
|
|
53
|
+
maxHeight,
|
|
54
|
+
overflowY: maxHeight ? "auto" : void 0
|
|
55
|
+
},
|
|
56
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_index.default, {
|
|
57
|
+
className: "pr-5",
|
|
58
|
+
collapsed,
|
|
59
|
+
displayDataTypes: false,
|
|
60
|
+
value: parsedValue,
|
|
61
|
+
onCopied: (_, rawValue) => {
|
|
62
|
+
handleCopy(rawValue, onCopy);
|
|
63
|
+
},
|
|
64
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CopiedRenderer.default, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_NullRenderer.default, {})]
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
} catch (err) {
|
|
68
|
+
error = errorRenderer ? errorRenderer(err, value) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ErrorRenderer.default, {
|
|
69
|
+
data: value,
|
|
70
|
+
error: err,
|
|
71
|
+
showDetails,
|
|
72
|
+
onToggleDetails: () => {
|
|
73
|
+
setShowDetails(!showDetails);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
78
|
+
"aria-label": "JSON viewer",
|
|
79
|
+
className: (0, _fuf_stack_pixel_utils.cn)(className),
|
|
80
|
+
role: "region",
|
|
81
|
+
children: error ?? content
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
//#endregion
|
|
85
|
+
exports.default = Json;
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=Json.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Json.cjs","names":["NullRenderer","getValue","JsonView","CopiedRenderer","ErrorRenderer"],"sources":["../../src/Json/Json.tsx"],"sourcesContent":["/* eslint-disable import-x/no-extraneous-dependencies */\n\nimport type { ReactNode } from 'react';\n\nimport { useState } from 'react';\n\n// INFO: react-json-view is bundled with --dts-resolve for now (dev dep)\nimport JsonView from '@uiw/react-json-view';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nimport { getValue } from './jsonParser';\nimport CopiedRenderer from './subcomponents/CopiedRenderer';\nimport ErrorRenderer from './subcomponents/ErrorRenderer';\nimport NullRenderer from './subcomponents/NullRenderer';\n\nimport './theme.css';\n\n/**\n * Handles copying text or object values to clipboard.\n *\n * @param rawValue - The original value to copy (can be an object or primitive)\n * @param onCopy - Optional callback function triggered after copying with the copied value\n *\n * This function:\n * 1. Detects if the value is an object (not null and typeof 'object')\n * 2. Converts objects to JSON strings for clipboard copying\n * 3. Uses setTimeout to write the value to clipboard in the next render cycle\n * - This is necessary because JsonView (CopiedRenderer) normally handles copying itself,\n * but its copied value doesn't follow the same isObject logic\n * - By using setTimeout, we ensure our properly formatted value overwrites any previous copy operation\n * 4. Calls the optional onCopy callback with the copied value if provided\n *\n * Note: The text parameter is kept for API consistency but is not used in the copying process\n */\nconst handleCopy = (rawValue?: unknown, onCopy?: JsonProps['onCopy']) => {\n // determine of copied value is object-like\n let isObject = false;\n try {\n if (rawValue !== NullRenderer && typeof rawValue === 'object') {\n isObject = true;\n }\n } catch (_err) {\n // ignore\n }\n const copyValue = isObject\n ? JSON.stringify(rawValue as string, null, 2)\n : (rawValue as string);\n\n // JsonView (CopiedRenderer) does copy on its own but doesn't handle\n // object serialization correctly. We use setTimeout to overwrite its\n // clipboard value with our properly formatted version in the next tick.\n setTimeout(async () => {\n return navigator.clipboard.writeText(copyValue);\n }, 1);\n\n // if cb provided call it with copyValue\n if (onCopy) {\n onCopy(copyValue);\n }\n};\n\nexport interface JsonProps {\n /** CSS class name */\n className?: string;\n /** When set to true, all nodes will be collapsed by default. Use an integer value to collapse at a particular depth. */\n collapsed?: boolean | number;\n /** Optional custom error renderer */\n errorRenderer?: (error: Error, data: string | object) => ReactNode;\n /** Optional maximum height of the JSON viewer */\n maxHeight?: string | number;\n /** Callback when copy action is performed */\n onCopy?: (copiedValue: string) => void;\n /** Object to be visualized JSON string or object */\n value: string | object;\n}\n\n/**\n * Json renderer based on [react-json-view](https://uiwjs.github.io/react-json-view)\n * with improved error handling, accessibility, and customization options\n */\nconst Json = ({\n className = undefined,\n collapsed = false,\n errorRenderer = undefined,\n maxHeight = undefined,\n onCopy = undefined,\n value,\n}: JsonProps) => {\n const [showDetails, setShowDetails] = useState(false);\n\n let content: ReactNode = null;\n let error: ReactNode = null;\n\n try {\n const parsedValue = getValue(value);\n content = (\n <div\n className=\"relative\"\n style={{ maxHeight, overflowY: maxHeight ? 'auto' : undefined }}\n >\n <JsonView\n className=\"pr-5\"\n collapsed={collapsed}\n displayDataTypes={false}\n value={parsedValue}\n onCopied={(_, rawValue) => {\n handleCopy(rawValue, onCopy);\n }}\n >\n <CopiedRenderer />\n <NullRenderer />\n </JsonView>\n </div>\n );\n } catch (err) {\n const defaultError = (\n <ErrorRenderer\n data={value}\n error={err}\n showDetails={showDetails}\n onToggleDetails={() => {\n setShowDetails(!showDetails);\n }}\n />\n );\n\n error = errorRenderer ? errorRenderer(err as Error, value) : defaultError;\n }\n\n return (\n <div aria-label=\"JSON viewer\" className={cn(className)} role=\"region\">\n {error ?? content}\n </div>\n );\n};\n\nexport default Json;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,MAAM,cAAc,UAAoB,WAAiC;CAEvE,IAAI,WAAW;CACf,IAAI;EACF,IAAI,aAAaA,qBAAAA,WAAgB,OAAO,aAAa,UACnD,WAAW;CAEf,SAAS,MAAM,CAEf;CACA,MAAM,YAAY,WACd,KAAK,UAAU,UAAoB,MAAM,CAAC,IACzC;CAKL,WAAW,YAAY;EACrB,OAAO,UAAU,UAAU,UAAU,SAAS;CAChD,GAAG,CAAC;CAGJ,IAAI,QACF,OAAO,SAAS;AAEpB;;;;;AAqBA,MAAM,QAAQ,EACZ,YAAY,KAAA,GACZ,YAAY,OACZ,gBAAgB,KAAA,GAChB,YAAY,KAAA,GACZ,SAAS,KAAA,GACT,YACe;CACf,MAAM,CAAC,aAAa,mBAAA,GAAA,MAAA,UAA2B,KAAK;CAEpD,IAAI,UAAqB;CACzB,IAAI,QAAmB;CAEvB,IAAI;EACF,MAAM,cAAcC,mBAAAA,SAAS,KAAK;EAClC,UACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;GACE,WAAU;GACV,OAAO;IAAE;IAAW,WAAW,YAAY,SAAS,KAAA;GAAU;aAE9D,iBAAA,GAAA,kBAAA,MAACC,cAAAA,SAAD;IACE,WAAU;IACC;IACX,kBAAkB;IAClB,OAAO;IACP,WAAW,GAAG,aAAa;KACzB,WAAW,UAAU,MAAM;IAC7B;cAPF,CASE,iBAAA,GAAA,kBAAA,KAACC,uBAAAA,SAAD,CAAiB,CAAA,GACjB,iBAAA,GAAA,kBAAA,KAACH,qBAAAA,SAAD,CAAe,CAAA,CACP;;EACP,CAAA;CAET,SAAS,KAAK;EAYZ,QAAQ,gBAAgB,cAAc,KAAc,KAAK,IAAI,iBAAA,GAAA,kBAAA,KAV1DI,sBAAAA,SAAD;GACE,MAAM;GACN,OAAO;GACM;GACb,uBAAuB;IACrB,eAAe,CAAC,WAAW;GAC7B;EACD,CAGqE;CAC1E;CAEA,OACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,cAAW;EAAc,YAAA,GAAA,uBAAA,IAAc,SAAS;EAAG,MAAK;YAC1D,SAAS;CACP,CAAA;AAET"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/Json/Json.d.ts
|
|
4
|
+
interface JsonProps {
|
|
5
|
+
/** CSS class name */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** When set to true, all nodes will be collapsed by default. Use an integer value to collapse at a particular depth. */
|
|
8
|
+
collapsed?: boolean | number;
|
|
9
|
+
/** Optional custom error renderer */
|
|
10
|
+
errorRenderer?: (error: Error, data: string | object) => ReactNode;
|
|
11
|
+
/** Optional maximum height of the JSON viewer */
|
|
12
|
+
maxHeight?: string | number;
|
|
13
|
+
/** Callback when copy action is performed */
|
|
14
|
+
onCopy?: (copiedValue: string) => void;
|
|
15
|
+
/** Object to be visualized JSON string or object */
|
|
16
|
+
value: string | object;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Json renderer based on [react-json-view](https://uiwjs.github.io/react-json-view)
|
|
20
|
+
* with improved error handling, accessibility, and customization options
|
|
21
|
+
*/
|
|
22
|
+
declare const Json: ({
|
|
23
|
+
className,
|
|
24
|
+
collapsed,
|
|
25
|
+
errorRenderer,
|
|
26
|
+
maxHeight,
|
|
27
|
+
onCopy,
|
|
28
|
+
value
|
|
29
|
+
}: JsonProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { Json, JsonProps };
|
|
32
|
+
//# sourceMappingURL=Json.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Json.d.cts","names":[],"sources":["../../src/Json/Json.tsx"],"mappings":";;;UA8DiB,SAAA;EAAA;EAEf,SAAA;;EAEA,SAAA;EAFA;EAIA,aAAA,IAAiB,KAAA,EAAO,KAAA,EAAO,IAAA,sBAA0B,SAAS;EAAlE;EAEA,SAAA;EAFiB;EAIjB,MAAA,IAAU,WAAA;EAJ+C;EAMzD,KAAA;AAAA;;;;AAAK;cAOD,IAAA;EAAQ,SAAA;EAAA,SAAA;EAAA,aAAA;EAAA,SAAA;EAAA,MAAA;EAAA;AAAA,GAOX,SAAA,iCAAS,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/Json/Json.d.ts
|
|
4
|
+
interface JsonProps {
|
|
5
|
+
/** CSS class name */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** When set to true, all nodes will be collapsed by default. Use an integer value to collapse at a particular depth. */
|
|
8
|
+
collapsed?: boolean | number;
|
|
9
|
+
/** Optional custom error renderer */
|
|
10
|
+
errorRenderer?: (error: Error, data: string | object) => ReactNode;
|
|
11
|
+
/** Optional maximum height of the JSON viewer */
|
|
12
|
+
maxHeight?: string | number;
|
|
13
|
+
/** Callback when copy action is performed */
|
|
14
|
+
onCopy?: (copiedValue: string) => void;
|
|
15
|
+
/** Object to be visualized JSON string or object */
|
|
16
|
+
value: string | object;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Json renderer based on [react-json-view](https://uiwjs.github.io/react-json-view)
|
|
20
|
+
* with improved error handling, accessibility, and customization options
|
|
21
|
+
*/
|
|
22
|
+
declare const Json: ({
|
|
23
|
+
className,
|
|
24
|
+
collapsed,
|
|
25
|
+
errorRenderer,
|
|
26
|
+
maxHeight,
|
|
27
|
+
onCopy,
|
|
28
|
+
value
|
|
29
|
+
}: JsonProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { Json, JsonProps };
|
|
32
|
+
//# sourceMappingURL=Json.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Json.d.ts","names":[],"sources":["../../src/Json/Json.tsx"],"mappings":";;;UA8DiB,SAAA;EAAA;EAEf,SAAA;;EAEA,SAAA;EAFA;EAIA,aAAA,IAAiB,KAAA,EAAO,KAAA,EAAO,IAAA,sBAA0B,SAAS;EAAlE;EAEA,SAAA;EAFiB;EAIjB,MAAA,IAAU,WAAA;EAJ+C;EAMzD,KAAA;AAAA;;;;AAAK;cAOD,IAAA;EAAQ,SAAA;EAAA,SAAA;EAAA,aAAA;EAAA,SAAA;EAAA,MAAA;EAAA;AAAA,GAOX,SAAA,iCAAS,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import JsonView from "../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";
|
|
2
|
+
import { getValue } from "./jsonParser.js";
|
|
3
|
+
import CopiedRenderer from "./subcomponents/CopiedRenderer.js";
|
|
4
|
+
import ErrorRenderer from "./subcomponents/ErrorRenderer.js";
|
|
5
|
+
import NullRenderer from "./subcomponents/NullRenderer.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { cn } from "@fuf-stack/pixel-utils";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { useState } from "react";
|
|
10
|
+
//#region src/Json/Json.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Handles copying text or object values to clipboard.
|
|
13
|
+
*
|
|
14
|
+
* @param rawValue - The original value to copy (can be an object or primitive)
|
|
15
|
+
* @param onCopy - Optional callback function triggered after copying with the copied value
|
|
16
|
+
*
|
|
17
|
+
* This function:
|
|
18
|
+
* 1. Detects if the value is an object (not null and typeof 'object')
|
|
19
|
+
* 2. Converts objects to JSON strings for clipboard copying
|
|
20
|
+
* 3. Uses setTimeout to write the value to clipboard in the next render cycle
|
|
21
|
+
* - This is necessary because JsonView (CopiedRenderer) normally handles copying itself,
|
|
22
|
+
* but its copied value doesn't follow the same isObject logic
|
|
23
|
+
* - By using setTimeout, we ensure our properly formatted value overwrites any previous copy operation
|
|
24
|
+
* 4. Calls the optional onCopy callback with the copied value if provided
|
|
25
|
+
*
|
|
26
|
+
* Note: The text parameter is kept for API consistency but is not used in the copying process
|
|
27
|
+
*/
|
|
28
|
+
const handleCopy = (rawValue, onCopy) => {
|
|
29
|
+
let isObject = false;
|
|
30
|
+
try {
|
|
31
|
+
if (rawValue !== NullRenderer && typeof rawValue === "object") isObject = true;
|
|
32
|
+
} catch (_err) {}
|
|
33
|
+
const copyValue = isObject ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
34
|
+
setTimeout(async () => {
|
|
35
|
+
return navigator.clipboard.writeText(copyValue);
|
|
36
|
+
}, 1);
|
|
37
|
+
if (onCopy) onCopy(copyValue);
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Json renderer based on [react-json-view](https://uiwjs.github.io/react-json-view)
|
|
41
|
+
* with improved error handling, accessibility, and customization options
|
|
42
|
+
*/
|
|
43
|
+
const Json = ({ className = void 0, collapsed = false, errorRenderer = void 0, maxHeight = void 0, onCopy = void 0, value }) => {
|
|
44
|
+
const [showDetails, setShowDetails] = useState(false);
|
|
45
|
+
let content = null;
|
|
46
|
+
let error = null;
|
|
47
|
+
try {
|
|
48
|
+
const parsedValue = getValue(value);
|
|
49
|
+
content = /* @__PURE__ */ jsx("div", {
|
|
50
|
+
className: "relative",
|
|
51
|
+
style: {
|
|
52
|
+
maxHeight,
|
|
53
|
+
overflowY: maxHeight ? "auto" : void 0
|
|
54
|
+
},
|
|
55
|
+
children: /* @__PURE__ */ jsxs(JsonView, {
|
|
56
|
+
className: "pr-5",
|
|
57
|
+
collapsed,
|
|
58
|
+
displayDataTypes: false,
|
|
59
|
+
value: parsedValue,
|
|
60
|
+
onCopied: (_, rawValue) => {
|
|
61
|
+
handleCopy(rawValue, onCopy);
|
|
62
|
+
},
|
|
63
|
+
children: [/* @__PURE__ */ jsx(CopiedRenderer, {}), /* @__PURE__ */ jsx(NullRenderer, {})]
|
|
64
|
+
})
|
|
65
|
+
});
|
|
66
|
+
} catch (err) {
|
|
67
|
+
error = errorRenderer ? errorRenderer(err, value) : /* @__PURE__ */ jsx(ErrorRenderer, {
|
|
68
|
+
data: value,
|
|
69
|
+
error: err,
|
|
70
|
+
showDetails,
|
|
71
|
+
onToggleDetails: () => {
|
|
72
|
+
setShowDetails(!showDetails);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return /* @__PURE__ */ jsx("div", {
|
|
77
|
+
"aria-label": "JSON viewer",
|
|
78
|
+
className: cn(className),
|
|
79
|
+
role: "region",
|
|
80
|
+
children: error ?? content
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
//#endregion
|
|
84
|
+
export { Json as default };
|
|
85
|
+
|
|
86
|
+
//# sourceMappingURL=Json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Json.js","names":[],"sources":["../../src/Json/Json.tsx"],"sourcesContent":["/* eslint-disable import-x/no-extraneous-dependencies */\n\nimport type { ReactNode } from 'react';\n\nimport { useState } from 'react';\n\n// INFO: react-json-view is bundled with --dts-resolve for now (dev dep)\nimport JsonView from '@uiw/react-json-view';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nimport { getValue } from './jsonParser';\nimport CopiedRenderer from './subcomponents/CopiedRenderer';\nimport ErrorRenderer from './subcomponents/ErrorRenderer';\nimport NullRenderer from './subcomponents/NullRenderer';\n\nimport './theme.css';\n\n/**\n * Handles copying text or object values to clipboard.\n *\n * @param rawValue - The original value to copy (can be an object or primitive)\n * @param onCopy - Optional callback function triggered after copying with the copied value\n *\n * This function:\n * 1. Detects if the value is an object (not null and typeof 'object')\n * 2. Converts objects to JSON strings for clipboard copying\n * 3. Uses setTimeout to write the value to clipboard in the next render cycle\n * - This is necessary because JsonView (CopiedRenderer) normally handles copying itself,\n * but its copied value doesn't follow the same isObject logic\n * - By using setTimeout, we ensure our properly formatted value overwrites any previous copy operation\n * 4. Calls the optional onCopy callback with the copied value if provided\n *\n * Note: The text parameter is kept for API consistency but is not used in the copying process\n */\nconst handleCopy = (rawValue?: unknown, onCopy?: JsonProps['onCopy']) => {\n // determine of copied value is object-like\n let isObject = false;\n try {\n if (rawValue !== NullRenderer && typeof rawValue === 'object') {\n isObject = true;\n }\n } catch (_err) {\n // ignore\n }\n const copyValue = isObject\n ? JSON.stringify(rawValue as string, null, 2)\n : (rawValue as string);\n\n // JsonView (CopiedRenderer) does copy on its own but doesn't handle\n // object serialization correctly. We use setTimeout to overwrite its\n // clipboard value with our properly formatted version in the next tick.\n setTimeout(async () => {\n return navigator.clipboard.writeText(copyValue);\n }, 1);\n\n // if cb provided call it with copyValue\n if (onCopy) {\n onCopy(copyValue);\n }\n};\n\nexport interface JsonProps {\n /** CSS class name */\n className?: string;\n /** When set to true, all nodes will be collapsed by default. Use an integer value to collapse at a particular depth. */\n collapsed?: boolean | number;\n /** Optional custom error renderer */\n errorRenderer?: (error: Error, data: string | object) => ReactNode;\n /** Optional maximum height of the JSON viewer */\n maxHeight?: string | number;\n /** Callback when copy action is performed */\n onCopy?: (copiedValue: string) => void;\n /** Object to be visualized JSON string or object */\n value: string | object;\n}\n\n/**\n * Json renderer based on [react-json-view](https://uiwjs.github.io/react-json-view)\n * with improved error handling, accessibility, and customization options\n */\nconst Json = ({\n className = undefined,\n collapsed = false,\n errorRenderer = undefined,\n maxHeight = undefined,\n onCopy = undefined,\n value,\n}: JsonProps) => {\n const [showDetails, setShowDetails] = useState(false);\n\n let content: ReactNode = null;\n let error: ReactNode = null;\n\n try {\n const parsedValue = getValue(value);\n content = (\n <div\n className=\"relative\"\n style={{ maxHeight, overflowY: maxHeight ? 'auto' : undefined }}\n >\n <JsonView\n className=\"pr-5\"\n collapsed={collapsed}\n displayDataTypes={false}\n value={parsedValue}\n onCopied={(_, rawValue) => {\n handleCopy(rawValue, onCopy);\n }}\n >\n <CopiedRenderer />\n <NullRenderer />\n </JsonView>\n </div>\n );\n } catch (err) {\n const defaultError = (\n <ErrorRenderer\n data={value}\n error={err}\n showDetails={showDetails}\n onToggleDetails={() => {\n setShowDetails(!showDetails);\n }}\n />\n );\n\n error = errorRenderer ? errorRenderer(err as Error, value) : defaultError;\n }\n\n return (\n <div aria-label=\"JSON viewer\" className={cn(className)} role=\"region\">\n {error ?? content}\n </div>\n );\n};\n\nexport default Json;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,MAAM,cAAc,UAAoB,WAAiC;CAEvE,IAAI,WAAW;CACf,IAAI;EACF,IAAI,aAAa,gBAAgB,OAAO,aAAa,UACnD,WAAW;CAEf,SAAS,MAAM,CAEf;CACA,MAAM,YAAY,WACd,KAAK,UAAU,UAAoB,MAAM,CAAC,IACzC;CAKL,WAAW,YAAY;EACrB,OAAO,UAAU,UAAU,UAAU,SAAS;CAChD,GAAG,CAAC;CAGJ,IAAI,QACF,OAAO,SAAS;AAEpB;;;;;AAqBA,MAAM,QAAQ,EACZ,YAAY,KAAA,GACZ,YAAY,OACZ,gBAAgB,KAAA,GAChB,YAAY,KAAA,GACZ,SAAS,KAAA,GACT,YACe;CACf,MAAM,CAAC,aAAa,kBAAkB,SAAS,KAAK;CAEpD,IAAI,UAAqB;CACzB,IAAI,QAAmB;CAEvB,IAAI;EACF,MAAM,cAAc,SAAS,KAAK;EAClC,UACE,oBAAC,OAAD;GACE,WAAU;GACV,OAAO;IAAE;IAAW,WAAW,YAAY,SAAS,KAAA;GAAU;aAE9D,qBAAC,UAAD;IACE,WAAU;IACC;IACX,kBAAkB;IAClB,OAAO;IACP,WAAW,GAAG,aAAa;KACzB,WAAW,UAAU,MAAM;IAC7B;cAPF,CASE,oBAAC,gBAAD,CAAiB,CAAA,GACjB,oBAAC,cAAD,CAAe,CAAA,CACP;;EACP,CAAA;CAET,SAAS,KAAK;EAYZ,QAAQ,gBAAgB,cAAc,KAAc,KAAK,IAAI,oBAV1D,eAAD;GACE,MAAM;GACN,OAAO;GACM;GACb,uBAAuB;IACrB,eAAe,CAAC,WAAW;GAC7B;EACD,CAGqE;CAC1E;CAEA,OACE,oBAAC,OAAD;EAAK,cAAW;EAAc,WAAW,GAAG,SAAS;EAAG,MAAK;YAC1D,SAAS;CACP,CAAA;AAET"}
|
package/dist/Json/index.cjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
const require_Json = require("./Json.cjs");
|
|
6
|
+
//#region src/Json/index.ts
|
|
7
|
+
var Json_default = require_Json.default;
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.Json = require_Json.default;
|
|
10
|
+
exports.default = Json_default;
|
|
2
11
|
|
|
3
|
-
|
|
4
|
-
var _chunkP7QMPWKScjs = require('../chunk-P7QMPWKS.cjs');
|
|
5
|
-
require('../chunk-FVQDVD3E.cjs');
|
|
6
|
-
require('../chunk-AHEA4IJV.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.Json = _chunkP7QMPWKScjs.Json_default; exports.default = _chunkP7QMPWKScjs.Json_default2;
|
|
11
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Json/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["Json"],"sources":["../../src/Json/index.ts"],"sourcesContent":["import Json from './Json';\n\nexport type { JsonProps } from './Json';\n\nexport { Json };\n\nexport default Json;\n"],"mappings":";;;;;;AAMA,IAAA,eAAeA,aAAAA"}
|
package/dist/Json/index.d.cts
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import 'react/jsx-runtime';
|
|
4
|
-
import 'react';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { Json, Json as default };
|
|
1
|
+
import { Json, JsonProps } from "./Json.cjs";
|
|
2
|
+
export { Json, Json as default, type JsonProps };
|
package/dist/Json/index.d.ts
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import 'react/jsx-runtime';
|
|
4
|
-
import 'react';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { Json, Json as default };
|
|
1
|
+
import { Json, JsonProps } from "./Json.js";
|
|
2
|
+
export { Json, Json as default, type JsonProps };
|
package/dist/Json/index.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
Json_default as Json,
|
|
9
|
-
Json_default2 as default
|
|
10
|
-
};
|
|
1
|
+
import Json from "./Json.js";
|
|
2
|
+
//#region src/Json/index.ts
|
|
3
|
+
var Json_default = Json;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { Json, Json_default as default };
|
|
6
|
+
|
|
11
7
|
//# sourceMappingURL=index.js.map
|
package/dist/Json/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/Json/index.ts"],"sourcesContent":["import Json from './Json';\n\nexport type { JsonProps } from './Json';\n\nexport { Json };\n\nexport default Json;\n"],"mappings":";;AAMA,IAAA,eAAe"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/Json/jsonParser.ts
|
|
2
|
+
var JsonParseError = class extends Error {
|
|
3
|
+
constructor(message) {
|
|
4
|
+
super(message);
|
|
5
|
+
this.name = "JsonParseError";
|
|
6
|
+
}
|
|
7
|
+
};
|
|
8
|
+
const getValue = (value) => {
|
|
9
|
+
if (typeof value === "string") try {
|
|
10
|
+
return JSON.parse(value);
|
|
11
|
+
} catch (error) {
|
|
12
|
+
throw new JsonParseError(`Invalid JSON string: ${error.message}`);
|
|
13
|
+
}
|
|
14
|
+
if (value === null || value === void 0) throw new JsonParseError("Value cannot be null or undefined");
|
|
15
|
+
if (typeof value === "object") return value;
|
|
16
|
+
throw new JsonParseError(`${typeof value} cannot be visualized`);
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.getValue = getValue;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=jsonParser.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonParser.cjs","names":[],"sources":["../../src/Json/jsonParser.ts"],"sourcesContent":["export class JsonParseError extends Error {\n constructor(message: string) {\n super(message);\n this.name = 'JsonParseError';\n }\n}\n\nexport const getValue = (value: string | object): object => {\n if (typeof value === 'string') {\n try {\n return JSON.parse(value);\n } catch (error) {\n throw new JsonParseError(\n `Invalid JSON string: ${(error as Error).message}`,\n );\n }\n }\n if (value === null || value === undefined) {\n throw new JsonParseError('Value cannot be null or undefined');\n }\n if (typeof value === 'object') {\n return value;\n }\n throw new JsonParseError(`${typeof value} cannot be visualized`);\n};\n"],"mappings":";AAAA,IAAa,iBAAb,cAAoC,MAAM;CACxC,YAAY,SAAiB;EAC3B,MAAM,OAAO;EACb,KAAK,OAAO;CACd;AACF;AAEA,MAAa,YAAY,UAAmC;CAC1D,IAAI,OAAO,UAAU,UACnB,IAAI;EACF,OAAO,KAAK,MAAM,KAAK;CACzB,SAAS,OAAO;EACd,MAAM,IAAI,eACR,wBAAyB,MAAgB,SAC3C;CACF;CAEF,IAAI,UAAU,QAAQ,UAAU,KAAA,GAC9B,MAAM,IAAI,eAAe,mCAAmC;CAE9D,IAAI,OAAO,UAAU,UACnB,OAAO;CAET,MAAM,IAAI,eAAe,GAAG,OAAO,MAAM,sBAAsB;AACjE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/Json/jsonParser.ts
|
|
2
|
+
var JsonParseError = class extends Error {
|
|
3
|
+
constructor(message) {
|
|
4
|
+
super(message);
|
|
5
|
+
this.name = "JsonParseError";
|
|
6
|
+
}
|
|
7
|
+
};
|
|
8
|
+
const getValue = (value) => {
|
|
9
|
+
if (typeof value === "string") try {
|
|
10
|
+
return JSON.parse(value);
|
|
11
|
+
} catch (error) {
|
|
12
|
+
throw new JsonParseError(`Invalid JSON string: ${error.message}`);
|
|
13
|
+
}
|
|
14
|
+
if (value === null || value === void 0) throw new JsonParseError("Value cannot be null or undefined");
|
|
15
|
+
if (typeof value === "object") return value;
|
|
16
|
+
throw new JsonParseError(`${typeof value} cannot be visualized`);
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { getValue };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=jsonParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonParser.js","names":[],"sources":["../../src/Json/jsonParser.ts"],"sourcesContent":["export class JsonParseError extends Error {\n constructor(message: string) {\n super(message);\n this.name = 'JsonParseError';\n }\n}\n\nexport const getValue = (value: string | object): object => {\n if (typeof value === 'string') {\n try {\n return JSON.parse(value);\n } catch (error) {\n throw new JsonParseError(\n `Invalid JSON string: ${(error as Error).message}`,\n );\n }\n }\n if (value === null || value === undefined) {\n throw new JsonParseError('Value cannot be null or undefined');\n }\n if (typeof value === 'object') {\n return value;\n }\n throw new JsonParseError(`${typeof value} cannot be visualized`);\n};\n"],"mappings":";AAAA,IAAa,iBAAb,cAAoC,MAAM;CACxC,YAAY,SAAiB;EAC3B,MAAM,OAAO;EACb,KAAK,OAAO;CACd;AACF;AAEA,MAAa,YAAY,UAAmC;CAC1D,IAAI,OAAO,UAAU,UACnB,IAAI;EACF,OAAO,KAAK,MAAM,KAAK;CACzB,SAAS,OAAO;EACd,MAAM,IAAI,eACR,wBAAyB,MAAgB,SAC3C;CACF;CAEF,IAAI,UAAU,QAAQ,UAAU,KAAA,GAC9B,MAAM,IAAI,eAAe,mCAAmC;CAE9D,IAAI,OAAO,UAAU,UACnB,OAAO;CAET,MAAM,IAAI,eAAe,GAAG,OAAO,MAAM,sBAAsB;AACjE"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_index = require("../../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");
|
|
3
|
+
let _fuf_stack_pixel_utils = require("@fuf-stack/pixel-utils");
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
let react_icons_hi = require("react-icons/hi");
|
|
6
|
+
//#region src/Json/subcomponents/CopiedRenderer.tsx
|
|
7
|
+
/**
|
|
8
|
+
* A custom renderer for the JsonView's copy functionality that provides an accessible
|
|
9
|
+
* and interactive copy button with visual feedback.
|
|
10
|
+
*
|
|
11
|
+
* This component overrides the default copy button implementation from @uiw/react-json-view
|
|
12
|
+
* to fix flickering issues and improve accessibility. It renders a button that:
|
|
13
|
+
* - Shows different icons for copied/not copied states
|
|
14
|
+
* - Supports keyboard navigation
|
|
15
|
+
* - Provides proper ARIA labels
|
|
16
|
+
* - Maintains consistent positioning
|
|
17
|
+
*
|
|
18
|
+
* @returns A JsonView.Copied component with custom render implementation
|
|
19
|
+
*/
|
|
20
|
+
const CopiedRenderer = () => {
|
|
21
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.default.Copied, { render: (props) => {
|
|
22
|
+
const { style, onClick, className } = props;
|
|
23
|
+
const isCopied = props["data-copied"];
|
|
24
|
+
const elmClasses = (0, _fuf_stack_pixel_utils.cn)(className, "fill-transparent! absolute -right-4 -top-[2px] h-4 w-4 pl-1", { "text-success": isCopied });
|
|
25
|
+
const handleKeyDown = (e) => {
|
|
26
|
+
if (e.key === "Enter" || e.key === " ") onClick?.(e);
|
|
27
|
+
};
|
|
28
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
29
|
+
"aria-label": isCopied ? "Copied to clipboard" : "Copy to clipboard",
|
|
30
|
+
className: "ml-0! h-[1em]! w-0! relative",
|
|
31
|
+
"data-testid": "copy-button",
|
|
32
|
+
onKeyDown: handleKeyDown,
|
|
33
|
+
role: "button",
|
|
34
|
+
style,
|
|
35
|
+
tabIndex: 0,
|
|
36
|
+
onClick: (e) => {
|
|
37
|
+
return onClick?.(e);
|
|
38
|
+
},
|
|
39
|
+
children: isCopied ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_icons_hi.HiOutlineClipboardCheck, { className: elmClasses }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_icons_hi.HiOutlineClipboard, { className: elmClasses })
|
|
40
|
+
});
|
|
41
|
+
} });
|
|
42
|
+
};
|
|
43
|
+
//#endregion
|
|
44
|
+
exports.default = CopiedRenderer;
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=CopiedRenderer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopiedRenderer.cjs","names":["JsonView","HiOutlineClipboardCheck","HiOutlineClipboard"],"sources":["../../../src/Json/subcomponents/CopiedRenderer.tsx"],"sourcesContent":["/* eslint-disable import-x/no-extraneous-dependencies */\n\nimport type { KeyboardEvent, MouseEvent } from 'react';\n\nimport { HiOutlineClipboard, HiOutlineClipboardCheck } from 'react-icons/hi';\n\n// INFO: react-json-view is bundled with --dts-resolve for now (dev dep)\nimport JsonView from '@uiw/react-json-view';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\n/**\n * A custom renderer for the JsonView's copy functionality that provides an accessible\n * and interactive copy button with visual feedback.\n *\n * This component overrides the default copy button implementation from @uiw/react-json-view\n * to fix flickering issues and improve accessibility. It renders a button that:\n * - Shows different icons for copied/not copied states\n * - Supports keyboard navigation\n * - Provides proper ARIA labels\n * - Maintains consistent positioning\n *\n * @returns A JsonView.Copied component with custom render implementation\n */\nconst CopiedRenderer = () => {\n return (\n <JsonView.Copied\n render={(props) => {\n const { style, onClick, className } = props;\n\n // @ts-expect-error this is ok\n\n const isCopied = props['data-copied'] as boolean;\n\n const elmClasses = cn(\n className,\n 'fill-transparent! absolute -right-4 -top-[2px] h-4 w-4 pl-1',\n { 'text-success': isCopied },\n );\n\n const handleKeyDown = (e: KeyboardEvent<HTMLSpanElement>) => {\n if (e.key === 'Enter' || e.key === ' ') {\n onClick?.(e as unknown as MouseEvent<SVGSVGElement>);\n }\n };\n\n return (\n <span\n aria-label={isCopied ? 'Copied to clipboard' : 'Copy to clipboard'}\n className=\"ml-0! h-[1em]! w-0! relative\"\n data-testid=\"copy-button\"\n onKeyDown={handleKeyDown}\n role=\"button\"\n style={style}\n tabIndex={0}\n onClick={(e) => {\n return onClick?.(e as unknown as MouseEvent<SVGSVGElement>);\n }}\n >\n {isCopied ? (\n <HiOutlineClipboardCheck className={elmClasses} />\n ) : (\n <HiOutlineClipboard className={elmClasses} />\n )}\n </span>\n );\n }}\n />\n );\n};\n\nexport default CopiedRenderer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAwBA,MAAM,uBAAuB;CAC3B,OACE,iBAAA,GAAA,kBAAA,KAACA,cAAAA,QAAS,QAAV,EACE,SAAS,UAAU;EACjB,MAAM,EAAE,OAAO,SAAS,cAAc;EAItC,MAAM,WAAW,MAAM;EAEvB,MAAM,cAAA,GAAA,uBAAA,IACJ,WACA,+DACA,EAAE,gBAAgB,SAAS,CAC7B;EAEA,MAAM,iBAAiB,MAAsC;GAC3D,IAAI,EAAE,QAAQ,WAAW,EAAE,QAAQ,KACjC,UAAU,CAAyC;EAEvD;EAEA,OACE,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,cAAY,WAAW,wBAAwB;GAC/C,WAAU;GACV,eAAY;GACZ,WAAW;GACX,MAAK;GACE;GACP,UAAU;GACV,UAAU,MAAM;IACd,OAAO,UAAU,CAAyC;GAC5D;aAEC,WACC,iBAAA,GAAA,kBAAA,KAACC,eAAAA,yBAAD,EAAyB,WAAW,WAAa,CAAA,IAEjD,iBAAA,GAAA,kBAAA,KAACC,eAAAA,oBAAD,EAAoB,WAAW,WAAa,CAAA;EAE1C,CAAA;CAEV,EACD,CAAA;AAEL"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import JsonView from "../../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";
|
|
2
|
+
import { cn } from "@fuf-stack/pixel-utils";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { HiOutlineClipboard, HiOutlineClipboardCheck } from "react-icons/hi";
|
|
5
|
+
//#region src/Json/subcomponents/CopiedRenderer.tsx
|
|
6
|
+
/**
|
|
7
|
+
* A custom renderer for the JsonView's copy functionality that provides an accessible
|
|
8
|
+
* and interactive copy button with visual feedback.
|
|
9
|
+
*
|
|
10
|
+
* This component overrides the default copy button implementation from @uiw/react-json-view
|
|
11
|
+
* to fix flickering issues and improve accessibility. It renders a button that:
|
|
12
|
+
* - Shows different icons for copied/not copied states
|
|
13
|
+
* - Supports keyboard navigation
|
|
14
|
+
* - Provides proper ARIA labels
|
|
15
|
+
* - Maintains consistent positioning
|
|
16
|
+
*
|
|
17
|
+
* @returns A JsonView.Copied component with custom render implementation
|
|
18
|
+
*/
|
|
19
|
+
const CopiedRenderer = () => {
|
|
20
|
+
return /* @__PURE__ */ jsx(JsonView.Copied, { render: (props) => {
|
|
21
|
+
const { style, onClick, className } = props;
|
|
22
|
+
const isCopied = props["data-copied"];
|
|
23
|
+
const elmClasses = cn(className, "fill-transparent! absolute -right-4 -top-[2px] h-4 w-4 pl-1", { "text-success": isCopied });
|
|
24
|
+
const handleKeyDown = (e) => {
|
|
25
|
+
if (e.key === "Enter" || e.key === " ") onClick?.(e);
|
|
26
|
+
};
|
|
27
|
+
return /* @__PURE__ */ jsx("span", {
|
|
28
|
+
"aria-label": isCopied ? "Copied to clipboard" : "Copy to clipboard",
|
|
29
|
+
className: "ml-0! h-[1em]! w-0! relative",
|
|
30
|
+
"data-testid": "copy-button",
|
|
31
|
+
onKeyDown: handleKeyDown,
|
|
32
|
+
role: "button",
|
|
33
|
+
style,
|
|
34
|
+
tabIndex: 0,
|
|
35
|
+
onClick: (e) => {
|
|
36
|
+
return onClick?.(e);
|
|
37
|
+
},
|
|
38
|
+
children: isCopied ? /* @__PURE__ */ jsx(HiOutlineClipboardCheck, { className: elmClasses }) : /* @__PURE__ */ jsx(HiOutlineClipboard, { className: elmClasses })
|
|
39
|
+
});
|
|
40
|
+
} });
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { CopiedRenderer as default };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=CopiedRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopiedRenderer.js","names":[],"sources":["../../../src/Json/subcomponents/CopiedRenderer.tsx"],"sourcesContent":["/* eslint-disable import-x/no-extraneous-dependencies */\n\nimport type { KeyboardEvent, MouseEvent } from 'react';\n\nimport { HiOutlineClipboard, HiOutlineClipboardCheck } from 'react-icons/hi';\n\n// INFO: react-json-view is bundled with --dts-resolve for now (dev dep)\nimport JsonView from '@uiw/react-json-view';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\n/**\n * A custom renderer for the JsonView's copy functionality that provides an accessible\n * and interactive copy button with visual feedback.\n *\n * This component overrides the default copy button implementation from @uiw/react-json-view\n * to fix flickering issues and improve accessibility. It renders a button that:\n * - Shows different icons for copied/not copied states\n * - Supports keyboard navigation\n * - Provides proper ARIA labels\n * - Maintains consistent positioning\n *\n * @returns A JsonView.Copied component with custom render implementation\n */\nconst CopiedRenderer = () => {\n return (\n <JsonView.Copied\n render={(props) => {\n const { style, onClick, className } = props;\n\n // @ts-expect-error this is ok\n\n const isCopied = props['data-copied'] as boolean;\n\n const elmClasses = cn(\n className,\n 'fill-transparent! absolute -right-4 -top-[2px] h-4 w-4 pl-1',\n { 'text-success': isCopied },\n );\n\n const handleKeyDown = (e: KeyboardEvent<HTMLSpanElement>) => {\n if (e.key === 'Enter' || e.key === ' ') {\n onClick?.(e as unknown as MouseEvent<SVGSVGElement>);\n }\n };\n\n return (\n <span\n aria-label={isCopied ? 'Copied to clipboard' : 'Copy to clipboard'}\n className=\"ml-0! h-[1em]! w-0! relative\"\n data-testid=\"copy-button\"\n onKeyDown={handleKeyDown}\n role=\"button\"\n style={style}\n tabIndex={0}\n onClick={(e) => {\n return onClick?.(e as unknown as MouseEvent<SVGSVGElement>);\n }}\n >\n {isCopied ? (\n <HiOutlineClipboardCheck className={elmClasses} />\n ) : (\n <HiOutlineClipboard className={elmClasses} />\n )}\n </span>\n );\n }}\n />\n );\n};\n\nexport default CopiedRenderer;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAwBA,MAAM,uBAAuB;CAC3B,OACE,oBAAC,SAAS,QAAV,EACE,SAAS,UAAU;EACjB,MAAM,EAAE,OAAO,SAAS,cAAc;EAItC,MAAM,WAAW,MAAM;EAEvB,MAAM,aAAa,GACjB,WACA,+DACA,EAAE,gBAAgB,SAAS,CAC7B;EAEA,MAAM,iBAAiB,MAAsC;GAC3D,IAAI,EAAE,QAAQ,WAAW,EAAE,QAAQ,KACjC,UAAU,CAAyC;EAEvD;EAEA,OACE,oBAAC,QAAD;GACE,cAAY,WAAW,wBAAwB;GAC/C,WAAU;GACV,eAAY;GACZ,WAAW;GACX,MAAK;GACE;GACP,UAAU;GACV,UAAU,MAAM;IACd,OAAO,UAAU,CAAyC;GAC5D;aAEC,WACC,oBAAC,yBAAD,EAAyB,WAAW,WAAa,CAAA,IAEjD,oBAAC,oBAAD,EAAoB,WAAW,WAAa,CAAA;EAE1C,CAAA;CAEV,EACD,CAAA;AAEL"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_Button = require("../../Button/Button.cjs");
|
|
3
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
+
let react_icons_fa = require("react-icons/fa");
|
|
5
|
+
//#region src/Json/subcomponents/ErrorRenderer.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Displays JSON parsing or processing errors in a user-friendly format with expandable details.
|
|
8
|
+
*
|
|
9
|
+
* This component provides a consistent error display with:
|
|
10
|
+
* - A prominent error message
|
|
11
|
+
* - Expandable details section
|
|
12
|
+
* - Original data preview
|
|
13
|
+
* - Accessibility support via ARIA attributes
|
|
14
|
+
*/
|
|
15
|
+
const ErrorRenderer = ({ error, data, showDetails, onToggleDetails }) => {
|
|
16
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
17
|
+
"aria-live": "polite",
|
|
18
|
+
className: "mb-4 flex flex-col items-center rounded-lg border border-danger bg-danger-50 p-4 text-sm text-danger",
|
|
19
|
+
role: "alert",
|
|
20
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
21
|
+
className: "flex w-full justify-between gap-6",
|
|
22
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
23
|
+
className: "flex items-center",
|
|
24
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_icons_fa.FaTimesCircle, {
|
|
25
|
+
"aria-hidden": "true",
|
|
26
|
+
className: "mr-2"
|
|
27
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
28
|
+
className: "font-medium",
|
|
29
|
+
children: "Failed to parse JSON data"
|
|
30
|
+
})]
|
|
31
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Button.default, {
|
|
32
|
+
"aria-controls": "error-details",
|
|
33
|
+
"aria-expanded": showDetails,
|
|
34
|
+
color: "danger",
|
|
35
|
+
onClick: onToggleDetails,
|
|
36
|
+
size: "sm",
|
|
37
|
+
variant: "light",
|
|
38
|
+
children: showDetails ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_icons_fa.FaChevronUp, { "aria-hidden": "true" }), " Hide Details"] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_icons_fa.FaChevronDown, { "aria-hidden": "true" }), " Show Details"] })
|
|
39
|
+
})]
|
|
40
|
+
}), showDetails ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
41
|
+
className: "mt-4 w-full text-left",
|
|
42
|
+
id: "error-details",
|
|
43
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: "Error:" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", { children: error instanceof Error ? `${error.name}: ${error.message}` : "Unknown error" })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
44
|
+
className: "mt-4",
|
|
45
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: "Data:" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", { children: typeof data !== "string" ? JSON.stringify(data, null, 2) : data })]
|
|
46
|
+
})]
|
|
47
|
+
}) : null]
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
//#endregion
|
|
51
|
+
exports.default = ErrorRenderer;
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=ErrorRenderer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorRenderer.cjs","names":["FaTimesCircle","Button","FaChevronUp","FaChevronDown"],"sources":["../../../src/Json/subcomponents/ErrorRenderer.tsx"],"sourcesContent":["import { FaChevronDown, FaChevronUp, FaTimesCircle } from 'react-icons/fa';\n\nimport { Button } from '../../Button';\n\ninterface ErrorRendererProps {\n /** The error that occurred during JSON parsing or processing */\n error: unknown;\n /** The original data that caused the error */\n data: string | object;\n /** Controls whether detailed error information is visible */\n showDetails: boolean;\n /** Callback function to toggle the visibility of error details */\n onToggleDetails: () => void;\n}\n\n/**\n * Displays JSON parsing or processing errors in a user-friendly format with expandable details.\n *\n * This component provides a consistent error display with:\n * - A prominent error message\n * - Expandable details section\n * - Original data preview\n * - Accessibility support via ARIA attributes\n */\nconst ErrorRenderer = ({\n error,\n data,\n showDetails,\n onToggleDetails,\n}: ErrorRendererProps) => {\n return (\n <div\n aria-live=\"polite\"\n className=\"mb-4 flex flex-col items-center rounded-lg border border-danger bg-danger-50 p-4 text-sm text-danger\"\n role=\"alert\"\n >\n <div className=\"flex w-full justify-between gap-6\">\n <div className=\"flex items-center\">\n <FaTimesCircle aria-hidden=\"true\" className=\"mr-2\" />\n <span className=\"font-medium\">Failed to parse JSON data</span>\n </div>\n <Button\n aria-controls=\"error-details\"\n aria-expanded={showDetails}\n color=\"danger\"\n onClick={onToggleDetails}\n size=\"sm\"\n variant=\"light\"\n >\n {showDetails ? (\n <>\n <FaChevronUp aria-hidden=\"true\" /> Hide Details\n </>\n ) : (\n <>\n <FaChevronDown aria-hidden=\"true\" /> Show Details\n </>\n )}\n </Button>\n </div>\n {showDetails ? (\n <div className=\"mt-4 w-full text-left\" id=\"error-details\">\n <div>\n <strong>Error:</strong>\n <pre>\n {error instanceof Error\n ? `${error.name}: ${error.message}`\n : 'Unknown error'}\n </pre>\n </div>\n <div className=\"mt-4\">\n <strong>Data:</strong>\n <pre>\n {typeof data !== 'string' ? JSON.stringify(data, null, 2) : data}\n </pre>\n </div>\n </div>\n ) : null}\n </div>\n );\n};\n\nexport default ErrorRenderer;\n"],"mappings":";;;;;;;;;;;;;;AAwBA,MAAM,iBAAiB,EACrB,OACA,MACA,aACA,sBACwB;CACxB,OACE,iBAAA,GAAA,kBAAA,MAAC,OAAD;EACE,aAAU;EACV,WAAU;EACV,MAAK;YAHP,CAKE,iBAAA,GAAA,kBAAA,MAAC,OAAD;GAAK,WAAU;aAAf,CACE,iBAAA,GAAA,kBAAA,MAAC,OAAD;IAAK,WAAU;cAAf,CACE,iBAAA,GAAA,kBAAA,KAACA,eAAAA,eAAD;KAAe,eAAY;KAAO,WAAU;IAAQ,CAAA,GACpD,iBAAA,GAAA,kBAAA,KAAC,QAAD;KAAM,WAAU;eAAc;IAA+B,CAAA,CAC1D;OACL,iBAAA,GAAA,kBAAA,KAACC,eAAAA,SAAD;IACE,iBAAc;IACd,iBAAe;IACf,OAAM;IACN,SAAS;IACT,MAAK;IACL,SAAQ;cAEP,cACC,iBAAA,GAAA,kBAAA,MAAA,kBAAA,UAAA,EAAA,UAAA,CACE,iBAAA,GAAA,kBAAA,KAACC,eAAAA,aAAD,EAAa,eAAY,OAAQ,CAAA,GAAC,eAClC,EAAA,CAAA,IAEF,iBAAA,GAAA,kBAAA,MAAA,kBAAA,UAAA,EAAA,UAAA,CACE,iBAAA,GAAA,kBAAA,KAACC,eAAAA,eAAD,EAAe,eAAY,OAAQ,CAAA,GAAC,eACpC,EAAA,CAAA;GAEE,CAAA,CACL;MACJ,cACC,iBAAA,GAAA,kBAAA,MAAC,OAAD;GAAK,WAAU;GAAwB,IAAG;aAA1C,CACE,iBAAA,GAAA,kBAAA,MAAC,OAAD,EAAA,UAAA,CACE,iBAAA,GAAA,kBAAA,KAAC,UAAD,EAAA,UAAQ,SAAc,CAAA,GACtB,iBAAA,GAAA,kBAAA,KAAC,OAAD,EAAA,UACG,iBAAiB,QACd,GAAG,MAAM,KAAK,IAAI,MAAM,YACxB,gBACD,CAAA,CACF,EAAA,CAAA,GACL,iBAAA,GAAA,kBAAA,MAAC,OAAD;IAAK,WAAU;cAAf,CACE,iBAAA,GAAA,kBAAA,KAAC,UAAD,EAAA,UAAQ,QAAa,CAAA,GACrB,iBAAA,GAAA,kBAAA,KAAC,OAAD,EAAA,UACG,OAAO,SAAS,WAAW,KAAK,UAAU,MAAM,MAAM,CAAC,IAAI,KACzD,CAAA,CACF;KACF;OACH,IACD;;AAET"}
|