@vuer-ai/vuer-uikit 0.0.103 → 0.0.105

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.
Files changed (105) hide show
  1. package/dist/auth/context/auth-context.d.cts +3 -5
  2. package/dist/auth/context/auth-context.d.ts +3 -5
  3. package/dist/auth/handler/get-session.cjs +11 -0
  4. package/dist/auth/handler/get-session.d.cts +19 -0
  5. package/dist/auth/handler/get-session.d.ts +19 -0
  6. package/dist/auth/handler/get-session.mjs +2 -0
  7. package/dist/auth/handler/sign-in-handler.cjs +3 -3
  8. package/dist/auth/handler/sign-in-handler.d.cts +0 -1
  9. package/dist/auth/handler/sign-in-handler.d.ts +0 -1
  10. package/dist/auth/handler/sign-in-handler.mjs +2 -2
  11. package/dist/auth/handler/sign-out-handler.cjs +11 -0
  12. package/dist/auth/handler/sign-out-handler.d.cts +5 -0
  13. package/dist/auth/handler/sign-out-handler.d.ts +5 -0
  14. package/dist/auth/handler/sign-out-handler.mjs +2 -0
  15. package/dist/auth/hooks/use-vuer-auth.d.cts +0 -1
  16. package/dist/auth/hooks/use-vuer-auth.d.ts +0 -1
  17. package/dist/auth/hooks/use-vuer-method.cjs +5 -4
  18. package/dist/auth/hooks/use-vuer-method.d.cts +2 -3
  19. package/dist/auth/hooks/use-vuer-method.d.ts +2 -3
  20. package/dist/auth/hooks/use-vuer-method.mjs +4 -3
  21. package/dist/auth/index.cjs +9 -13
  22. package/dist/auth/index.d.cts +1 -2
  23. package/dist/auth/index.d.ts +1 -2
  24. package/dist/auth/index.mjs +6 -6
  25. package/dist/auth/localstorage-key.cjs +2 -6
  26. package/dist/auth/localstorage-key.d.cts +1 -2
  27. package/dist/auth/localstorage-key.d.ts +1 -2
  28. package/dist/auth/localstorage-key.mjs +1 -1
  29. package/dist/auth/types.cjs +0 -12
  30. package/dist/auth/types.d.cts +10 -3466
  31. package/dist/auth/types.d.ts +10 -3466
  32. package/dist/auth/types.mjs +1 -1
  33. package/dist/auth/vuer-auth-provider.cjs +4 -5
  34. package/dist/auth/vuer-auth-provider.mjs +3 -4
  35. package/dist/{chunk-WGVKFNG6.mjs → chunk-276VJZCV.mjs} +1 -2
  36. package/dist/chunk-4CPB3XHE.cjs +18 -0
  37. package/dist/chunk-5HS4PMUR.mjs +45 -0
  38. package/dist/{chunk-FBAOEFDU.mjs → chunk-AKVHFPXH.mjs} +7 -5
  39. package/dist/chunk-CGODCUQ5.mjs +16 -0
  40. package/dist/{chunk-JWUIZX35.mjs → chunk-HJAKKWNJ.mjs} +2 -2
  41. package/dist/{chunk-SHHQDSSI.cjs → chunk-L6ZZKK4B.cjs} +2 -2
  42. package/dist/{chunk-I2BVWNRP.cjs → chunk-M3XTCMOA.cjs} +19 -19
  43. package/dist/{chunk-LSKJOUAE.cjs → chunk-PB4UO2NR.cjs} +3 -4
  44. package/dist/{chunk-YLDDI6SZ.mjs → chunk-SLBFCX35.mjs} +19 -19
  45. package/dist/{chunk-6BD5MQ5R.cjs → chunk-SVWS4AL6.cjs} +0 -2
  46. package/dist/chunk-T2D6PSA6.cjs +47 -0
  47. package/dist/chunk-T57VFBIC.mjs +17 -0
  48. package/dist/chunk-WTYBTOLO.cjs +19 -0
  49. package/dist/{chunk-JLWAIMUZ.cjs → chunk-XFTKHT2M.cjs} +8 -6
  50. package/dist/{chunk-7KQXX7QB.mjs → chunk-XGM57WPN.mjs} +2 -3
  51. package/dist/dial/DialPanel.cjs +19 -19
  52. package/dist/dial/DialPanel.d.cts +2 -1
  53. package/dist/dial/DialPanel.d.ts +2 -1
  54. package/dist/dial/DialPanel.mjs +18 -18
  55. package/dist/dial/index.cjs +35 -35
  56. package/dist/dial/index.mjs +18 -18
  57. package/dist/dial/wrapped-inputs/ControlledInputs.cjs +23 -23
  58. package/dist/dial/wrapped-inputs/ControlledInputs.mjs +18 -18
  59. package/dist/dial/wrapped-inputs/DialInputs.cjs +32 -32
  60. package/dist/dial/wrapped-inputs/DialInputs.mjs +18 -18
  61. package/dist/dial/wrapped-inputs/DialPresetsInput.cjs +19 -19
  62. package/dist/dial/wrapped-inputs/DialPresetsInput.mjs +18 -18
  63. package/dist/dial/wrapped-inputs/DialVectorInput.cjs +19 -19
  64. package/dist/dial/wrapped-inputs/DialVectorInput.mjs +18 -18
  65. package/dist/dial/wrapped-inputs/index.cjs +39 -39
  66. package/dist/dial/wrapped-inputs/index.mjs +18 -18
  67. package/dist/index.cjs +100 -100
  68. package/dist/index.mjs +18 -18
  69. package/dist/ui/UIKitBadge.cjs +5 -5
  70. package/dist/ui/UIKitBadge.mjs +1 -1
  71. package/dist/ui/index.cjs +73 -73
  72. package/dist/ui/index.mjs +16 -16
  73. package/dist/ui/inputs/index.cjs +18 -18
  74. package/dist/ui/inputs/index.mjs +4 -4
  75. package/dist/ui/inputs/number-inputs/index.cjs +18 -18
  76. package/dist/ui/inputs/number-inputs/index.mjs +4 -4
  77. package/dist/ui/layouts/index.cjs +5 -5
  78. package/dist/ui/layouts/index.mjs +1 -1
  79. package/dist/ui/tree-view/index.cjs +9 -9
  80. package/dist/ui/tree-view/index.mjs +1 -1
  81. package/dist/ui/waterfall/index.cjs +4 -4
  82. package/dist/ui/waterfall/index.mjs +3 -3
  83. package/package.json +1 -1
  84. package/src/auth/context/auth-context.ts +3 -4
  85. package/src/auth/handler/get-session.ts +17 -0
  86. package/src/auth/handler/sign-in-handler.ts +1 -2
  87. package/src/auth/handler/sign-out-handler.ts +13 -0
  88. package/src/auth/hooks/use-vuer-method.ts +8 -6
  89. package/src/auth/localstorage-key.ts +0 -2
  90. package/src/auth/types.ts +9 -27
  91. package/src/auth/vuer-auth-provider.tsx +25 -8
  92. package/src/dial/DialPanel.tsx +16 -14
  93. package/dist/auth/handler/create-client.cjs +0 -12
  94. package/dist/auth/handler/create-client.d.cts +0 -7
  95. package/dist/auth/handler/create-client.d.ts +0 -7
  96. package/dist/auth/handler/create-client.mjs +0 -3
  97. package/dist/chunk-ACYOVCGH.mjs +0 -30
  98. package/dist/chunk-CHYXRETV.cjs +0 -23
  99. package/dist/chunk-G6U2K2GR.cjs +0 -32
  100. package/dist/chunk-HPK4YEVK.cjs +0 -27
  101. package/dist/chunk-PKSIXQJX.mjs +0 -20
  102. package/dist/chunk-PZMA33PL.mjs +0 -25
  103. package/src/auth/handler/create-client.ts +0 -23
  104. package/dist/{chunk-5SP25SO3.cjs → chunk-7RHQ6DVU.cjs} +2 -2
  105. package/dist/{chunk-YHY6SXVJ.mjs → chunk-K2OC2HWQ.mjs} +2 -2
