@symbo.ls/utils 3.0.1 → 3.1.1

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/dist/esm/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/dist/esm/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,9 +55,155 @@ 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/dist/esm/cookie.js
58
+ // ../../../domql/packages/utils/keys.js
59
+ var STATE_METHODS = [
60
+ "update",
61
+ "parse",
62
+ "clean",
63
+ "create",
64
+ "destroy",
65
+ "add",
66
+ "toggle",
67
+ "remove",
68
+ "apply",
69
+ "set",
70
+ "reset",
71
+ "replace",
72
+ "quietReplace",
73
+ "quietUpdate",
74
+ "applyReplace",
75
+ "applyFunction",
76
+ "keys",
77
+ "values",
78
+ "ref",
79
+ "rootUpdate",
80
+ "parentUpdate",
81
+ "parent",
82
+ "__element",
83
+ "__depends",
84
+ "__ref",
85
+ "__children",
86
+ "root",
87
+ "setByPath",
88
+ "setPathCollection",
89
+ "removeByPath",
90
+ "removePathCollection",
91
+ "getByPath"
92
+ ];
93
+ var PROPS_METHODS = ["update", "__element"];
94
+ var METHODS = [
95
+ "set",
96
+ "reset",
97
+ "update",
98
+ "remove",
99
+ "updateContent",
100
+ "removeContent",
101
+ "lookup",
102
+ "lookdown",
103
+ "lookdownAll",
104
+ "getRef",
105
+ "getPath",
106
+ "setNodeStyles",
107
+ "spotByPath",
108
+ "keys",
109
+ "parse",
110
+ "setProps",
111
+ "parseDeep",
112
+ "variables",
113
+ "if",
114
+ "log",
115
+ "verbose",
116
+ "warn",
117
+ "error",
118
+ "call",
119
+ "nextElement",
120
+ "previousElement"
121
+ ];
122
+ var METHODS_EXL = [
123
+ ...["node", "context", "extends", "__element", "__ref"],
124
+ ...METHODS,
125
+ ...STATE_METHODS,
126
+ ...PROPS_METHODS
127
+ ];
128
+
129
+ // ../../../domql/packages/utils/cookie.js
59
130
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
60
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
+
61
207
  // src/browser.js
62
208
  async function toggleFullscreen(opts) {
63
209
  if (!document.fullscreenElement) {
@@ -25,20 +25,166 @@ __export(scaling_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(scaling_exports);
27
27
 
28
- // node_modules/@domql/utils/dist/esm/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/dist/esm/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/dist/esm/cookie.js
39
+ // ../../../domql/packages/utils/keys.js
40
+ var STATE_METHODS = [
41
+ "update",
42
+ "parse",
43
+ "clean",
44
+ "create",
45
+ "destroy",
46
+ "add",
47
+ "toggle",
48
+ "remove",
49
+ "apply",
50
+ "set",
51
+ "reset",
52
+ "replace",
53
+ "quietReplace",
54
+ "quietUpdate",
55
+ "applyReplace",
56
+ "applyFunction",
57
+ "keys",
58
+ "values",
59
+ "ref",
60
+ "rootUpdate",
61
+ "parentUpdate",
62
+ "parent",
63
+ "__element",
64
+ "__depends",
65
+ "__ref",
66
+ "__children",
67
+ "root",
68
+ "setByPath",
69
+ "setPathCollection",
70
+ "removeByPath",
71
+ "removePathCollection",
72
+ "getByPath"
73
+ ];
74
+ var PROPS_METHODS = ["update", "__element"];
75
+ var METHODS = [
76
+ "set",
77
+ "reset",
78
+ "update",
79
+ "remove",
80
+ "updateContent",
81
+ "removeContent",
82
+ "lookup",
83
+ "lookdown",
84
+ "lookdownAll",
85
+ "getRef",
86
+ "getPath",
87
+ "setNodeStyles",
88
+ "spotByPath",
89
+ "keys",
90
+ "parse",
91
+ "setProps",
92
+ "parseDeep",
93
+ "variables",
94
+ "if",
95
+ "log",
96
+ "verbose",
97
+ "warn",
98
+ "error",
99
+ "call",
100
+ "nextElement",
101
+ "previousElement"
102
+ ];
103
+ var METHODS_EXL = [
104
+ ...["node", "context", "extends", "__element", "__ref"],
105
+ ...METHODS,
106
+ ...STATE_METHODS,
107
+ ...PROPS_METHODS
108
+ ];
109
+
110
+ // ../../../domql/packages/utils/cookie.js
40
111
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
41
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
+
42
188
  // src/scaling.js
43
189
  var findClosestNumber = (number, arr) => {
44
190
  return (isArray(arr) ? arr : Object.values(arr)).reduce((prev, curr) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/utils",
3
- "version": "3.0.1",
3
+ "version": "3.1.1",
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": "^2.5.0"
27
+ "@domql/event": "^3.1.1",
28
+ "@domql/utils": "^3.1.1"
28
29
  },
29
- "gitHead": "a4e7f586f7e4f60bd7b6a8388bdacc3ae1879433"
30
+ "gitHead": "39fb7a8c07355468ccce79e2f787ca3fa0715692"
30
31
  }