@symbo.ls/utils 3.0.2 → 3.1.2

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/index.js CHANGED
@@ -42,11 +42,11 @@ __export(index_exports, {
42
42
  });
43
43
  module.exports = __toCommonJS(index_exports);
44
44
 
45
- // ../../node_modules/@domql/utils/globals.js
45
+ // ../../../domql/packages/utils/globals.js
46
46
  var window2 = globalThis;
47
47
  var document2 = window2.document;
48
48
 
49
- // ../../node_modules/@domql/utils/types.js
49
+ // ../../../domql/packages/utils/types.js
50
50
  var isObject = (arg) => {
51
51
  if (arg === null) return false;
52
52
  return typeof arg === "object" && arg.constructor === Object;
@@ -55,7 +55,7 @@ var isString = (arg) => typeof arg === "string";
55
55
  var isNumber = (arg) => typeof arg === "number";
56
56
  var isArray = (arg) => Array.isArray(arg);
57
57
 
58
- // ../../node_modules/@domql/utils/keys.js
58
+ // ../../../domql/packages/utils/keys.js
59
59
  var STATE_METHODS = [
60
60
  "update",
61
61
  "parse",
@@ -126,9 +126,84 @@ var METHODS_EXL = [
126
126
  ...PROPS_METHODS
127
127
  ];
128
128
 
129
- // ../../node_modules/@domql/utils/cookie.js
129
+ // ../../../domql/packages/utils/cookie.js
130
130
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
131
131
 
132
+ // ../../../domql/packages/event/dist/esm/keys.js
133
+ var STATE_METHODS2 = [
134
+ "update",
135
+ "parse",
136
+ "clean",
137
+ "create",
138
+ "destroy",
139
+ "add",
140
+ "toggle",
141
+ "remove",
142
+ "apply",
143
+ "set",
144
+ "reset",
145
+ "replace",
146
+ "quietReplace",
147
+ "quietUpdate",
148
+ "applyReplace",
149
+ "applyFunction",
150
+ "keys",
151
+ "values",
152
+ "ref",
153
+ "rootUpdate",
154
+ "parentUpdate",
155
+ "parent",
156
+ "__element",
157
+ "__depends",
158
+ "__ref",
159
+ "__children",
160
+ "root",
161
+ "setByPath",
162
+ "setPathCollection",
163
+ "removeByPath",
164
+ "removePathCollection",
165
+ "getByPath"
166
+ ];
167
+ var PROPS_METHODS2 = ["update", "__element"];
168
+ var METHODS2 = [
169
+ "set",
170
+ "reset",
171
+ "update",
172
+ "remove",
173
+ "updateContent",
174
+ "removeContent",
175
+ "lookup",
176
+ "lookdown",
177
+ "lookdownAll",
178
+ "getRef",
179
+ "getPath",
180
+ "setNodeStyles",
181
+ "spotByPath",
182
+ "keys",
183
+ "parse",
184
+ "setProps",
185
+ "parseDeep",
186
+ "variables",
187
+ "if",
188
+ "log",
189
+ "verbose",
190
+ "warn",
191
+ "error",
192
+ "call",
193
+ "nextElement",
194
+ "previousElement"
195
+ ];
196
+ var METHODS_EXL2 = [
197
+ ...["node", "context", "extends", "__element", "__ref"],
198
+ ...METHODS2,
199
+ ...STATE_METHODS2,
200
+ ...PROPS_METHODS2
201
+ ];
202
+
203
+ // ../../../domql/packages/event/dist/esm/globals.js
204
+ var window3 = globalThis;
205
+ var document3 = window3.document;
206
+
132
207
  // src/browser.js
133
208
  async function toggleFullscreen(opts) {
134
209
  if (!document.fullscreenElement) {
@@ -309,3 +384,4 @@ var arrayzeValue = (val) => {
309
384
  if (isObject(val)) return Object.values(val);
310
385
  if (isNumber(val)) return [val];
311
386
  };
387
+ // @preserve-env
@@ -25,18 +25,18 @@ __export(scaling_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(scaling_exports);
27
27
 
28
- // ../../node_modules/@domql/utils/globals.js
28
+ // ../../../domql/packages/utils/globals.js
29
29
  var window2 = globalThis;
30
30
  var document2 = window2.document;
31
31
 
32
- // ../../node_modules/@domql/utils/types.js
32
+ // ../../../domql/packages/utils/types.js
33
33
  var isObject = (arg) => {
34
34
  if (arg === null) return false;
35
35
  return typeof arg === "object" && arg.constructor === Object;
36
36
  };
37
37
  var isArray = (arg) => Array.isArray(arg);
38
38
 
39
- // ../../node_modules/@domql/utils/keys.js
39
+ // ../../../domql/packages/utils/keys.js
40
40
  var STATE_METHODS = [
41
41
  "update",
42
42
  "parse",
@@ -107,9 +107,84 @@ var METHODS_EXL = [
107
107
  ...PROPS_METHODS
108
108
  ];
109
109
 
110
- // ../../node_modules/@domql/utils/cookie.js
110
+ // ../../../domql/packages/utils/cookie.js
111
111
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
112
112
 
113
+ // ../../../domql/packages/event/dist/esm/keys.js
114
+ var STATE_METHODS2 = [
115
+ "update",
116
+ "parse",
117
+ "clean",
118
+ "create",
119
+ "destroy",
120
+ "add",
121
+ "toggle",
122
+ "remove",
123
+ "apply",
124
+ "set",
125
+ "reset",
126
+ "replace",
127
+ "quietReplace",
128
+ "quietUpdate",
129
+ "applyReplace",
130
+ "applyFunction",
131
+ "keys",
132
+ "values",
133
+ "ref",
134
+ "rootUpdate",
135
+ "parentUpdate",
136
+ "parent",
137
+ "__element",
138
+ "__depends",
139
+ "__ref",
140
+ "__children",
141
+ "root",
142
+ "setByPath",
143
+ "setPathCollection",
144
+ "removeByPath",
145
+ "removePathCollection",
146
+ "getByPath"
147
+ ];
148
+ var PROPS_METHODS2 = ["update", "__element"];
149
+ var METHODS2 = [
150
+ "set",
151
+ "reset",
152
+ "update",
153
+ "remove",
154
+ "updateContent",
155
+ "removeContent",
156
+ "lookup",
157
+ "lookdown",
158
+ "lookdownAll",
159
+ "getRef",
160
+ "getPath",
161
+ "setNodeStyles",
162
+ "spotByPath",
163
+ "keys",
164
+ "parse",
165
+ "setProps",
166
+ "parseDeep",
167
+ "variables",
168
+ "if",
169
+ "log",
170
+ "verbose",
171
+ "warn",
172
+ "error",
173
+ "call",
174
+ "nextElement",
175
+ "previousElement"
176
+ ];
177
+ var METHODS_EXL2 = [
178
+ ...["node", "context", "extends", "__element", "__ref"],
179
+ ...METHODS2,
180
+ ...STATE_METHODS2,
181
+ ...PROPS_METHODS2
182
+ ];
183
+
184
+ // ../../../domql/packages/event/dist/esm/globals.js
185
+ var window3 = globalThis;
186
+ var document3 = window3.document;
187
+
113
188
  // src/scaling.js
114
189
  var findClosestNumber = (number, arr) => {
115
190
  return (isArray(arr) ? arr : Object.values(arr)).reduce((prev, curr) => {
@@ -121,3 +196,4 @@ var findClosestNumberInFactory = (val, factory) => {
121
196
  if (isObject(factory)) factory = Object.values(factory);
122
197
  return findClosestNumber(val, factory);
123
198
  };
199
+ // @preserve-env
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/utils",
3
- "version": "3.0.2",
3
+ "version": "3.1.2",
4
4
  "author": "symbo.ls",
5
5
  "files": [
6
6
  "src",
@@ -24,7 +24,8 @@
24
24
  },
25
25
  "license": "ISC",
26
26
  "dependencies": {
27
- "@domql/utils": "^3.0.0"
27
+ "@domql/event": "^3.1.2",
28
+ "@domql/utils": "^3.1.2"
28
29
  },
29
- "gitHead": "c4dacc88fa3a65574680d11e320307dd2a22e6e9"
30
+ "gitHead": "429b36616aa04c8587a26ce3c129815115e35897"
30
31
  }