@@ -1,14 +1,12 @@
1
1
  import * as react from 'react';
2
- import { Session, BetterAuth } from '../types.cjs';
2
+ import { UserSession, Refetch } from '../types.cjs';
3
3
  import 'better-auth';
4
- import 'better-auth/react';
5
4
 
6
5
  interface IAuthContext {
7
6
  baseURL: string;
8
- data: Session | null;
7
+ data: UserSession | null;
9
8
  isPending: boolean;
10
- authClient: BetterAuth;
11
- refetch: () => void;
9
+ refetch: Refetch;
12
10
  }
13
11
  declare const AuthContext: react.Context<IAuthContext>;
14
12
 
@@ -1,14 +1,12 @@
1
1
  import * as react from 'react';
2
- import { Session, BetterAuth } from '../types.js';
2
+ import { UserSession, Refetch } from '../types.js';
3
3
  import 'better-auth';
4
- import 'better-auth/react';
5
4
 
6
5
  interface IAuthContext {
7
6
  baseURL: string;
8
- data: Session | null;
7
+ data: UserSession | null;
9
8
  isPending: boolean;
10
- authClient: BetterAuth;
11
- refetch: () => void;
9
+ refetch: Refetch;
12
10
  }
13
11
  declare const AuthContext: react.Context<IAuthContext>;
