@domql/element 2.5.48 → 2.5.50

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/cjs/set.js CHANGED
@@ -48,7 +48,7 @@ const set = function(params, options = {}, el) {
48
48
  }
49
49
  const setAsync = () => {
50
50
  (0, import_content.removeContent)(element);
51
- (0, import_create.default)(params, element, "content", {
51
+ (0, import_create.default)(params, element, options.newElementKey || "content", {
52
52
  ignoreChildExtend: true,
53
53
  ...import_mixins.registry.defaultOptions,
54
54
  ...import_options.default.create,
@@ -198,7 +198,7 @@ const inheritStateUpdates = (element, options) => {
198
198
  const shouldForceFunctionState = (0, import_utils.isFunction)(stateKey) && !isHoisted && execStateFunction;
199
199
  if (shouldForceFunctionState) {
200
200
  const execState = (0, import_utils.exec)(stateKey, element);
201
- state.set(execState, { ...options, preventUpdate: true, updatedByStateFunction: true });
201
+ state.set(execState, { ...options, preventUpdate: true, preventStateUpdateListener: false, updatedByStateFunction: true });
202
202
  return;
203
203
  }
204
204
  const keyInParentState = (0, import_state.findInheritedState)(element, element.parent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/element",
3
- "version": "2.5.48",
3
+ "version": "2.5.50",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -31,7 +31,7 @@
31
31
  "@domql/state": "latest",
32
32
  "@domql/utils": "latest"
33
33
  },
34
- "gitHead": "68ea5ab143d09bdb009664526b638e7c804480c6",
34
+ "gitHead": "6fa0575bec43db642ce4846641729459984339b6",
35
35
  "devDependencies": {
36
36
  "@babel/core": "^7.12.0"
37
37
  }
package/set.js CHANGED
@@ -21,7 +21,7 @@ const set = function (params, options = {}, el) {
21
21
 
22
22
  const setAsync = () => {
23
23
  removeContent(element)
24
- create(params, element, 'content', {
24
+ create(params, element, options.newElementKey || 'content', {
25
25
  ignoreChildExtend: true,
26
26
  ...registry.defaultOptions,
27
27
  ...OPTIONS.create,
package/update.js CHANGED
@@ -232,7 +232,7 @@ const inheritStateUpdates = (element, options) => {
232
232
  const shouldForceFunctionState = isFunction(stateKey) && !isHoisted && execStateFunction
233
233
  if (shouldForceFunctionState) {
234
234
  const execState = exec(stateKey, element)
235
- state.set(execState, { ...options, preventUpdate: true, updatedByStateFunction: true })
235
+ state.set(execState, { ...options, preventUpdate: true, preventStateUpdateListener: false, updatedByStateFunction: true })
236
236
  return
237
237
  }
238
238