@blimu/react 1.1.0 → 1.1.4
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/_virtual/index.cjs +5 -1
- package/dist/_virtual/index.cjs.map +1 -1
- package/dist/_virtual/index.js +3 -3
- package/dist/_virtual/index2.cjs +4 -1
- package/dist/_virtual/index2.cjs.map +1 -1
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/use-sync-external-store-shim.development.cjs +4 -1
- package/dist/_virtual/use-sync-external-store-shim.development.cjs.map +1 -1
- package/dist/_virtual/use-sync-external-store-shim.development.js +2 -2
- package/dist/_virtual/use-sync-external-store-shim.production.cjs +4 -1
- package/dist/_virtual/use-sync-external-store-shim.production.cjs.map +1 -1
- package/dist/_virtual/use-sync-external-store-shim.production.js +2 -2
- package/dist/client/auth.service.cjs +248 -1
- package/dist/client/auth.service.cjs.map +1 -1
- package/dist/client/auth.service.d.ts.map +1 -1
- package/dist/client/auth.service.js +193 -96
- package/dist/client/auth.service.js.map +1 -1
- package/dist/client/external-store.cjs +26 -1
- package/dist/client/external-store.cjs.map +1 -1
- package/dist/client/external-store.js +22 -8
- package/dist/client/external-store.js.map +1 -1
- package/dist/client/runtime-client.cjs +136 -1
- package/dist/client/runtime-client.cjs.map +1 -1
- package/dist/client/runtime-client.d.ts +1 -1
- package/dist/client/runtime-client.d.ts.map +1 -1
- package/dist/client/runtime-client.js +85 -51
- package/dist/client/runtime-client.js.map +1 -1
- package/dist/components/index.cjs +13 -0
- package/dist/components/index.cjs.map +1 -0
- package/dist/components/index.d.ts +6 -6
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +13 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/members-list.cjs +132 -1
- package/dist/components/members-list.cjs.map +1 -1
- package/dist/components/members-list.d.ts.map +1 -1
- package/dist/components/members-list.js +69 -64
- package/dist/components/members-list.js.map +1 -1
- package/dist/components/redirect-to-sign-in.cjs +34 -1
- package/dist/components/redirect-to-sign-in.cjs.map +1 -1
- package/dist/components/redirect-to-sign-in.js +28 -20
- package/dist/components/redirect-to-sign-in.js.map +1 -1
- package/dist/components/sign-in-button.cjs +36 -1
- package/dist/components/sign-in-button.cjs.map +1 -1
- package/dist/components/sign-in-button.d.ts.map +1 -1
- package/dist/components/sign-in-button.js +25 -21
- package/dist/components/sign-in-button.js.map +1 -1
- package/dist/components/ui/avatar.cjs +42 -1
- package/dist/components/ui/avatar.cjs.map +1 -1
- package/dist/components/ui/avatar.d.ts +2 -2
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js +23 -23
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/badge.d.ts +2 -2
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.cjs +148 -1
- package/dist/components/ui/dropdown-menu.cjs.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +2 -2
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +83 -81
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/popover.d.ts +2 -2
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/separator.d.ts +1 -1
- package/dist/components/ui/separator.d.ts.map +1 -1
- package/dist/components/user-avatar.cjs +22 -1
- package/dist/components/user-avatar.cjs.map +1 -1
- package/dist/components/user-avatar.d.ts +5 -5
- package/dist/components/user-avatar.d.ts.map +1 -1
- package/dist/components/user-avatar.js +16 -16
- package/dist/components/user-avatar.js.map +1 -1
- package/dist/components/user-button/styles.cjs +39 -1
- package/dist/components/user-button/styles.cjs.map +1 -1
- package/dist/components/user-button/styles.js +6 -5
- package/dist/components/user-button/styles.js.map +1 -1
- package/dist/components/user-button/user-button.cjs +98 -1
- package/dist/components/user-button/user-button.cjs.map +1 -1
- package/dist/components/user-button/user-button.d.ts +1 -1
- package/dist/components/user-button/user-button.d.ts.map +1 -1
- package/dist/components/user-button/user-button.js +64 -58
- package/dist/components/user-button/user-button.js.map +1 -1
- package/dist/hooks/index.cjs +14 -0
- package/dist/hooks/index.cjs.map +1 -0
- package/dist/hooks/index.d.ts +3 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +14 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/use-auth.cjs +44 -1
- package/dist/hooks/use-auth.cjs.map +1 -1
- package/dist/hooks/use-auth.d.ts +13 -15
- package/dist/hooks/use-auth.d.ts.map +1 -1
- package/dist/hooks/use-auth.js +30 -26
- package/dist/hooks/use-auth.js.map +1 -1
- package/dist/hooks/use-client.cjs +9 -1
- package/dist/hooks/use-client.cjs.map +1 -1
- package/dist/hooks/use-client.d.ts +1 -1
- package/dist/hooks/use-client.d.ts.map +1 -1
- package/dist/hooks/use-client.js +6 -5
- package/dist/hooks/use-client.js.map +1 -1
- package/dist/hooks/use-members.cjs +60 -1
- package/dist/hooks/use-members.cjs.map +1 -1
- package/dist/hooks/use-members.d.ts +5 -5
- package/dist/hooks/use-members.d.ts.map +1 -1
- package/dist/hooks/use-members.js +53 -41
- package/dist/hooks/use-members.js.map +1 -1
- package/dist/hooks/use-store.cjs +17 -1
- package/dist/hooks/use-store.cjs.map +1 -1
- package/dist/hooks/use-store.js +7 -7
- package/dist/hooks/use-store.js.map +1 -1
- package/dist/index.cjs +37 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35 -35
- package/dist/lib/utils.cjs +8 -1
- package/dist/lib/utils.cjs.map +1 -1
- package/dist/lib/utils.js +5 -5
- package/dist/lib/utils.js.map +1 -1
- package/dist/lib/variants.cjs +46 -1
- package/dist/lib/variants.cjs.map +1 -1
- package/dist/lib/variants.d.ts +1 -1
- package/dist/lib/variants.js +6 -5
- package/dist/lib/variants.js.map +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +721 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.map +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +571 -377
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +625 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.map +1 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +539 -316
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +313 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs.map +1 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +261 -172
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +154 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.map +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +173 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.map +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +144 -107
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +111 -87
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -1
- package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +11 -1
- package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +7 -5
- package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +42 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +17 -16
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs +140 -1
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +105 -57
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs +80 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js +49 -41
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs +56 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js +17 -10
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.cjs +119 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.js +86 -42
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs +70 -1
- package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +57 -37
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +56 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -19
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +79 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +48 -39
- package/dist/node_modules/@radix-ui/react-context/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs +27 -1
- package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +229 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +182 -97
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +296 -1
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +232 -167
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +46 -1
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +23 -11
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +224 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +169 -98
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +31 -1
- package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +11 -10
- package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs +845 -1
- package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +662 -442
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +308 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +209 -137
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +34 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +14 -12
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +145 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +103 -45
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +61 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +21 -14
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +244 -1
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +179 -135
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +105 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +74 -35
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +28 -1
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +8 -7
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +86 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +57 -40
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +34 -1
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +13 -10
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs +15 -1
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +8 -8
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +23 -1
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +3 -3
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +56 -1
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +34 -22
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.cjs +122 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.cjs.map +1 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +111 -41
- package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -1
- package/dist/node_modules/class-variance-authority/dist/index.cjs +45 -1
- package/dist/node_modules/class-variance-authority/dist/index.cjs.map +1 -1
- package/dist/node_modules/class-variance-authority/dist/index.js +40 -30
- package/dist/node_modules/class-variance-authority/dist/index.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.cjs +17 -1
- package/dist/node_modules/clsx/dist/clsx.cjs.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +13 -13
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/get-nonce/dist/es2015/index.cjs +9 -1
- package/dist/node_modules/get-nonce/dist/es2015/index.cjs.map +1 -1
- package/dist/node_modules/get-nonce/dist/es2015/index.js +5 -3
- package/dist/node_modules/get-nonce/dist/es2015/index.js.map +1 -1
- package/dist/node_modules/js-cookie/dist/js.cookie.cjs +99 -1
- package/dist/node_modules/js-cookie/dist/js.cookie.cjs.map +1 -1
- package/dist/node_modules/js-cookie/dist/js.cookie.js +69 -43
- package/dist/node_modules/js-cookie/dist/js.cookie.js.map +1 -1
- package/dist/node_modules/jwt-decode/build/esm/index.cjs +58 -1
- package/dist/node_modules/jwt-decode/build/esm/index.cjs.map +1 -1
- package/dist/node_modules/jwt-decode/build/esm/index.js +36 -30
- package/dist/node_modules/jwt-decode/build/esm/index.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/Icon.cjs +35 -1
- package/dist/node_modules/lucide-react/dist/esm/Icon.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +25 -25
- package/dist/node_modules/lucide-react/dist/esm/Icon.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs +22 -1
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +16 -15
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs +14 -1
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +2 -2
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs +7 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +5 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs +7 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +5 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs +7 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +5 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/log-out.cjs +11 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/log-out.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/log-out.js +6 -5
- package/dist/node_modules/lucide-react/dist/esm/icons/log-out.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs +26 -1
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +22 -14
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +28 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +8 -8
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +197 -4
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +163 -98
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs +55 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -24
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +19 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +12 -9
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +102 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +85 -51
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs +5 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +3 -3
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +7 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +5 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +62 -36
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +41 -65
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +10 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +8 -5
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +37 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +28 -16
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs +13 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs.map +1 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +9 -7
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs +33 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs.map +1 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +11 -10
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs +48 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs.map +1 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +35 -17
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +3014 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +804 -555
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/node_modules/tailwindcss/dist/plugin.cjs +13 -1
- package/dist/node_modules/tailwindcss/dist/plugin.cjs.map +1 -1
- package/dist/node_modules/tailwindcss/dist/plugin.js +8 -8
- package/dist/node_modules/tailwindcss/dist/plugin.js.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.cjs +38 -1
- package/dist/node_modules/tslib/tslib.es6.cjs.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +33 -21
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +11 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.map +1 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +8 -3
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +52 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.map +1 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +28 -19
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs +29 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs.map +1 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +15 -11
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -1
- package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs +38 -1
- package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs.map +1 -1
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +15 -12
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -1
- package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs +88 -1
- package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs.map +1 -1
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +64 -43
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +68 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.map +1 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +49 -39
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +53 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.map +1 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +39 -32
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -1
- package/dist/node_modules/use-sync-external-store/shim/index.cjs +17 -1
- package/dist/node_modules/use-sync-external-store/shim/index.cjs.map +1 -1
- package/dist/node_modules/use-sync-external-store/shim/index.js +14 -7
- package/dist/node_modules/use-sync-external-store/shim/index.js.map +1 -1
- package/dist/providers/auth/auth.context.cjs +5 -1
- package/dist/providers/auth/auth.context.cjs.map +1 -1
- package/dist/providers/auth/auth.context.js +3 -3
- package/dist/providers/auth/auth.context.js.map +1 -1
- package/dist/providers/auth/auth.hook.cjs +12 -1
- package/dist/providers/auth/auth.hook.cjs.map +1 -1
- package/dist/providers/auth/auth.hook.js +8 -7
- package/dist/providers/auth/auth.hook.js.map +1 -1
- package/dist/providers/auth/auth.provider.cjs +37 -1
- package/dist/providers/auth/auth.provider.cjs.map +1 -1
- package/dist/providers/auth/auth.provider.js +31 -22
- package/dist/providers/auth/auth.provider.js.map +1 -1
- package/dist/providers/blimu/blimu.context.cjs +5 -1
- package/dist/providers/blimu/blimu.context.cjs.map +1 -1
- package/dist/providers/blimu/blimu.context.d.ts +4 -4
- package/dist/providers/blimu/blimu.context.d.ts.map +1 -1
- package/dist/providers/blimu/blimu.context.js +3 -3
- package/dist/providers/blimu/blimu.context.js.map +1 -1
- package/dist/providers/blimu/blimu.hook.cjs +12 -1
- package/dist/providers/blimu/blimu.hook.cjs.map +1 -1
- package/dist/providers/blimu/blimu.hook.js +8 -7
- package/dist/providers/blimu/blimu.hook.js.map +1 -1
- package/dist/providers/blimu/blimu.provider.cjs +71 -1
- package/dist/providers/blimu/blimu.provider.cjs.map +1 -1
- package/dist/providers/blimu/blimu.provider.d.ts +1 -1
- package/dist/providers/blimu/blimu.provider.d.ts.map +1 -1
- package/dist/providers/blimu/blimu.provider.js +32 -27
- package/dist/providers/blimu/blimu.provider.js.map +1 -1
- package/dist/providers/index.cjs +13 -0
- package/dist/providers/index.cjs.map +1 -0
- package/dist/providers/index.d.ts +3 -3
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.js +13 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/theme/index.d.ts +2 -2
- package/dist/providers/theme/index.d.ts.map +1 -1
- package/dist/providers/theme/theme.context.cjs +5 -1
- package/dist/providers/theme/theme.context.cjs.map +1 -1
- package/dist/providers/theme/theme.context.js +3 -3
- package/dist/providers/theme/theme.context.js.map +1 -1
- package/dist/providers/theme/theme.hook.cjs +12 -1
- package/dist/providers/theme/theme.hook.cjs.map +1 -1
- package/dist/providers/theme/theme.hook.js +8 -7
- package/dist/providers/theme/theme.hook.js.map +1 -1
- package/dist/providers/theme/theme.provider.cjs +104 -1
- package/dist/providers/theme/theme.provider.cjs.map +1 -1
- package/dist/providers/theme/theme.provider.d.ts.map +1 -1
- package/dist/providers/theme/theme.provider.js +85 -48
- package/dist/providers/theme/theme.provider.js.map +1 -1
- package/dist/styles/styles.css +34 -40
- package/dist/styles/tw-styles.css +34 -40
- package/dist/tailwind.cjs +200 -0
- package/dist/tailwind.cjs.map +1 -0
- package/dist/{tailwind.plugin.js → tailwind.js} +43 -43
- package/dist/tailwind.js.map +1 -0
- package/dist/types/index.cjs +11 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.ts +22 -8
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +8 -8
- package/dist/types/index.js.map +1 -1
- package/dist/utils/publishable-key.cjs +62 -1
- package/dist/utils/publishable-key.cjs.map +1 -1
- package/dist/utils/publishable-key.js +52 -27
- package/dist/utils/publishable-key.js.map +1 -1
- package/package.json +68 -53
- package/dist/components.cjs +0 -2
- package/dist/components.cjs.map +0 -1
- package/dist/components.js +0 -13
- package/dist/components.js.map +0 -1
- package/dist/hooks.cjs +0 -2
- package/dist/hooks.cjs.map +0 -1
- package/dist/hooks.js +0 -14
- package/dist/hooks.js.map +0 -1
- package/dist/providers.cjs +0 -2
- package/dist/providers.cjs.map +0 -1
- package/dist/providers.js +0 -13
- package/dist/providers.js.map +0 -1
- package/dist/tailwind.plugin.cjs +0 -2
- package/dist/tailwind.plugin.cjs.map +0 -1
- package/dist/tailwind.plugin.js.map +0 -1
package/dist/hooks/use-auth.js
CHANGED
|
@@ -1,41 +1,45 @@
|
|
|
1
|
-
import { useMemo
|
|
2
|
-
import { useAuthContext
|
|
3
|
-
import { AuthStateGuards
|
|
4
|
-
function
|
|
5
|
-
const
|
|
1
|
+
import { useMemo } from "react";
|
|
2
|
+
import { useAuthContext } from "../providers/auth/auth.hook.js";
|
|
3
|
+
import { AuthStateGuards } from "../types/index.js";
|
|
4
|
+
function useAuth() {
|
|
5
|
+
const context = useAuthContext();
|
|
6
|
+
const { state } = context;
|
|
7
|
+
const booleanState = useMemo(
|
|
6
8
|
() => ({
|
|
7
|
-
isIdle:
|
|
8
|
-
isLoading:
|
|
9
|
-
isAuthenticated:
|
|
10
|
-
isUnauthenticated:
|
|
11
|
-
isReady:
|
|
12
|
-
isError:
|
|
9
|
+
isIdle: AuthStateGuards.isIdle(state),
|
|
10
|
+
isLoading: AuthStateGuards.isLoading(state),
|
|
11
|
+
isAuthenticated: AuthStateGuards.isAuthenticated(state),
|
|
12
|
+
isUnauthenticated: AuthStateGuards.isUnauthenticated(state),
|
|
13
|
+
isReady: AuthStateGuards.isReady(state),
|
|
14
|
+
isError: AuthStateGuards.isError(state)
|
|
13
15
|
}),
|
|
14
|
-
[
|
|
16
|
+
[state]
|
|
15
17
|
);
|
|
16
18
|
return {
|
|
17
|
-
...
|
|
18
|
-
...
|
|
19
|
+
...context,
|
|
20
|
+
...booleanState
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
|
-
function
|
|
22
|
-
const { state
|
|
23
|
+
function useUser() {
|
|
24
|
+
const { state } = useAuthContext();
|
|
25
|
+
const user = AuthStateGuards.isAuthenticated(state) ? state.user : null;
|
|
26
|
+
const booleanState = useMemo(
|
|
23
27
|
() => ({
|
|
24
|
-
isIdle:
|
|
25
|
-
isLoading:
|
|
26
|
-
isAuthenticated:
|
|
27
|
-
isUnauthenticated:
|
|
28
|
-
isError:
|
|
28
|
+
isIdle: AuthStateGuards.isIdle(state),
|
|
29
|
+
isLoading: AuthStateGuards.isLoading(state),
|
|
30
|
+
isAuthenticated: AuthStateGuards.isAuthenticated(state),
|
|
31
|
+
isUnauthenticated: AuthStateGuards.isUnauthenticated(state),
|
|
32
|
+
isError: AuthStateGuards.isError(state)
|
|
29
33
|
}),
|
|
30
|
-
[
|
|
34
|
+
[state]
|
|
31
35
|
);
|
|
32
36
|
return {
|
|
33
|
-
user
|
|
34
|
-
...
|
|
37
|
+
user,
|
|
38
|
+
...booleanState
|
|
35
39
|
};
|
|
36
40
|
}
|
|
37
41
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
useAuth,
|
|
43
|
+
useUser
|
|
40
44
|
};
|
|
41
45
|
//# sourceMappingURL=use-auth.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-auth.js","sources":["../../src/hooks/use-auth.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport { useAuthContext } from '../providers/auth/auth.hook';\nimport { AuthStateGuards } from '../types';\n\n/**\n * Hook for accessing authentication state and actions\n *\n * Provides a type-safe interface to authentication state with discriminated union states\n * and convenient boolean properties for common checks.\n *\n * @example Using boolean properties\n * ```tsx\n * function MyComponent() {\n * const { isAuthenticated, isLoading, login, logout } = useAuth();\n *\n * if (isLoading) {\n * return <Spinner />;\n * }\n *\n * if (isAuthenticated) {\n * return (\n * <div>\n * <p>Welcome!</p>\n * <button onClick={logout}>Logout</button>\n * </div>\n * );\n * }\n *\n * return <LoginForm onLogin={login} />;\n * }\n * ```\n *\n * @example Using discriminated union state for advanced cases\n * ```tsx\n * function AuthStatus() {\n * const { state, isError } = useAuth();\n *\n * if (isError && state.status === 'error') {\n * return <div>Error: {state.error}</div>;\n * }\n *\n * return <div>Status: {state.status}</div>;\n * }\n * ```\n */\nexport function useAuth() {\n const context = useAuthContext();\n const { state } = context;\n\n const booleanState = useMemo(\n () => ({\n isIdle: AuthStateGuards.isIdle(state),\n isLoading: AuthStateGuards.isLoading(state),\n isAuthenticated: AuthStateGuards.isAuthenticated(state),\n isUnauthenticated: AuthStateGuards.isUnauthenticated(state),\n isReady: AuthStateGuards.isReady(state),\n isError: AuthStateGuards.isError(state),\n }),\n [state],\n );\n\n return {\n ...context,\n ...booleanState,\n };\n}\n\n/**\n * Hook for getting current user information with auth state\n *\n * Returns the user object if authenticated (null otherwise) along with boolean state properties.\n *\n * @example\n * ```tsx\n * function UserProfile() {\n * const { user, isAuthenticated, isLoading } = useUser();\n *\n * if (isLoading) {\n * return <Spinner />;\n * }\n *\n * if (!isAuthenticated || !user) {\n * return <div>Not authenticated</div>;\n * }\n *\n * return (\n * <div>\n * <h1>{user.firstName} {user.lastName}</h1>\n * <p>{user.email}</p>\n * </div>\n * );\n * }\n * ```\n */\nexport function useUser() {\n const { state } = useAuthContext();\n\n const user = AuthStateGuards.isAuthenticated(state) ? state.user : null;\n\n const booleanState = useMemo(\n () => ({\n isIdle: AuthStateGuards.isIdle(state),\n isLoading: AuthStateGuards.isLoading(state),\n isAuthenticated: AuthStateGuards.isAuthenticated(state),\n isUnauthenticated: AuthStateGuards.isUnauthenticated(state),\n isError: AuthStateGuards.isError(state),\n }),\n [state],\n );\n\n return {\n user,\n ...booleanState,\n };\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"use-auth.js","sources":["../../src/hooks/use-auth.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport { useAuthContext } from '../providers/auth/auth.hook';\nimport { type AuthContextValue, AuthStateGuards } from '../types';\n\n/**\n * Return type for useAuth hook\n */\nexport type UseAuthReturn = AuthContextValue & {\n isIdle: boolean;\n isLoading: boolean;\n isAuthenticated: boolean;\n isUnauthenticated: boolean;\n isReady: boolean;\n isError: boolean;\n};\n\n/**\n * Hook for accessing authentication state and actions\n *\n * Provides a type-safe interface to authentication state with discriminated union states\n * and convenient boolean properties for common checks.\n *\n * @example Using boolean properties\n * ```tsx\n * function MyComponent() {\n * const { isAuthenticated, isLoading, login, logout } = useAuth();\n *\n * if (isLoading) {\n * return <Spinner />;\n * }\n *\n * if (isAuthenticated) {\n * return (\n * <div>\n * <p>Welcome!</p>\n * <button onClick={logout}>Logout</button>\n * </div>\n * );\n * }\n *\n * return <LoginForm onLogin={login} />;\n * }\n * ```\n *\n * @example Using discriminated union state for advanced cases\n * ```tsx\n * function AuthStatus() {\n * const { state, isError } = useAuth();\n *\n * if (isError && state.status === 'error') {\n * return <div>Error: {state.error}</div>;\n * }\n *\n * return <div>Status: {state.status}</div>;\n * }\n * ```\n */\nexport function useAuth(): UseAuthReturn {\n const context = useAuthContext();\n const { state } = context;\n\n const booleanState = useMemo(\n () => ({\n isIdle: AuthStateGuards.isIdle(state),\n isLoading: AuthStateGuards.isLoading(state),\n isAuthenticated: AuthStateGuards.isAuthenticated(state),\n isUnauthenticated: AuthStateGuards.isUnauthenticated(state),\n isReady: AuthStateGuards.isReady(state),\n isError: AuthStateGuards.isError(state),\n }),\n [state],\n );\n\n return {\n ...context,\n ...booleanState,\n };\n}\n\n/**\n * Hook for getting current user information with auth state\n *\n * Returns the user object if authenticated (null otherwise) along with boolean state properties.\n *\n * @example\n * ```tsx\n * function UserProfile() {\n * const { user, isAuthenticated, isLoading } = useUser();\n *\n * if (isLoading) {\n * return <Spinner />;\n * }\n *\n * if (!isAuthenticated || !user) {\n * return <div>Not authenticated</div>;\n * }\n *\n * return (\n * <div>\n * <h1>{user.firstName} {user.lastName}</h1>\n * <p>{user.email}</p>\n * </div>\n * );\n * }\n * ```\n */\nexport function useUser() {\n const { state } = useAuthContext();\n\n const user = AuthStateGuards.isAuthenticated(state) ? state.user : null;\n\n const booleanState = useMemo(\n () => ({\n isIdle: AuthStateGuards.isIdle(state),\n isLoading: AuthStateGuards.isLoading(state),\n isAuthenticated: AuthStateGuards.isAuthenticated(state),\n isUnauthenticated: AuthStateGuards.isUnauthenticated(state),\n isError: AuthStateGuards.isError(state),\n }),\n [state],\n );\n\n return {\n user,\n ...booleanState,\n };\n}\n"],"names":[],"mappings":";;;AA0DO,SAAS,UAAyB;AACvC,QAAM,UAAU,eAAA;AAChB,QAAM,EAAE,UAAU;AAElB,QAAM,eAAe;AAAA,IACnB,OAAO;AAAA,MACL,QAAQ,gBAAgB,OAAO,KAAK;AAAA,MACpC,WAAW,gBAAgB,UAAU,KAAK;AAAA,MAC1C,iBAAiB,gBAAgB,gBAAgB,KAAK;AAAA,MACtD,mBAAmB,gBAAgB,kBAAkB,KAAK;AAAA,MAC1D,SAAS,gBAAgB,QAAQ,KAAK;AAAA,MACtC,SAAS,gBAAgB,QAAQ,KAAK;AAAA,IAAA;AAAA,IAExC,CAAC,KAAK;AAAA,EAAA;AAGR,SAAO;AAAA,IACL,GAAG;AAAA,IACH,GAAG;AAAA,EAAA;AAEP;AA6BO,SAAS,UAAU;AACxB,QAAM,EAAE,MAAA,IAAU,eAAA;AAElB,QAAM,OAAO,gBAAgB,gBAAgB,KAAK,IAAI,MAAM,OAAO;AAEnE,QAAM,eAAe;AAAA,IACnB,OAAO;AAAA,MACL,QAAQ,gBAAgB,OAAO,KAAK;AAAA,MACpC,WAAW,gBAAgB,UAAU,KAAK;AAAA,MAC1C,iBAAiB,gBAAgB,gBAAgB,KAAK;AAAA,MACtD,mBAAmB,gBAAgB,kBAAkB,KAAK;AAAA,MAC1D,SAAS,gBAAgB,QAAQ,KAAK;AAAA,IAAA;AAAA,IAExC,CAAC,KAAK;AAAA,EAAA;AAGR,SAAO;AAAA,IACL;AAAA,IACA,GAAG;AAAA,EAAA;AAEP;"}
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const blimu_hook = require("../providers/blimu/blimu.hook.cjs");
|
|
4
|
+
function useClient() {
|
|
5
|
+
const { client } = blimu_hook.useBlimu();
|
|
6
|
+
const blimuClient = client.getClient();
|
|
7
|
+
return blimuClient;
|
|
8
|
+
}
|
|
9
|
+
exports.useClient = useClient;
|
|
2
10
|
//# sourceMappingURL=use-client.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-client.cjs","sources":["../../src/hooks/use-client.ts"],"sourcesContent":["import { useBlimu } from '../providers/blimu/blimu.hook';\n\n/**\n * Hook for accessing the Blimu API client instance\n *\n * Returns the underlying Blimu client that can be used to make direct API calls\n * to the Blimu runtime API. The client is pre-configured with authentication\n * headers and the publishable key.\n *\n * @returns The Blimu API client instance\n *\n * @example\n * ```tsx\n * function MyComponent() {\n * const client = useClient();\n *\n *\n * const handleListEntitlements = async () => {\n * const result = await client.entitlements.listForTenant({\n * tenantResourceId: 'org_123',\n * });\n * };\n *\n * return <button onClick={handleListEntitlements}>List Entitlements</button>;\n * }\n * ```\n */\nexport function useClient() {\n const { client } = useBlimu();\n const blimuClient = client.getClient();\n return blimuClient;\n}\n"],"names":["
|
|
1
|
+
{"version":3,"file":"use-client.cjs","sources":["../../src/hooks/use-client.ts"],"sourcesContent":["import { useBlimu } from '../providers/blimu/blimu.hook';\n\n/**\n * Hook for accessing the Blimu API client instance\n *\n * Returns the underlying Blimu client that can be used to make direct API calls\n * to the Blimu runtime API. The client is pre-configured with authentication\n * headers and the publishable key.\n *\n * @returns The Blimu API client instance\n *\n * @example\n * ```tsx\n * function MyComponent() {\n * const client = useClient();\n *\n *\n * const handleListEntitlements = async () => {\n * const result = await client.entitlements.listForTenant({\n * tenantResourceId: 'org_123',\n * });\n * };\n *\n * return <button onClick={handleListEntitlements}>List Entitlements</button>;\n * }\n * ```\n */\nexport function useClient() {\n const { client } = useBlimu();\n const blimuClient = client.getClient();\n return blimuClient;\n}\n"],"names":["useBlimu"],"mappings":";;;AA2BO,SAAS,YAAY;AAC1B,QAAM,EAAE,OAAA,IAAWA,oBAAA;AACnB,QAAM,cAAc,OAAO,UAAA;AAC3B,SAAO;AACT;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-client.d.ts","sourceRoot":"","sources":["../../src/hooks/use-client.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,SAAS,
|
|
1
|
+
{"version":3,"file":"use-client.d.ts","sourceRoot":"","sources":["../../src/hooks/use-client.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,SAAS,kCAIxB"}
|
package/dist/hooks/use-client.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { useBlimu
|
|
2
|
-
function
|
|
3
|
-
const { client
|
|
4
|
-
|
|
1
|
+
import { useBlimu } from "../providers/blimu/blimu.hook.js";
|
|
2
|
+
function useClient() {
|
|
3
|
+
const { client } = useBlimu();
|
|
4
|
+
const blimuClient = client.getClient();
|
|
5
|
+
return blimuClient;
|
|
5
6
|
}
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
+
useClient
|
|
8
9
|
};
|
|
9
10
|
//# sourceMappingURL=use-client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-client.js","sources":["../../src/hooks/use-client.ts"],"sourcesContent":["import { useBlimu } from '../providers/blimu/blimu.hook';\n\n/**\n * Hook for accessing the Blimu API client instance\n *\n * Returns the underlying Blimu client that can be used to make direct API calls\n * to the Blimu runtime API. The client is pre-configured with authentication\n * headers and the publishable key.\n *\n * @returns The Blimu API client instance\n *\n * @example\n * ```tsx\n * function MyComponent() {\n * const client = useClient();\n *\n *\n * const handleListEntitlements = async () => {\n * const result = await client.entitlements.listForTenant({\n * tenantResourceId: 'org_123',\n * });\n * };\n *\n * return <button onClick={handleListEntitlements}>List Entitlements</button>;\n * }\n * ```\n */\nexport function useClient() {\n const { client } = useBlimu();\n const blimuClient = client.getClient();\n return blimuClient;\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"use-client.js","sources":["../../src/hooks/use-client.ts"],"sourcesContent":["import { useBlimu } from '../providers/blimu/blimu.hook';\n\n/**\n * Hook for accessing the Blimu API client instance\n *\n * Returns the underlying Blimu client that can be used to make direct API calls\n * to the Blimu runtime API. The client is pre-configured with authentication\n * headers and the publishable key.\n *\n * @returns The Blimu API client instance\n *\n * @example\n * ```tsx\n * function MyComponent() {\n * const client = useClient();\n *\n *\n * const handleListEntitlements = async () => {\n * const result = await client.entitlements.listForTenant({\n * tenantResourceId: 'org_123',\n * });\n * };\n *\n * return <button onClick={handleListEntitlements}>List Entitlements</button>;\n * }\n * ```\n */\nexport function useClient() {\n const { client } = useBlimu();\n const blimuClient = client.getClient();\n return blimuClient;\n}\n"],"names":[],"mappings":";AA2BO,SAAS,YAAY;AAC1B,QAAM,EAAE,OAAA,IAAW,SAAA;AACnB,QAAM,cAAc,OAAO,UAAA;AAC3B,SAAO;AACT;"}
|
|
@@ -1,2 +1,61 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const blimu_hook = require("../providers/blimu/blimu.hook.cjs");
|
|
5
|
+
function useMembers({
|
|
6
|
+
resourceType,
|
|
7
|
+
resourceId,
|
|
8
|
+
page = 1,
|
|
9
|
+
limit = 20,
|
|
10
|
+
search: _search = "",
|
|
11
|
+
enabled = true
|
|
12
|
+
}) {
|
|
13
|
+
const { client } = blimu_hook.useBlimu();
|
|
14
|
+
const [members, setMembers] = React.useState([]);
|
|
15
|
+
const [total, setTotal] = React.useState(0);
|
|
16
|
+
const [isLoading, setIsLoading] = React.useState(false);
|
|
17
|
+
const [error, setError] = React.useState(null);
|
|
18
|
+
const fetchMembers = React.useCallback(async () => {
|
|
19
|
+
if (!enabled || !resourceType || !resourceId) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
setIsLoading(true);
|
|
23
|
+
setError(null);
|
|
24
|
+
try {
|
|
25
|
+
const _runtimeClient = client.getClient();
|
|
26
|
+
const response = {
|
|
27
|
+
items: [],
|
|
28
|
+
total: 0,
|
|
29
|
+
page,
|
|
30
|
+
limit
|
|
31
|
+
};
|
|
32
|
+
setMembers(response.items);
|
|
33
|
+
setTotal(response.total);
|
|
34
|
+
} catch (err) {
|
|
35
|
+
const error2 = err instanceof Error ? err : new Error("Failed to fetch members");
|
|
36
|
+
setError(error2);
|
|
37
|
+
setMembers([]);
|
|
38
|
+
setTotal(0);
|
|
39
|
+
} finally {
|
|
40
|
+
setIsLoading(false);
|
|
41
|
+
}
|
|
42
|
+
}, [client, resourceType, resourceId, page, limit, enabled]);
|
|
43
|
+
React.useEffect(() => {
|
|
44
|
+
fetchMembers();
|
|
45
|
+
}, [fetchMembers]);
|
|
46
|
+
const hasNextPage = total > page * limit;
|
|
47
|
+
const hasPreviousPage = page > 1;
|
|
48
|
+
return {
|
|
49
|
+
members,
|
|
50
|
+
total,
|
|
51
|
+
page,
|
|
52
|
+
limit,
|
|
53
|
+
isLoading,
|
|
54
|
+
error,
|
|
55
|
+
refetch: fetchMembers,
|
|
56
|
+
hasNextPage,
|
|
57
|
+
hasPreviousPage
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.useMembers = useMembers;
|
|
2
61
|
//# sourceMappingURL=use-members.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-members.cjs","sources":["../../src/hooks/use-members.ts"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\n\nimport { useBlimu } from '../providers';\n\nexport interface ResourceMember {\n userId: string;\n role: string;\n inherited: boolean;\n user: {\n id: string;\n email: string;\n firstName: string | null;\n lastName: string | null;\n avatarUrl: string | null;\n emailVerified: boolean;\n createdAt: string;\n updatedAt: string;\n lastLoginAt: string | null;\n };\n}\n\nexport interface UseMembersOptions {\n resourceType: string;\n resourceId: string;\n page?: number;\n limit?: number;\n search?: string;\n enabled?: boolean;\n}\n\nexport interface UseMembersResult {\n members: ResourceMember[];\n total: number;\n page: number;\n limit: number;\n isLoading: boolean;\n error: Error | null;\n refetch: () => Promise<void>;\n hasNextPage: boolean;\n hasPreviousPage: boolean;\n}\n\n/**\n * Hook to fetch and manage members list for a resource\n *\n * @example\n * ```tsx\n * const { members, isLoading, error } = useMembers({\n * resourceType: 'organization',\n * resourceId: 'org_123',\n * page: 1,\n * limit: 20,\n * });\n * ```\n */\nexport function useMembers({\n resourceType,\n resourceId,\n page = 1,\n limit = 20,\n search = '',\n enabled = true,\n}: UseMembersOptions): UseMembersResult {\n const { client } = useBlimu();\n const [members, setMembers] = useState<ResourceMember[]>([]);\n const [total, setTotal] = useState(0);\n const [isLoading, setIsLoading] = useState(false);\n const [error, setError] = useState<Error | null>(null);\n\n const fetchMembers = useCallback(async () => {\n if (!enabled || !resourceType || !resourceId) {\n return;\n }\n\n setIsLoading(true);\n setError(null);\n\n try {\n // TODO: Implement when resourceMembers API is available in runtime client\n // For now, this is a placeholder that will need to be implemented\n // when the runtime client exposes the resourceMembers service\n const
|
|
1
|
+
{"version":3,"file":"use-members.cjs","sources":["../../src/hooks/use-members.ts"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\n\nimport { useBlimu } from '../providers';\n\nexport interface ResourceMember {\n userId: string;\n role: string;\n inherited: boolean;\n user: {\n id: string;\n email: string;\n firstName: string | null;\n lastName: string | null;\n avatarUrl: string | null;\n emailVerified: boolean;\n createdAt: string;\n updatedAt: string;\n lastLoginAt: string | null;\n };\n}\n\nexport interface UseMembersOptions {\n resourceType: string;\n resourceId: string;\n page?: number | undefined;\n limit?: number | undefined;\n search?: string | undefined;\n enabled?: boolean | undefined;\n}\n\nexport interface UseMembersResult {\n members: ResourceMember[];\n total: number;\n page: number;\n limit: number;\n isLoading: boolean;\n error: Error | null;\n refetch: () => Promise<void>;\n hasNextPage: boolean;\n hasPreviousPage: boolean;\n}\n\n/**\n * Hook to fetch and manage members list for a resource\n *\n * @example\n * ```tsx\n * const { members, isLoading, error } = useMembers({\n * resourceType: 'organization',\n * resourceId: 'org_123',\n * page: 1,\n * limit: 20,\n * });\n * ```\n */\nexport function useMembers({\n resourceType,\n resourceId,\n page = 1,\n limit = 20,\n search: _search = '',\n enabled = true,\n}: UseMembersOptions): UseMembersResult {\n const { client } = useBlimu();\n const [members, setMembers] = useState<ResourceMember[]>([]);\n const [total, setTotal] = useState(0);\n const [isLoading, setIsLoading] = useState(false);\n const [error, setError] = useState<Error | null>(null);\n\n const fetchMembers = useCallback(async () => {\n if (!enabled || !resourceType || !resourceId) {\n return;\n }\n\n setIsLoading(true);\n setError(null);\n\n try {\n // TODO: Implement when resourceMembers API is available in runtime client\n // For now, this is a placeholder that will need to be implemented\n // when the runtime client exposes the resourceMembers service\n const _runtimeClient = client.getClient();\n\n // This will need to be implemented when the API is available\n // const response = await runtimeClient.resourceMembers.list(resourceType, resourceId, {\n // page,\n // limit,\n // search,\n // });\n\n // Placeholder response\n const response = {\n items: [],\n total: 0,\n page,\n limit,\n };\n\n setMembers(response.items);\n setTotal(response.total);\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to fetch members');\n setError(error);\n setMembers([]);\n setTotal(0);\n } finally {\n setIsLoading(false);\n }\n }, [client, resourceType, resourceId, page, limit, enabled]);\n\n useEffect(() => {\n fetchMembers();\n }, [fetchMembers]);\n\n const hasNextPage = total > page * limit;\n const hasPreviousPage = page > 1;\n\n return {\n members,\n total,\n page,\n limit,\n isLoading,\n error,\n refetch: fetchMembers,\n hasNextPage,\n hasPreviousPage,\n };\n}\n"],"names":["useBlimu","useState","useCallback","error","useEffect"],"mappings":";;;;AAuDO,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ,UAAU;AAAA,EAClB,UAAU;AACZ,GAAwC;AACtC,QAAM,EAAE,OAAA,IAAWA,oBAAA;AACnB,QAAM,CAAC,SAAS,UAAU,IAAIC,MAAAA,SAA2B,CAAA,CAAE;AAC3D,QAAM,CAAC,OAAO,QAAQ,IAAIA,MAAAA,SAAS,CAAC;AACpC,QAAM,CAAC,WAAW,YAAY,IAAIA,MAAAA,SAAS,KAAK;AAChD,QAAM,CAAC,OAAO,QAAQ,IAAIA,MAAAA,SAAuB,IAAI;AAErD,QAAM,eAAeC,MAAAA,YAAY,YAAY;AAC3C,QAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,YAAY;AAC5C;AAAA,IACF;AAEA,iBAAa,IAAI;AACjB,aAAS,IAAI;AAEb,QAAI;AAIF,YAAM,iBAAiB,OAAO,UAAA;AAU9B,YAAM,WAAW;AAAA,QACf,OAAO,CAAA;AAAA,QACP,OAAO;AAAA,QACP;AAAA,QACA;AAAA,MAAA;AAGF,iBAAW,SAAS,KAAK;AACzB,eAAS,SAAS,KAAK;AAAA,IACzB,SAAS,KAAK;AACZ,YAAMC,SAAQ,eAAe,QAAQ,MAAM,IAAI,MAAM,yBAAyB;AAC9E,eAASA,MAAK;AACd,iBAAW,CAAA,CAAE;AACb,eAAS,CAAC;AAAA,IACZ,UAAA;AACE,mBAAa,KAAK;AAAA,IACpB;AAAA,EACF,GAAG,CAAC,QAAQ,cAAc,YAAY,MAAM,OAAO,OAAO,CAAC;AAE3DC,QAAAA,UAAU,MAAM;AACd,iBAAA;AAAA,EACF,GAAG,CAAC,YAAY,CAAC;AAEjB,QAAM,cAAc,QAAQ,OAAO;AACnC,QAAM,kBAAkB,OAAO;AAE/B,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA;AAAA,EAAA;AAEJ;;"}
|
|
@@ -17,10 +17,10 @@ export interface ResourceMember {
|
|
|
17
17
|
export interface UseMembersOptions {
|
|
18
18
|
resourceType: string;
|
|
19
19
|
resourceId: string;
|
|
20
|
-
page?: number;
|
|
21
|
-
limit?: number;
|
|
22
|
-
search?: string;
|
|
23
|
-
enabled?: boolean;
|
|
20
|
+
page?: number | undefined;
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
search?: string | undefined;
|
|
23
|
+
enabled?: boolean | undefined;
|
|
24
24
|
}
|
|
25
25
|
export interface UseMembersResult {
|
|
26
26
|
members: ResourceMember[];
|
|
@@ -46,5 +46,5 @@ export interface UseMembersResult {
|
|
|
46
46
|
* });
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
|
-
export declare function useMembers({ resourceType, resourceId, page, limit, search, enabled, }: UseMembersOptions): UseMembersResult;
|
|
49
|
+
export declare function useMembers({ resourceType, resourceId, page, limit, search: _search, enabled, }: UseMembersOptions): UseMembersResult;
|
|
50
50
|
//# sourceMappingURL=use-members.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-members.d.ts","sourceRoot":"","sources":["../../src/hooks/use-members.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,aAAa,EAAE,OAAO,CAAC;QACvB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;KAC5B,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"use-members.d.ts","sourceRoot":"","sources":["../../src/hooks/use-members.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,aAAa,EAAE,OAAO,CAAC;QACvB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;KAC5B,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,EACzB,YAAY,EACZ,UAAU,EACV,IAAQ,EACR,KAAU,EACV,MAAM,EAAE,OAAY,EACpB,OAAc,GACf,EAAE,iBAAiB,GAAG,gBAAgB,CAkEtC"}
|
|
@@ -1,49 +1,61 @@
|
|
|
1
|
-
import { useState
|
|
2
|
-
import { useBlimu
|
|
3
|
-
function
|
|
4
|
-
resourceType
|
|
5
|
-
resourceId
|
|
6
|
-
page
|
|
7
|
-
limit
|
|
8
|
-
search:
|
|
9
|
-
enabled
|
|
1
|
+
import { useState, useCallback, useEffect } from "react";
|
|
2
|
+
import { useBlimu } from "../providers/blimu/blimu.hook.js";
|
|
3
|
+
function useMembers({
|
|
4
|
+
resourceType,
|
|
5
|
+
resourceId,
|
|
6
|
+
page = 1,
|
|
7
|
+
limit = 20,
|
|
8
|
+
search: _search = "",
|
|
9
|
+
enabled = true
|
|
10
10
|
}) {
|
|
11
|
-
const { client
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
limit: e
|
|
20
|
-
};
|
|
21
|
-
u(s.items), m(s.total);
|
|
22
|
-
} catch (n) {
|
|
23
|
-
const s = n instanceof Error ? n : new Error("Failed to fetch members");
|
|
24
|
-
b(s), u([]), m(0);
|
|
25
|
-
} finally {
|
|
26
|
-
h(!1);
|
|
27
|
-
}
|
|
11
|
+
const { client } = useBlimu();
|
|
12
|
+
const [members, setMembers] = useState([]);
|
|
13
|
+
const [total, setTotal] = useState(0);
|
|
14
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
15
|
+
const [error, setError] = useState(null);
|
|
16
|
+
const fetchMembers = useCallback(async () => {
|
|
17
|
+
if (!enabled || !resourceType || !resourceId) {
|
|
18
|
+
return;
|
|
28
19
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
20
|
+
setIsLoading(true);
|
|
21
|
+
setError(null);
|
|
22
|
+
try {
|
|
23
|
+
const _runtimeClient = client.getClient();
|
|
24
|
+
const response = {
|
|
25
|
+
items: [],
|
|
26
|
+
total: 0,
|
|
27
|
+
page,
|
|
28
|
+
limit
|
|
29
|
+
};
|
|
30
|
+
setMembers(response.items);
|
|
31
|
+
setTotal(response.total);
|
|
32
|
+
} catch (err) {
|
|
33
|
+
const error2 = err instanceof Error ? err : new Error("Failed to fetch members");
|
|
34
|
+
setError(error2);
|
|
35
|
+
setMembers([]);
|
|
36
|
+
setTotal(0);
|
|
37
|
+
} finally {
|
|
38
|
+
setIsLoading(false);
|
|
39
|
+
}
|
|
40
|
+
}, [client, resourceType, resourceId, page, limit, enabled]);
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
fetchMembers();
|
|
43
|
+
}, [fetchMembers]);
|
|
44
|
+
const hasNextPage = total > page * limit;
|
|
45
|
+
const hasPreviousPage = page > 1;
|
|
34
46
|
return {
|
|
35
|
-
members
|
|
36
|
-
total
|
|
37
|
-
page
|
|
38
|
-
limit
|
|
39
|
-
isLoading
|
|
40
|
-
error
|
|
41
|
-
refetch:
|
|
42
|
-
hasNextPage
|
|
43
|
-
hasPreviousPage
|
|
47
|
+
members,
|
|
48
|
+
total,
|
|
49
|
+
page,
|
|
50
|
+
limit,
|
|
51
|
+
isLoading,
|
|
52
|
+
error,
|
|
53
|
+
refetch: fetchMembers,
|
|
54
|
+
hasNextPage,
|
|
55
|
+
hasPreviousPage
|
|
44
56
|
};
|
|
45
57
|
}
|
|
46
58
|
export {
|
|
47
|
-
|
|
59
|
+
useMembers
|
|
48
60
|
};
|
|
49
61
|
//# sourceMappingURL=use-members.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-members.js","sources":["../../src/hooks/use-members.ts"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\n\nimport { useBlimu } from '../providers';\n\nexport interface ResourceMember {\n userId: string;\n role: string;\n inherited: boolean;\n user: {\n id: string;\n email: string;\n firstName: string | null;\n lastName: string | null;\n avatarUrl: string | null;\n emailVerified: boolean;\n createdAt: string;\n updatedAt: string;\n lastLoginAt: string | null;\n };\n}\n\nexport interface UseMembersOptions {\n resourceType: string;\n resourceId: string;\n page?: number;\n limit?: number;\n search?: string;\n enabled?: boolean;\n}\n\nexport interface UseMembersResult {\n members: ResourceMember[];\n total: number;\n page: number;\n limit: number;\n isLoading: boolean;\n error: Error | null;\n refetch: () => Promise<void>;\n hasNextPage: boolean;\n hasPreviousPage: boolean;\n}\n\n/**\n * Hook to fetch and manage members list for a resource\n *\n * @example\n * ```tsx\n * const { members, isLoading, error } = useMembers({\n * resourceType: 'organization',\n * resourceId: 'org_123',\n * page: 1,\n * limit: 20,\n * });\n * ```\n */\nexport function useMembers({\n resourceType,\n resourceId,\n page = 1,\n limit = 20,\n search = '',\n enabled = true,\n}: UseMembersOptions): UseMembersResult {\n const { client } = useBlimu();\n const [members, setMembers] = useState<ResourceMember[]>([]);\n const [total, setTotal] = useState(0);\n const [isLoading, setIsLoading] = useState(false);\n const [error, setError] = useState<Error | null>(null);\n\n const fetchMembers = useCallback(async () => {\n if (!enabled || !resourceType || !resourceId) {\n return;\n }\n\n setIsLoading(true);\n setError(null);\n\n try {\n // TODO: Implement when resourceMembers API is available in runtime client\n // For now, this is a placeholder that will need to be implemented\n // when the runtime client exposes the resourceMembers service\n const
|
|
1
|
+
{"version":3,"file":"use-members.js","sources":["../../src/hooks/use-members.ts"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\n\nimport { useBlimu } from '../providers';\n\nexport interface ResourceMember {\n userId: string;\n role: string;\n inherited: boolean;\n user: {\n id: string;\n email: string;\n firstName: string | null;\n lastName: string | null;\n avatarUrl: string | null;\n emailVerified: boolean;\n createdAt: string;\n updatedAt: string;\n lastLoginAt: string | null;\n };\n}\n\nexport interface UseMembersOptions {\n resourceType: string;\n resourceId: string;\n page?: number | undefined;\n limit?: number | undefined;\n search?: string | undefined;\n enabled?: boolean | undefined;\n}\n\nexport interface UseMembersResult {\n members: ResourceMember[];\n total: number;\n page: number;\n limit: number;\n isLoading: boolean;\n error: Error | null;\n refetch: () => Promise<void>;\n hasNextPage: boolean;\n hasPreviousPage: boolean;\n}\n\n/**\n * Hook to fetch and manage members list for a resource\n *\n * @example\n * ```tsx\n * const { members, isLoading, error } = useMembers({\n * resourceType: 'organization',\n * resourceId: 'org_123',\n * page: 1,\n * limit: 20,\n * });\n * ```\n */\nexport function useMembers({\n resourceType,\n resourceId,\n page = 1,\n limit = 20,\n search: _search = '',\n enabled = true,\n}: UseMembersOptions): UseMembersResult {\n const { client } = useBlimu();\n const [members, setMembers] = useState<ResourceMember[]>([]);\n const [total, setTotal] = useState(0);\n const [isLoading, setIsLoading] = useState(false);\n const [error, setError] = useState<Error | null>(null);\n\n const fetchMembers = useCallback(async () => {\n if (!enabled || !resourceType || !resourceId) {\n return;\n }\n\n setIsLoading(true);\n setError(null);\n\n try {\n // TODO: Implement when resourceMembers API is available in runtime client\n // For now, this is a placeholder that will need to be implemented\n // when the runtime client exposes the resourceMembers service\n const _runtimeClient = client.getClient();\n\n // This will need to be implemented when the API is available\n // const response = await runtimeClient.resourceMembers.list(resourceType, resourceId, {\n // page,\n // limit,\n // search,\n // });\n\n // Placeholder response\n const response = {\n items: [],\n total: 0,\n page,\n limit,\n };\n\n setMembers(response.items);\n setTotal(response.total);\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to fetch members');\n setError(error);\n setMembers([]);\n setTotal(0);\n } finally {\n setIsLoading(false);\n }\n }, [client, resourceType, resourceId, page, limit, enabled]);\n\n useEffect(() => {\n fetchMembers();\n }, [fetchMembers]);\n\n const hasNextPage = total > page * limit;\n const hasPreviousPage = page > 1;\n\n return {\n members,\n total,\n page,\n limit,\n isLoading,\n error,\n refetch: fetchMembers,\n hasNextPage,\n hasPreviousPage,\n };\n}\n"],"names":["error"],"mappings":";;AAuDO,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ,UAAU;AAAA,EAClB,UAAU;AACZ,GAAwC;AACtC,QAAM,EAAE,OAAA,IAAW,SAAA;AACnB,QAAM,CAAC,SAAS,UAAU,IAAI,SAA2B,CAAA,CAAE;AAC3D,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,CAAC;AACpC,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,KAAK;AAChD,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAuB,IAAI;AAErD,QAAM,eAAe,YAAY,YAAY;AAC3C,QAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,YAAY;AAC5C;AAAA,IACF;AAEA,iBAAa,IAAI;AACjB,aAAS,IAAI;AAEb,QAAI;AAIF,YAAM,iBAAiB,OAAO,UAAA;AAU9B,YAAM,WAAW;AAAA,QACf,OAAO,CAAA;AAAA,QACP,OAAO;AAAA,QACP;AAAA,QACA;AAAA,MAAA;AAGF,iBAAW,SAAS,KAAK;AACzB,eAAS,SAAS,KAAK;AAAA,IACzB,SAAS,KAAK;AACZ,YAAMA,SAAQ,eAAe,QAAQ,MAAM,IAAI,MAAM,yBAAyB;AAC9E,eAASA,MAAK;AACd,iBAAW,CAAA,CAAE;AACb,eAAS,CAAC;AAAA,IACZ,UAAA;AACE,mBAAa,KAAK;AAAA,IACpB;AAAA,EACF,GAAG,CAAC,QAAQ,cAAc,YAAY,MAAM,OAAO,OAAO,CAAC;AAE3D,YAAU,MAAM;AACd,iBAAA;AAAA,EACF,GAAG,CAAC,YAAY,CAAC;AAEjB,QAAM,cAAc,QAAQ,OAAO;AACnC,QAAM,kBAAkB,OAAO;AAE/B,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA;AAAA,EAAA;AAEJ;"}
|
package/dist/hooks/use-store.cjs
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const React = require("react");
|
|
4
|
+
function useStore(store) {
|
|
5
|
+
return React.useSyncExternalStore(
|
|
6
|
+
// subscribe function - returns unsubscribe
|
|
7
|
+
// useSyncExternalStore expects a callback that just notifies of changes
|
|
8
|
+
// Our store passes state to listeners, so we wrap it to ignore the state
|
|
9
|
+
store.subscribe,
|
|
10
|
+
// getSnapshot function - returns current state
|
|
11
|
+
store.getSnapshot,
|
|
12
|
+
// getServerSnapshot (optional) - for SSR compatibility
|
|
13
|
+
// Returns initial state for server-side rendering
|
|
14
|
+
store.getSnapshot
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
exports.useStore = useStore;
|
|
2
18
|
//# sourceMappingURL=use-store.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-store.cjs","sources":["../../src/hooks/use-store.ts"],"sourcesContent":["import { useSyncExternalStore } from 'react';\n\nimport type { ExternalStore } from '../client/external-store';\n\n/**\n * Hook to subscribe to an ExternalStore and get its current state\n * Uses React's useSyncExternalStore for optimal performance and SSR support\n *\n * @example\n * ```tsx\n * const store = new ExternalStore({ count: 0 });\n *\n * function Counter() {\n * const state = useStore(store);\n * return (\n * <div>\n * <p>Count: {state.count}</p>\n * <button onClick={() => store.setState({ count: state.count + 1 })}>\n * Increment\n * </button>\n * </div>\n * );\n * }\n * ```\n */\nexport function useStore<T>(store: ExternalStore<T>): T {\n return useSyncExternalStore(\n // subscribe function - returns unsubscribe\n // useSyncExternalStore expects a callback that just notifies of changes\n // Our store passes state to listeners, so we wrap it to ignore the state\n store.subscribe,\n // getSnapshot function - returns current state\n store.getSnapshot,\n // getServerSnapshot (optional) - for SSR compatibility\n // Returns initial state for server-side rendering\n store.getSnapshot,\n );\n}\n"],"names":["
|
|
1
|
+
{"version":3,"file":"use-store.cjs","sources":["../../src/hooks/use-store.ts"],"sourcesContent":["import { useSyncExternalStore } from 'react';\n\nimport type { ExternalStore } from '../client/external-store';\n\n/**\n * Hook to subscribe to an ExternalStore and get its current state\n * Uses React's useSyncExternalStore for optimal performance and SSR support\n *\n * @example\n * ```tsx\n * const store = new ExternalStore({ count: 0 });\n *\n * function Counter() {\n * const state = useStore(store);\n * return (\n * <div>\n * <p>Count: {state.count}</p>\n * <button onClick={() => store.setState({ count: state.count + 1 })}>\n * Increment\n * </button>\n * </div>\n * );\n * }\n * ```\n */\nexport function useStore<T>(store: ExternalStore<T>): T {\n return useSyncExternalStore(\n // subscribe function - returns unsubscribe\n // useSyncExternalStore expects a callback that just notifies of changes\n // Our store passes state to listeners, so we wrap it to ignore the state\n store.subscribe,\n // getSnapshot function - returns current state\n store.getSnapshot,\n // getServerSnapshot (optional) - for SSR compatibility\n // Returns initial state for server-side rendering\n store.getSnapshot,\n );\n}\n"],"names":["useSyncExternalStore"],"mappings":";;;AAyBO,SAAS,SAAY,OAA4B;AACtD,SAAOA,MAAAA;AAAAA;AAAAA;AAAAA;AAAAA,IAIL,MAAM;AAAA;AAAA,IAEN,MAAM;AAAA;AAAA;AAAA,IAGN,MAAM;AAAA,EAAA;AAEV;;"}
|
package/dist/hooks/use-store.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { useSyncExternalStore
|
|
2
|
-
function
|
|
3
|
-
return
|
|
1
|
+
import { useSyncExternalStore } from "react";
|
|
2
|
+
function useStore(store) {
|
|
3
|
+
return useSyncExternalStore(
|
|
4
4
|
// subscribe function - returns unsubscribe
|
|
5
5
|
// useSyncExternalStore expects a callback that just notifies of changes
|
|
6
6
|
// Our store passes state to listeners, so we wrap it to ignore the state
|
|
7
|
-
|
|
7
|
+
store.subscribe,
|
|
8
8
|
// getSnapshot function - returns current state
|
|
9
|
-
|
|
9
|
+
store.getSnapshot,
|
|
10
10
|
// getServerSnapshot (optional) - for SSR compatibility
|
|
11
11
|
// Returns initial state for server-side rendering
|
|
12
|
-
|
|
12
|
+
store.getSnapshot
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
useStore
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=use-store.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-store.js","sources":["../../src/hooks/use-store.ts"],"sourcesContent":["import { useSyncExternalStore } from 'react';\n\nimport type { ExternalStore } from '../client/external-store';\n\n/**\n * Hook to subscribe to an ExternalStore and get its current state\n * Uses React's useSyncExternalStore for optimal performance and SSR support\n *\n * @example\n * ```tsx\n * const store = new ExternalStore({ count: 0 });\n *\n * function Counter() {\n * const state = useStore(store);\n * return (\n * <div>\n * <p>Count: {state.count}</p>\n * <button onClick={() => store.setState({ count: state.count + 1 })}>\n * Increment\n * </button>\n * </div>\n * );\n * }\n * ```\n */\nexport function useStore<T>(store: ExternalStore<T>): T {\n return useSyncExternalStore(\n // subscribe function - returns unsubscribe\n // useSyncExternalStore expects a callback that just notifies of changes\n // Our store passes state to listeners, so we wrap it to ignore the state\n store.subscribe,\n // getSnapshot function - returns current state\n store.getSnapshot,\n // getServerSnapshot (optional) - for SSR compatibility\n // Returns initial state for server-side rendering\n store.getSnapshot,\n );\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"use-store.js","sources":["../../src/hooks/use-store.ts"],"sourcesContent":["import { useSyncExternalStore } from 'react';\n\nimport type { ExternalStore } from '../client/external-store';\n\n/**\n * Hook to subscribe to an ExternalStore and get its current state\n * Uses React's useSyncExternalStore for optimal performance and SSR support\n *\n * @example\n * ```tsx\n * const store = new ExternalStore({ count: 0 });\n *\n * function Counter() {\n * const state = useStore(store);\n * return (\n * <div>\n * <p>Count: {state.count}</p>\n * <button onClick={() => store.setState({ count: state.count + 1 })}>\n * Increment\n * </button>\n * </div>\n * );\n * }\n * ```\n */\nexport function useStore<T>(store: ExternalStore<T>): T {\n return useSyncExternalStore(\n // subscribe function - returns unsubscribe\n // useSyncExternalStore expects a callback that just notifies of changes\n // Our store passes state to listeners, so we wrap it to ignore the state\n store.subscribe,\n // getSnapshot function - returns current state\n store.getSnapshot,\n // getServerSnapshot (optional) - for SSR compatibility\n // Returns initial state for server-side rendering\n store.getSnapshot,\n );\n}\n"],"names":[],"mappings":";AAyBO,SAAS,SAAY,OAA4B;AACtD,SAAO;AAAA;AAAA;AAAA;AAAA,IAIL,MAAM;AAAA;AAAA,IAEN,MAAM;AAAA;AAAA;AAAA,IAGN,MAAM;AAAA,EAAA;AAEV;"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,38 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const membersList = require("./components/members-list.cjs");
|
|
4
|
+
const redirectToSignIn = require("./components/redirect-to-sign-in.cjs");
|
|
5
|
+
const signInButton = require("./components/sign-in-button.cjs");
|
|
6
|
+
const userAvatar = require("./components/user-avatar.cjs");
|
|
7
|
+
const userButton = require("./components/user-button/user-button.cjs");
|
|
8
|
+
const blimu_hook = require("./providers/blimu/blimu.hook.cjs");
|
|
9
|
+
const useAuth = require("./hooks/use-auth.cjs");
|
|
10
|
+
const useClient = require("./hooks/use-client.cjs");
|
|
11
|
+
const useMembers = require("./hooks/use-members.cjs");
|
|
12
|
+
const blimu_provider = require("./providers/blimu/blimu.provider.cjs");
|
|
13
|
+
const types_index = require("./types/index.cjs");
|
|
14
|
+
const runtimeClient = require("./client/runtime-client.cjs");
|
|
15
|
+
const publishableKey = require("./utils/publishable-key.cjs");
|
|
16
|
+
const tailwind = require("./tailwind.cjs");
|
|
17
|
+
const theme_provider = require("./providers/theme/theme.provider.cjs");
|
|
18
|
+
const theme_hook = require("./providers/theme/theme.hook.cjs");
|
|
19
|
+
exports.MembersList = membersList.MembersList;
|
|
20
|
+
exports.RedirectToSignIn = redirectToSignIn.RedirectToSignIn;
|
|
21
|
+
exports.SignInButton = signInButton.SignInButton;
|
|
22
|
+
exports.UserAvatar = userAvatar.UserAvatar;
|
|
23
|
+
exports.UserButton = userButton.UserButton;
|
|
24
|
+
exports.useBlimu = blimu_hook.useBlimu;
|
|
25
|
+
exports.useAuth = useAuth.useAuth;
|
|
26
|
+
exports.useUser = useAuth.useUser;
|
|
27
|
+
exports.useClient = useClient.useClient;
|
|
28
|
+
exports.useMembers = useMembers.useMembers;
|
|
29
|
+
exports.BlimuProvider = blimu_provider.BlimuProvider;
|
|
30
|
+
exports.AuthStateGuards = types_index.AuthStateGuards;
|
|
31
|
+
exports.BlimuRuntimeClientWrapper = runtimeClient.BlimuRuntimeClientWrapper;
|
|
32
|
+
exports.decodePublishableKey = publishableKey.decodePublishableKey;
|
|
33
|
+
exports.getAuthApiUrl = publishableKey.getAuthApiUrl;
|
|
34
|
+
exports.getAuthDomainFromPublishableKey = publishableKey.getAuthDomainFromPublishableKey;
|
|
35
|
+
exports.blimuPlugin = tailwind.blimuPlugin;
|
|
36
|
+
exports.ThemeProvider = theme_provider.ThemeProvider;
|
|
37
|
+
exports.useTheme = theme_hook.useTheme;
|
|
2
38
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type { RedirectToSignInProps,
|
|
2
|
-
export { RedirectToSignIn,
|
|
3
|
-
export {
|
|
4
|
-
export
|
|
1
|
+
export type { MembersListProps, RedirectToSignInProps, SignInButtonProps, UserAvatarProps, UserButtonProps, } from './components';
|
|
2
|
+
export { MembersList, RedirectToSignIn, SignInButton, UserAvatar, UserButton } from './components';
|
|
3
|
+
export type { ResourceMember, UseAuthReturn, UseMembersOptions, UseMembersResult } from './hooks';
|
|
4
|
+
export { useAuth, useBlimu, useClient, useMembers, useUser } from './hooks';
|
|
5
|
+
export type { AppearanceConfig, Theme, ThemeContextValue } from './providers';
|
|
5
6
|
export { BlimuProvider, ThemeProvider, useTheme } from './providers';
|
|
6
|
-
export type { Theme, ThemeContextValue, AppearanceConfig } from './providers';
|
|
7
7
|
export type { AuthContextValue, AuthState, BlimuConfig, User } from './types';
|
|
8
8
|
export { AuthStateGuards } from './types';
|
|
9
9
|
export { BlimuRuntimeClientWrapper } from './client/runtime-client';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAkCA,YAAY,EACV,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAkCA,YAAY,EACV,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACnG,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAClG,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC5E,YAAY,EAAE,gBAAgB,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGrE,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGpE,YAAY,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,+BAA+B,GAChC,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|