@domql/element 2.5.184 → 2.5.185

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.
@@ -47,7 +47,7 @@ module.exports = __toCommonJS(methods_exports);
47
47
  var import_event = require("@domql/event");
48
48
  var import_utils = require("@domql/utils");
49
49
  var import_tree = require("../tree");
50
- var import_mixins = require("../mixins");
50
+ var import_mixins = require("../mixins/index.js");
51
51
  const ENV = "development";
52
52
  function spotByPath(path) {
53
53
  const element = this;
@@ -28,7 +28,7 @@ __export(v2_exports, {
28
28
  });
29
29
  module.exports = __toCommonJS(v2_exports);
30
30
  var import_utils = require("@domql/utils");
31
- var import_mixins = require("../mixins");
31
+ var import_mixins = require("../mixins/index.js");
32
32
  const defineSetter = (element, key, get, set) => Object.defineProperty(element, key, { get, set });
33
33
  const keys = function() {
34
34
  const element = this;
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
18
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
29
  var registry_exports = {};
20
30
  __export(registry_exports, {
@@ -24,17 +34,25 @@ __export(registry_exports, {
24
34
  parseFilters: () => parseFilters
25
35
  });
26
36
  module.exports = __toCommonJS(registry_exports);
27
- var import__ = require(".");
37
+ var import_attr = __toESM(require("./attr"), 1);
38
+ var import_classList = require("./classList");
39
+ var import_content = __toESM(require("./content"), 1);
40
+ var import_data = __toESM(require("./data"), 1);
41
+ var import_html = __toESM(require("./html"), 1);
42
+ var import_scope = __toESM(require("./scope"), 1);
43
+ var import_state = __toESM(require("./state"), 1);
44
+ var import_style = __toESM(require("./style"), 1);
45
+ var import_text = __toESM(require("./text"), 1);
28
46
  const REGISTRY = {
29
- attr: import__.attr,
30
- style: import__.style,
31
- text: import__.text,
32
- html: import__.html,
33
- content: import__.content,
34
- data: import__.data,
35
- class: import__.classList,
36
- state: import__.state,
37
- scope: import__.scope,
47
+ attr: import_attr.default,
48
+ style: import_style.default,
49
+ text: import_text.default,
50
+ html: import_html.default,
51
+ setContent: import_content.default,
52
+ data: import_data.default,
53
+ class: import_classList.classList,
54
+ state: import_state.default,
55
+ scope: import_scope.default,
38
56
  deps: (param, el) => param || el.parent.deps,
39
57
  extend: {},
40
58
  childExtend: {},
@@ -22,7 +22,7 @@ __export(applyParam_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(applyParam_exports);
24
24
  var import_utils = require("@domql/utils");
25
- var import_mixins = require("../mixins");
25
+ var import_mixins = require("../mixins/index.js");
26
26
  const applyParam = (param, element, options) => {
27
27
  const { node, context, __ref: ref } = element;
28
28
  const prop = element[param];
@@ -25,7 +25,7 @@ __export(component_exports, {
25
25
  module.exports = __toCommonJS(component_exports);
26
26
  var import_utils = require("@domql/utils");
27
27
  var import_extend = require("../extend");
28
- var import_mixins = require("../mixins");
28
+ var import_mixins = require("../mixins/index.js");
29
29
  const createValidDomqlObjectFromSugar = (el, parent, key, options) => {
30
30
  const newElem = {
31
31
  props: {},
@@ -23,7 +23,7 @@ __export(onlyResolveExtends_exports, {
23
23
  module.exports = __toCommonJS(onlyResolveExtends_exports);
24
24
  var import_utils = require("@domql/utils");
25
25
  var import__ = require("..");
26
- var import_mixins = require("../mixins");
26
+ var import_mixins = require("../mixins/index.js");
27
27
  var import__2 = require(".");
28
28
  var import_methods = require("../methods");
29
29
  var import_set = require("../methods/set");
package/methods/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  import { triggerEventOn } from '@domql/event'
4
4
  import { isDefined, isObject, isFunction, isObjectLike, isProduction, removeValueFromArray, deepClone } from '@domql/utils'
5
5
  import { TREE } from '../tree'
6
- import { parseFilters, REGISTRY } from '../mixins'
6
+ import { parseFilters, REGISTRY } from '../mixins/index.js'
7
7
  const ENV = process.env.NODE_ENV
8
8
 
9
9
  // TODO: update these files
package/methods/v2.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  import { isDefined, isFunction, isObjectLike } from '@domql/utils'
4
- import { parseFilters, REGISTRY } from '../mixins'
4
+ import { parseFilters, REGISTRY } from '../mixins/index.js'
5
5
 
6
6
  export const defineSetter = (element, key, get, set) =>
7
7
  Object.defineProperty(element, key, { get, set })
@@ -1,17 +1,21 @@
1
1
  'use strict'
2
2
 
3
- import {
4
- attr, classList, content,
5
- data, html, state, style,
6
- text, scope
7
- } from '.'
3
+ import attr from './attr'
4
+ import { classList } from './classList'
5
+ import setContent from './content'
6
+ import data from './data'
7
+ import html from './html'
8
+ import scope from './scope'
9
+ import state from './state'
10
+ import style from './style'
11
+ import text from './text'
8
12
 
9
13
  export const REGISTRY = {
10
14
  attr,
11
15
  style,
12
16
  text,
13
17
  html,
14
- content,
18
+ setContent,
15
19
  data,
16
20
  class: classList,
17
21
  state,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/element",
3
- "version": "2.5.184",
3
+ "version": "2.5.185",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -27,12 +27,12 @@
27
27
  "prepublish": "rimraf -I dist && npm run build && npm run copy:package:cjs"
28
28
  },
29
29
  "dependencies": {
30
- "@domql/event": "^2.5.184",
31
- "@domql/render": "^2.5.184",
32
- "@domql/state": "^2.5.184",
33
- "@domql/utils": "^2.5.184"
30
+ "@domql/event": "^2.5.185",
31
+ "@domql/render": "^2.5.185",
32
+ "@domql/state": "^2.5.185",
33
+ "@domql/utils": "^2.5.185"
34
34
  },
35
- "gitHead": "d8fb0c7460a5bed587290d7c88c0f4ca291794e8",
35
+ "gitHead": "ccab034f188b6a1f55f741c0b29a9d3b0c9bee6f",
36
36
  "devDependencies": {
37
37
  "@babel/core": "^7.12.0"
38
38
  }
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  import { isFunction } from '@domql/utils'
4
- import { REGISTRY } from '../mixins'
4
+ import { REGISTRY } from '../mixins/index.js'
5
5
 
6
6
  export const applyParam = (param, element, options) => {
7
7
  const { node, context, __ref: ref } = element
@@ -11,7 +11,7 @@ import {
11
11
  } from '@domql/utils'
12
12
 
13
13
  import { applyExtend } from '../extend'
14
- import { REGISTRY } from '../mixins'
14
+ import { REGISTRY } from '../mixins/index.js'
15
15
 
16
16
  export const createValidDomqlObjectFromSugar = (el, parent, key, options) => {
17
17
  const newElem = {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { exec, isFunction, isObject, isUndefined } from '@domql/utils'
4
4
  import { create } from '..'
5
- import { REGISTRY } from '../mixins'
5
+ import { REGISTRY } from '../mixins/index.js'
6
6
  import { applyVariant, isVariant } from '.'
7
7
  import { isMethod } from '../methods'
8
8
  import { addMethods } from '../methods/set'