14
12
 
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkWTYBTOLO_cjs = require('../../chunk-WTYBTOLO.cjs');
4
+ require('../../chunk-SVWS4AL6.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "getSession", {
9
+ enumerable: true,
10
+ get: function () { return chunkWTYBTOLO_cjs.getSession; }
11
+ });
@@ -0,0 +1,19 @@
1
+ import * as better_auth from 'better-auth';
2
+
3
+ declare const getSession: (baseURL: string) => Promise<{
4
+ session: {
5
+ jwt: string;
6
+ id: string;
7
+ createdAt: Date;
8
+ updatedAt: Date;
9
+ userId: string;
10
+ expiresAt: Date;
11
+ token: string;
12
+ ipAddress?: string | null | undefined;
13
+ userAgent?: string | null | undefined;
14
+ sessionToken: string;
15
+ };
16
+ user: better_auth.User;
17
+ }>;
18
+
19
+ export { getSession };
@@ -0,0 +1,19 @@
1
+ import * as better_auth from 'better-auth';
2
+
3
+ declare const getSession: (baseURL: string) => Promise<{
4
+ session: {
5
+ jwt: string;
6
+ id: string;
7
+ createdAt: Date;
8
+ updatedAt: Date;
9
+ userId: string;
10
+ expiresAt: Date;
11
+ token: string;
12
+ ipAddress?: string | null | undefined;
13
+ userAgent?: string | null | undefined;
14
+ sessionToken: string;
15
+ };
16
+ user: better_auth.User;
17
+ }>;
18
+
19
+ export { getSession };
@@ -0,0 +1,2 @@
1
+ export { getSession } from '../../chunk-T57VFBIC.mjs';
2
+ import '../../chunk-276VJZCV.mjs';
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkLSKJOUAE_cjs = require('../../chunk-LSKJOUAE.cjs');
4
- require('../../chunk-6BD5MQ5R.cjs');
3
+ var chunkPB4UO2NR_cjs = require('../../chunk-PB4UO2NR.cjs');
4
+ require('../../chunk-SVWS4AL6.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "signInHandler", {
9
9
  enumerable: true,
10
- get: function () { return chunkLSKJOUAE_cjs.signInHandler; }
10
+ get: function () { return chunkPB4UO2NR_cjs.signInHandler; }
11
11
  });
@@ -1,6 +1,5 @@
1
1
  import { SignInParams, Refetch } from '../types.cjs';
2
2
  import 'better-auth';
3
- import 'better-auth/react';
4
3
 
5
4
  declare const signInHandler: (props: SignInParams, refetch: Refetch) => Promise<string> | void;
