@aurum-sdk/core 0.2.3 → 0.2.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/dist/chunk-ATH4UWSL.js +891 -0
- package/dist/chunk-GP7AGIK5.mjs +15206 -0
- package/dist/chunk-GTEGWUGU.js +15206 -0
- package/dist/chunk-IQ7F5R7D.js +1885 -0
- package/dist/chunk-LMQLRSFP.js +33 -0
- package/dist/chunk-YEVOYJGQ.mjs +891 -0
- package/dist/chunk-YFDA5EMH.mjs +1885 -0
- package/dist/chunk-ZT57KKYB.mjs +33 -0
- package/dist/dist-3K7ESMKX.js +4825 -0
- package/dist/dist-SYSRLCAE.mjs +4825 -0
- package/dist/index.js +116 -96
- package/dist/index.mjs +67 -47
- package/dist/index.web-HX5ZVRA3.mjs +28161 -0
- package/dist/index.web-ZRK5OLZ5.js +28161 -0
- package/dist/widgets.js +24 -12
- package/dist/widgets.mjs +13 -1
- package/package.json +3 -3
- package/dist/chunk-JXTTDJRM.js +0 -2455
- package/dist/chunk-KAP5LMPM.mjs +0 -2455
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkIQ7F5R7Djs = require('./chunk-IQ7F5R7D.js');
|
|
4
|
+
|
|
5
|
+
// ../../node_modules/.pnpm/zustand@5.0.9_@types+react@18.3.26_react@19.2.3/node_modules/zustand/esm/vanilla.mjs
|
|
6
|
+
_chunkIQ7F5R7Djs.init_polyfills.call(void 0, );
|
|
7
|
+
var createStoreImpl = (createState) => {
|
|
8
|
+
let state;
|
|
9
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
10
|
+
const setState = (partial, replace) => {
|
|
11
|
+
const nextState = typeof partial === "function" ? partial(state) : partial;
|
|
12
|
+
if (!Object.is(nextState, state)) {
|
|
13
|
+
const previousState = state;
|
|
14
|
+
state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
|
|
15
|
+
listeners.forEach((listener) => listener(state, previousState));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
const getState = () => state;
|
|
19
|
+
const getInitialState = () => initialState;
|
|
20
|
+
const subscribe = (listener) => {
|
|
21
|
+
listeners.add(listener);
|
|
22
|
+
return () => listeners.delete(listener);
|
|
23
|
+
};
|
|
24
|
+
const api = { setState, getState, getInitialState, subscribe };
|
|
25
|
+
const initialState = state = createState(setState, getState, api);
|
|
26
|
+
return api;
|
|
27
|
+
};
|
|
28
|
+
var createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
exports.createStore = createStore;
|
|
33
|
+
//# sourceMappingURL=chunk-LMQLRSFP.js.map
|