nucleus-core-ts 0.8.10 → 0.8.12

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/client.js CHANGED
@@ -1 +1 @@
1
- function _0x7a3c(_0x1dadd0,_0x8d0b86){_0x1dadd0=_0x1dadd0-0xa7;var _0x25367d=_0x2536();var _0x7a3cf5=_0x25367d[_0x1dadd0];if(_0x7a3c['KPYhwx']===undefined){var _0xb9e764=function(_0x1a8c32){var _0x5c0ffa='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xe194d7='',_0x2bd48d='';for(var _0x43310c=0x0,_0x20c863,_0x5bb195,_0x588bd5=0x0;_0x5bb195=_0x1a8c32['charAt'](_0x588bd5++);~_0x5bb195&&(_0x20c863=_0x43310c%0x4?_0x20c863*0x40+_0x5bb195:_0x5bb195,_0x43310c++%0x4)?_0xe194d7+=String['fromCharCode'](0xff&_0x20c863>>(-0x2*_0x43310c&0x6)):0x0){_0x5bb195=_0x5c0ffa['indexOf'](_0x5bb195);}for(var _0x5c2881=0x0,_0x3e089a=_0xe194d7['length'];_0x5c2881<_0x3e089a;_0x5c2881++){_0x2bd48d+='%'+('00'+_0xe194d7['charCodeAt'](_0x5c2881)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2bd48d);};_0x7a3c['yBOoqA']=_0xb9e764,_0x7a3c['rAyrjJ']={},_0x7a3c['KPYhwx']=!![];}var _0x4b0a6a=_0x25367d[0x0],_0x509978=_0x1dadd0+_0x4b0a6a,_0xc4cd1e=_0x7a3c['rAyrjJ'][_0x509978];return!_0xc4cd1e?(_0x7a3cf5=_0x7a3c['yBOoqA'](_0x7a3cf5),_0x7a3c['rAyrjJ'][_0x509978]=_0x7a3cf5):_0x7a3cf5=_0xc4cd1e,_0x7a3cf5;}(function(_0x5f2686,_0x3db7d5){var _0x5b8d93=_0x7a3c,_0x47b466=_0x5f2686();while(!![]){try{var _0x47be7e=-parseInt(_0x5b8d93(0xa8))/0x1+-parseInt(_0x5b8d93(0xae))/0x2*(parseInt(_0x5b8d93(0xa7))/0x3)+parseInt(_0x5b8d93(0xab))/0x4+parseInt(_0x5b8d93(0xb1))/0x5*(-parseInt(_0x5b8d93(0xad))/0x6)+-parseInt(_0x5b8d93(0xb0))/0x7*(-parseInt(_0x5b8d93(0xaf))/0x8)+parseInt(_0x5b8d93(0xb2))/0x9*(-parseInt(_0x5b8d93(0xac))/0xa)+parseInt(_0x5b8d93(0xa9))/0xb*(parseInt(_0x5b8d93(0xaa))/0xc);if(_0x47be7e===_0x3db7d5)break;else _0x47b466['push'](_0x47b466['shift']());}catch(_0x32a7f3){_0x47b466['push'](_0x47b466['shift']());}}}(_0x2536,0xa754f));import{g as _0xe194d7,h as _0x2bd48d,i as _0x43310c,j as _0x20c863,k as _0x5bb195,l as _0x588bd5,t as _0x5c2881}from'./index-hhnypnb1.js';function _0x2536(){var _0x2feacf=['nde0ntiYnKPurKLjyq','ody5mtrUA1HkENC','nte0mtu3nMrhDK11qW','mtrpz3H2B1i','nuHxsgDgzW','nti3ntHqBNrkExa','mJfOAfvPswi','odaYndvmveXUBxq','mtfZzunKywK','nde0mdiXnMHztxHZuG','mZm4mtGZmNH2ywPZrq','mtiYmhHvA0XjCq'];_0x2536=function(){return _0x2feacf;};return _0x2536();}export{_0x5bb195 as generateSystemTableEndpoints,_0x43310c as generateEndpointsFromConfig,_0x20c863 as generateAuthEndpoints,_0x588bd5 as generateAllEndpoints,_0x5c2881 as createServerFactory,_0xe194d7 as createApiHook,_0x2bd48d as AUTH_ENDPOINT_CONFIGS};
1
+ function _0x31e2(_0x2a15d6,_0x2294a8){_0x2a15d6=_0x2a15d6-0x13f;var _0x20e460=_0x20e4();var _0x31e2dd=_0x20e460[_0x2a15d6];if(_0x31e2['TsBVJb']===undefined){var _0x14affa=function(_0x48604e){var _0x3fb0d7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x18638a='',_0x2399e8='';for(var _0x3f359d=0x0,_0x3b407a,_0x5d206a,_0x11c207=0x0;_0x5d206a=_0x48604e['charAt'](_0x11c207++);~_0x5d206a&&(_0x3b407a=_0x3f359d%0x4?_0x3b407a*0x40+_0x5d206a:_0x5d206a,_0x3f359d++%0x4)?_0x18638a+=String['fromCharCode'](0xff&_0x3b407a>>(-0x2*_0x3f359d&0x6)):0x0){_0x5d206a=_0x3fb0d7['indexOf'](_0x5d206a);}for(var _0x25ce85=0x0,_0x2cc0da=_0x18638a['length'];_0x25ce85<_0x2cc0da;_0x25ce85++){_0x2399e8+='%'+('00'+_0x18638a['charCodeAt'](_0x25ce85)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2399e8);};_0x31e2['pWRbaE']=_0x14affa,_0x31e2['uEmbPY']={},_0x31e2['TsBVJb']=!![];}var _0x4bd96c=_0x20e460[0x0],_0x1298ae=_0x2a15d6+_0x4bd96c,_0x3b7459=_0x31e2['uEmbPY'][_0x1298ae];return!_0x3b7459?(_0x31e2dd=_0x31e2['pWRbaE'](_0x31e2dd),_0x31e2['uEmbPY'][_0x1298ae]=_0x31e2dd):_0x31e2dd=_0x3b7459,_0x31e2dd;}(function(_0x53545e,_0x4630da){var _0x3f6d63=_0x31e2,_0x2e46a7=_0x53545e();while(!![]){try{var _0x4eaedb=-parseInt(_0x3f6d63(0x148))/0x1+parseInt(_0x3f6d63(0x147))/0x2*(-parseInt(_0x3f6d63(0x13f))/0x3)+-parseInt(_0x3f6d63(0x140))/0x4+-parseInt(_0x3f6d63(0x146))/0x5+parseInt(_0x3f6d63(0x142))/0x6*(-parseInt(_0x3f6d63(0x141))/0x7)+parseInt(_0x3f6d63(0x145))/0x8*(parseInt(_0x3f6d63(0x144))/0x9)+parseInt(_0x3f6d63(0x143))/0xa;if(_0x4eaedb===_0x4630da)break;else _0x2e46a7['push'](_0x2e46a7['shift']());}catch(_0x284b4d){_0x2e46a7['push'](_0x2e46a7['shift']());}}}(_0x20e4,0x1ed65));import{g as _0x18638a,h as _0x2399e8,i as _0x3f359d,j as _0x3b407a,k as _0x5d206a,l as _0x11c207,t as _0x25ce85}from'./index-hhnypnb1.js';export{_0x5d206a as generateSystemTableEndpoints,_0x3f359d as generateEndpointsFromConfig,_0x3b407a as generateAuthEndpoints,_0x11c207 as generateAllEndpoints,_0x25ce85 as createServerFactory,_0x18638a as createApiHook,_0x2399e8 as AUTH_ENDPOINT_CONFIGS};function _0x20e4(){var _0x1788ed=['ntG0y1jNwwnx','mtiYnZu1nxfJywH6tG','mte0sKTTBKnT','mty5mJi2vLzWDhfh','mtaYow1Sr2rnsG','odiWmJe2zfr0CgP3','mZa4nZDyAu9mAem','nJzLug93Bvm','nJi2ndG5mezxAKLPqq','mJmXmZLlvKTJsfu'];_0x20e4=function(){return _0x1788ed;};return _0x20e4();}
@@ -1,12 +1,38 @@
1
- import { s as xm } from "./index-hhnypnb1.js";
2
- import { k as uO } from "./index-hhnypnb1.js";
3
- import { i as RO } from "./index-hhnypnb1.js";
4
- import { j as kO } from "./index-hhnypnb1.js";
5
- import { l as MO } from "./index-hhnypnb1.js";
6
- import { t as eO } from "./index-hhnypnb1.js";
7
- import { g as $O } from "./index-hhnypnb1.js";
8
- import { r as Cm } from "./index-hhnypnb1.js";
9
- declare function o9(r: any): Promise<Td<"", {
1
+ declare var Ti: () => import("h-state").StoreType<{
2
+ connection: {
3
+ status: string;
4
+ clientId: null;
5
+ subscribedTopics: never[];
6
+ error: null;
7
+ reconnectAttempt: number;
8
+ };
9
+ events: never[];
10
+ maxEvents: number;
11
+ }, Record<string, unknown>>;
12
+ declare function gd(r: any): {
13
+ isConnected: boolean;
14
+ isConnecting: boolean;
15
+ clientId: null;
16
+ subscribedTopics: never[];
17
+ events: never[];
18
+ error: null;
19
+ reconnectAttempt: number;
20
+ connect: () => void;
21
+ disconnect: () => void;
22
+ subscribe: (d: any) => void;
23
+ unsubscribe: (d: any) => void;
24
+ clearEvents: unknown;
25
+ getEventsByTopic: (d: any) => never[];
26
+ };
27
+ import { s as wd } from "./index-hhnypnb1.js";
28
+ import { k as dP } from "./index-hhnypnb1.js";
29
+ import { i as wP } from "./index-hhnypnb1.js";
30
+ import { j as _P } from "./index-hhnypnb1.js";
31
+ import { l as mP } from "./index-hhnypnb1.js";
32
+ import { t as uP } from "./index-hhnypnb1.js";
33
+ import { g as gP } from "./index-hhnypnb1.js";
34
+ import { r as ld } from "./index-hhnypnb1.js";
35
+ declare function J4(r: any): Promise<km<"", {
10
36
  decorator: {};
11
37
  store: {};
12
38
  derive: {};
@@ -34,7 +60,7 @@ declare function o9(r: any): Promise<Td<"", {
34
60
  standaloneSchema: {};
35
61
  response: {};
36
62
  }>>;
37
- import { h as AO } from "./index-hhnypnb1.js";
38
- import Td from "elysia";
39
- export { xm as serverFetch, uO as generateSystemTableEndpoints, RO as generateEndpointsFromConfig, kO as generateAuthEndpoints, MO as generateAllEndpoints, eO as createServerFactory, $O as createApiHook, Cm as ServerFetch, o9 as NucleusElysiaPlugin, AO as AUTH_ENDPOINT_CONFIGS };
63
+ import { h as lP } from "./index-hhnypnb1.js";
64
+ import km from "elysia";
65
+ export { Ti as usePubSubStore, gd as usePubSub, wd as serverFetch, dP as generateSystemTableEndpoints, wP as generateEndpointsFromConfig, _P as generateAuthEndpoints, mP as generateAllEndpoints, uP as createServerFactory, gP as createApiHook, ld as ServerFetch, J4 as NucleusElysiaPlugin, lP as AUTH_ENDPOINT_CONFIGS };
40
66
  //# sourceMappingURL=index.d.ts.map
@@ -35,6 +35,8 @@ export { UsersPage, useUsersStore, } from "./components/UsersPage";
35
35
  export type { ResendVerificationAction, VerifyEmailAction, VerifyEmailPageConfig, VerifyEmailState, VerifyEmailStep, } from "./components/VerifyEmailPage";
36
36
  export { useVerifyEmailStore, VerifyEmailPage, } from "./components/VerifyEmailPage";
37
37
  export { useNucleusEntity } from "./hooks/useNucleusEntity";
38
+ export { usePubSub, usePubSubStore } from "../src/Client/PubSub";
39
+ export type { PubSubConfig, PubSubConnectionState, PubSubEvent, } from "../src/Client/PubSub";
38
40
  export type { BulkDeleteResponse, ColumnConfig, ColumnEnum, ColumnReference, ColumnType, ColumnValidation, DeleteResponse, FieldConfig, FilterCondition, ListResponse, MutationResponse, NucleusColumn, NucleusEntity, NucleusEntityShowcaseProps, PaginationMeta, QueryParams, SingleResponse, SortCondition, SortDirection, UseNucleusEntityOptions, UseNucleusEntityReturn, } from "./types";
39
41
  export { cn } from "./utils/cn";
40
42
  export { formatLabel, getColumnType, getDefaultValue, isArrayColumn, isJsonColumn, isReferenceColumn, shouldExcludeColumn, shouldExcludeFromForm, } from "./utils/columnUtils";
package/dist/fe/index.js CHANGED
@@ -23,6 +23,7 @@ export { DEFAULT_PASSWORD_POLICY, SetPasswordPage, useSetPasswordStore } from ".
23
23
  export { UsersPage, useUsersStore } from "./components/UsersPage";
24
24
  export { useVerifyEmailStore, VerifyEmailPage } from "./components/VerifyEmailPage";
25
25
  export { useNucleusEntity } from "./hooks/useNucleusEntity";
26
+ export { usePubSub, usePubSubStore } from "../src/Client/PubSub";
26
27
  export { cn } from "./utils/cn";
27
28
  export { formatLabel, getColumnType, getDefaultValue, isArrayColumn, isJsonColumn, isReferenceColumn, shouldExcludeColumn, shouldExcludeFromForm } from "./utils/columnUtils";
28
29
  export { generateBulkEndpointKey, generateDistinctEndpointKey, generateEntityEndpointKey, generateGetByIdEndpointKey, singularize, toUpperSnakeCase } from "./utils/endpointKeys";