6
5
 
@@ -1,6 +1,5 @@
1
1
  import { SignInParams, Refetch } from '../types.js';
2
2
  import 'better-auth';
3
- import 'better-auth/react';
4
3
 
5
4
  declare const signInHandler: (props: SignInParams, refetch: Refetch) => Promise<string> | void;
6
5
 
@@ -1,2 +1,2 @@
1
- export { signInHandler } from '../../chunk-7KQXX7QB.mjs';
2
- import '../../chunk-WGVKFNG6.mjs';
1
+ export { signInHandler } from '../../chunk-XGM57WPN.mjs';
2
+ import '../../chunk-276VJZCV.mjs';
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunk4CPB3XHE_cjs = require('../../chunk-4CPB3XHE.cjs');
4
+ require('../../chunk-SVWS4AL6.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "signOutHandler", {
9
+ enumerable: true,
10
+ get: function () { return chunk4CPB3XHE_cjs.signOutHandler; }
11
+ });
@@ -0,0 +1,5 @@
1
+ declare const signOutHandler: (baseURL: string) => Promise<{
2
+ success: boolean;
3
+ }>;
4
+
5
+ export { signOutHandler };
@@ -0,0 +1,5 @@
1
+ declare const signOutHandler: (baseURL: string) => Promise<{
2
+ success: boolean;
3
+ }>;
4
+
5
+ export { signOutHandler };
@@ -0,0 +1,2 @@
1
+ export { signOutHandler } from '../../chunk-CGODCUQ5.mjs';
2
+ import '../../chunk-276VJZCV.mjs';
@@ -2,7 +2,6 @@ import { IAuthContext } from '../context/auth-context.cjs';
2
2
  import 'react';
3
3
  import '../types.cjs';
4
4
  import 'better-auth';
5
- import 'better-auth/react';
6
5
 
7
6
  declare const useVuerAuth: () => IAuthContext;
8
7
 
@@ -2,7 +2,6 @@ import { IAuthContext } from '../context/auth-context.js';
2
2
  import 'react';
3
3
  import '../types.js';
4
4
  import 'better-auth';
5
- import 'better-auth/react';
6
5
 
7
6
  declare const useVuerAuth: () => IAuthContext;
8
7
 
@@ -1,14 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var chunkJLWAIMUZ_cjs = require('../../chunk-JLWAIMUZ.cjs');
3
+ var chunkXFTKHT2M_cjs = require('../../chunk-XFTKHT2M.cjs');
4
+ require('../../chunk-PB4UO2NR.cjs');
5
+ require('../../chunk-4CPB3XHE.cjs');
4
6
  require('../../chunk-4B44SRRP.cjs');
5
- require('../../chunk-LSKJOUAE.cjs');
6
7
  require('../../chunk-ZULCZ5L6.cjs');
7
- require('../../chunk-6BD5MQ5R.cjs');
8
+ require('../../chunk-SVWS4AL6.cjs');
8
9
 
9
10
 
10
11
 
11
12
  Object.defineProperty(exports, "useVuerMethod", {
12
13
  enumerable: true,
13
- get: function () { return chunkJLWAIMUZ_cjs.useVuerMethod; }
14
+ get: function () { return chunkXFTKHT2M_cjs.useVuerMethod; }
14
15
  });
@@ -1,10 +1,9 @@
1
- import { SignInWithOutBaseURLParams, BetterAuth } from '../types.cjs';
1
+ import { SignInWithOutBaseURLParams, SignOut } from '../types.cjs';
2
2
  import 'better-auth';
3
- import 'better-auth/react';
4
3
 
5
4
  interface UseVuerAuth {
6
5
  signIn: (p?: SignInWithOutBaseURLParams) => Promise<string> | void;
7
- signOut: ReturnType<BetterAuth["signOut"]>;
6
+ signOut: SignOut;
8
7
  }
9
8
  declare const useVuerMethod: () => UseVuerAuth;
10
9
 
