@domql/element 2.33.26 → 2.33.27

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/create.js CHANGED
@@ -125,6 +125,8 @@ export const create = async (
125
125
 
126
126
  const onInit = await triggerEventOn('init', element, options)
127
127
  if (onInit === false) return element
128
+ const onEventInit = await triggerEventOn('eventInit', element, options)
129
+ if (onEventInit === false) return element
128
130
 
129
131
  await triggerEventOn('beforeClassAssign', element, options)
130
132
 
@@ -87,6 +87,8 @@ const create = async (element, parent2, key, options = import_options.OPTIONS.cr
87
87
  (0, import_utils.addChildrenIfNotInOriginal)(element, parent2, key);
88
88
  const onInit = await (0, import_event.triggerEventOn)("init", element, options);
89
89
  if (onInit === false) return element;
90
+ const onEventInit = await (0, import_event.triggerEventOn)("eventInit", element, options);
91
+ if (onEventInit === false) return element;
90
92
  await (0, import_event.triggerEventOn)("beforeClassAssign", element, options);
91
93
  (0, import_classList.assignKeyAsClassname)(element);
92
94
  await renderElement(element, parent2, options, attachOptions);
@@ -83,6 +83,8 @@ const create = async (element, parent2, key, options = OPTIONS.create || {}, att
83
83
  addChildrenIfNotInOriginal(element, parent2, key);
84
84
  const onInit = await triggerEventOn("init", element, options);
85
85
  if (onInit === false) return element;
86
+ const onEventInit = await triggerEventOn("eventInit", element, options);
87
+ if (onEventInit === false) return element;
86
88
  await triggerEventOn("beforeClassAssign", element, options);
87
89
  assignKeyAsClassname(element);
88
90
  await renderElement(element, parent2, options, attachOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/element",
3
- "version": "2.33.26",
3
+ "version": "2.33.27",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -27,12 +27,12 @@
27
27
  "prepublish": "npx rimraf -I dist && npm run build && npm run copy:package:cjs"
28
28
  },
29
29
  "dependencies": {
30
- "@domql/event": "^2.33.26",
31
- "@domql/render": "^2.33.26",
32
- "@domql/state": "^2.33.26",
33
- "@domql/utils": "^2.33.26"
30
+ "@domql/event": "^2.33.27",
31
+ "@domql/render": "^2.33.27",
32
+ "@domql/state": "^2.33.27",
33
+ "@domql/utils": "^2.33.27"
34
34
  },
35
- "gitHead": "60d701cca225200ddb1e15d6a3a31da25dfc3bc0",
35
+ "gitHead": "305c78c0cd824b365d3e464dc3ede6b250c8baf1",
36
36
  "devDependencies": {
37
37
  "@babel/core": "^7.27.1"
38
38
  }