@vuer-ai/vuer-uikit 0.0.101 → 0.0.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SyncScroll/SyncScroll.cjs +4 -4
- package/dist/SyncScroll/SyncScroll.mjs +4 -4
- package/dist/SyncScroll/index.cjs +4 -4
- package/dist/SyncScroll/index.mjs +4 -4
- package/dist/auth/context/auth-context.cjs +10 -0
- package/dist/auth/context/auth-context.d.cts +15 -0
- package/dist/auth/context/auth-context.d.ts +15 -0
- package/dist/auth/context/auth-context.mjs +1 -0
- package/dist/auth/handler/create-client.cjs +12 -0
- package/dist/auth/handler/create-client.d.cts +7 -0
- package/dist/auth/handler/create-client.d.ts +7 -0
- package/dist/auth/handler/create-client.mjs +3 -0
- package/dist/auth/handler/sign-in-handler.cjs +11 -0
- package/dist/auth/handler/sign-in-handler.d.cts +7 -0
- package/dist/auth/handler/sign-in-handler.d.ts +7 -0
- package/dist/auth/handler/sign-in-handler.mjs +2 -0
- package/dist/auth/hooks/use-vuer-auth.cjs +11 -0
- package/dist/auth/hooks/use-vuer-auth.d.cts +9 -0
- package/dist/auth/hooks/use-vuer-auth.d.ts +9 -0
- package/dist/auth/hooks/use-vuer-auth.mjs +2 -0
- package/dist/auth/hooks/use-vuer-method.cjs +14 -0
- package/dist/auth/hooks/use-vuer-method.d.cts +11 -0
- package/dist/auth/hooks/use-vuer-method.d.ts +11 -0
- package/dist/auth/hooks/use-vuer-method.mjs +5 -0
- package/dist/auth/index.cjs +33 -0
- package/dist/auth/index.d.cts +10 -0
- package/dist/auth/index.d.ts +10 -0
- package/dist/auth/index.mjs +8 -0
- package/dist/auth/localstorage-key.cjs +14 -0
- package/dist/auth/localstorage-key.d.cts +4 -0
- package/dist/auth/localstorage-key.d.ts +4 -0
- package/dist/auth/localstorage-key.mjs +1 -0
- package/dist/auth/types.cjs +14 -0
- package/dist/auth/types.d.cts +3481 -0
- package/dist/auth/types.d.ts +3481 -0
- package/dist/auth/types.mjs +1 -0
- package/dist/auth/vuer-auth-provider.cjs +14 -0
- package/dist/auth/vuer-auth-provider.d.cts +9 -0
- package/dist/auth/vuer-auth-provider.d.ts +9 -0
- package/dist/auth/vuer-auth-provider.mjs +5 -0
- package/dist/{chunk-OJUK6WJ5.mjs → chunk-24IUD6Q3.mjs} +1 -1
- package/dist/{chunk-BMJX3SEO.cjs → chunk-2EG65KGO.cjs} +2 -2
- package/dist/{chunk-EC4HJUX6.cjs → chunk-2PJO5UJL.cjs} +11 -11
- package/dist/{chunk-LPA6WYFD.cjs → chunk-2WD4ZL27.cjs} +4 -4
- package/dist/chunk-3IVDCAFM.mjs +10 -0
- package/dist/{chunk-ZZLF2YWP.mjs → chunk-3TUONMQ6.mjs} +1 -1
- package/dist/{chunk-TPPM276W.mjs → chunk-3VVQWVDE.mjs} +1 -1
- package/dist/chunk-4B44SRRP.cjs +12 -0
- package/dist/{chunk-NT5ZTF56.mjs → chunk-4JGGLCXT.mjs} +1 -1
- package/dist/{chunk-YMSWUGHW.cjs → chunk-4PKPCOAF.cjs} +2 -1
- package/dist/{chunk-KMCZXNKA.mjs → chunk-4THQPG6Y.mjs} +1 -1
- package/dist/{chunk-62VCQ2SU.cjs → chunk-4WRTIOGZ.cjs} +3 -2
- package/dist/{chunk-55RSKLJ5.cjs → chunk-5JPYU5A6.cjs} +11 -11
- package/dist/{chunk-PQEAXTVY.mjs → chunk-5KJP6A6C.mjs} +12 -26
- package/dist/{chunk-ZNPI2TYG.mjs → chunk-5MBEK77I.mjs} +5 -13
- package/dist/{chunk-G7FYBSFO.cjs → chunk-5SP25SO3.cjs} +15 -14
- package/dist/chunk-5XBMFADS.cjs +42 -0
- package/dist/{chunk-HKJCPZZG.cjs → chunk-64L2SNKA.cjs} +2 -2
- package/dist/chunk-6BD5MQ5R.cjs +8 -0
- package/dist/{chunk-ZPH5LMEM.mjs → chunk-6NSQLHKC.mjs} +1 -1
- package/dist/{chunk-OYNLQTHW.cjs → chunk-6QU4J3HY.cjs} +23 -25
- package/dist/{chunk-2FGRTFK4.mjs → chunk-6XOTWZFC.mjs} +2 -2
- package/dist/{chunk-AAWWWYRN.cjs → chunk-7GJVMFKJ.cjs} +4 -4
- package/dist/{chunk-C4E2MFZB.mjs → chunk-7HOEFGEO.mjs} +1 -1
- package/dist/chunk-7KQXX7QB.mjs +54 -0
- package/dist/{chunk-W3RJNSWQ.mjs → chunk-7NOBQH7O.mjs} +2 -2
- package/dist/{chunk-OTR4SFDC.cjs → chunk-A2UZY7Y2.cjs} +2 -2
- package/dist/chunk-ACYOVCGH.mjs +30 -0
- package/dist/chunk-ACYZOKPT.mjs +64 -0
- package/dist/chunk-AJQEHMYV.cjs +47 -0
- package/dist/{chunk-7YMH34JL.cjs → chunk-AOV3ADTV.cjs} +2 -2
- package/dist/{chunk-AIYM5PFP.cjs → chunk-BXBSZOBU.cjs} +8 -4
- package/dist/{chunk-5WDPNBQW.cjs → chunk-C6L7YIGW.cjs} +2 -1
- package/dist/{chunk-CZ2YNM7Y.mjs → chunk-CGUQWS2I.mjs} +1 -1
- package/dist/chunk-CHYXRETV.cjs +23 -0
- package/dist/{chunk-INHZ5D7P.mjs → chunk-CZ4GQOXG.mjs} +1 -6
- package/dist/{chunk-5EXV5EWF.mjs → chunk-D5H4XX6Q.mjs} +1 -1
- package/dist/{chunk-MUQYO2G3.cjs → chunk-D5WOPTKY.cjs} +2 -2
- package/dist/{chunk-CWAVHHJA.cjs → chunk-EAXBNWXE.cjs} +2 -2
- package/dist/{chunk-EAZQH4IX.mjs → chunk-EOSYXHEH.mjs} +1 -1
- package/dist/{chunk-MIGXY5PR.mjs → chunk-EXQQRW7T.mjs} +1 -1
- package/dist/chunk-FBAOEFDU.mjs +24 -0
- package/dist/{chunk-7LLDKYND.mjs → chunk-FK6ZROZE.mjs} +31 -29
- package/dist/{chunk-EBBHJLUX.mjs → chunk-G4Q5ALRW.mjs} +2 -1
- package/dist/chunk-G6U2K2GR.cjs +32 -0
- package/dist/{chunk-DREOOKO2.cjs → chunk-GOGJVFRN.cjs} +4 -4
- package/dist/{chunk-W3J4QTKS.cjs → chunk-H6MFBIRB.cjs} +7 -7
- package/dist/{chunk-TZC4ST5T.cjs → chunk-HA6M4XKT.cjs} +24 -337
- package/dist/{chunk-NSQOQD43.cjs → chunk-HBIZQDDS.cjs} +1 -6
- package/dist/{chunk-7RIGSS5X.cjs → chunk-HN3AMWUM.cjs} +2 -2
- package/dist/chunk-HPK4YEVK.cjs +27 -0
- package/dist/{chunk-M5UZ3SBY.cjs → chunk-I2BVWNRP.cjs} +218 -51
- package/dist/chunk-IXNXSECD.mjs +45 -0
- package/dist/chunk-IY36FZ5R.mjs +40 -0
- package/dist/{chunk-FFCQKAQA.cjs → chunk-JFIAWTRH.cjs} +2 -2
- package/dist/{chunk-AEVZSYGJ.cjs → chunk-JFJRNNPQ.cjs} +2 -2
- package/dist/chunk-JLWAIMUZ.cjs +26 -0
- package/dist/{chunk-7R2ZBAE6.mjs → chunk-JUSFLIU5.mjs} +1 -1
- package/dist/{chunk-K22BEXUA.mjs → chunk-JVV7W3TP.mjs} +1 -1
- package/dist/{chunk-VO3C6RE2.mjs → chunk-JWUIZX35.mjs} +2 -2
- package/dist/{chunk-6TSA7KXX.cjs → chunk-JWVH6R35.cjs} +1 -1
- package/dist/chunk-JYIVDUDL.cjs +66 -0
- package/dist/{chunk-NTGUD2JN.mjs → chunk-KBC7VNER.mjs} +1 -1
- package/dist/{chunk-CX6OFX5Z.mjs → chunk-KJH46JR3.mjs} +2 -1
- package/dist/{chunk-JM6NBUDT.cjs → chunk-KR7VBV3B.cjs} +31 -30
- package/dist/chunk-LBGZKACW.cjs +30 -0
- package/dist/{chunk-2CZEFXEW.cjs → chunk-LFSCJLL2.cjs} +5 -13
- package/dist/{chunk-3UEVUYFQ.cjs → chunk-LQGXG373.cjs} +4 -6
- package/dist/{chunk-4XUJBMDE.mjs → chunk-LRSDE62T.mjs} +4 -6
- package/dist/chunk-LSKJOUAE.cjs +56 -0
- package/dist/chunk-M6JLGVJ7.mjs +28 -0
- package/dist/{chunk-D3IW2NW6.mjs → chunk-MG5TTPA7.mjs} +3 -2
- package/dist/{chunk-NO35POZW.mjs → chunk-MHJM7YMG.mjs} +4 -33
- package/dist/{chunk-ZAP4EHBO.cjs → chunk-MIT3YWUC.cjs} +2 -2
- package/dist/{chunk-3THWK3HB.mjs → chunk-NHG2ROYB.mjs} +2 -1
- package/dist/{chunk-GDUVAZDW.cjs → chunk-NSUFTZNC.cjs} +2 -2
- package/dist/{chunk-BIUDC66P.mjs → chunk-OLVOIUCE.mjs} +12 -14
- package/dist/{chunk-VTEWRMGQ.mjs → chunk-OPYMZDEZ.mjs} +3 -3
- package/dist/{chunk-V2IP7UUV.mjs → chunk-PIC2EJWA.mjs} +2 -2
- package/dist/chunk-PKSIXQJX.mjs +20 -0
- package/dist/{chunk-YUHHUSIO.cjs → chunk-PTCDBU72.cjs} +2 -2
- package/dist/{chunk-SQQXY4AY.mjs → chunk-PTGMHZFS.mjs} +1 -1
- package/dist/chunk-PZMA33PL.mjs +25 -0
- package/dist/{chunk-GWIACOMY.cjs → chunk-Q2HC5ZL4.cjs} +3 -38
- package/dist/{chunk-IJGCH57E.cjs → chunk-QHAGQCVF.cjs} +1 -1
- package/dist/{chunk-CUOGY4FW.mjs → chunk-QZUTRJSP.mjs} +2 -2
- package/dist/{chunk-LG3PNH2P.mjs → chunk-RIJUPORK.mjs} +1 -1
- package/dist/{chunk-SUSABE24.mjs → chunk-S6PSU47F.mjs} +1 -1
- package/dist/{chunk-A2PCEL5S.mjs → chunk-S7SGB2FD.mjs} +3 -3
- package/dist/{chunk-QBFOBDBC.cjs → chunk-SHHQDSSI.cjs} +2 -2
- package/dist/chunk-SMIACO56.mjs +330 -0
- package/dist/{chunk-UCRLH44Q.cjs → chunk-SPRBKXGP.cjs} +2 -2
- package/dist/{chunk-73VF2W3D.mjs → chunk-SUEFWFPX.mjs} +2 -2
- package/dist/{chunk-PIXIN3IG.mjs → chunk-SYX6TMCQ.mjs} +1 -1
- package/dist/chunk-TC3W4VRO.mjs +6 -0
- package/dist/{chunk-L26ULDYM.mjs → chunk-THMYDDZF.mjs} +1 -1
- package/dist/{chunk-OWEYAVGT.mjs → chunk-TYXRHZZG.mjs} +8 -5
- package/dist/{chunk-LP3AGGRK.cjs → chunk-UTS56UA5.cjs} +1 -1
- package/dist/{chunk-OMZHB2FB.cjs → chunk-V3VUFIG3.cjs} +4 -2
- package/dist/{chunk-6CM4GYJU.mjs → chunk-VEWWUO2N.mjs} +1 -1
- package/dist/{chunk-76V4RD4V.cjs → chunk-VLOFKTSL.cjs} +3 -3
- package/dist/{chunk-RU423LFT.cjs → chunk-VQP3QBC6.cjs} +1 -1
- package/dist/{chunk-6J7ZVRSY.mjs → chunk-VUMOJPEC.mjs} +1 -1
- package/dist/chunk-WGVKFNG6.mjs +5 -0
- package/dist/{chunk-JD4J3RDN.cjs → chunk-WHV4VATL.cjs} +12 -26
- package/dist/{chunk-QUFZWF4E.cjs → chunk-WRKB3W2J.cjs} +6 -6
- package/dist/{chunk-JA6XS5KY.cjs → chunk-WZGZX3S2.cjs} +3 -3
- package/dist/{chunk-XGGAJUY3.cjs → chunk-XURKXOZK.cjs} +2 -2
- package/dist/{chunk-U7XH7M5B.mjs → chunk-Y2H4A5AC.mjs} +8 -9
- package/dist/{chunk-MDR7WUX6.cjs → chunk-Y5SVZCPQ.cjs} +13 -14
- package/dist/{chunk-AJYO5W6O.mjs → chunk-YHY6SXVJ.mjs} +11 -10
- package/dist/{chunk-PO2LYHDO.mjs → chunk-YKHK6C4Q.mjs} +4 -2
- package/dist/{chunk-MEE3IHTT.mjs → chunk-YLDDI6SZ.mjs} +186 -23
- package/dist/{chunk-LPVBUX2J.cjs → chunk-YQ5KKJQ3.cjs} +2 -1
- package/dist/{chunk-5TXABUNC.mjs → chunk-ZNM6PNI6.mjs} +1 -1
- package/dist/{chunk-EQIEKFCA.cjs → chunk-ZRRCYQ53.cjs} +3 -3
- package/dist/{chunk-MCYFLR4F.cjs → chunk-ZS7ESTKH.cjs} +1 -1
- package/dist/chunk-ZULCZ5L6.cjs +8 -0
- package/dist/dial/DialPanel.cjs +71 -70
- package/dist/dial/DialPanel.mjs +70 -69
- package/dist/dial/DialProvider.d.cts +1 -0
- package/dist/dial/DialProvider.d.ts +1 -0
- package/dist/dial/index.cjs +87 -86
- package/dist/dial/index.mjs +70 -69
- package/dist/dial/wrapped-inputs/ControlledInputs.cjs +78 -73
- package/dist/dial/wrapped-inputs/ControlledInputs.d.cts +2 -1
- package/dist/dial/wrapped-inputs/ControlledInputs.d.ts +2 -1
- package/dist/dial/wrapped-inputs/ControlledInputs.mjs +70 -69
- package/dist/dial/wrapped-inputs/DialInputs.cjs +90 -81
- package/dist/dial/wrapped-inputs/DialInputs.d.cts +3 -1
- package/dist/dial/wrapped-inputs/DialInputs.d.ts +3 -1
- package/dist/dial/wrapped-inputs/DialInputs.mjs +70 -69
- package/dist/dial/wrapped-inputs/DialPresetsInput.cjs +124 -0
- package/dist/dial/wrapped-inputs/DialPresetsInput.d.cts +16 -0
- package/dist/dial/wrapped-inputs/DialPresetsInput.d.ts +16 -0
- package/dist/dial/wrapped-inputs/DialPresetsInput.mjs +115 -0
- package/dist/dial/wrapped-inputs/DialVectorInput.cjs +71 -70
- package/dist/dial/wrapped-inputs/DialVectorInput.mjs +70 -69
- package/dist/dial/wrapped-inputs/index.cjs +103 -86
- package/dist/dial/wrapped-inputs/index.d.cts +3 -2
- package/dist/dial/wrapped-inputs/index.d.ts +3 -2
- package/dist/dial/wrapped-inputs/index.mjs +70 -69
- package/dist/highlight-cursor/enhanced-components.cjs +13 -13
- package/dist/highlight-cursor/enhanced-components.mjs +8 -8
- package/dist/highlight-cursor/index.cjs +13 -13
- package/dist/highlight-cursor/index.mjs +8 -8
- package/dist/hooks/index.cjs +21 -21
- package/dist/hooks/index.mjs +4 -4
- package/dist/hooks/useQueryParams.cjs +3 -3
- package/dist/hooks/useQueryParams.mjs +2 -2
- package/dist/index.cjs +437 -456
- package/dist/index.css +28 -21
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.mjs +70 -69
- package/dist/styles/theme.css +15 -8
- package/dist/ui/DialBadge.cjs +12 -8
- package/dist/ui/DialBadge.d.cts +11 -6
- package/dist/ui/DialBadge.d.ts +11 -6
- package/dist/ui/DialBadge.mjs +5 -5
- package/dist/ui/UIKitBadge.cjs +9 -9
- package/dist/ui/UIKitBadge.mjs +5 -5
- package/dist/ui/avatar.cjs +9 -33
- package/dist/ui/avatar.d.cts +4 -61
- package/dist/ui/avatar.d.ts +4 -61
- package/dist/ui/avatar.mjs +5 -5
- package/dist/ui/badge.cjs +7 -7
- package/dist/ui/badge.mjs +5 -5
- package/dist/ui/button.cjs +7 -7
- package/dist/ui/button.mjs +5 -5
- package/dist/ui/card.cjs +12 -12
- package/dist/ui/card.mjs +5 -5
- package/dist/ui/checkbox.cjs +4 -4
- package/dist/ui/checkbox.mjs +4 -4
- package/dist/ui/collapsible.cjs +4 -4
- package/dist/ui/collapsible.mjs +4 -4
- package/dist/ui/drawer.cjs +15 -15
- package/dist/ui/drawer.mjs +5 -5
- package/dist/ui/dropdown.cjs +20 -20
- package/dist/ui/dropdown.d.cts +18 -27
- package/dist/ui/dropdown.d.ts +18 -27
- package/dist/ui/dropdown.mjs +5 -5
- package/dist/ui/index.cjs +396 -415
- package/dist/ui/index.d.cts +4 -3
- package/dist/ui/index.d.ts +4 -3
- package/dist/ui/index.mjs +68 -67
- package/dist/ui/inputs/color-input.cjs +7 -7
- package/dist/ui/inputs/color-input.mjs +6 -6
- package/dist/ui/inputs/index.cjs +62 -57
- package/dist/ui/inputs/index.d.cts +1 -0
- package/dist/ui/inputs/index.d.ts +1 -0
- package/dist/ui/inputs/index.mjs +25 -24
- package/dist/ui/inputs/input-numbers.cjs +7 -7
- package/dist/ui/inputs/input-numbers.mjs +6 -6
- package/dist/ui/inputs/input.cjs +8 -8
- package/dist/ui/inputs/input.mjs +5 -5
- package/dist/ui/inputs/number-inputs/CmInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/CmInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/DegInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/DegInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/EulerDegInput.cjs +10 -10
- package/dist/ui/inputs/number-inputs/EulerDegInput.mjs +9 -9
- package/dist/ui/inputs/number-inputs/EulerInput.cjs +9 -9
- package/dist/ui/inputs/number-inputs/EulerInput.mjs +8 -8
- package/dist/ui/inputs/number-inputs/EulerRadInput.cjs +9 -10
- package/dist/ui/inputs/number-inputs/EulerRadInput.d.cts +6 -3
- package/dist/ui/inputs/number-inputs/EulerRadInput.d.ts +6 -3
- package/dist/ui/inputs/number-inputs/EulerRadInput.mjs +8 -9
- package/dist/ui/inputs/number-inputs/InchInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/InchInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/IntInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/IntInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/KVectorInput.cjs +9 -9
- package/dist/ui/inputs/number-inputs/KVectorInput.mjs +8 -8
- package/dist/ui/inputs/number-inputs/QuaternionInput.cjs +9 -9
- package/dist/ui/inputs/number-inputs/QuaternionInput.mjs +8 -8
- package/dist/ui/inputs/number-inputs/RadInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/RadInput.d.cts +1 -0
- package/dist/ui/inputs/number-inputs/RadInput.d.ts +1 -0
- package/dist/ui/inputs/number-inputs/RadInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/TimeInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/TimeInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/Vec3Input.cjs +9 -9
- package/dist/ui/inputs/number-inputs/Vec3Input.mjs +8 -8
- package/dist/ui/inputs/number-inputs/VectorInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/VectorInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/index.cjs +42 -42
- package/dist/ui/inputs/number-inputs/index.mjs +19 -19
- package/dist/ui/inputs/presets-input.cjs +9 -9
- package/dist/ui/inputs/presets-input.mjs +8 -8
- package/dist/ui/inputs/presets-rad-input.cjs +24 -0
- package/dist/ui/inputs/presets-rad-input.d.cts +17 -0
- package/dist/ui/inputs/presets-rad-input.d.ts +17 -0
- package/dist/ui/inputs/presets-rad-input.mjs +15 -0
- package/dist/ui/inputs/text-input.cjs +7 -7
- package/dist/ui/inputs/text-input.mjs +6 -6
- package/dist/ui/label.cjs +4 -4
- package/dist/ui/label.mjs +4 -4
- package/dist/ui/layout.cjs +4 -4
- package/dist/ui/layout.mjs +4 -4
- package/dist/ui/layouts/dock-layout/DockLayoutView.cjs +6 -6
- package/dist/ui/layouts/dock-layout/DockLayoutView.mjs +5 -5
- package/dist/ui/layouts/dock-layout/LayoutSlots.cjs +4 -4
- package/dist/ui/layouts/dock-layout/LayoutSlots.mjs +4 -4
- package/dist/ui/layouts/dock-layout/index.cjs +6 -6
- package/dist/ui/layouts/dock-layout/index.mjs +5 -5
- package/dist/ui/layouts/index.cjs +10 -10
- package/dist/ui/layouts/index.mjs +8 -8
- package/dist/ui/layouts/liquid-layout/LayoutSlots.cjs +11 -11
- package/dist/ui/layouts/liquid-layout/LayoutSlots.mjs +5 -5
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.cjs +7 -7
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.mjs +6 -6
- package/dist/ui/layouts/liquid-layout/index.cjs +7 -7
- package/dist/ui/layouts/liquid-layout/index.mjs +6 -6
- package/dist/ui/modal.cjs +15 -15
- package/dist/ui/modal.mjs +5 -5
- package/dist/ui/navigation.cjs +7 -7
- package/dist/ui/navigation.mjs +6 -6
- package/dist/ui/pagination.cjs +13 -13
- package/dist/ui/pagination.mjs +6 -6
- package/dist/ui/panel.cjs +12 -12
- package/dist/ui/panel.mjs +5 -5
- package/dist/ui/popover.cjs +9 -9
- package/dist/ui/popover.mjs +5 -5
- package/dist/ui/radio-group.cjs +4 -4
- package/dist/ui/radio-group.mjs +4 -4
- package/dist/ui/resizable.cjs +4 -4
- package/dist/ui/resizable.mjs +4 -4
- package/dist/ui/select.cjs +16 -16
- package/dist/ui/select.mjs +5 -5
- package/dist/ui/separator.cjs +4 -4
- package/dist/ui/separator.mjs +4 -4
- package/dist/ui/sheet.cjs +13 -13
- package/dist/ui/sheet.mjs +5 -5
- package/dist/ui/sidebar.cjs +34 -34
- package/dist/ui/sidebar.mjs +10 -10
- package/dist/ui/simple-tree-view.cjs +4 -4
- package/dist/ui/simple-tree-view.mjs +4 -4
- package/dist/ui/skeleton.cjs +4 -4
- package/dist/ui/skeleton.mjs +4 -4
- package/dist/ui/slider.cjs +4 -4
- package/dist/ui/slider.mjs +4 -4
- package/dist/ui/switch.cjs +4 -4
- package/dist/ui/switch.mjs +4 -4
- package/dist/ui/table.cjs +4 -4
- package/dist/ui/table.mjs +4 -4
- package/dist/ui/tabs.cjs +4 -4
- package/dist/ui/tabs.mjs +4 -4
- package/dist/ui/textarea.cjs +4 -4
- package/dist/ui/textarea.mjs +4 -4
- package/dist/ui/theme/ThemeProvider.cjs +16 -20
- package/dist/ui/theme/ThemeProvider.d.cts +3 -10
- package/dist/ui/theme/ThemeProvider.d.ts +3 -10
- package/dist/ui/theme/ThemeProvider.mjs +2 -2
- package/dist/ui/theme/ThemeToggles.cjs +12 -12
- package/dist/ui/theme/ThemeToggles.mjs +9 -9
- package/dist/ui/theme/index.cjs +17 -21
- package/dist/ui/theme/index.d.cts +1 -1
- package/dist/ui/theme/index.d.ts +1 -1
- package/dist/ui/theme/index.mjs +9 -9
- package/dist/ui/theme/themeScript.cjs +2 -2
- package/dist/ui/theme/themeScript.d.cts +1 -2
- package/dist/ui/theme/themeScript.d.ts +1 -2
- package/dist/ui/theme/themeScript.mjs +1 -1
- package/dist/ui/toast.cjs +3 -3
- package/dist/ui/toast.mjs +1 -1
- package/dist/ui/toggle-buttons.cjs +4 -4
- package/dist/ui/toggle-buttons.mjs +4 -4
- package/dist/ui/toggle-group.cjs +4 -4
- package/dist/ui/toggle-group.mjs +4 -4
- package/dist/ui/toggle.cjs +4 -4
- package/dist/ui/toggle.mjs +4 -4
- package/dist/ui/toolbar.cjs +8 -8
- package/dist/ui/toolbar.mjs +5 -5
- package/dist/ui/tooltip.cjs +9 -9
- package/dist/ui/tooltip.mjs +5 -5
- package/dist/ui/tree-view/TreeSearchBar.cjs +8 -8
- package/dist/ui/tree-view/TreeSearchBar.mjs +7 -7
- package/dist/ui/tree-view/TreeView.cjs +4 -4
- package/dist/ui/tree-view/TreeView.mjs +4 -4
- package/dist/ui/tree-view/index.cjs +9 -9
- package/dist/ui/tree-view/index.mjs +8 -8
- package/dist/ui/tree-view-legacy.cjs +11 -11
- package/dist/ui/tree-view-legacy.mjs +7 -7
- package/dist/ui/waterfall/CursorOverlay.cjs +4 -4
- package/dist/ui/waterfall/CursorOverlay.mjs +4 -4
- package/dist/ui/waterfall/NavigationControls.cjs +2 -2
- package/dist/ui/waterfall/NavigationControls.mjs +1 -1
- package/dist/ui/waterfall/Tick.cjs +2 -2
- package/dist/ui/waterfall/Tick.mjs +1 -1
- package/dist/ui/waterfall/TimelineEvent.cjs +4 -4
- package/dist/ui/waterfall/TimelineEvent.mjs +4 -4
- package/dist/ui/waterfall/TimelineProcessBar.cjs +4 -4
- package/dist/ui/waterfall/TimelineProcessBar.mjs +4 -4
- package/dist/ui/waterfall/Wedges.cjs +4 -4
- package/dist/ui/waterfall/Wedges.mjs +4 -4
- package/dist/ui/waterfall/index.cjs +16 -16
- package/dist/ui/waterfall/index.mjs +15 -15
- package/package.json +7 -1
- package/src/auth/context/auth-context.ts +16 -0
- package/src/auth/handler/create-client.ts +23 -0
- package/src/auth/handler/sign-in-handler.ts +66 -0
- package/src/auth/hooks/use-vuer-auth.ts +10 -0
- package/src/auth/hooks/use-vuer-method.ts +35 -0
- package/src/auth/index.ts +6 -0
- package/src/auth/localstorage-key.ts +3 -0
- package/src/auth/types.ts +56 -0
- package/src/auth/vuer-auth-provider.tsx +35 -0
- package/src/dial/DialPanel.tsx +47 -4
- package/src/dial/DialProvider.tsx +1 -0
- package/src/dial/wrapped-inputs/ControlledInputs.tsx +17 -0
- package/src/dial/wrapped-inputs/DialInputs.tsx +77 -0
- package/src/dial/wrapped-inputs/DialPresetsInput.tsx +79 -0
- package/src/dial/wrapped-inputs/index.ts +6 -0
- package/src/styles/theme.css +75 -28
- package/src/ui/DialBadge.tsx +18 -7
- package/src/ui/avatar.tsx +4 -85
- package/src/ui/badge.tsx +1 -1
- package/src/ui/button.tsx +0 -5
- package/src/ui/card.tsx +3 -2
- package/src/ui/drawer.tsx +1 -1
- package/src/ui/dropdown.tsx +25 -368
- package/src/ui/inputs/index.tsx +1 -0
- package/src/ui/inputs/input.tsx +3 -5
- package/src/ui/inputs/number-inputs/EulerRadInput.tsx +46 -5
- package/src/ui/inputs/number-inputs/RadInput.tsx +31 -5
- package/src/ui/inputs/presets-rad-input.tsx +77 -0
- package/src/ui/layouts/dock-layout/DockLayoutView.tsx +6 -82
- package/src/ui/layouts/liquid-layout/LayoutSlots.tsx +2 -2
- package/src/ui/modal.tsx +2 -1
- package/src/ui/panel.tsx +2 -1
- package/src/ui/popover.tsx +4 -2
- package/src/ui/select.tsx +2 -1
- package/src/ui/sheet.tsx +2 -2
- package/src/ui/sidebar.tsx +8 -9
- package/src/ui/theme/ThemeProvider.tsx +69 -52
- package/src/ui/theme/ThemeToggles.tsx +12 -12
- package/src/ui/theme/index.ts +6 -16
- package/src/ui/theme/themeScript.tsx +24 -50
- package/src/ui/toast.tsx +1 -1
- package/src/ui/toolbar.tsx +3 -3
- package/src/ui/tooltip.tsx +5 -13
- package/src/ui/waterfall/NavigationControls.tsx +1 -1
- package/src/ui/waterfall/Tick.tsx +1 -1
- package/src/ui/waterfall/index.tsx +4 -3
- package/dist/chunk-5T7MTIHW.mjs +0 -75
- package/dist/chunk-DVKONMS7.cjs +0 -20
- package/dist/chunk-GPV4XELL.mjs +0 -18
- package/dist/chunk-H2GERFBG.cjs +0 -13
- package/dist/chunk-H4IDSUG5.mjs +0 -643
- package/dist/chunk-KAA4NEHL.cjs +0 -77
- package/dist/chunk-TY47DFGO.mjs +0 -11
- package/dist/{chunk-ADYUCJMQ.mjs → chunk-2KQRWXNO.mjs} +0 -0
- package/dist/{chunk-SQRAUVEP.cjs → chunk-63OJOP6W.cjs} +0 -0
- package/dist/{chunk-LYZJNEOR.cjs → chunk-Q4XH2Z5M.cjs} +1 -1
- package/dist/{chunk-OEIF3JCH.mjs → chunk-U3LN5NB6.mjs} +1 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5SP25SO3_cjs = require('../../chunk-5SP25SO3.cjs');
|
|
4
4
|
require('../../chunk-WJL5HMO6.cjs');
|
|
5
5
|
require('../../chunk-RJ7I6ZQK.cjs');
|
|
6
|
+
require('../../chunk-5MNZYCN2.cjs');
|
|
7
|
+
require('../../chunk-Z6UDRPC2.cjs');
|
|
6
8
|
require('../../chunk-YJ6X6T5K.cjs');
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
9
|
+
require('../../chunk-G5NT42YF.cjs');
|
|
10
|
+
require('../../chunk-VOTZLQ6J.cjs');
|
|
11
|
+
require('../../chunk-2J75MYQA.cjs');
|
|
12
|
+
require('../../chunk-UTS56UA5.cjs');
|
|
13
|
+
require('../../chunk-JWVH6R35.cjs');
|
|
9
14
|
require('../../chunk-MVAFOQ67.cjs');
|
|
10
15
|
require('../../chunk-TUYG6BYZ.cjs');
|
|
11
16
|
require('../../chunk-YXFHJKNW.cjs');
|
|
12
17
|
var chunkG2ZYONQO_cjs = require('../../chunk-G2ZYONQO.cjs');
|
|
13
|
-
require('../../chunk-
|
|
14
|
-
require('../../chunk-Z6UDRPC2.cjs');
|
|
15
|
-
require('../../chunk-G5NT42YF.cjs');
|
|
16
|
-
require('../../chunk-55RSKLJ5.cjs');
|
|
18
|
+
require('../../chunk-5JPYU5A6.cjs');
|
|
17
19
|
require('../../chunk-HAVTMZR3.cjs');
|
|
18
20
|
require('../../chunk-EEGQLTSQ.cjs');
|
|
19
|
-
require('../../chunk-
|
|
20
|
-
require('../../chunk-
|
|
21
|
-
require('../../chunk-2CZEFXEW.cjs');
|
|
22
|
-
require('../../chunk-3UEVUYFQ.cjs');
|
|
21
|
+
require('../../chunk-LFSCJLL2.cjs');
|
|
22
|
+
require('../../chunk-LQGXG373.cjs');
|
|
23
23
|
require('../../chunk-JMCH2AFN.cjs');
|
|
24
24
|
require('../../chunk-G5JZGNKY.cjs');
|
|
25
25
|
require('../../chunk-QN4N4I3Z.cjs');
|
|
26
|
-
require('../../chunk-LYZJNEOR.cjs');
|
|
27
|
-
require('../../chunk-YZIR6LIY.cjs');
|
|
28
|
-
require('../../chunk-RPTRTGC2.cjs');
|
|
29
|
-
require('../../chunk-LBWMTA5T.cjs');
|
|
30
26
|
require('../../chunk-Q7E73DVJ.cjs');
|
|
31
27
|
require('../../chunk-JR4TVE43.cjs');
|
|
32
28
|
require('../../chunk-VXZURKMQ.cjs');
|
|
29
|
+
require('../../chunk-Q4XH2Z5M.cjs');
|
|
33
30
|
require('../../chunk-6BOWMGFG.cjs');
|
|
31
|
+
require('../../chunk-YZIR6LIY.cjs');
|
|
32
|
+
require('../../chunk-RPTRTGC2.cjs');
|
|
33
|
+
require('../../chunk-LBWMTA5T.cjs');
|
|
34
34
|
require('../../chunk-OHIB3TEN.cjs');
|
|
35
35
|
require('../../chunk-G4FJGNY5.cjs');
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ require('../../chunk-G4FJGNY5.cjs');
|
|
|
38
38
|
|
|
39
39
|
Object.defineProperty(exports, "Waterfall", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk5SP25SO3_cjs.Waterfall; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "TOTAL_DURATION", {
|
|
44
44
|
enumerable: true,
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export { Waterfall } from '../../chunk-
|
|
1
|
+
export { Waterfall } from '../../chunk-YHY6SXVJ.mjs';
|
|
2
2
|
import '../../chunk-JWKOW2OV.mjs';
|
|
3
3
|
import '../../chunk-VPQ5SSY3.mjs';
|
|
4
|
+
import '../../chunk-IR334P7F.mjs';
|
|
5
|
+
import '../../chunk-CIPI2V54.mjs';
|
|
4
6
|
import '../../chunk-WPDU2YYR.mjs';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-HVVT3D2T.mjs';
|
|
8
|
+
import '../../chunk-HTAFERCZ.mjs';
|
|
9
|
+
import '../../chunk-SA5WKLYB.mjs';
|
|
10
|
+
import '../../chunk-D5H4XX6Q.mjs';
|
|
11
|
+
import '../../chunk-JVV7W3TP.mjs';
|
|
7
12
|
import '../../chunk-OC4HRPZU.mjs';
|
|
8
13
|
import '../../chunk-N6DSPSMM.mjs';
|
|
9
14
|
import '../../chunk-CO6EASQO.mjs';
|
|
10
15
|
export { TOTAL_DURATION, borderColorClasses, colorClasses, formatDuration, leftWedgeClasses, rightWedgeClasses } from '../../chunk-4U232QAX.mjs';
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-CIPI2V54.mjs';
|
|
13
|
-
import '../../chunk-HVVT3D2T.mjs';
|
|
14
|
-
import '../../chunk-73VF2W3D.mjs';
|
|
16
|
+
import '../../chunk-SUEFWFPX.mjs';
|
|
15
17
|
import '../../chunk-VQPJ7TLB.mjs';
|
|
16
18
|
import '../../chunk-PC5DHSC4.mjs';
|
|
17
|
-
import '../../chunk-
|
|
18
|
-
import '../../chunk-
|
|
19
|
-
import '../../chunk-ZNPI2TYG.mjs';
|
|
20
|
-
import '../../chunk-4XUJBMDE.mjs';
|
|
19
|
+
import '../../chunk-5MBEK77I.mjs';
|
|
20
|
+
import '../../chunk-LRSDE62T.mjs';
|
|
21
21
|
import '../../chunk-BNDRHLLZ.mjs';
|
|
22
22
|
import '../../chunk-PDOFOJ4P.mjs';
|
|
23
23
|
import '../../chunk-F7ZHPSLA.mjs';
|
|
24
|
-
import '../../chunk-OEIF3JCH.mjs';
|
|
25
|
-
import '../../chunk-VA4LUFKD.mjs';
|
|
26
|
-
import '../../chunk-4F2GSF2T.mjs';
|
|
27
|
-
import '../../chunk-IDUVYPN7.mjs';
|
|
28
24
|
import '../../chunk-3QT5VABC.mjs';
|
|
29
25
|
import '../../chunk-XHJDRQD7.mjs';
|
|
30
26
|
import '../../chunk-LQOPO4KU.mjs';
|
|
27
|
+
import '../../chunk-U3LN5NB6.mjs';
|
|
31
28
|
import '../../chunk-IZARTVYN.mjs';
|
|
29
|
+
import '../../chunk-VA4LUFKD.mjs';
|
|
30
|
+
import '../../chunk-4F2GSF2T.mjs';
|
|
31
|
+
import '../../chunk-IDUVYPN7.mjs';
|
|
32
32
|
import '../../chunk-HMN4IKTG.mjs';
|
|
33
33
|
import '../../chunk-SAGQV2YZ.mjs';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuer-ai/vuer-uikit",
|
|
3
3
|
"author": "Ge Yang",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.103",
|
|
5
5
|
"files": [
|
|
6
6
|
"/dist",
|
|
7
7
|
"/src"
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
"import": "./src/index.ts",
|
|
22
22
|
"require": "./src/index.ts"
|
|
23
23
|
},
|
|
24
|
+
"./auth": {
|
|
25
|
+
"types": "./dist/auth/index.d.ts",
|
|
26
|
+
"import": "./dist/auth/index.mjs",
|
|
27
|
+
"require": "./dist/auth/index.cjs"
|
|
28
|
+
},
|
|
24
29
|
"./src/dial": {
|
|
25
30
|
"types": "./src/dial/index.ts",
|
|
26
31
|
"import": "./src/dial/index.ts",
|
|
@@ -47,6 +52,7 @@
|
|
|
47
52
|
"./styles/variables.css": "./dist/styles/variables.css"
|
|
48
53
|
},
|
|
49
54
|
"peerDependencies": {
|
|
55
|
+
"better-auth": "^1.3.9",
|
|
50
56
|
"@react-three/drei": "latest",
|
|
51
57
|
"@react-three/fiber": "latest",
|
|
52
58
|
"lucide-react": "latest",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createContext } from "react";
|
|
2
|
+
|
|
3
|
+
import { BetterAuth, Session } from "../types";
|
|
4
|
+
|
|
5
|
+
interface IAuthContext {
|
|
6
|
+
baseURL: string;
|
|
7
|
+
data: Session | null;
|
|
8
|
+
isPending: boolean;
|
|
9
|
+
authClient: BetterAuth;
|
|
10
|
+
refetch: () => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const AuthContext = createContext<IAuthContext>(null!);
|
|
14
|
+
|
|
15
|
+
export { AuthContext };
|
|
16
|
+
export type { IAuthContext };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createAuthClient } from "better-auth/react";
|
|
2
|
+
|
|
3
|
+
import { bearerToken, jwtToken } from "../localstorage-key";
|
|
4
|
+
import { BetterAuth, options } from "../types";
|
|
5
|
+
|
|
6
|
+
export const createClient = (baseURL: string): BetterAuth => {
|
|
7
|
+
return createAuthClient({
|
|
8
|
+
...options,
|
|
9
|
+
baseURL: baseURL,
|
|
10
|
+
fetchOptions: {
|
|
11
|
+
auth: {
|
|
12
|
+
type: "Bearer",
|
|
13
|
+
token: () => localStorage.getItem(bearerToken) || "", // get the token from localStorage
|
|
14
|
+
},
|
|
15
|
+
onSuccess: (ctx) => {
|
|
16
|
+
const jwt = ctx.response.headers.get("set-auth-jwt");
|
|
17
|
+
if (jwt) {
|
|
18
|
+
localStorage.setItem(jwtToken, jwt);
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { bearerToken } from "../localstorage-key";
|
|
2
|
+
import { Refetch, SignInParams, SignInWithPopup, SignInWithRedirect } from "../types";
|
|
3
|
+
|
|
4
|
+
const signInHandler = (props: SignInParams, refetch: Refetch): Promise<string> | void => {
|
|
5
|
+
const { authMode } = props;
|
|
6
|
+
|
|
7
|
+
if (authMode === "redirect") {
|
|
8
|
+
return sigInWithRedirect(props);
|
|
9
|
+
} else {
|
|
10
|
+
return sigInWithPopup(props, refetch);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const sigInWithPopup = async (props: SignInWithPopup, refetch: Refetch): Promise<string> => {
|
|
15
|
+
const { callbackURL, baseURL } = props;
|
|
16
|
+
|
|
17
|
+
const width = 500;
|
|
18
|
+
const height = 600;
|
|
19
|
+
const left = (window.screen.width - width) / 2;
|
|
20
|
+
const top = (window.screen.height - height) / 2;
|
|
21
|
+
|
|
22
|
+
const authPopup = window.open(
|
|
23
|
+
`${baseURL}/authorize?origin=${encodeURIComponent(window.location.origin)}`,
|
|
24
|
+
"vuer-auth-center",
|
|
25
|
+
`width=${width},height=${height},top=${top},left=${left}`,
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
return new Promise((resolve) => {
|
|
29
|
+
const handle = (event: MessageEvent) => {
|
|
30
|
+
const trustedDomains = [baseURL];
|
|
31
|
+
if (!trustedDomains.includes(event.origin)) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (event.data.type === "READY") {
|
|
36
|
+
authPopup?.postMessage({ type: "REQUEST_TOKEN" }, baseURL);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (event.data.type === "AUTH_TOKEN") {
|
|
40
|
+
const token = event.data.token;
|
|
41
|
+
if (token) {
|
|
42
|
+
localStorage.setItem(bearerToken, token);
|
|
43
|
+
window.removeEventListener("message", handle);
|
|
44
|
+
|
|
45
|
+
resolve(token);
|
|
46
|
+
|
|
47
|
+
if (callbackURL) {
|
|
48
|
+
window.location.href = callbackURL;
|
|
49
|
+
} else {
|
|
50
|
+
refetch();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
window.addEventListener("message", handle);
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const sigInWithRedirect = (props: SignInWithRedirect) => {
|
|
61
|
+
const { callbackURL, baseURL } = props;
|
|
62
|
+
|
|
63
|
+
window.location.href = `${baseURL}/authorize?callbackURL=${encodeURIComponent(callbackURL)}`;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export { signInHandler };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useContext } from "react";
|
|
2
|
+
|
|
3
|
+
import { IAuthContext, AuthContext } from "../context/auth-context";
|
|
4
|
+
|
|
5
|
+
export const useVuerAuth = (): IAuthContext => {
|
|
6
|
+
const context = useContext(AuthContext);
|
|
7
|
+
|
|
8
|
+
if (context === undefined) throw new Error("useSession must be used within a SessionContext");
|
|
9
|
+
return context;
|
|
10
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useCallback, useMemo } from "react";
|
|
2
|
+
|
|
3
|
+
import { signInHandler } from "../handler/sign-in-handler";
|
|
4
|
+
import { BetterAuth, SignInWithOutBaseURLParams } from "../types";
|
|
5
|
+
import { useVuerAuth } from "./use-vuer-auth";
|
|
6
|
+
|
|
7
|
+
interface UseVuerAuth {
|
|
8
|
+
signIn: (p?: SignInWithOutBaseURLParams) => Promise<string> | void;
|
|
9
|
+
signOut: ReturnType<BetterAuth["signOut"]>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const useVuerMethod = (): UseVuerAuth => {
|
|
13
|
+
const { refetch, authClient, baseURL } = useVuerAuth();
|
|
14
|
+
|
|
15
|
+
const signOutHandle = useCallback(() => {
|
|
16
|
+
return authClient.signOut();
|
|
17
|
+
}, [authClient]);
|
|
18
|
+
|
|
19
|
+
const signInHandle = useCallback(
|
|
20
|
+
(props?: SignInWithOutBaseURLParams) => {
|
|
21
|
+
return signInHandler({ ...props, baseURL }, refetch);
|
|
22
|
+
},
|
|
23
|
+
[baseURL, refetch],
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
return useMemo(() => {
|
|
27
|
+
return {
|
|
28
|
+
signIn: signInHandle,
|
|
29
|
+
signOut: signOutHandle,
|
|
30
|
+
};
|
|
31
|
+
}, [signInHandle, signOutHandle]);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { useVuerMethod };
|
|
35
|
+
export type { UseVuerAuth };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { betterAuth } from "better-auth";
|
|
2
|
+
import { customSessionClient } from "better-auth/client/plugins";
|
|
3
|
+
import { customSession } from "better-auth/plugins";
|
|
4
|
+
import { createAuthClient } from "better-auth/react";
|
|
5
|
+
|
|
6
|
+
export const auth = betterAuth({
|
|
7
|
+
plugins: [
|
|
8
|
+
customSession(async (session) => {
|
|
9
|
+
return {
|
|
10
|
+
...session,
|
|
11
|
+
session: { ...session.session, sessionToken: "" },
|
|
12
|
+
};
|
|
13
|
+
}),
|
|
14
|
+
],
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export const options = {
|
|
18
|
+
plugins: [customSessionClient<typeof auth>()],
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
type BetterAuth = ReturnType<typeof createAuthClient<typeof options>>;
|
|
22
|
+
|
|
23
|
+
type Session = BetterAuth["$Infer"]["Session"];
|
|
24
|
+
|
|
25
|
+
interface SignInWithPopup {
|
|
26
|
+
baseURL: string;
|
|
27
|
+
authMode?: "popup";
|
|
28
|
+
callbackURL?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface SignInWithRedirect {
|
|
32
|
+
baseURL: string;
|
|
33
|
+
authMode: "redirect";
|
|
34
|
+
callbackURL: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type Refetch = ReturnType<BetterAuth["useSession"]>["refetch"];
|
|
38
|
+
|
|
39
|
+
type SignOut = ReturnType<BetterAuth["signOut"]>;
|
|
40
|
+
|
|
41
|
+
type SignInParams = SignInWithPopup | SignInWithRedirect;
|
|
42
|
+
|
|
43
|
+
type SignInWithOutBaseURLParams =
|
|
44
|
+
| Omit<SignInWithPopup, "baseURL">
|
|
45
|
+
| Omit<SignInWithRedirect, "baseURL">;
|
|
46
|
+
|
|
47
|
+
export type {
|
|
48
|
+
SignOut,
|
|
49
|
+
Refetch,
|
|
50
|
+
Session,
|
|
51
|
+
BetterAuth,
|
|
52
|
+
SignInParams,
|
|
53
|
+
SignInWithOutBaseURLParams,
|
|
54
|
+
SignInWithPopup,
|
|
55
|
+
SignInWithRedirect,
|
|
56
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PropsWithChildren, useEffect, useMemo, useRef } from "react";
|
|
2
|
+
|
|
3
|
+
import { AuthContext } from "./context/auth-context";
|
|
4
|
+
import { createClient } from "./handler/create-client";
|
|
5
|
+
import { bearerToken } from "./localstorage-key";
|
|
6
|
+
|
|
7
|
+
interface Props {
|
|
8
|
+
baseURL: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function VuerAuthProvider({ children, baseURL }: PropsWithChildren<Props>) {
|
|
12
|
+
const authClient = useRef(createClient(baseURL));
|
|
13
|
+
|
|
14
|
+
const { data, isPending, refetch } = authClient.current.useSession();
|
|
15
|
+
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
const searchParams = new URLSearchParams(window.location.search);
|
|
18
|
+
const session = searchParams.get("token");
|
|
19
|
+
if (session) {
|
|
20
|
+
localStorage.setItem(bearerToken, encodeURIComponent(session));
|
|
21
|
+
refetch();
|
|
22
|
+
window.history.replaceState({}, "", window.location.pathname);
|
|
23
|
+
}
|
|
24
|
+
}, [refetch]);
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<AuthContext.Provider
|
|
28
|
+
value={useMemo(() => {
|
|
29
|
+
return { data, isPending, refetch, authClient: authClient.current, baseURL };
|
|
30
|
+
}, [baseURL, data, isPending, refetch])}
|
|
31
|
+
>
|
|
32
|
+
{children}
|
|
33
|
+
</AuthContext.Provider>
|
|
34
|
+
);
|
|
35
|
+
}
|
package/src/dial/DialPanel.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import React from "react";
|
|
|
3
3
|
import { DialSchema, DialGroupConfig, LabelPositionT } from "./DialProvider";
|
|
4
4
|
import {
|
|
5
5
|
DialBooleanInput,
|
|
6
|
+
DialColorInput,
|
|
6
7
|
DialEulerDegInput,
|
|
7
8
|
DialIntInput,
|
|
8
9
|
DialNumberInput,
|
|
@@ -11,8 +12,10 @@ import {
|
|
|
11
12
|
DialTextInput,
|
|
12
13
|
DialVec3Input,
|
|
13
14
|
DialVectorInput,
|
|
15
|
+
DialPresetsInput,
|
|
16
|
+
DialEulerRadInput,
|
|
17
|
+
DialNumberRadInput,
|
|
14
18
|
} from "./wrapped-inputs";
|
|
15
|
-
|
|
16
19
|
interface DialSchemaRendererProps {
|
|
17
20
|
schemas: DialSchema[];
|
|
18
21
|
groups?: DialGroupConfig[];
|
|
@@ -62,7 +65,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
62
65
|
const renderSchemaInput = (schema: DialSchema) => {
|
|
63
66
|
const { name, dtype, min, max, step, options, tags } = schema;
|
|
64
67
|
const labelPosition = tags?.labelPosition as LabelPositionT;
|
|
65
|
-
const label = name.charAt(0).toUpperCase() + name.slice(1);
|
|
68
|
+
const label = schema.label || (name.charAt(0).toUpperCase() + name.slice(1));
|
|
66
69
|
|
|
67
70
|
// Choose the right input component based on dtype
|
|
68
71
|
switch (dtype) {
|
|
@@ -88,6 +91,17 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
88
91
|
/>
|
|
89
92
|
);
|
|
90
93
|
|
|
94
|
+
case "euler-rad":
|
|
95
|
+
return (
|
|
96
|
+
<DialEulerRadInput
|
|
97
|
+
key={name}
|
|
98
|
+
name={name}
|
|
99
|
+
label={label}
|
|
100
|
+
step={step}
|
|
101
|
+
labelPosition={labelPosition}
|
|
102
|
+
/>
|
|
103
|
+
);
|
|
104
|
+
|
|
91
105
|
case "vector":
|
|
92
106
|
case "vector-6":
|
|
93
107
|
case "number-group":
|
|
@@ -99,6 +113,20 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
99
113
|
<DialBooleanInput key={name} name={name} label={label} labelPosition={labelPosition} />
|
|
100
114
|
);
|
|
101
115
|
|
|
116
|
+
case "number-slider":
|
|
117
|
+
// Integer input
|
|
118
|
+
return (
|
|
119
|
+
<DialSliderInput
|
|
120
|
+
key={name}
|
|
121
|
+
name={name}
|
|
122
|
+
label={label}
|
|
123
|
+
min={min}
|
|
124
|
+
max={max}
|
|
125
|
+
step={step}
|
|
126
|
+
labelPosition={labelPosition}
|
|
127
|
+
/>
|
|
128
|
+
);
|
|
129
|
+
|
|
102
130
|
case "number-int":
|
|
103
131
|
// Integer input
|
|
104
132
|
return (
|
|
@@ -111,11 +139,23 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
111
139
|
/>
|
|
112
140
|
);
|
|
113
141
|
|
|
142
|
+
case "number-rad":
|
|
143
|
+
// Radian input displayed as degrees
|
|
144
|
+
return (
|
|
145
|
+
<DialNumberRadInput
|
|
146
|
+
key={name}
|
|
147
|
+
name={name}
|
|
148
|
+
label={label}
|
|
149
|
+
step={step}
|
|
150
|
+
labelPosition={labelPosition}
|
|
151
|
+
/>
|
|
152
|
+
);
|
|
153
|
+
|
|
114
154
|
case "number":
|
|
115
155
|
// Use slider if min and max are defined, otherwise use number input
|
|
116
156
|
if (min !== undefined && max !== undefined && !options) {
|
|
117
157
|
return (
|
|
118
|
-
<
|
|
158
|
+
<DialNumberInput
|
|
119
159
|
key={name}
|
|
120
160
|
name={name}
|
|
121
161
|
label={label}
|
|
@@ -130,7 +170,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
130
170
|
// Use select if options are provided
|
|
131
171
|
if (options && options.length > 0) {
|
|
132
172
|
return (
|
|
133
|
-
<
|
|
173
|
+
<DialPresetsInput
|
|
134
174
|
key={name}
|
|
135
175
|
name={name}
|
|
136
176
|
label={label}
|
|
@@ -153,6 +193,9 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
153
193
|
/>
|
|
154
194
|
);
|
|
155
195
|
|
|
196
|
+
case "color":
|
|
197
|
+
return <DialColorInput key={name} name={name} label={label} />;
|
|
198
|
+
|
|
156
199
|
case "string":
|
|
157
200
|
case "text":
|
|
158
201
|
// If options are provided, use select
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { LabelPositionT, useDialSchema } from "../DialProvider";
|
|
3
3
|
import {
|
|
4
|
+
ColorInput,
|
|
4
5
|
FormLayout,
|
|
5
6
|
Input,
|
|
6
7
|
InputSlot,
|
|
@@ -101,6 +102,22 @@ export const DialBooleanInput: React.FC<DialInputProps> = ({ name, label, labelP
|
|
|
101
102
|
);
|
|
102
103
|
};
|
|
103
104
|
|
|
105
|
+
// Dial-wrapped ColorInput
|
|
106
|
+
export const DialColorInput: React.FC<DialInputProps> = ({ name, label }) => {
|
|
107
|
+
const { getValue, setValue } = useDialSchema();
|
|
108
|
+
const value = (getValue(name) ?? "") as string;
|
|
109
|
+
|
|
110
|
+
const inputComp = (
|
|
111
|
+
<ColorInput value={value} onChange={(e) => setValue(name, e.target.value)} prefix={label} />
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
if (!label) {
|
|
115
|
+
return inputComp;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return <DialInputWrapper label={label}>{inputComp}</DialInputWrapper>;
|
|
119
|
+
};
|
|
120
|
+
|
|
104
121
|
export const DialSelectInput: React.FC<DialInputProps> = ({
|
|
105
122
|
name,
|
|
106
123
|
options = [],
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
Vec3Input,
|
|
17
17
|
VectorInput,
|
|
18
18
|
} from "../../index";
|
|
19
|
+
import { EulerRadInput } from "../../ui/inputs/number-inputs/EulerRadInput";
|
|
19
20
|
import { LabelPositionT, useDialSchema } from "../DialProvider";
|
|
20
21
|
|
|
21
22
|
// Base props for all dial-wrapped inputs
|
|
@@ -435,3 +436,79 @@ export const DialTextInput: React.FC<DialWrapperProps & { placeholder?: string }
|
|
|
435
436
|
);
|
|
436
437
|
}
|
|
437
438
|
};
|
|
439
|
+
|
|
440
|
+
// Dial-wrapped EulerRadInput (radians with degree display)
|
|
441
|
+
export const DialEulerRadInput: React.FC<DialWrapperProps> = ({
|
|
442
|
+
name,
|
|
443
|
+
label,
|
|
444
|
+
size = "sm",
|
|
445
|
+
step,
|
|
446
|
+
labelPosition,
|
|
447
|
+
}) => {
|
|
448
|
+
const { getValue, setValue } = useDialSchema();
|
|
449
|
+
const value = (getValue(name) ?? [0, 0, 0]) as [number, number, number];
|
|
450
|
+
|
|
451
|
+
if (labelPosition === "inline") {
|
|
452
|
+
return (
|
|
453
|
+
<EulerRadInput
|
|
454
|
+
value={value}
|
|
455
|
+
onValuesChange={(val) => setValue(name, val)}
|
|
456
|
+
size={size}
|
|
457
|
+
step={step}
|
|
458
|
+
display="deg"
|
|
459
|
+
prefix={label ? [label, "", ""] : undefined}
|
|
460
|
+
/>
|
|
461
|
+
);
|
|
462
|
+
} else {
|
|
463
|
+
return (
|
|
464
|
+
<DialInputWrapper label={label}>
|
|
465
|
+
<EulerRadInput
|
|
466
|
+
value={value}
|
|
467
|
+
onValuesChange={(val) => setValue(name, val)}
|
|
468
|
+
size={size}
|
|
469
|
+
step={step}
|
|
470
|
+
display="deg"
|
|
471
|
+
/>
|
|
472
|
+
</DialInputWrapper>
|
|
473
|
+
);
|
|
474
|
+
}
|
|
475
|
+
};
|
|
476
|
+
|
|
477
|
+
// Dial-wrapped number-rad input (displays as degrees but stores as radians)
|
|
478
|
+
export const DialNumberRadInput: React.FC<DialWrapperProps> = ({
|
|
479
|
+
name,
|
|
480
|
+
label,
|
|
481
|
+
size = "sm",
|
|
482
|
+
step,
|
|
483
|
+
labelPosition,
|
|
484
|
+
}) => {
|
|
485
|
+
const { getValue, setValue } = useDialSchema();
|
|
486
|
+
const value = (getValue(name) ?? 0) as number;
|
|
487
|
+
|
|
488
|
+
// Convert radians to degrees for display
|
|
489
|
+
const degValue = (value * 180) / Math.PI;
|
|
490
|
+
|
|
491
|
+
// Handler to convert degrees back to radians
|
|
492
|
+
const handleChange = (deg: number) => {
|
|
493
|
+
const rad = (deg * Math.PI) / 180;
|
|
494
|
+
setValue(name, rad);
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
if (labelPosition === "inline") {
|
|
498
|
+
return (
|
|
499
|
+
<DegInput
|
|
500
|
+
value={degValue}
|
|
501
|
+
onChange={handleChange}
|
|
502
|
+
size={size}
|
|
503
|
+
step={step}
|
|
504
|
+
prefix={label ? [label] : undefined}
|
|
505
|
+
/>
|
|
506
|
+
);
|
|
507
|
+
} else {
|
|
508
|
+
return (
|
|
509
|
+
<DialInputWrapper label={label}>
|
|
510
|
+
<DegInput value={degValue} onChange={handleChange} size={size} step={step} />
|
|
511
|
+
</DialInputWrapper>
|
|
512
|
+
);
|
|
513
|
+
}
|
|
514
|
+
};
|