@design.estate/dees-domtools 2.0.46 → 2.0.47
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_bundle/bundle.js
CHANGED
|
@@ -14785,7 +14785,7 @@ var SmartRouter = class {
|
|
|
14785
14785
|
}
|
|
14786
14786
|
};
|
|
14787
14787
|
|
|
14788
|
-
// node_modules/.pnpm/@push.rocks+smartstate@2.0.
|
|
14788
|
+
// node_modules/.pnpm/@push.rocks+smartstate@2.0.14/node_modules/@push.rocks/smartstate/dist_ts/index.js
|
|
14789
14789
|
var dist_ts_exports19 = {};
|
|
14790
14790
|
__export(dist_ts_exports19, {
|
|
14791
14791
|
Smartstate: () => Smartstate,
|
|
@@ -14955,7 +14955,7 @@ var sha256FromString = async (stringArg) => {
|
|
|
14955
14955
|
}
|
|
14956
14956
|
};
|
|
14957
14957
|
|
|
14958
|
-
// node_modules/.pnpm/@push.rocks+smartstate@2.0.
|
|
14958
|
+
// node_modules/.pnpm/@push.rocks+smartstate@2.0.14/node_modules/@push.rocks/smartstate/dist_ts/smartstate.classes.stateaction.js
|
|
14959
14959
|
var StateAction = class {
|
|
14960
14960
|
constructor(statePartRef, actionDef) {
|
|
14961
14961
|
this.statePartRef = statePartRef;
|
|
@@ -14966,7 +14966,7 @@ var StateAction = class {
|
|
|
14966
14966
|
}
|
|
14967
14967
|
};
|
|
14968
14968
|
|
|
14969
|
-
// node_modules/.pnpm/@push.rocks+smartstate@2.0.
|
|
14969
|
+
// node_modules/.pnpm/@push.rocks+smartstate@2.0.14/node_modules/@push.rocks/smartstate/dist_ts/smartstate.classes.statepart.js
|
|
14970
14970
|
var StatePart = class {
|
|
14971
14971
|
constructor(nameArg, webStoreOptions) {
|
|
14972
14972
|
this.state = new dist_ts_exports4.rxjs.Subject();
|
|
@@ -15084,7 +15084,7 @@ var StatePart = class {
|
|
|
15084
15084
|
}
|
|
15085
15085
|
};
|
|
15086
15086
|
|
|
15087
|
-
// node_modules/.pnpm/@push.rocks+smartstate@2.0.
|
|
15087
|
+
// node_modules/.pnpm/@push.rocks+smartstate@2.0.14/node_modules/@push.rocks/smartstate/dist_ts/smartstate.classes.smartstate.js
|
|
15088
15088
|
var Smartstate = class {
|
|
15089
15089
|
constructor() {
|
|
15090
15090
|
this.statePartMap = {};
|
|
@@ -15098,7 +15098,7 @@ var Smartstate = class {
|
|
|
15098
15098
|
* @param initialArg
|
|
15099
15099
|
* @param initMode
|
|
15100
15100
|
*/
|
|
15101
|
-
getStatePart(statePartNameArg, initialArg, initMode) {
|
|
15101
|
+
async getStatePart(statePartNameArg, initialArg, initMode) {
|
|
15102
15102
|
if (this.statePartMap[statePartNameArg]) {
|
|
15103
15103
|
if (initialArg && (!initMode || initMode !== "soft")) {
|
|
15104
15104
|
throw new Error(`${statePartNameArg} already exists, yet you try to set an initial state again`);
|
|
@@ -15116,12 +15116,16 @@ var Smartstate = class {
|
|
|
15116
15116
|
* @param statePartName
|
|
15117
15117
|
* @param initialPayloadArg
|
|
15118
15118
|
*/
|
|
15119
|
-
createStatePart(statePartName, initialPayloadArg, initMode) {
|
|
15119
|
+
async createStatePart(statePartName, initialPayloadArg, initMode) {
|
|
15120
15120
|
const newState = new StatePart(statePartName, initMode === "persistent" ? {
|
|
15121
15121
|
dbName: "smartstate",
|
|
15122
15122
|
storeName: statePartName
|
|
15123
15123
|
} : null);
|
|
15124
|
-
newState.
|
|
15124
|
+
const currentState = newState.getState();
|
|
15125
|
+
await newState.setState({
|
|
15126
|
+
...initialPayloadArg,
|
|
15127
|
+
...currentState
|
|
15128
|
+
});
|
|
15125
15129
|
this.statePartMap[statePartName] = newState;
|
|
15126
15130
|
return newState;
|
|
15127
15131
|
}
|