@symbo.ls/scratch 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.
@@ -83,7 +83,7 @@ var require_cjs = __commonJS({
83
83
  var isString2 = (arg) => typeof arg === "string";
84
84
  var isNumber2 = (arg) => typeof arg === "number";
85
85
  var isArray2 = (arg) => Array.isArray(arg);
86
- var STATE_METHODS2 = [
86
+ var STATE_METHODS3 = [
87
87
  "update",
88
88
  "parse",
89
89
  "clean",
@@ -117,8 +117,8 @@ var require_cjs = __commonJS({
117
117
  "removePathCollection",
118
118
  "getByPath"
119
119
  ];
120
- var PROPS_METHODS2 = ["update", "__element"];
121
- var METHODS2 = [
120
+ var PROPS_METHODS3 = ["update", "__element"];
121
+ var METHODS3 = [
122
122
  "set",
123
123
  "reset",
124
124
  "update",
@@ -146,13 +146,84 @@ var require_cjs = __commonJS({
146
146
  "nextElement",
147
147
  "previousElement"
148
148
  ];
149
- var METHODS_EXL2 = [
149
+ var METHODS_EXL3 = [
150
150
  ...["node", "context", "extends", "__element", "__ref"],
151
- ...METHODS2,
152
- ...STATE_METHODS2,
153
- ...PROPS_METHODS2
151
+ ...METHODS3,
152
+ ...STATE_METHODS3,
153
+ ...PROPS_METHODS3
154
154
  ];
155
155
  var isMobile2 = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
156
+ var STATE_METHODS22 = [
157
+ "update",
158
+ "parse",
159
+ "clean",
160
+ "create",
161
+ "destroy",
162
+ "add",
163
+ "toggle",
164
+ "remove",
165
+ "apply",
166
+ "set",
167
+ "reset",
168
+ "replace",
169
+ "quietReplace",
170
+ "quietUpdate",
171
+ "applyReplace",
172
+ "applyFunction",
173
+ "keys",
174
+ "values",
175
+ "ref",
176
+ "rootUpdate",
177
+ "parentUpdate",
178
+ "parent",
179
+ "__element",
180
+ "__depends",
181
+ "__ref",
182
+ "__children",
183
+ "root",
184
+ "setByPath",
185
+ "setPathCollection",
186
+ "removeByPath",
187
+ "removePathCollection",
188
+ "getByPath"
189
+ ];
190
+ var PROPS_METHODS22 = ["update", "__element"];
191
+ var METHODS22 = [
192
+ "set",
193
+ "reset",
194
+ "update",
195
+ "remove",
196
+ "updateContent",
197
+ "removeContent",
198
+ "lookup",
199
+ "lookdown",
200
+ "lookdownAll",
201
+ "getRef",
202
+ "getPath",
203
+ "setNodeStyles",
204
+ "spotByPath",
205
+ "keys",
206
+ "parse",
207
+ "setProps",
208
+ "parseDeep",
209
+ "variables",
210
+ "if",
211
+ "log",
212
+ "verbose",
213
+ "warn",
214
+ "error",
215
+ "call",
216
+ "nextElement",
217
+ "previousElement"
218
+ ];
219
+ var METHODS_EXL22 = [
220
+ ...["node", "context", "extends", "__element", "__ref"],
221
+ ...METHODS22,
222
+ ...STATE_METHODS22,
223
+ ...PROPS_METHODS22
224
+ ];
225
+ var window32 = globalThis;
226
+ var document32 = window32.document;
156
227
  async function toggleFullscreen(opts) {
157
228
  if (!document.fullscreenElement) {
158
229
  try {
@@ -333,16 +404,16 @@ __export(svg_exports, {
333
404
  });
334
405
  module.exports = __toCommonJS(svg_exports);
335
406
 
336
- // ../../node_modules/@domql/utils/globals.js
407
+ // ../../../domql/packages/utils/globals.js
337
408
  var window2 = globalThis;
338
409
  var document2 = window2.document;
339
410
 
340
- // ../../node_modules/@domql/utils/node.js
411
+ // ../../../domql/packages/utils/node.js
341
412
  var isDOMNode = (obj) => {
342
413
  return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
343
414
  };
344
415
 
345
- // ../../node_modules/@domql/utils/types.js
416
+ // ../../../domql/packages/utils/types.js
346
417
  var isString = (arg) => typeof arg === "string";
347
418
  var isFunction = (arg) => typeof arg === "function";
348
419
  var isNull = (arg) => arg === null;
@@ -355,7 +426,7 @@ var isUndefined = (arg) => {
355
426
  return arg === void 0;
356
427
  };
357
428
 
358
- // ../../node_modules/@domql/utils/array.js
429
+ // ../../../domql/packages/utils/array.js
359
430
  var unstackArrayOfObjects = (arr, exclude = []) => {
360
431
  return arr.reduce(
361
432
  (a, c) => deepMerge(a, deepClone(c, { exclude }), exclude),
@@ -363,7 +434,7 @@ var unstackArrayOfObjects = (arr, exclude = []) => {
363
434
  );
364
435
  };
365
436
 
366
- // ../../node_modules/@domql/utils/keys.js
437
+ // ../../../domql/packages/utils/keys.js
367
438
  var STATE_METHODS = [
368
439
  "update",
369
440
  "parse",
@@ -434,7 +505,7 @@ var METHODS_EXL = [
434
505
  ...PROPS_METHODS
435
506
  ];
436
507
 
437
- // ../../node_modules/@domql/utils/object.js
508
+ // ../../../domql/packages/utils/object.js
438
509
  var deepMerge = (element, extend, excludeFrom = METHODS_EXL) => {
439
510
  for (const e in extend) {
440
511
  const hasOwnProperty = Object.prototype.hasOwnProperty.call(extend, e);
@@ -501,11 +572,86 @@ var deepClone = (obj, options = {}) => {
501
572
  return clone;
502
573
  };
503
574
 
504
- // ../../node_modules/@domql/utils/cookie.js
575
+ // ../../../domql/packages/utils/cookie.js
505
576
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
506
577
 
578
+ // ../../../domql/packages/event/dist/esm/keys.js
579
+ var STATE_METHODS2 = [
580
+ "update",
581
+ "parse",
582
+ "clean",
583
+ "create",
584
+ "destroy",
585
+ "add",
586
+ "toggle",
587
+ "remove",
588
+ "apply",
589
+ "set",
590
+ "reset",
591
+ "replace",
592
+ "quietReplace",
593
+ "quietUpdate",
594
+ "applyReplace",
595
+ "applyFunction",
596
+ "keys",
597
+ "values",
598
+ "ref",
599
+ "rootUpdate",
600
+ "parentUpdate",
601
+ "parent",
602
+ "__element",
603
+ "__depends",
604
+ "__ref",
605
+ "__children",
606
+ "root",
607
+ "setByPath",
608
+ "setPathCollection",
609
+ "removeByPath",
610
+ "removePathCollection",
611
+ "getByPath"
612
+ ];
613
+ var PROPS_METHODS2 = ["update", "__element"];
614
+ var METHODS2 = [
615
+ "set",
616
+ "reset",
617
+ "update",
618
+ "remove",
619
+ "updateContent",
620
+ "removeContent",
621
+ "lookup",
622
+ "lookdown",
623
+ "lookdownAll",
624
+ "getRef",
625
+ "getPath",
626
+ "setNodeStyles",
627
+ "spotByPath",
628
+ "keys",
629
+ "parse",
630
+ "setProps",
631
+ "parseDeep",
632
+ "variables",
633
+ "if",
634
+ "log",
635
+ "verbose",
636
+ "warn",
637
+ "error",
638
+ "call",
639
+ "nextElement",
640
+ "previousElement"
641
+ ];
642
+ var METHODS_EXL2 = [
643
+ ...["node", "context", "extends", "__element", "__ref"],
644
+ ...METHODS2,
645
+ ...STATE_METHODS2,
646
+ ...PROPS_METHODS2
647
+ ];
648
+
649
+ // ../../../domql/packages/event/dist/esm/globals.js
650
+ var window3 = globalThis;
651
+ var document3 = window3.document;
652
+
507
653
  // src/utils/sequence.js
508
- var import_utils6 = __toESM(require_cjs(), 1);
654
+ var import_utils5 = __toESM(require_cjs(), 1);
509
655
 
510
656
  // src/defaultConfig/index.js
511
657
  var defaultConfig_exports = {};
@@ -729,6 +875,8 @@ var getActiveConfig = (def) => {
729
875
  };
730
876
 
731
877
  // src/utils/sprite.js
878
+ var ENV = "development";
879
+ var isDev = ENV === "development" || ENV === "testing";
732
880
  var generateSprite = (icons) => {
733
881
  const CONFIG2 = getActiveConfig();
734
882
  let sprite = "";
@@ -742,7 +890,8 @@ var generateSprite = (icons) => {
742
890
  var parseRootAttributes = (htmlString) => {
743
891
  const val = htmlString.default || htmlString;
744
892
  if (!isString(val)) {
745
- return console.warn(`parseRootAttributes: ${val} is not a string`);
893
+ if (isDev) console.warn("parseRootAttributes:", val, "is not a string");
894
+ return;
746
895
  }
747
896
  const match = val.match(/<svg\s+(.*?)>/);
748
897
  if (!match || !match[1]) {
@@ -855,3 +1004,4 @@ var appendSVG = (lib, options = DEF_OPTIONS) => {
855
1004
  }
856
1005
  }
857
1006
  };
1007
+ // @preserve-env
@@ -83,7 +83,7 @@ var require_cjs = __commonJS({
83
83
  var isString2 = (arg) => typeof arg === "string";
84
84
  var isNumber2 = (arg) => typeof arg === "number";
85
85
  var isArray2 = (arg) => Array.isArray(arg);
86
- var STATE_METHODS2 = [
86
+ var STATE_METHODS3 = [
87
87
  "update",
88
88
  "parse",
89
89
  "clean",
@@ -117,8 +117,8 @@ var require_cjs = __commonJS({
117
117
  "removePathCollection",
118
118
  "getByPath"
119
119
  ];
120
- var PROPS_METHODS2 = ["update", "__element"];
121
- var METHODS2 = [
120
+ var PROPS_METHODS3 = ["update", "__element"];
121
+ var METHODS3 = [
122
122
  "set",
123
123
  "reset",
124
124
  "update",
@@ -146,13 +146,84 @@ var require_cjs = __commonJS({
146
146
  "nextElement",
147
147
  "previousElement"
148
148
  ];
149
- var METHODS_EXL2 = [
149
+ var METHODS_EXL3 = [
150
150
  ...["node", "context", "extends", "__element", "__ref"],
151
- ...METHODS2,
152
- ...STATE_METHODS2,
153
- ...PROPS_METHODS2
151
+ ...METHODS3,
152
+ ...STATE_METHODS3,
153
+ ...PROPS_METHODS3
154
154
  ];
155
155
  var isMobile2 = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
156
+ var STATE_METHODS22 = [
157
+ "update",
158
+ "parse",
159
+ "clean",
160
+ "create",
161
+ "destroy",
162
+ "add",
163
+ "toggle",
164
+ "remove",
165
+ "apply",
166
+ "set",
167
+ "reset",
168
+ "replace",
169
+ "quietReplace",
170
+ "quietUpdate",
171
+ "applyReplace",
172
+ "applyFunction",
173
+ "keys",
174
+ "values",
175
+ "ref",
176
+ "rootUpdate",
177
+ "parentUpdate",
178
+ "parent",
179
+ "__element",
180
+ "__depends",
181
+ "__ref",
182
+ "__children",
183
+ "root",
184
+ "setByPath",
185
+ "setPathCollection",
186
+ "removeByPath",
187
+ "removePathCollection",
188
+ "getByPath"
189
+ ];
190
+ var PROPS_METHODS22 = ["update", "__element"];
191
+ var METHODS22 = [
192
+ "set",
193
+ "reset",
194
+ "update",
195
+ "remove",
196
+ "updateContent",
197
+ "removeContent",
198
+ "lookup",
199
+ "lookdown",
200
+ "lookdownAll",
201
+ "getRef",
202
+ "getPath",
203
+ "setNodeStyles",
204
+ "spotByPath",
205
+ "keys",
206
+ "parse",
207
+ "setProps",
208
+ "parseDeep",
209
+ "variables",
210
+ "if",
211
+ "log",
212
+ "verbose",
213
+ "warn",
214
+ "error",
215
+ "call",
216
+ "nextElement",
217
+ "previousElement"
218
+ ];
219
+ var METHODS_EXL22 = [
220
+ ...["node", "context", "extends", "__element", "__ref"],
221
+ ...METHODS22,
222
+ ...STATE_METHODS22,
223
+ ...PROPS_METHODS22
224
+ ];
225
+ var window32 = globalThis;
226
+ var document32 = window32.document;
156
227
  async function toggleFullscreen(opts) {
157
228
  if (!document.fullscreenElement) {
158
229
  try {
@@ -333,16 +404,16 @@ __export(theme_exports, {
333
404
  });
334
405
  module.exports = __toCommonJS(theme_exports);
335
406
 
336
- // ../../node_modules/@domql/utils/globals.js
407
+ // ../../../domql/packages/utils/globals.js
337
408
  var window2 = globalThis;
338
409
  var document2 = window2.document;
339
410
 
340
- // ../../node_modules/@domql/utils/node.js
411
+ // ../../../domql/packages/utils/node.js
341
412
  var isDOMNode = (obj) => {
342
413
  return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
343
414
  };
344
415
 
345
- // ../../node_modules/@domql/utils/types.js
416
+ // ../../../domql/packages/utils/types.js
346
417
  var isObject = (arg) => {
347
418
  if (arg === null) return false;
348
419
  return typeof arg === "object" && arg.constructor === Object;
@@ -360,7 +431,7 @@ var isUndefined = (arg) => {
360
431
  return arg === void 0;
361
432
  };
362
433
 
363
- // ../../node_modules/@domql/utils/array.js
434
+ // ../../../domql/packages/utils/array.js
364
435
  var unstackArrayOfObjects = (arr, exclude = []) => {
365
436
  return arr.reduce(
366
437
  (a, c) => deepMerge(a, deepClone(c, { exclude }), exclude),
@@ -368,7 +439,7 @@ var unstackArrayOfObjects = (arr, exclude = []) => {
368
439
  );
369
440
  };
370
441
 
371
- // ../../node_modules/@domql/utils/keys.js
442
+ // ../../../domql/packages/utils/keys.js
372
443
  var STATE_METHODS = [
373
444
  "update",
374
445
  "parse",
@@ -439,7 +510,7 @@ var METHODS_EXL = [
439
510
  ...PROPS_METHODS
440
511
  ];
441
512
 
442
- // ../../node_modules/@domql/utils/object.js
513
+ // ../../../domql/packages/utils/object.js
443
514
  var deepMerge = (element, extend, excludeFrom = METHODS_EXL) => {
444
515
  for (const e in extend) {
445
516
  const hasOwnProperty = Object.prototype.hasOwnProperty.call(extend, e);
@@ -506,9 +577,84 @@ var deepClone = (obj, options = {}) => {
506
577
  return clone;
507
578
  };
508
579
 
509
- // ../../node_modules/@domql/utils/cookie.js
580
+ // ../../../domql/packages/utils/cookie.js
510
581
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
511
582
 
583
+ // ../../../domql/packages/event/dist/esm/keys.js
584
+ var STATE_METHODS2 = [
585
+ "update",
586
+ "parse",
587
+ "clean",
588
+ "create",
589
+ "destroy",
590
+ "add",
591
+ "toggle",
592
+ "remove",
593
+ "apply",
594
+ "set",
595
+ "reset",
596
+ "replace",
597
+ "quietReplace",
598
+ "quietUpdate",
599
+ "applyReplace",
600
+ "applyFunction",
601
+ "keys",
602
+ "values",
603
+ "ref",
604
+ "rootUpdate",
605
+ "parentUpdate",
606
+ "parent",
607
+ "__element",
608
+ "__depends",
609
+ "__ref",
610
+ "__children",
611
+ "root",
612
+ "setByPath",
613
+ "setPathCollection",
614
+ "removeByPath",
615
+ "removePathCollection",
616
+ "getByPath"
617
+ ];
618
+ var PROPS_METHODS2 = ["update", "__element"];
619
+ var METHODS2 = [
620
+ "set",
621
+ "reset",
622
+ "update",
623
+ "remove",
624
+ "updateContent",
625
+ "removeContent",
626
+ "lookup",
627
+ "lookdown",
628
+ "lookdownAll",
629
+ "getRef",
630
+ "getPath",
631
+ "setNodeStyles",
632
+ "spotByPath",
633
+ "keys",
634
+ "parse",
635
+ "setProps",
636
+ "parseDeep",
637
+ "variables",
638
+ "if",
639
+ "log",
640
+ "verbose",
641
+ "warn",
642
+ "error",
643
+ "call",
644
+ "nextElement",
645
+ "previousElement"
646
+ ];
647
+ var METHODS_EXL2 = [
648
+ ...["node", "context", "extends", "__element", "__ref"],
649
+ ...METHODS2,
650
+ ...STATE_METHODS2,
651
+ ...PROPS_METHODS2
652
+ ];
653
+
654
+ // ../../../domql/packages/event/dist/esm/globals.js
655
+ var window3 = globalThis;
656
+ var document3 = window3.document;
657
+
512
658
  // src/defaultConfig/index.js
513
659
  var defaultConfig_exports = {};
514
660
  __export(defaultConfig_exports, {
@@ -819,7 +965,7 @@ var getRgbTone = (rgb, tone) => {
819
965
  };
820
966
 
821
967
  // src/utils/sequence.js
822
- var import_utils6 = __toESM(require_cjs(), 1);
968
+ var import_utils5 = __toESM(require_cjs(), 1);
823
969
 
824
970
  // src/system/color.js
825
971
  var getColor = (value, key, config) => {
@@ -1048,3 +1194,4 @@ var getMediaTheme = (value, modifier) => {
1048
1194
  const resolvedTheme = recursiveTheme(themeValue);
1049
1195
  return resolvedTheme;
1050
1196
  };
1197
+ // @preserve-env