@applicaster/quick-brick-core 14.0.0-alpha.7900711229 → 14.0.0-alpha.8419134002
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.
|
@@ -44,7 +44,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
44
44
|
"supports_offline": false,
|
|
45
45
|
"type": "general_content",
|
|
46
46
|
},
|
|
47
|
-
"screenStateStore": [Function],
|
|
48
47
|
},
|
|
49
48
|
},
|
|
50
49
|
"options": {
|
|
@@ -80,7 +79,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
80
79
|
"supports_offline": false,
|
|
81
80
|
"type": "general_content",
|
|
82
81
|
},
|
|
83
|
-
"screenStateStore": undefined,
|
|
84
82
|
},
|
|
85
83
|
},
|
|
86
84
|
],
|
|
@@ -116,7 +114,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
116
114
|
"supports_offline": false,
|
|
117
115
|
"type": "general_content",
|
|
118
116
|
},
|
|
119
|
-
"screenStateStore": [Function],
|
|
120
117
|
},
|
|
121
118
|
},
|
|
122
119
|
"options": {
|
|
@@ -152,7 +149,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
152
149
|
"supports_offline": false,
|
|
153
150
|
"type": "general_content",
|
|
154
151
|
},
|
|
155
|
-
"screenStateStore": undefined,
|
|
156
152
|
},
|
|
157
153
|
},
|
|
158
154
|
{
|
|
@@ -184,7 +180,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
184
180
|
"supports_offline": false,
|
|
185
181
|
"type": "general_content",
|
|
186
182
|
},
|
|
187
|
-
"screenStateStore": undefined,
|
|
188
183
|
},
|
|
189
184
|
},
|
|
190
185
|
],
|
|
@@ -220,7 +215,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
220
215
|
"supports_offline": false,
|
|
221
216
|
"type": "general_content",
|
|
222
217
|
},
|
|
223
|
-
"screenStateStore": [Function],
|
|
224
218
|
},
|
|
225
219
|
},
|
|
226
220
|
"options": {
|
|
@@ -256,7 +250,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
256
250
|
"supports_offline": false,
|
|
257
251
|
"type": "general_content",
|
|
258
252
|
},
|
|
259
|
-
"screenStateStore": undefined,
|
|
260
253
|
},
|
|
261
254
|
},
|
|
262
255
|
{
|
|
@@ -288,7 +281,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
288
281
|
"supports_offline": false,
|
|
289
282
|
"type": "general_content",
|
|
290
283
|
},
|
|
291
|
-
"screenStateStore": undefined,
|
|
292
284
|
},
|
|
293
285
|
},
|
|
294
286
|
{
|
|
@@ -320,7 +312,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
320
312
|
"supports_offline": false,
|
|
321
313
|
"type": "general_content",
|
|
322
314
|
},
|
|
323
|
-
"screenStateStore": undefined,
|
|
324
315
|
},
|
|
325
316
|
},
|
|
326
317
|
],
|
|
@@ -357,7 +348,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
357
348
|
"supports_offline": false,
|
|
358
349
|
"type": "general_content",
|
|
359
350
|
},
|
|
360
|
-
"screenStateStore": undefined,
|
|
361
351
|
},
|
|
362
352
|
},
|
|
363
353
|
"options": {
|
|
@@ -393,7 +383,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
393
383
|
"supports_offline": false,
|
|
394
384
|
"type": "general_content",
|
|
395
385
|
},
|
|
396
|
-
"screenStateStore": undefined,
|
|
397
386
|
},
|
|
398
387
|
},
|
|
399
388
|
{
|
|
@@ -425,7 +414,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
425
414
|
"supports_offline": false,
|
|
426
415
|
"type": "general_content",
|
|
427
416
|
},
|
|
428
|
-
"screenStateStore": undefined,
|
|
429
417
|
},
|
|
430
418
|
},
|
|
431
419
|
],
|
|
@@ -461,7 +449,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
461
449
|
"supports_offline": false,
|
|
462
450
|
"type": "general_content",
|
|
463
451
|
},
|
|
464
|
-
"screenStateStore": [Function],
|
|
465
452
|
},
|
|
466
453
|
},
|
|
467
454
|
"options": {
|
|
@@ -497,7 +484,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
497
484
|
"supports_offline": false,
|
|
498
485
|
"type": "general_content",
|
|
499
486
|
},
|
|
500
|
-
"screenStateStore": undefined,
|
|
501
487
|
},
|
|
502
488
|
},
|
|
503
489
|
{
|
|
@@ -529,7 +515,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
529
515
|
"supports_offline": false,
|
|
530
516
|
"type": "general_content",
|
|
531
517
|
},
|
|
532
|
-
"screenStateStore": undefined,
|
|
533
518
|
},
|
|
534
519
|
},
|
|
535
520
|
{
|
|
@@ -561,7 +546,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
561
546
|
"supports_offline": false,
|
|
562
547
|
"type": "general_content",
|
|
563
548
|
},
|
|
564
|
-
"screenStateStore": undefined,
|
|
565
549
|
},
|
|
566
550
|
},
|
|
567
551
|
],
|
|
@@ -598,7 +582,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
598
582
|
"supports_offline": false,
|
|
599
583
|
"type": "general_content",
|
|
600
584
|
},
|
|
601
|
-
"screenStateStore": undefined,
|
|
602
585
|
},
|
|
603
586
|
},
|
|
604
587
|
"options": {
|
|
@@ -634,7 +617,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
634
617
|
"supports_offline": false,
|
|
635
618
|
"type": "general_content",
|
|
636
619
|
},
|
|
637
|
-
"screenStateStore": undefined,
|
|
638
620
|
},
|
|
639
621
|
},
|
|
640
622
|
{
|
|
@@ -666,7 +648,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
666
648
|
"supports_offline": false,
|
|
667
649
|
"type": "general_content",
|
|
668
650
|
},
|
|
669
|
-
"screenStateStore": undefined,
|
|
670
651
|
},
|
|
671
652
|
},
|
|
672
653
|
],
|
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
firstStackEntriesSelector,
|
|
6
6
|
previousStackEntriesSelector,
|
|
7
7
|
} from "./selectors";
|
|
8
|
-
import { create, StoreApi, UseBoundStore } from "zustand";
|
|
9
8
|
|
|
10
9
|
/* initial state */
|
|
11
10
|
|
|
@@ -121,12 +120,12 @@ export const setNestedContent = (
|
|
|
121
120
|
|
|
122
121
|
const navigationEntry = (
|
|
123
122
|
type: ActionValues,
|
|
124
|
-
{ route, screen, entry, key, options
|
|
123
|
+
{ route, screen, entry, key, options }: AnyRecord
|
|
125
124
|
) => ({
|
|
126
125
|
key,
|
|
127
126
|
action: type,
|
|
128
127
|
route,
|
|
129
|
-
state: { screen, entry, options
|
|
128
|
+
state: { screen, entry, options },
|
|
130
129
|
});
|
|
131
130
|
|
|
132
131
|
function updatePopActions(state) {
|
|
@@ -275,25 +274,6 @@ function locationReducer(
|
|
|
275
274
|
) {
|
|
276
275
|
const { route, key, screen, entry, options } = payload;
|
|
277
276
|
|
|
278
|
-
const screenStateStore: UseBoundStore<StoreApi<ScreenStateStore>> =
|
|
279
|
-
create<ScreenStateStore>((set) => ({
|
|
280
|
-
data: {},
|
|
281
|
-
setValue: (key, value) =>
|
|
282
|
-
set((state) => ({
|
|
283
|
-
data: {
|
|
284
|
-
...state.data,
|
|
285
|
-
[key]: value,
|
|
286
|
-
},
|
|
287
|
-
})),
|
|
288
|
-
removeValue: (key) =>
|
|
289
|
-
set((state) => {
|
|
290
|
-
const newData = { ...state.data };
|
|
291
|
-
delete newData[key];
|
|
292
|
-
|
|
293
|
-
return { data: newData };
|
|
294
|
-
}),
|
|
295
|
-
}));
|
|
296
|
-
|
|
297
277
|
switch (type) {
|
|
298
278
|
case ACTIONS.BACK:
|
|
299
279
|
// eslint-disable-next-line no-case-declarations
|
|
@@ -314,18 +294,14 @@ function locationReducer(
|
|
|
314
294
|
case ACTIONS.REPLACE:
|
|
315
295
|
case ACTIONS.REPLACE_TOP:
|
|
316
296
|
case ACTIONS.BACK_PLAYER_NESTED_CONTENT:
|
|
317
|
-
return {
|
|
318
|
-
pathname: route,
|
|
319
|
-
state: { screen, entry, options, screenStateStore },
|
|
320
|
-
key,
|
|
321
|
-
};
|
|
297
|
+
return { pathname: route, state: { screen, entry, options }, key };
|
|
322
298
|
|
|
323
299
|
case ACTIONS.SET_NESTED_CONTENT:
|
|
324
300
|
// eslint-disable-next-line no-case-declarations
|
|
325
|
-
const nestedEntry = navigationEntry(
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
301
|
+
const nestedEntry = navigationEntry(
|
|
302
|
+
ACTIONS.REPLACE,
|
|
303
|
+
payload as AnyRecord
|
|
304
|
+
);
|
|
329
305
|
|
|
330
306
|
return R.assocPath(["state", "nested"], nestedEntry.state, state);
|
|
331
307
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-core",
|
|
3
|
-
"version": "14.0.0-alpha.
|
|
3
|
+
"version": "14.0.0-alpha.8419134002",
|
|
4
4
|
"description": "Core package for Applicaster's Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/applicaster-types": "14.0.0-alpha.
|
|
32
|
-
"@applicaster/quick-brick-core-plugins": "14.0.0-alpha.
|
|
33
|
-
"@applicaster/zapp-pipes-v2-client": "14.0.0-alpha.
|
|
34
|
-
"@applicaster/zapp-react-native-bridge": "14.0.0-alpha.
|
|
35
|
-
"@applicaster/zapp-react-native-redux": "14.0.0-alpha.
|
|
36
|
-
"@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.
|
|
37
|
-
"@applicaster/zapp-react-native-utils": "14.0.0-alpha.
|
|
31
|
+
"@applicaster/applicaster-types": "14.0.0-alpha.8419134002",
|
|
32
|
+
"@applicaster/quick-brick-core-plugins": "14.0.0-alpha.8419134002",
|
|
33
|
+
"@applicaster/zapp-pipes-v2-client": "14.0.0-alpha.8419134002",
|
|
34
|
+
"@applicaster/zapp-react-native-bridge": "14.0.0-alpha.8419134002",
|
|
35
|
+
"@applicaster/zapp-react-native-redux": "14.0.0-alpha.8419134002",
|
|
36
|
+
"@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.8419134002",
|
|
37
|
+
"@applicaster/zapp-react-native-utils": "14.0.0-alpha.8419134002",
|
|
38
38
|
"atob": "^2.1.2",
|
|
39
39
|
"axios": "^0.28.0",
|
|
40
40
|
"btoa": "^1.2.1",
|