@design.estate/dees-domtools 2.0.47 → 2.0.49

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.
@@ -14785,7 +14785,7 @@ var SmartRouter = class {
14785
14785
  }
14786
14786
  };
14787
14787
 
14788
- // node_modules/.pnpm/@push.rocks+smartstate@2.0.14/node_modules/@push.rocks/smartstate/dist_ts/index.js
14788
+ // node_modules/.pnpm/@push.rocks+smartstate@2.0.15/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.14/node_modules/@push.rocks/smartstate/dist_ts/smartstate.classes.stateaction.js
14958
+ // node_modules/.pnpm/@push.rocks+smartstate@2.0.15/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,23 +14966,23 @@ var StateAction = class {
14966
14966
  }
14967
14967
  };
14968
14968
 
14969
- // node_modules/.pnpm/@push.rocks+smartstate@2.0.14/node_modules/@push.rocks/smartstate/dist_ts/smartstate.classes.statepart.js
14969
+ // node_modules/.pnpm/@push.rocks+smartstate@2.0.15/node_modules/@push.rocks/smartstate/dist_ts/smartstate.classes.statepart.js
14970
14970
  var StatePart = class {
14971
- constructor(nameArg, webStoreOptions) {
14971
+ constructor(nameArg, webStoreOptionsArg) {
14972
14972
  this.state = new dist_ts_exports4.rxjs.Subject();
14973
14973
  this.cumulativeDeferred = dist_ts_exports.cumulativeDefer();
14974
14974
  this.webStore = null;
14975
14975
  this.name = nameArg;
14976
- if (webStoreOptions) {
14977
- this.webStore = new dist_ts_exports11.WebStore(webStoreOptions);
14978
- this.initWebStore();
14976
+ if (webStoreOptionsArg) {
14977
+ this.webStoreOptions = webStoreOptionsArg;
14979
14978
  }
14980
14979
  }
14981
14980
  /**
14982
14981
  * initializes the webstore
14983
14982
  */
14984
- async initWebStore() {
14985
- if (this.webStore) {
14983
+ async init() {
14984
+ if (this.webStoreOptions) {
14985
+ this.webStore = new dist_ts_exports11.WebStore(this.webStoreOptions);
14986
14986
  await this.webStore.init();
14987
14987
  const storedState = await this.webStore.get(String(this.name));
14988
14988
  if (storedState) {
@@ -15084,7 +15084,7 @@ var StatePart = class {
15084
15084
  }
15085
15085
  };
15086
15086
 
15087
- // node_modules/.pnpm/@push.rocks+smartstate@2.0.14/node_modules/@push.rocks/smartstate/dist_ts/smartstate.classes.smartstate.js
15087
+ // node_modules/.pnpm/@push.rocks+smartstate@2.0.15/node_modules/@push.rocks/smartstate/dist_ts/smartstate.classes.smartstate.js
15088
15088
  var Smartstate = class {
15089
15089
  constructor() {
15090
15090
  this.statePartMap = {};
@@ -15121,6 +15121,7 @@ var Smartstate = class {
15121
15121
  dbName: "smartstate",
15122
15122
  storeName: statePartName
15123
15123
  } : null);
15124
+ await newState.init();
15124
15125
  const currentState = newState.getState();
15125
15126
  await newState.setState({
15126
15127
  ...initialPayloadArg,