@genesislcap/foundation-redux 14.409.0-FUI-2495.12 → 14.409.0-pbi.2

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.
@@ -1,17 +1,5 @@
1
1
  import { StoreReturn, RootStateFromSlices, SliceArray } from './types';
2
2
  export { createSlice } from '@reduxjs/toolkit';
3
- /**
4
- * Options for {@link createStore}.
5
- *
6
- * @public
7
- */
8
- export interface CreateStoreOptions {
9
- /**
10
- * Whether to enable Redux DevTools integration.
11
- * Defaults to the result of `isDev()` when omitted.
12
- */
13
- devTools?: boolean;
14
- }
15
3
  /**
16
4
  * Creates a Redux store with FAST component integration.
17
5
  *
@@ -22,7 +10,6 @@ export interface CreateStoreOptions {
22
10
  *
23
11
  * @param slices - Array of slices to combine into the store
24
12
  * @param preloadedState - Initial state that matches the slice structure
25
- * @param options - Optional configuration (e.g. `{ devTools: false }`)
26
13
  * @returns Object containing store, actions, selectors, and utility functions
27
14
  *
28
15
  * @example
@@ -38,5 +25,5 @@ export interface CreateStoreOptions {
38
25
  *
39
26
  * @public
40
27
  */
41
- export declare const createStore: <S extends SliceArray>(slices: S, preloadedState: RootStateFromSlices<S>, options?: CreateStoreOptions) => StoreReturn<S>;
28
+ export declare const createStore: <S extends SliceArray>(slices: S, preloadedState: RootStateFromSlices<S>) => StoreReturn<S>;
42
29
  //# sourceMappingURL=store.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/store.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,WAAW,EACX,mBAAmB,EAEnB,UAAU,EAEX,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA4LD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,UAAU,EAC9C,QAAQ,CAAC,EACT,gBAAgB,mBAAmB,CAAC,CAAC,CAAC,EACtC,UAAU,kBAAkB,KAC3B,WAAW,CAAC,CAAC,CAqBf,CAAC"}
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/store.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,WAAW,EACX,mBAAmB,EAEnB,UAAU,EAEX,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAyL/C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,UAAU,EAC9C,QAAQ,CAAC,EACT,gBAAgB,mBAAmB,CAAC,CAAC,CAAC,KACrC,WAAW,CAAC,CAAC,CAqBf,CAAC"}
@@ -170,14 +170,14 @@ export type StoreReturn<S extends SliceArray> = {
170
170
  selectors: SelectorsFromSlices<S>;
171
171
  /** The root reducer combining all slices */
172
172
  rootReducer: ReducersMapObject<RootStateFromSlices<S>>;
173
- /** Performance-optimized subscription for a specific value — returns an unsubscribe function */
174
- subscribeKey: (checkerFn: (s: RootStateFromSlices<S>) => string, callbackFn: (s: RootStateFromSlices<S>) => void) => () => void;
173
+ /** Performance-optimized subscription function for specific values */
174
+ subscribeKey: (checkerFn: (s: RootStateFromSlices<S>) => string, callbackFn: (s: RootStateFromSlices<S>) => void) => void;
175
175
  /** Function to dispatch actions or thunks */
176
176
  dispatch: (action: Action | ThunkDispatch<S>) => void;
177
177
  /** Function to notify FAST components of slice changes */
178
178
  notify: (sliceName: keyof RootStateFromSlices<S>) => void;
179
- /** Subscribes to all state changes — returns an unsubscribe function */
180
- subscribe: (cb: (state: RootStateFromSlices<S>) => void) => () => void;
179
+ /** General subscription function for all state changes */
180
+ subscribe: (cb: (state: RootStateFromSlices<S>) => void) => void;
181
181
  /** Function to get the current state */
182
182
  getState: () => RootStateFromSlices<S>;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AAK,IAAI,CAAC;IACtD,0DAA0D;IAC1D,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,mBAAmB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC1D,0DAA0D;IAC1D,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,IAAI,KAAK,IAAI,CAAC;IACjE,wCAAwC;IACxC,QAAQ,EAAE,MAAM,mBAAmB,CAAC,CAAC,CAAC,CAAC;CACxC,CAAC"}
package/dist/esm/store.js CHANGED
@@ -17,10 +17,8 @@ class ObservableStore {
17
17
  *
18
18
  * @param slices - Array of slices to combine into the store
19
19
  * @param preloadedState - Initial state for the store
20
- * @param options - Optional configuration
21
20
  */
22
- constructor(slices, preloadedState, options) {
23
- var _a;
21
+ constructor(slices, preloadedState) {
24
22
  /**
25
23
  * Gets the underlying Redux store instance.
26
24
  *
@@ -57,7 +55,6 @@ class ObservableStore {
57
55
  * Subscribes to all state changes in the store.
58
56
  *
59
57
  * @param cb - Callback function called whenever state changes
60
- * @returns Unsubscribe function — call it to stop receiving updates
61
58
  */
62
59
  this.subscribe = (cb) => this._store.subscribe(() => {
63
60
  cb(this._store.getState());
@@ -71,11 +68,10 @@ class ObservableStore {
71
68
  *
72
69
  * @param checkerFn - Function that extracts the value to watch (must return string)
73
70
  * @param callbackFn - Callback function called when the watched value changes
74
- * @returns Unsubscribe function — call it to stop receiving updates
75
71
  */
76
72
  this.subscribeKey = (checkerFn, callbackFn) => {
77
73
  let cache = checkerFn(this._store.getState());
78
- return this.subscribe(() => {
74
+ this.subscribe(() => {
79
75
  const newState = checkerFn(this._store.getState());
80
76
  if (cache === newState)
81
77
  return;
@@ -149,7 +145,7 @@ class ObservableStore {
149
145
  }, {});
150
146
  this._store = configureStore({
151
147
  reducer: this._rootReducer,
152
- devTools: (_a = options === null || options === void 0 ? void 0 : options.devTools) !== null && _a !== void 0 ? _a : isDev(),
148
+ devTools: isDev(),
153
149
  preloadedState,
154
150
  });
155
151
  }
@@ -164,7 +160,6 @@ class ObservableStore {
164
160
  *
165
161
  * @param slices - Array of slices to combine into the store
166
162
  * @param preloadedState - Initial state that matches the slice structure
167
- * @param options - Optional configuration (e.g. `{ devTools: false }`)
168
163
  * @returns Object containing store, actions, selectors, and utility functions
169
164
  *
170
165
  * @example
@@ -180,8 +175,8 @@ class ObservableStore {
180
175
  *
181
176
  * @public
182
177
  */
183
- export const createStore = (slices, preloadedState, options) => {
184
- const observableStore = new ObservableStore(slices, preloadedState, options);
178
+ export const createStore = (slices, preloadedState) => {
179
+ const observableStore = new ObservableStore(slices, preloadedState);
185
180
  const actions = observableStore.getActions();
186
181
  const storeProxy = new Proxy({}, {
187
182
  get(target, propertyName) {
@@ -250,7 +250,7 @@
250
250
  {
251
251
  "kind": "Function",
252
252
  "canonicalReference": "@genesislcap/foundation-redux!createStore:function(1)",
253
- "docComment": "/**\n * Creates a Redux store with FAST component integration.\n *\n * @remarks\n *\n * This function creates a Redux store that integrates seamlessly with FAST components. It automatically binds actions and selectors, provides subscription methods, and handles FAST Observable notifications.\n *\n * @param slices - Array of slices to combine into the store\n *\n * @param preloadedState - Initial state that matches the slice structure\n *\n * @param options - Optional configuration (e.g. `{ devTools: false }`)\n *\n * @returns Object containing store, actions, selectors, and utility functions\n *\n * @example\n * ```typescript\n * const { store, actions, selectors, subscribeKey } = createStore(\n * [userSlice, cartSlice],\n * {\n * user: { name: '', email: '' },\n * cart: { items: [], total: 0 }\n * }\n * );\n * ```\n *\n * @public\n */\n",
253
+ "docComment": "/**\n * Creates a Redux store with FAST component integration.\n *\n * @remarks\n *\n * This function creates a Redux store that integrates seamlessly with FAST components. It automatically binds actions and selectors, provides subscription methods, and handles FAST Observable notifications.\n *\n * @param slices - Array of slices to combine into the store\n *\n * @param preloadedState - Initial state that matches the slice structure\n *\n * @returns Object containing store, actions, selectors, and utility functions\n *\n * @example\n * ```typescript\n * const { store, actions, selectors, subscribeKey } = createStore(\n * [userSlice, cartSlice],\n * {\n * user: { name: '', email: '' },\n * cart: { items: [], total: 0 }\n * }\n * );\n * ```\n *\n * @public\n */\n",
254
254
  "excerptTokens": [
255
255
  {
256
256
  "kind": "Content",
@@ -282,15 +282,6 @@
282
282
  "kind": "Content",
283
283
  "text": "<S>"
284
284
  },
285
- {
286
- "kind": "Content",
287
- "text": ", options?: "
288
- },
289
- {
290
- "kind": "Reference",
291
- "text": "CreateStoreOptions",
292
- "canonicalReference": "@genesislcap/foundation-redux!CreateStoreOptions:interface"
293
- },
294
285
  {
295
286
  "kind": "Content",
296
287
  "text": ") => "
@@ -307,8 +298,8 @@
307
298
  ],
308
299
  "fileUrlPath": "src/store.ts",
309
300
  "returnTypeTokenRange": {
310
- "startIndex": 10,
311
- "endIndex": 12
301
+ "startIndex": 8,
302
+ "endIndex": 10
312
303
  },
313
304
  "releaseTag": "Public",
314
305
  "overloadIndex": 1,
@@ -328,14 +319,6 @@
328
319
  "endIndex": 7
329
320
  },
330
321
  "isOptional": false
331
- },
332
- {
333
- "parameterName": "options",
334
- "parameterTypeTokenRange": {
335
- "startIndex": 8,
336
- "endIndex": 9
337
- },
338
- "isOptional": true
339
322
  }
340
323
  ],
341
324
  "typeParameters": [
@@ -353,51 +336,6 @@
353
336
  ],
354
337
  "name": "createStore"
355
338
  },
356
- {
357
- "kind": "Interface",
358
- "canonicalReference": "@genesislcap/foundation-redux!CreateStoreOptions:interface",
359
- "docComment": "/**\n * Options for {@link createStore}.\n *\n * @public\n */\n",
360
- "excerptTokens": [
361
- {
362
- "kind": "Content",
363
- "text": "export interface CreateStoreOptions "
364
- }
365
- ],
366
- "fileUrlPath": "src/store.ts",
367
- "releaseTag": "Public",
368
- "name": "CreateStoreOptions",
369
- "preserveMemberOrder": false,
370
- "members": [
371
- {
372
- "kind": "PropertySignature",
373
- "canonicalReference": "@genesislcap/foundation-redux!CreateStoreOptions#devTools:member",
374
- "docComment": "/**\n * Whether to enable Redux DevTools integration. Defaults to the result of `isDev()` when omitted.\n */\n",
375
- "excerptTokens": [
376
- {
377
- "kind": "Content",
378
- "text": "devTools?: "
379
- },
380
- {
381
- "kind": "Content",
382
- "text": "boolean"
383
- },
384
- {
385
- "kind": "Content",
386
- "text": ";"
387
- }
388
- ],
389
- "isReadonly": false,
390
- "isOptional": true,
391
- "releaseTag": "Public",
392
- "name": "devTools",
393
- "propertyTypeTokenRange": {
394
- "startIndex": 1,
395
- "endIndex": 2
396
- }
397
- }
398
- ],
399
- "extendsTokenRanges": []
400
- },
401
339
  {
402
340
  "kind": "TypeAlias",
403
341
  "canonicalReference": "@genesislcap/foundation-redux!RootStateFromSlices:type",
@@ -887,7 +825,7 @@
887
825
  },
888
826
  {
889
827
  "kind": "Content",
890
- "text": "<S>) => void) => () => void;\n dispatch: (action: "
828
+ "text": "<S>) => void) => void;\n dispatch: (action: "
891
829
  },
892
830
  {
893
831
  "kind": "Reference",
@@ -923,7 +861,7 @@
923
861
  },
924
862
  {
925
863
  "kind": "Content",
926
- "text": "<S>) => void) => () => void;\n getState: () => "
864
+ "text": "<S>) => void) => void;\n getState: () => "
927
865
  },
928
866
  {
929
867
  "kind": "Reference",
@@ -44,7 +44,6 @@ export { createSlice }
44
44
  *
45
45
  * @param slices - Array of slices to combine into the store
46
46
  * @param preloadedState - Initial state that matches the slice structure
47
- * @param options - Optional configuration (e.g. `{ devTools: false }`)
48
47
  * @returns Object containing store, actions, selectors, and utility functions
49
48
  *
50
49
  * @example
@@ -60,20 +59,7 @@ export { createSlice }
60
59
  *
61
60
  * @public
62
61
  */
63
- export declare const createStore: <S extends SliceArray>(slices: S, preloadedState: RootStateFromSlices<S>, options?: CreateStoreOptions) => StoreReturn<S>;
64
-
65
- /**
66
- * Options for {@link createStore}.
67
- *
68
- * @public
69
- */
70
- export declare interface CreateStoreOptions {
71
- /**
72
- * Whether to enable Redux DevTools integration.
73
- * Defaults to the result of `isDev()` when omitted.
74
- */
75
- devTools?: boolean;
76
- }
62
+ export declare const createStore: <S extends SliceArray>(slices: S, preloadedState: RootStateFromSlices<S>) => StoreReturn<S>;
77
63
 
78
64
  declare type FirstIndex = 0;
79
65
 
@@ -212,14 +198,14 @@ export declare type StoreReturn<S extends SliceArray> = {
212
198
  selectors: SelectorsFromSlices<S>;
213
199
  /** The root reducer combining all slices */
214
200
  rootReducer: ReducersMapObject<RootStateFromSlices<S>>;
215
- /** Performance-optimized subscription for a specific value — returns an unsubscribe function */
216
- subscribeKey: (checkerFn: (s: RootStateFromSlices<S>) => string, callbackFn: (s: RootStateFromSlices<S>) => void) => () => void;
201
+ /** Performance-optimized subscription function for specific values */
202
+ subscribeKey: (checkerFn: (s: RootStateFromSlices<S>) => string, callbackFn: (s: RootStateFromSlices<S>) => void) => void;
217
203
  /** Function to dispatch actions or thunks */
218
204
  dispatch: (action: Action | ThunkDispatch<S>) => void;
219
205
  /** Function to notify FAST components of slice changes */
220
206
  notify: (sliceName: keyof RootStateFromSlices<S>) => void;
221
- /** Subscribes to all state changes — returns an unsubscribe function */
222
- subscribe: (cb: (state: RootStateFromSlices<S>) => void) => () => void;
207
+ /** General subscription function for all state changes */
208
+ subscribe: (cb: (state: RootStateFromSlices<S>) => void) => void;
223
209
  /** Function to get the current state */
224
210
  getState: () => RootStateFromSlices<S>;
225
211
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-redux",
3
3
  "description": "Genesis Foundation Redux - Redux Toolkit integration for FAST components",
4
- "version": "14.409.0-FUI-2495.12",
4
+ "version": "14.409.0-pbi.2",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -38,17 +38,17 @@
38
38
  }
39
39
  },
40
40
  "devDependencies": {
41
- "@genesislcap/foundation-testing": "14.409.0-FUI-2495.12",
42
- "@genesislcap/genx": "14.409.0-FUI-2495.12",
43
- "@genesislcap/rollup-builder": "14.409.0-FUI-2495.12",
44
- "@genesislcap/ts-builder": "14.409.0-FUI-2495.12",
45
- "@genesislcap/uvu-playwright-builder": "14.409.0-FUI-2495.12",
46
- "@genesislcap/vite-builder": "14.409.0-FUI-2495.12",
47
- "@genesislcap/webpack-builder": "14.409.0-FUI-2495.12"
41
+ "@genesislcap/foundation-testing": "14.409.0-pbi.2",
42
+ "@genesislcap/genx": "14.409.0-pbi.2",
43
+ "@genesislcap/rollup-builder": "14.409.0-pbi.2",
44
+ "@genesislcap/ts-builder": "14.409.0-pbi.2",
45
+ "@genesislcap/uvu-playwright-builder": "14.409.0-pbi.2",
46
+ "@genesislcap/vite-builder": "14.409.0-pbi.2",
47
+ "@genesislcap/webpack-builder": "14.409.0-pbi.2"
48
48
  },
49
49
  "dependencies": {
50
- "@genesislcap/foundation-utils": "14.409.0-FUI-2495.12",
51
- "@genesislcap/web-core": "14.409.0-FUI-2495.12",
50
+ "@genesislcap/foundation-utils": "14.409.0-pbi.2",
51
+ "@genesislcap/web-core": "14.409.0-pbi.2",
52
52
  "@reduxjs/toolkit": "^2.2.5"
53
53
  },
54
54
  "repository": {
@@ -59,5 +59,5 @@
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  },
62
- "gitHead": "3980c19aa52edce4eea17ed78eaa35c0691d14bf"
62
+ "gitHead": "6b2b50527d8f4ddb0bfdc961ad9fe3ca55f0875e"
63
63
  }