@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 {
@@ -330,16 +401,16 @@ __export(document_exports, {
330
401
  });
331
402
  module.exports = __toCommonJS(document_exports);
332
403
 
333
- // ../../node_modules/@domql/utils/globals.js
404
+ // ../../../domql/packages/utils/globals.js
334
405
  var window2 = globalThis;
335
406
  var document2 = window2.document;
336
407
 
337
- // ../../node_modules/@domql/utils/node.js
408
+ // ../../../domql/packages/utils/node.js
338
409
  var isDOMNode = (obj) => {
339
410
  return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
340
411
  };
341
412
 
342
- // ../../node_modules/@domql/utils/types.js
413
+ // ../../../domql/packages/utils/types.js
343
414
  var isFunction = (arg) => typeof arg === "function";
344
415
  var isNull = (arg) => arg === null;
345
416
  var isArray = (arg) => Array.isArray(arg);
@@ -351,7 +422,7 @@ var isUndefined = (arg) => {
351
422
  return arg === void 0;
352
423
  };
353
424
 
354
- // ../../node_modules/@domql/utils/array.js
425
+ // ../../../domql/packages/utils/array.js
355
426
  var unstackArrayOfObjects = (arr, exclude = []) => {
356
427
  return arr.reduce(
357
428
  (a, c) => deepMerge(a, deepClone(c, { exclude }), exclude),
@@ -359,7 +430,7 @@ var unstackArrayOfObjects = (arr, exclude = []) => {
359
430
  );
360
431
  };
361
432
 
362
- // ../../node_modules/@domql/utils/keys.js
433
+ // ../../../domql/packages/utils/keys.js
363
434
  var STATE_METHODS = [
364
435
  "update",
365
436
  "parse",
@@ -430,7 +501,7 @@ var METHODS_EXL = [
430
501
  ...PROPS_METHODS
431
502
  ];
432
503
 
433
- // ../../node_modules/@domql/utils/object.js
504
+ // ../../../domql/packages/utils/object.js
434
505
  var merge = (element, obj, excludeFrom = []) => {
435
506
  for (const e in obj) {
436
507
  const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, e);
@@ -511,9 +582,84 @@ var deepClone = (obj, options = {}) => {
511
582
  return clone;
512
583
  };
513
584
 
514
- // ../../node_modules/@domql/utils/cookie.js
585
+ // ../../../domql/packages/utils/cookie.js
515
586
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
516
587
 
588
+ // ../../../domql/packages/event/dist/esm/keys.js
589
+ var STATE_METHODS2 = [
590
+ "update",
591
+ "parse",
592
+ "clean",
593
+ "create",
594
+ "destroy",
595
+ "add",
596
+ "toggle",
597
+ "remove",
598
+ "apply",
599
+ "set",
600
+ "reset",
601
+ "replace",
602
+ "quietReplace",
603
+ "quietUpdate",
604
+ "applyReplace",
605
+ "applyFunction",
606
+ "keys",
607
+ "values",
608
+ "ref",
609
+ "rootUpdate",
610
+ "parentUpdate",
611
+ "parent",
612
+ "__element",
613
+ "__depends",
614
+ "__ref",
615
+ "__children",
616
+ "root",
617
+ "setByPath",
618
+ "setPathCollection",
619
+ "removeByPath",
620
+ "removePathCollection",
621
+ "getByPath"
622
+ ];
623
+ var PROPS_METHODS2 = ["update", "__element"];
624
+ var METHODS2 = [
625
+ "set",
626
+ "reset",
627
+ "update",
628
+ "remove",
629
+ "updateContent",
630
+ "removeContent",
631
+ "lookup",
632
+ "lookdown",
633
+ "lookdownAll",
634
+ "getRef",
635
+ "getPath",
636
+ "setNodeStyles",
637
+ "spotByPath",
638
+ "keys",
639
+ "parse",
640
+ "setProps",
641
+ "parseDeep",
642
+ "variables",
643
+ "if",
644
+ "log",
645
+ "verbose",
646
+ "warn",
647
+ "error",
648
+ "call",
649
+ "nextElement",
650
+ "previousElement"
651
+ ];
652
+ var METHODS_EXL2 = [
653
+ ...["node", "context", "extends", "__element", "__ref"],
654
+ ...METHODS2,
655
+ ...STATE_METHODS2,
656
+ ...PROPS_METHODS2
657
+ ];
658
+
659
+ // ../../../domql/packages/event/dist/esm/globals.js
660
+ var window3 = globalThis;
661
+ var document3 = window3.document;
662
+
517
663
  // src/defaultConfig/index.js
518
664
  var defaultConfig_exports = {};
519
665
  __export(defaultConfig_exports, {
@@ -744,7 +890,7 @@ var getDefaultOrFirstKey = (LIBRARY, key) => {
744
890
  };
745
891
 
746
892
  // src/utils/sequence.js
747
- var import_utils6 = __toESM(require_cjs(), 1);
893
+ var import_utils5 = __toESM(require_cjs(), 1);
748
894
 
749
895
  // src/system/document.js
750
896
  var applyDocument = () => {
@@ -757,3 +903,4 @@ var applyDocument = () => {
757
903
  lineHeight: TYPOGRAPHY2.lineHeight
758
904
  });
759
905
  };
906
+ // @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 {
@@ -332,16 +403,16 @@ __export(font_exports, {
332
403
  });
333
404
  module.exports = __toCommonJS(font_exports);
334
405
 
335
- // ../../node_modules/@domql/utils/globals.js
406
+ // ../../../domql/packages/utils/globals.js
336
407
  var window2 = globalThis;
337
408
  var document2 = window2.document;
338
409
 
339
- // ../../node_modules/@domql/utils/node.js
410
+ // ../../../domql/packages/utils/node.js
340
411
  var isDOMNode = (obj) => {
341
412
  return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
342
413
  };
343
414
 
344
- // ../../node_modules/@domql/utils/types.js
415
+ // ../../../domql/packages/utils/types.js
345
416
  var isObject = (arg) => {
346
417
  if (arg === null) return false;
347
418
  return typeof arg === "object" && arg.constructor === Object;
@@ -357,7 +428,7 @@ var isUndefined = (arg) => {
357
428
  return arg === void 0;
358
429
  };
359
430
 
360
- // ../../node_modules/@domql/utils/array.js
431
+ // ../../../domql/packages/utils/array.js
361
432
  var unstackArrayOfObjects = (arr, exclude = []) => {
362
433
  return arr.reduce(
363
434
  (a, c) => deepMerge(a, deepClone(c, { exclude }), exclude),
@@ -365,7 +436,7 @@ var unstackArrayOfObjects = (arr, exclude = []) => {
365
436
  );
366
437
  };
367
438
 
368
- // ../../node_modules/@domql/utils/keys.js
439
+ // ../../../domql/packages/utils/keys.js
369
440
  var STATE_METHODS = [
370
441
  "update",
371
442
  "parse",
@@ -436,7 +507,7 @@ var METHODS_EXL = [
436
507
  ...PROPS_METHODS
437
508
  ];
438
509
 
439
- // ../../node_modules/@domql/utils/object.js
510
+ // ../../../domql/packages/utils/object.js
440
511
  var deepMerge = (element, extend, excludeFrom = METHODS_EXL) => {
441
512
  for (const e in extend) {
442
513
  const hasOwnProperty = Object.prototype.hasOwnProperty.call(extend, e);
@@ -503,11 +574,86 @@ var deepClone = (obj, options = {}) => {
503
574
  return clone;
504
575
  };
505
576
 
506
- // ../../node_modules/@domql/utils/cookie.js
577
+ // ../../../domql/packages/utils/cookie.js
507
578
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
508
579
 
580
+ // ../../../domql/packages/event/dist/esm/keys.js
581
+ var STATE_METHODS2 = [
582
+ "update",
583
+ "parse",
584
+ "clean",
585
+ "create",
586
+ "destroy",
587
+ "add",
588
+ "toggle",
589
+ "remove",
590
+ "apply",
591
+ "set",
592
+ "reset",
593
+ "replace",
594
+ "quietReplace",
595
+ "quietUpdate",
596
+ "applyReplace",
597
+ "applyFunction",
598
+ "keys",
599
+ "values",
600
+ "ref",
601
+ "rootUpdate",
602
+ "parentUpdate",
603
+ "parent",
604
+ "__element",
605
+ "__depends",
606
+ "__ref",
607
+ "__children",
608
+ "root",
609
+ "setByPath",
610
+ "setPathCollection",
611
+ "removeByPath",
612
+ "removePathCollection",
613
+ "getByPath"
614
+ ];
615
+ var PROPS_METHODS2 = ["update", "__element"];
616
+ var METHODS2 = [
617
+ "set",
618
+ "reset",
619
+ "update",
620
+ "remove",
621
+ "updateContent",
622
+ "removeContent",
623
+ "lookup",
624
+ "lookdown",
625
+ "lookdownAll",
626
+ "getRef",
627
+ "getPath",
628
+ "setNodeStyles",
629
+ "spotByPath",
630
+ "keys",
631
+ "parse",
632
+ "setProps",
633
+ "parseDeep",
634
+ "variables",
635
+ "if",
636
+ "log",
637
+ "verbose",
638
+ "warn",
639
+ "error",
640
+ "call",
641
+ "nextElement",
642
+ "previousElement"
643
+ ];
644
+ var METHODS_EXL2 = [
645
+ ...["node", "context", "extends", "__element", "__ref"],
646
+ ...METHODS2,
647
+ ...STATE_METHODS2,
648
+ ...PROPS_METHODS2
649
+ ];
650
+
651
+ // ../../../domql/packages/event/dist/esm/globals.js
652
+ var window3 = globalThis;
653
+ var document3 = window3.document;
654
+
509
655
  // src/system/font.js
510
- var import_utils10 = __toESM(require_cjs(), 1);
656
+ var import_utils9 = __toESM(require_cjs(), 1);
511
657
 
512
658
  // src/defaultConfig/index.js
513
659
  var defaultConfig_exports = {};
@@ -755,7 +901,7 @@ var getFontFaceEach = (name, weights) => {
755
901
  };
756
902
 
757
903
  // src/utils/sequence.js
758
- var import_utils6 = __toESM(require_cjs(), 1);
904
+ var import_utils5 = __toESM(require_cjs(), 1);
759
905
 
760
906
  // src/system/font.js
761
907
  var setFont = (val, key) => {
@@ -774,8 +920,9 @@ var setFontFamily = (val, key) => {
774
920
  const { FONT_FAMILY: FONT_FAMILY2, FONT_FAMILY_TYPES: FONT_FAMILY_TYPES2 } = CONFIG2;
775
921
  let { value, type } = val;
776
922
  if (val.isDefault) FONT_FAMILY2.default = key;
777
- if (isObject(value)) value = (0, import_utils10.arrayzeValue)(value);
923
+ if (isObject(value)) value = (0, import_utils9.arrayzeValue)(value);
778
924
  const CSSvar = `--font-family-${key}`;
779
925
  const str = `${value.join(", ")}, ${FONT_FAMILY_TYPES2[type]}`;
780
926
  return { var: CSSvar, value: str, arr: value, type };
781
927
  };
928
+ // @preserve-env