@btst/stack 1.1.1 → 1.1.3
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/README.md +1 -1
- package/dist/client/components/index.cjs +2 -2
- package/dist/client/components/index.mjs +2 -2
- package/dist/client/index.cjs +3 -3
- package/dist/client/index.mjs +3 -3
- package/dist/context/index.cjs +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +825 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +814 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +763 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +751 -0
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +375 -0
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +350 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +160 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +182 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +161 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +137 -0
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.cjs +8 -0
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.mjs +6 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.cjs +13 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.mjs +11 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@1_9e04309f365863673e44407648bb0cb6/node_modules/@radix-ui/react-arrow/dist/index.cjs +42 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@1_9e04309f365863673e44407648bb0cb6/node_modules/@radix-ui/react-arrow/dist/index.mjs +25 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_re_6d7c277722b3619c9ee7e64e9a822c45/node_modules/@radix-ui/react-collection/dist/index.cjs +77 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_re_6d7c277722b3619c9ee7e64e9a822c45/node_modules/@radix-ui/react-collection/dist/index.mjs +71 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +56 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +39 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.cjs +79 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.mjs +63 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-direction/dist/index.cjs +27 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-direction/dist/index.mjs +11 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.2_@types_react@19.2.2__@_ca5522e5d45d4722cb9eb5ce53defa61/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +229 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.2_@types_react@19.2.2__@_ca5522e5d45d4722cb9eb5ce53defa61/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +212 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +46 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +30 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_r_93de389b3f622f9f764acc8e59ec80c0/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +224 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_r_93de389b3f622f9f764acc8e59ec80c0/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +208 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.cjs +31 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.mjs +15 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.8_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_d6285b8269ea5d6b59b300f5be279a0c/node_modules/@radix-ui/react-popper/dist/index.cjs +308 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.8_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_d6285b8269ea5d6b59b300f5be279a0c/node_modules/@radix-ui/react-popper/dist/index.mjs +284 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_478b3d5dd4afab1a3dcce7ed1748cb95/node_modules/@radix-ui/react-portal/dist/index.cjs +37 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_478b3d5dd4afab1a3dcce7ed1748cb95/node_modules/@radix-ui/react-portal/dist/index.mjs +18 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.2_@types_react@19.2.2__@types_rea_bdc15f10281778271ffcbe8dd3cd491e/node_modules/@radix-ui/react-primitive/dist/index.cjs +61 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.2_@types_react@19.2.2__@types_rea_bdc15f10281778271ffcbe8dd3cd491e/node_modules/@radix-ui/react-primitive/dist/index.mjs +43 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-select@2.2.6_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_802c3d414c85063bee785fcc98a39c07/node_modules/@radix-ui/react-select/dist/index.cjs +1198 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-select@2.2.6_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_802c3d414c85063bee785fcc98a39c07/node_modules/@radix-ui/react-select/dist/index.mjs +1154 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +28 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +12 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +86 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +70 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +34 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +18 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +23 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +7 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.cjs +31 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.mjs +15 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.cjs +56 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.mjs +40 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.2_@types_react@19.2.2__@typ_a84e98a44624c31e835a98d4b8b0c30d/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +51 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.2_@types_react@19.2.2__@typ_a84e98a44624c31e835a98d4b8b0c30d/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +34 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs +139 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.mjs +137 -0
- package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.0/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs +39 -0
- package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.0/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.mjs +37 -0
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +43 -0
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.mjs +38 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1671 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.mjs +1669 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs +10 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.mjs +8 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +74 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs +56 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +15 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs +10 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +34 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs +31 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +25 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.mjs +9 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +178 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs +160 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.cjs +54 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.mjs +38 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +23 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs +21 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +113 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +110 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.cjs +7 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.mjs +5 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +9 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs +7 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.cjs +21 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.mjs +19 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.cjs +41 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.mjs +25 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.cjs +53 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.mjs +51 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +59 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs +56 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +26 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.mjs +24 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +64 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs +48 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.cjs +44 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.mjs +42 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.cjs +37 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.mjs +21 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.cjs +79 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.mjs +77 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/image-field.cjs +3 -3
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/image-field.mjs +3 -3
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/post-forms.cjs +5 -5
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/post-forms.mjs +5 -5
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/tags-multiselect.cjs +2 -6
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/tags-multiselect.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/form-page-skeleton.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/form-page-skeleton.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/list-page-skeleton.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/list-page-skeleton.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/page-header-skeleton.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/page-header-skeleton.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-card-skeleton.cjs +2 -2
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-card-skeleton.mjs +2 -2
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-page-skeleton.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-page-skeleton.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.internal.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.internal.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/empty-list.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/empty-list.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/on-this-page.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/on-this-page.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-card.cjs +2 -2
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-card.mjs +2 -2
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-navigation.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-navigation.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/posts-list.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/posts-list.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/recent-posts-carousel.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/recent-posts-carousel.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-modal.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-modal.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/tags-list.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/tags-list.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/blog-hooks.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/blog-hooks.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/plugin.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/plugin.mjs +1 -1
- package/dist/packages/ui/src/components/badge.cjs +42 -0
- package/dist/packages/ui/src/components/badge.mjs +39 -0
- package/dist/packages/ui/src/components/button.cjs +54 -0
- package/dist/packages/ui/src/components/button.mjs +51 -0
- package/dist/packages/ui/src/components/card.cjs +67 -0
- package/dist/packages/ui/src/components/card.mjs +61 -0
- package/dist/packages/ui/src/components/carousel.cjs +215 -0
- package/dist/packages/ui/src/components/carousel.mjs +195 -0
- package/dist/packages/ui/src/components/command.cjs +142 -0
- package/dist/packages/ui/src/components/command.mjs +134 -0
- package/dist/packages/ui/src/components/dialog.cjs +127 -0
- package/dist/packages/ui/src/components/dialog.mjs +105 -0
- package/dist/packages/ui/src/components/empty.cjs +76 -0
- package/dist/packages/ui/src/components/empty.mjs +71 -0
- package/dist/packages/ui/src/components/form.cjs +133 -0
- package/dist/packages/ui/src/components/form.mjs +110 -0
- package/dist/packages/ui/src/components/input.cjs +23 -0
- package/dist/packages/ui/src/components/input.mjs +21 -0
- package/dist/packages/ui/src/components/label.cjs +39 -0
- package/dist/packages/ui/src/components/label.mjs +23 -0
- package/dist/packages/ui/src/components/multi-select.cjs +555 -0
- package/dist/packages/ui/src/components/multi-select.mjs +540 -0
- package/dist/packages/ui/src/components/select.cjs +140 -0
- package/dist/packages/ui/src/components/select.mjs +132 -0
- package/dist/packages/ui/src/components/skeleton.cjs +17 -0
- package/dist/packages/ui/src/components/skeleton.mjs +15 -0
- package/dist/packages/ui/src/components/switch.cjs +48 -0
- package/dist/packages/ui/src/components/switch.mjs +32 -0
- package/dist/packages/ui/src/components/textarea.cjs +20 -0
- package/dist/packages/ui/src/components/textarea.mjs +18 -0
- package/dist/packages/ui/src/hooks/use-debounce.cjs +18 -0
- package/dist/packages/ui/src/hooks/use-debounce.mjs +16 -0
- package/dist/packages/ui/src/lib/utils.cjs +10 -0
- package/dist/packages/ui/src/lib/utils.mjs +8 -0
- package/dist/plugins/blog/api/index.cjs +1 -1
- package/dist/plugins/blog/api/index.mjs +1 -1
- package/dist/plugins/blog/client/components/index.cjs +4 -4
- package/dist/plugins/blog/client/components/index.mjs +4 -4
- package/dist/plugins/blog/client/hooks/index.cjs +1 -1
- package/dist/plugins/blog/client/hooks/index.mjs +1 -1
- package/dist/plugins/blog/client/index.cjs +1 -1
- package/dist/plugins/blog/client/index.d.cts +164 -177
- package/dist/plugins/blog/client/index.d.mts +164 -177
- package/dist/plugins/blog/client/index.d.ts +164 -177
- package/dist/plugins/blog/client/index.mjs +1 -1
- package/dist/plugins/client/index.cjs +1 -1
- package/dist/plugins/client/index.d.cts +8 -5
- package/dist/plugins/client/index.d.mts +8 -5
- package/dist/plugins/client/index.d.ts +8 -5
- package/dist/plugins/client/index.mjs +1 -1
- package/package.json +5 -5
- package/src/plugins/client/index.ts +14 -6
- /package/dist/{client → packages/better-stack/src/client}/components/compose.cjs +0 -0
- /package/dist/{client → packages/better-stack/src/client}/components/compose.mjs +0 -0
- /package/dist/{client → packages/better-stack/src/client}/components/error-boundary.cjs +0 -0
- /package/dist/{client → packages/better-stack/src/client}/components/error-boundary.mjs +0 -0
- /package/dist/{client → packages/better-stack/src/client}/meta-utils.cjs +0 -0
- /package/dist/{client → packages/better-stack/src/client}/meta-utils.mjs +0 -0
- /package/dist/{client → packages/better-stack/src/client}/path-utils.cjs +0 -0
- /package/dist/{client → packages/better-stack/src/client}/path-utils.mjs +0 -0
- /package/dist/{client → packages/better-stack/src/client}/sitemap-utils.cjs +0 -0
- /package/dist/{client → packages/better-stack/src/client}/sitemap-utils.mjs +0 -0
- /package/dist/{context → packages/better-stack/src/context}/provider.cjs +0 -0
- /package/dist/{context → packages/better-stack/src/context}/provider.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/api/plugin.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/api/plugin.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/markdown-editor.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/markdown-editor.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/index.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/index.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/404-page.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/404-page.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.internal.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.internal.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.internal.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.internal.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.internal.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.internal.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.internal.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.internal.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/better-blog-attribution.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/better-blog-attribution.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/default-error.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/default-error.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/defaults.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/defaults.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/error-placeholder.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/error-placeholder.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/highlight-text.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/highlight-text.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/markdown-content.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/markdown-content.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-header.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-header.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-layout.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-layout.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-wrapper.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-wrapper.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-input.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-input.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/use-route-lifecycle.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/use-route-lifecycle.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/use-debounce.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/use-debounce.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-card.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-card.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-common.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-common.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-forms.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-forms.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-list.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-list.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-post.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-post.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/index.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/index.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/db.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/db.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/schemas.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/schemas.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/utils.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/blog/utils.mjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/utils.cjs +0 -0
- /package/dist/{plugins → packages/better-stack/src/plugins}/utils.mjs +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/******************************************************************************
|
|
4
|
+
Copyright (c) Microsoft Corporation.
|
|
5
|
+
|
|
6
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
7
|
+
purpose with or without fee is hereby granted.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
16
|
+
***************************************************************************** */
|
|
17
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.__assign = function() {
|
|
21
|
+
exports.__assign = Object.assign || function __assign(t) {
|
|
22
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
23
|
+
s = arguments[i];
|
|
24
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
return exports.__assign.apply(this, arguments);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
function __rest(s, e) {
|
|
32
|
+
var t = {};
|
|
33
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
34
|
+
t[p] = s[p];
|
|
35
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
36
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
37
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
38
|
+
t[p[i]] = s[p[i]];
|
|
39
|
+
}
|
|
40
|
+
return t;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function __spreadArray(to, from, pack) {
|
|
44
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
45
|
+
if (ar || !(i in from)) {
|
|
46
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
47
|
+
ar[i] = from[i];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
54
|
+
var e = new Error(message);
|
|
55
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
exports.__rest = __rest;
|
|
59
|
+
exports.__spreadArray = __spreadArray;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var __assign = function() {
|
|
19
|
+
__assign = Object.assign || function __assign(t) {
|
|
20
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
21
|
+
s = arguments[i];
|
|
22
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
function __rest(s, e) {
|
|
30
|
+
var t = {};
|
|
31
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
32
|
+
t[p] = s[p];
|
|
33
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
34
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
35
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
36
|
+
t[p[i]] = s[p[i]];
|
|
37
|
+
}
|
|
38
|
+
return t;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function __spreadArray(to, from, pack) {
|
|
42
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
43
|
+
if (ar || !(i in from)) {
|
|
44
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
45
|
+
ar[i] = from[i];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
52
|
+
var e = new Error(message);
|
|
53
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export { __assign, __rest, __spreadArray };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Assigns a value for a given ref, no matter of the ref format
|
|
5
|
+
* @param {RefObject} ref - a callback function or ref object
|
|
6
|
+
* @param value - a new value
|
|
7
|
+
*
|
|
8
|
+
* @see https://github.com/theKashey/use-callback-ref#assignref
|
|
9
|
+
* @example
|
|
10
|
+
* const refObject = useRef();
|
|
11
|
+
* const refFn = (ref) => {....}
|
|
12
|
+
*
|
|
13
|
+
* assignRef(refObject, "refValue");
|
|
14
|
+
* assignRef(refFn, "refValue");
|
|
15
|
+
*/
|
|
16
|
+
function assignRef(ref, value) {
|
|
17
|
+
if (typeof ref === 'function') {
|
|
18
|
+
ref(value);
|
|
19
|
+
}
|
|
20
|
+
else if (ref) {
|
|
21
|
+
ref.current = value;
|
|
22
|
+
}
|
|
23
|
+
return ref;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.assignRef = assignRef;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assigns a value for a given ref, no matter of the ref format
|
|
3
|
+
* @param {RefObject} ref - a callback function or ref object
|
|
4
|
+
* @param value - a new value
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/theKashey/use-callback-ref#assignref
|
|
7
|
+
* @example
|
|
8
|
+
* const refObject = useRef();
|
|
9
|
+
* const refFn = (ref) => {....}
|
|
10
|
+
*
|
|
11
|
+
* assignRef(refObject, "refValue");
|
|
12
|
+
* assignRef(refFn, "refValue");
|
|
13
|
+
*/
|
|
14
|
+
function assignRef(ref, value) {
|
|
15
|
+
if (typeof ref === 'function') {
|
|
16
|
+
ref(value);
|
|
17
|
+
}
|
|
18
|
+
else if (ref) {
|
|
19
|
+
ref.current = value;
|
|
20
|
+
}
|
|
21
|
+
return ref;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { assignRef };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const React = require('react');
|
|
4
|
+
const assignRef = require('./assignRef.cjs');
|
|
5
|
+
const useRef = require('./useRef.cjs');
|
|
6
|
+
|
|
7
|
+
function _interopNamespaceCompat(e) {
|
|
8
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
9
|
+
const n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
for (const k in e) {
|
|
12
|
+
n[k] = e[k];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
n.default = e;
|
|
16
|
+
return n;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
20
|
+
|
|
21
|
+
var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React__namespace.useLayoutEffect : React__namespace.useEffect;
|
|
22
|
+
var currentValues = new WeakMap();
|
|
23
|
+
/**
|
|
24
|
+
* Merges two or more refs together providing a single interface to set their value
|
|
25
|
+
* @param {RefObject|Ref} refs
|
|
26
|
+
* @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
|
|
27
|
+
*
|
|
28
|
+
* @see {@link mergeRefs} a version without buit-in memoization
|
|
29
|
+
* @see https://github.com/theKashey/use-callback-ref#usemergerefs
|
|
30
|
+
* @example
|
|
31
|
+
* const Component = React.forwardRef((props, ref) => {
|
|
32
|
+
* const ownRef = useRef();
|
|
33
|
+
* const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
|
|
34
|
+
* return <div ref={domRef}>...</div>
|
|
35
|
+
* }
|
|
36
|
+
*/
|
|
37
|
+
function useMergeRefs(refs, defaultValue) {
|
|
38
|
+
var callbackRef = useRef.useCallbackRef(null, function (newValue) {
|
|
39
|
+
return refs.forEach(function (ref) { return assignRef.assignRef(ref, newValue); });
|
|
40
|
+
});
|
|
41
|
+
// handle refs changes - added or removed
|
|
42
|
+
useIsomorphicLayoutEffect(function () {
|
|
43
|
+
var oldValue = currentValues.get(callbackRef);
|
|
44
|
+
if (oldValue) {
|
|
45
|
+
var prevRefs_1 = new Set(oldValue);
|
|
46
|
+
var nextRefs_1 = new Set(refs);
|
|
47
|
+
var current_1 = callbackRef.current;
|
|
48
|
+
prevRefs_1.forEach(function (ref) {
|
|
49
|
+
if (!nextRefs_1.has(ref)) {
|
|
50
|
+
assignRef.assignRef(ref, null);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
nextRefs_1.forEach(function (ref) {
|
|
54
|
+
if (!prevRefs_1.has(ref)) {
|
|
55
|
+
assignRef.assignRef(ref, current_1);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
currentValues.set(callbackRef, refs);
|
|
60
|
+
}, [refs]);
|
|
61
|
+
return callbackRef;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
exports.useMergeRefs = useMergeRefs;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { assignRef } from './assignRef.mjs';
|
|
3
|
+
import { useCallbackRef } from './useRef.mjs';
|
|
4
|
+
|
|
5
|
+
var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
6
|
+
var currentValues = new WeakMap();
|
|
7
|
+
/**
|
|
8
|
+
* Merges two or more refs together providing a single interface to set their value
|
|
9
|
+
* @param {RefObject|Ref} refs
|
|
10
|
+
* @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
|
|
11
|
+
*
|
|
12
|
+
* @see {@link mergeRefs} a version without buit-in memoization
|
|
13
|
+
* @see https://github.com/theKashey/use-callback-ref#usemergerefs
|
|
14
|
+
* @example
|
|
15
|
+
* const Component = React.forwardRef((props, ref) => {
|
|
16
|
+
* const ownRef = useRef();
|
|
17
|
+
* const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
|
|
18
|
+
* return <div ref={domRef}>...</div>
|
|
19
|
+
* }
|
|
20
|
+
*/
|
|
21
|
+
function useMergeRefs(refs, defaultValue) {
|
|
22
|
+
var callbackRef = useCallbackRef(null, function (newValue) {
|
|
23
|
+
return refs.forEach(function (ref) { return assignRef(ref, newValue); });
|
|
24
|
+
});
|
|
25
|
+
// handle refs changes - added or removed
|
|
26
|
+
useIsomorphicLayoutEffect(function () {
|
|
27
|
+
var oldValue = currentValues.get(callbackRef);
|
|
28
|
+
if (oldValue) {
|
|
29
|
+
var prevRefs_1 = new Set(oldValue);
|
|
30
|
+
var nextRefs_1 = new Set(refs);
|
|
31
|
+
var current_1 = callbackRef.current;
|
|
32
|
+
prevRefs_1.forEach(function (ref) {
|
|
33
|
+
if (!nextRefs_1.has(ref)) {
|
|
34
|
+
assignRef(ref, null);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
nextRefs_1.forEach(function (ref) {
|
|
38
|
+
if (!prevRefs_1.has(ref)) {
|
|
39
|
+
assignRef(ref, current_1);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
currentValues.set(callbackRef, refs);
|
|
44
|
+
}, [refs]);
|
|
45
|
+
return callbackRef;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { useMergeRefs };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const React = require('react');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* creates a MutableRef with ref change callback
|
|
7
|
+
* @param initialValue - initial ref value
|
|
8
|
+
* @param {Function} callback - a callback to run when value changes
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
|
|
12
|
+
* ref.current = 1;
|
|
13
|
+
* // prints 0 -> 1
|
|
14
|
+
*
|
|
15
|
+
* @see https://reactjs.org/docs/hooks-reference.html#useref
|
|
16
|
+
* @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
|
|
17
|
+
* @returns {MutableRefObject}
|
|
18
|
+
*/
|
|
19
|
+
function useCallbackRef(initialValue, callback) {
|
|
20
|
+
var ref = React.useState(function () { return ({
|
|
21
|
+
// value
|
|
22
|
+
value: initialValue,
|
|
23
|
+
// last callback
|
|
24
|
+
callback: callback,
|
|
25
|
+
// "memoized" public interface
|
|
26
|
+
facade: {
|
|
27
|
+
get current() {
|
|
28
|
+
return ref.value;
|
|
29
|
+
},
|
|
30
|
+
set current(value) {
|
|
31
|
+
var last = ref.value;
|
|
32
|
+
if (last !== value) {
|
|
33
|
+
ref.value = value;
|
|
34
|
+
ref.callback(value, last);
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
}); })[0];
|
|
39
|
+
// update callback
|
|
40
|
+
ref.callback = callback;
|
|
41
|
+
return ref.facade;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
exports.useCallbackRef = useCallbackRef;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* creates a MutableRef with ref change callback
|
|
5
|
+
* @param initialValue - initial ref value
|
|
6
|
+
* @param {Function} callback - a callback to run when value changes
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
|
|
10
|
+
* ref.current = 1;
|
|
11
|
+
* // prints 0 -> 1
|
|
12
|
+
*
|
|
13
|
+
* @see https://reactjs.org/docs/hooks-reference.html#useref
|
|
14
|
+
* @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
|
|
15
|
+
* @returns {MutableRefObject}
|
|
16
|
+
*/
|
|
17
|
+
function useCallbackRef(initialValue, callback) {
|
|
18
|
+
var ref = useState(function () { return ({
|
|
19
|
+
// value
|
|
20
|
+
value: initialValue,
|
|
21
|
+
// last callback
|
|
22
|
+
callback: callback,
|
|
23
|
+
// "memoized" public interface
|
|
24
|
+
facade: {
|
|
25
|
+
get current() {
|
|
26
|
+
return ref.value;
|
|
27
|
+
},
|
|
28
|
+
set current(value) {
|
|
29
|
+
var last = ref.value;
|
|
30
|
+
if (last !== value) {
|
|
31
|
+
ref.value = value;
|
|
32
|
+
ref.callback(value, last);
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
}); })[0];
|
|
37
|
+
// update callback
|
|
38
|
+
ref.callback = callback;
|
|
39
|
+
return ref.facade;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { useCallbackRef };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const tslib_es6 = require('../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.cjs');
|
|
4
|
+
const React = require('react');
|
|
5
|
+
|
|
6
|
+
function _interopNamespaceCompat(e) {
|
|
7
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
8
|
+
const n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
for (const k in e) {
|
|
11
|
+
n[k] = e[k];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
n.default = e;
|
|
15
|
+
return n;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
19
|
+
|
|
20
|
+
var SideCar = function (_a) {
|
|
21
|
+
var sideCar = _a.sideCar, rest = tslib_es6.__rest(_a, ["sideCar"]);
|
|
22
|
+
if (!sideCar) {
|
|
23
|
+
throw new Error('Sidecar: please provide `sideCar` property to import the right car');
|
|
24
|
+
}
|
|
25
|
+
var Target = sideCar.read();
|
|
26
|
+
if (!Target) {
|
|
27
|
+
throw new Error('Sidecar medium not found');
|
|
28
|
+
}
|
|
29
|
+
return React__namespace.createElement(Target, tslib_es6.__assign({}, rest));
|
|
30
|
+
};
|
|
31
|
+
SideCar.isSideCarExport = true;
|
|
32
|
+
function exportSidecar(medium, exported) {
|
|
33
|
+
medium.useMedium(exported);
|
|
34
|
+
return SideCar;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.exportSidecar = exportSidecar;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __rest, __assign } from '../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.mjs';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
var SideCar = function (_a) {
|
|
5
|
+
var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
|
|
6
|
+
if (!sideCar) {
|
|
7
|
+
throw new Error('Sidecar: please provide `sideCar` property to import the right car');
|
|
8
|
+
}
|
|
9
|
+
var Target = sideCar.read();
|
|
10
|
+
if (!Target) {
|
|
11
|
+
throw new Error('Sidecar medium not found');
|
|
12
|
+
}
|
|
13
|
+
return React.createElement(Target, __assign({}, rest));
|
|
14
|
+
};
|
|
15
|
+
SideCar.isSideCarExport = true;
|
|
16
|
+
function exportSidecar(medium, exported) {
|
|
17
|
+
medium.useMedium(exported);
|
|
18
|
+
return SideCar;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { exportSidecar };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const tslib_es6 = require('../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.cjs');
|
|
4
|
+
|
|
5
|
+
function ItoI(a) {
|
|
6
|
+
return a;
|
|
7
|
+
}
|
|
8
|
+
function innerCreateMedium(defaults, middleware) {
|
|
9
|
+
if (middleware === void 0) { middleware = ItoI; }
|
|
10
|
+
var buffer = [];
|
|
11
|
+
var assigned = false;
|
|
12
|
+
var medium = {
|
|
13
|
+
read: function () {
|
|
14
|
+
if (assigned) {
|
|
15
|
+
throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');
|
|
16
|
+
}
|
|
17
|
+
if (buffer.length) {
|
|
18
|
+
return buffer[buffer.length - 1];
|
|
19
|
+
}
|
|
20
|
+
return defaults;
|
|
21
|
+
},
|
|
22
|
+
useMedium: function (data) {
|
|
23
|
+
var item = middleware(data, assigned);
|
|
24
|
+
buffer.push(item);
|
|
25
|
+
return function () {
|
|
26
|
+
buffer = buffer.filter(function (x) { return x !== item; });
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
assignSyncMedium: function (cb) {
|
|
30
|
+
assigned = true;
|
|
31
|
+
while (buffer.length) {
|
|
32
|
+
var cbs = buffer;
|
|
33
|
+
buffer = [];
|
|
34
|
+
cbs.forEach(cb);
|
|
35
|
+
}
|
|
36
|
+
buffer = {
|
|
37
|
+
push: function (x) { return cb(x); },
|
|
38
|
+
filter: function () { return buffer; },
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
assignMedium: function (cb) {
|
|
42
|
+
assigned = true;
|
|
43
|
+
var pendingQueue = [];
|
|
44
|
+
if (buffer.length) {
|
|
45
|
+
var cbs = buffer;
|
|
46
|
+
buffer = [];
|
|
47
|
+
cbs.forEach(cb);
|
|
48
|
+
pendingQueue = buffer;
|
|
49
|
+
}
|
|
50
|
+
var executeQueue = function () {
|
|
51
|
+
var cbs = pendingQueue;
|
|
52
|
+
pendingQueue = [];
|
|
53
|
+
cbs.forEach(cb);
|
|
54
|
+
};
|
|
55
|
+
var cycle = function () { return Promise.resolve().then(executeQueue); };
|
|
56
|
+
cycle();
|
|
57
|
+
buffer = {
|
|
58
|
+
push: function (x) {
|
|
59
|
+
pendingQueue.push(x);
|
|
60
|
+
cycle();
|
|
61
|
+
},
|
|
62
|
+
filter: function (filter) {
|
|
63
|
+
pendingQueue = pendingQueue.filter(filter);
|
|
64
|
+
return buffer;
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
return medium;
|
|
70
|
+
}
|
|
71
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
72
|
+
function createSidecarMedium(options) {
|
|
73
|
+
if (options === void 0) { options = {}; }
|
|
74
|
+
var medium = innerCreateMedium(null);
|
|
75
|
+
medium.options = tslib_es6.__assign({ async: true, ssr: false }, options);
|
|
76
|
+
return medium;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
exports.createSidecarMedium = createSidecarMedium;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { __assign } from '../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.mjs';
|
|
2
|
+
|
|
3
|
+
function ItoI(a) {
|
|
4
|
+
return a;
|
|
5
|
+
}
|
|
6
|
+
function innerCreateMedium(defaults, middleware) {
|
|
7
|
+
if (middleware === void 0) { middleware = ItoI; }
|
|
8
|
+
var buffer = [];
|
|
9
|
+
var assigned = false;
|
|
10
|
+
var medium = {
|
|
11
|
+
read: function () {
|
|
12
|
+
if (assigned) {
|
|
13
|
+
throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');
|
|
14
|
+
}
|
|
15
|
+
if (buffer.length) {
|
|
16
|
+
return buffer[buffer.length - 1];
|
|
17
|
+
}
|
|
18
|
+
return defaults;
|
|
19
|
+
},
|
|
20
|
+
useMedium: function (data) {
|
|
21
|
+
var item = middleware(data, assigned);
|
|
22
|
+
buffer.push(item);
|
|
23
|
+
return function () {
|
|
24
|
+
buffer = buffer.filter(function (x) { return x !== item; });
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
assignSyncMedium: function (cb) {
|
|
28
|
+
assigned = true;
|
|
29
|
+
while (buffer.length) {
|
|
30
|
+
var cbs = buffer;
|
|
31
|
+
buffer = [];
|
|
32
|
+
cbs.forEach(cb);
|
|
33
|
+
}
|
|
34
|
+
buffer = {
|
|
35
|
+
push: function (x) { return cb(x); },
|
|
36
|
+
filter: function () { return buffer; },
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
assignMedium: function (cb) {
|
|
40
|
+
assigned = true;
|
|
41
|
+
var pendingQueue = [];
|
|
42
|
+
if (buffer.length) {
|
|
43
|
+
var cbs = buffer;
|
|
44
|
+
buffer = [];
|
|
45
|
+
cbs.forEach(cb);
|
|
46
|
+
pendingQueue = buffer;
|
|
47
|
+
}
|
|
48
|
+
var executeQueue = function () {
|
|
49
|
+
var cbs = pendingQueue;
|
|
50
|
+
pendingQueue = [];
|
|
51
|
+
cbs.forEach(cb);
|
|
52
|
+
};
|
|
53
|
+
var cycle = function () { return Promise.resolve().then(executeQueue); };
|
|
54
|
+
cycle();
|
|
55
|
+
buffer = {
|
|
56
|
+
push: function (x) {
|
|
57
|
+
pendingQueue.push(x);
|
|
58
|
+
cycle();
|
|
59
|
+
},
|
|
60
|
+
filter: function (filter) {
|
|
61
|
+
pendingQueue = pendingQueue.filter(filter);
|
|
62
|
+
return buffer;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
return medium;
|
|
68
|
+
}
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
70
|
+
function createSidecarMedium(options) {
|
|
71
|
+
if (options === void 0) { options = {}; }
|
|
72
|
+
var medium = innerCreateMedium(null);
|
|
73
|
+
medium.options = __assign({ async: true, ssr: false }, options);
|
|
74
|
+
return medium;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { createSidecarMedium };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
const button = require('
|
|
5
|
-
const form = require('
|
|
6
|
-
const input = require('
|
|
4
|
+
const button = require('../../../../../../../ui/src/components/button.cjs');
|
|
5
|
+
const form = require('../../../../../../../ui/src/components/form.cjs');
|
|
6
|
+
const input = require('../../../../../../../ui/src/components/input.cjs');
|
|
7
7
|
const context = require('@btst/stack/context');
|
|
8
8
|
const lucideReact = require('lucide-react');
|
|
9
9
|
const React = require('react');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { Button } from '
|
|
3
|
-
import { FormItem, FormLabel, FormControl, FormDescription, FormMessage } from '
|
|
4
|
-
import { Input } from '
|
|
2
|
+
import { Button } from '../../../../../../../ui/src/components/button.mjs';
|
|
3
|
+
import { FormItem, FormLabel, FormControl, FormDescription, FormMessage } from '../../../../../../../ui/src/components/form.mjs';
|
|
4
|
+
import { Input } from '../../../../../../../ui/src/components/input.mjs';
|
|
5
5
|
import { usePluginOverrides } from '@btst/stack/context';
|
|
6
6
|
import { Loader2, Upload } from 'lucide-react';
|
|
7
7
|
import { useRef, useState } from 'react';
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
const jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
const schemas = require('../../../schemas.cjs');
|
|
6
|
-
const button = require('
|
|
7
|
-
const form = require('
|
|
8
|
-
const input = require('
|
|
9
|
-
const _switch = require('
|
|
10
|
-
const textarea = require('
|
|
6
|
+
const button = require('../../../../../../../ui/src/components/button.cjs');
|
|
7
|
+
const form = require('../../../../../../../ui/src/components/form.cjs');
|
|
8
|
+
const input = require('../../../../../../../ui/src/components/input.cjs');
|
|
9
|
+
const _switch = require('../../../../../../../ui/src/components/switch.cjs');
|
|
10
|
+
const textarea = require('../../../../../../../ui/src/components/textarea.cjs');
|
|
11
11
|
const blogHooks = require('../../hooks/blog-hooks.cjs');
|
|
12
12
|
const utils = require('../../../utils.cjs');
|
|
13
13
|
const zod = require('@hookform/resolvers/zod');
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { createPostSchema, updatePostSchema } from '../../../schemas.mjs';
|
|
4
|
-
import { Button } from '
|
|
5
|
-
import { Form, FormField, FormItem, FormLabel, FormControl, FormMessage, FormDescription } from '
|
|
6
|
-
import { Input } from '
|
|
7
|
-
import { Switch } from '
|
|
8
|
-
import { Textarea } from '
|
|
4
|
+
import { Button } from '../../../../../../../ui/src/components/button.mjs';
|
|
5
|
+
import { Form, FormField, FormItem, FormLabel, FormControl, FormMessage, FormDescription } from '../../../../../../../ui/src/components/form.mjs';
|
|
6
|
+
import { Input } from '../../../../../../../ui/src/components/input.mjs';
|
|
7
|
+
import { Switch } from '../../../../../../../ui/src/components/switch.mjs';
|
|
8
|
+
import { Textarea } from '../../../../../../../ui/src/components/textarea.mjs';
|
|
9
9
|
import { useCreatePost, useSuspensePost, useUpdatePost } from '../../hooks/blog-hooks.mjs';
|
|
10
10
|
import { slugify } from '../../../utils.mjs';
|
|
11
11
|
import { zodResolver } from '@hookform/resolvers/zod';
|