@@ -1,10 +1,9 @@
1
- import { SignInWithOutBaseURLParams, BetterAuth } from '../types.js';
1
+ import { SignInWithOutBaseURLParams, SignOut } from '../types.js';
2
2
  import 'better-auth';
3
- import 'better-auth/react';
4
3
 
5
4
  interface UseVuerAuth {
6
5
  signIn: (p?: SignInWithOutBaseURLParams) => Promise<string> | void;
7
- signOut: ReturnType<BetterAuth["signOut"]>;
6
+ signOut: SignOut;
8
7
  }
9
8
  declare const useVuerMethod: () => UseVuerAuth;
10
9
 
@@ -1,5 +1,6 @@
1
- export { useVuerMethod } from '../../chunk-FBAOEFDU.mjs';
1
+ export { useVuerMethod } from '../../chunk-AKVHFPXH.mjs';
2
+ import '../../chunk-XGM57WPN.mjs';
3
+ import '../../chunk-CGODCUQ5.mjs';
2
4
  import '../../chunk-3IVDCAFM.mjs';
3
- import '../../chunk-7KQXX7QB.mjs';
4
5
  import '../../chunk-TC3W4VRO.mjs';
5
- import '../../chunk-WGVKFNG6.mjs';
6
+ import '../../chunk-276VJZCV.mjs';
@@ -1,19 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var chunkJLWAIMUZ_cjs = require('../chunk-JLWAIMUZ.cjs');
3
+ var chunkXFTKHT2M_cjs = require('../chunk-XFTKHT2M.cjs');
4
+ require('../chunk-PB4UO2NR.cjs');
5
+ require('../chunk-4CPB3XHE.cjs');
4
6
  var chunk4B44SRRP_cjs = require('../chunk-4B44SRRP.cjs');
5
- require('../chunk-LSKJOUAE.cjs');
6
- var chunkG6U2K2GR_cjs = require('../chunk-G6U2K2GR.cjs');
7
- require('../chunk-HPK4YEVK.cjs');
7
+ var chunkT2D6PSA6_cjs = require('../chunk-T2D6PSA6.cjs');
8
+ require('../chunk-WTYBTOLO.cjs');
8
9
  require('../chunk-ZULCZ5L6.cjs');
9
- var chunk6BD5MQ5R_cjs = require('../chunk-6BD5MQ5R.cjs');
10
- require('../chunk-CHYXRETV.cjs');
10
+ var chunkSVWS4AL6_cjs = require('../chunk-SVWS4AL6.cjs');
11
11
 
12
12
 
13
13
 
14
14
  Object.defineProperty(exports, "useVuerMethod", {
15
15
  enumerable: true,
16
- get: function () { return chunkJLWAIMUZ_cjs.useVuerMethod; }
16
+ get: function () { return chunkXFTKHT2M_cjs.useVuerMethod; }
17
17
  });
18
18
  Object.defineProperty(exports, "useVuerAuth", {
19
19
  enumerable: true,
@@ -21,13 +21,9 @@ Object.defineProperty(exports, "useVuerAuth", {
21
21
  });
22
22
  Object.defineProperty(exports, "VuerAuthProvider", {
23
23
  enumerable: true,
24
- get: function () { return chunkG6U2K2GR_cjs.VuerAuthProvider; }
24
+ get: function () { return chunkT2D6PSA6_cjs.VuerAuthProvider; }
25
25
  });
26
26
  Object.defineProperty(exports, "bearerToken", {
27
27
  enumerable: true,
28
- get: function () { return chunk6BD5MQ5R_cjs.bearerToken; }
29
- });
30
- Object.defineProperty(exports, "jwtToken", {
31
- enumerable: true,
32
- get: function () { return chunk6BD5MQ5R_cjs.jwtToken; }
28
+ get: function () { return chunkSVWS4AL6_cjs.bearerToken; }
33
29
  });
@@ -1,10 +1,9 @@
1
1
  export { UseVuerAuth, useVuerMethod } from './hooks/use-vuer-method.cjs';
2
2
  export { useVuerAuth } from './hooks/use-vuer-auth.cjs';
3
- export { bearerToken, jwtToken } from './localstorage-key.cjs';
3
+ export { bearerToken } from './localstorage-key.cjs';
4
4
  export { VuerAuthProvider } from './vuer-auth-provider.cjs';
5
5
  import './types.cjs';
6
6
  import 'better-auth';
7
- import 'better-auth/react';
8
7
  import './context/auth-context.cjs';
9
8
  import 'react';
10
9
  import 'react/jsx-runtime';
@@ -1,10 +1,9 @@
1
1
  export { UseVuerAuth, useVuerMethod } from './hooks/use-vuer-method.js';
2
2
  export { useVuerAuth } from './hooks/use-vuer-auth.js';
3
- export { bearerToken, jwtToken } from './localstorage-key.js';
3
+ export { bearerToken } from './localstorage-key.js';
4
4
  export { VuerAuthProvider } from './vuer-auth-provider.js';
5
5
  import './types.js';
6
6
  import 'better-auth';
7
- import 'better-auth/react';
8
7
  import './context/auth-context.js';
9
8
  import 'react';
10
9
  import 'react/jsx-runtime';
@@ -1,8 +1,8 @@
1
- export { useVuerMethod } from '../chunk-FBAOEFDU.mjs';
1
+ export { useVuerMethod } from '../chunk-AKVHFPXH.mjs';
2
+ import '../chunk-XGM57WPN.mjs';
3
+ import '../chunk-CGODCUQ5.mjs';
2
4
  export { useVuerAuth } from '../chunk-3IVDCAFM.mjs';
3
- import '../chunk-7KQXX7QB.mjs';
4
- export { VuerAuthProvider } from '../chunk-ACYOVCGH.mjs';
5
- import '../chunk-PZMA33PL.mjs';
5
+ export { VuerAuthProvider } from '../chunk-5HS4PMUR.mjs';
6
+ import '../chunk-T57VFBIC.mjs';
6
7
  import '../chunk-TC3W4VRO.mjs';
7
- export { bearerToken, jwtToken } from '../chunk-WGVKFNG6.mjs';
8
- import '../chunk-PKSIXQJX.mjs';
8
+ export { bearerToken } from '../chunk-276VJZCV.mjs';
@@ -1,14 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunk6BD5MQ5R_cjs = require('../chunk-6BD5MQ5R.cjs');
3
+ var chunkSVWS4AL6_cjs = require('../chunk-SVWS4AL6.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "bearerToken", {
8
8
  enumerable: true,
9
- get: function () { return chunk6BD5MQ5R_cjs.bearerToken; }
10
- });
11
- Object.defineProperty(exports, "jwtToken", {
12
- enumerable: true,
13
- get: function () { return chunk6BD5MQ5R_cjs.jwtToken; }
9
+ get: function () { return chunkSVWS4AL6_cjs.bearerToken; }
14
10
  });
@@ -1,4 +1,3 @@
1
1
  declare const bearerToken: "bearer_token";
2
- declare const jwtToken: "auth_jwt";
3
2
 
4
- export { bearerToken, jwtToken };
3
+ export { bearerToken };
@@ -1,4 +1,3 @@
1
1
  declare const bearerToken: "bearer_token";
2
- declare const jwtToken: "auth_jwt";
3
2
 
4
- export { bearerToken, jwtToken };
3
+ export { bearerToken };
@@ -1 +1 @@
1
- export { bearerToken, jwtToken } from '../chunk-WGVKFNG6.mjs';
1
+ export { bearerToken } from '../chunk-276VJZCV.mjs';
@@ -1,14 +1,2 @@
1
1
  'use strict';
2
2
 
3
- var chunkCHYXRETV_cjs = require('../chunk-CHYXRETV.cjs');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "auth", {
8
- enumerable: true,
9
- get: function () { return chunkCHYXRETV_cjs.auth; }
10
- });
11
- Object.defineProperty(exports, "options", {
12
- enumerable: true,
13
- get: function () { return chunkCHYXRETV_cjs.options; }
14
- });