@dxos/util 0.4.7-main.ea67fec → 0.4.7-main.f9d3866

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.
@@ -65,12 +65,7 @@ __export(node_exports, {
65
65
  getDeep: () => getDeep,
66
66
  getHostPlatform: () => getHostPlatform,
67
67
  getPrototypeSpecificInstanceId: () => getPrototypeSpecificInstanceId,
68
- hexToEmoji: () => hexToEmoji,
69
- hexToFallback: () => hexToFallback,
70
- hexToHue: () => hexToHue,
71
68
  humanize: () => humanize,
72
- idEmoji: () => idEmoji,
73
- idHue: () => idHue,
74
69
  inferObjectOrder: () => inferObjectOrder,
75
70
  inferRecordOrder: () => inferRecordOrder,
76
71
  iosCheck: () => iosCheck,
@@ -80,9 +75,6 @@ __export(node_exports, {
80
75
  jsonKeyReplacer: () => jsonKeyReplacer,
81
76
  jsonReplacer: () => jsonReplacer,
82
77
  jsonify: () => jsonify,
83
- keyToEmoji: () => keyToEmoji,
84
- keyToFallback: () => keyToFallback,
85
- keyToHue: () => keyToHue,
86
78
  makeMap: () => makeMap,
87
79
  makeSet: () => makeSet,
88
80
  mapValues: () => mapValues,
@@ -103,9 +95,6 @@ __export(node_exports, {
103
95
  stringToArray: () => stringToArray,
104
96
  stripUndefinedValues: () => stripUndefinedValues,
105
97
  sum: () => sum,
106
- toEmoji: () => toEmoji,
107
- toFallback: () => toFallback,
108
- toHue: () => toHue,
109
98
  tracer: () => tracer
110
99
  });
111
100
  module.exports = __toCommonJS(node_exports);
@@ -418,183 +407,6 @@ var makeMap = (keyProjection) => class BoundComplexMap extends ComplexMap {
418
407
  }
419
408
  };
420
409
  var deferFunction = (fnProvider) => (...args) => fnProvider()(...args);
421
- var idEmoji = [
422
- // When changing this set, please check the result in a console or e.g. RunKit (https://runkit.com/thure/642214441dd6ae000855a8de)
423
- // Emoji sometimes use a combination of code points, and some code points aren't visible on their own, so by adding or deleting you may unintentionally create non-visible items.
424
- // This set was chosen from the characters in Unicode Emoji v15.0 based on the following criteria:
425
- // – not people or isolated anthropomorphic faces
426
- // – not flags
427
- // – more concrete than abstract
428
- // – less culturally specific
429
- // – less easily confused with another emoji in the set
430
- // – requires less special knowledge to identify
431
- // – less likely to evoke negative feelings (no meat, no drugs, no weapons, etc)
432
- // – less common as a signifier in UX
433
- // NOTE that this is intentionally an array of strings because of the way emoji graphemes work.
434
- "\u{1F479}",
435
- "\u{1F47B}",
436
- "\u{1F47D}",
437
- "\u{1F916}",
438
- "\u{1F383}",
439
- "\u{1F9BE}",
440
- "\u{1F9BF}",
441
- "\u{1F9B7}",
442
- "\u{1F463}",
443
- "\u{1F441}\uFE0F",
444
- "\u{1F9F6}",
445
- "\u{1F451}",
446
- "\u{1F412}",
447
- "\u{1F986}",
448
- "\u{1F989}",
449
- "\u{1F434}",
450
- "\u{1F984}",
451
- "\u{1F41D}",
452
- "\u{1F98B}",
453
- "\u{1F41E}",
454
- "\u{1FAB2}",
455
- "\u{1F422}",
456
- "\u{1F98E}",
457
- "\u{1F995}",
458
- "\u{1F991}",
459
- "\u{1F980}",
460
- "\u{1F420}",
461
- "\u{1F42C}",
462
- "\u{1F40B}",
463
- "\u{1F9AD}",
464
- "\u{1F405}",
465
- "\u{1F406}",
466
- "\u{1F993}",
467
- "\u{1F98D}",
468
- "\u{1F9A7}",
469
- "\u{1F418}",
470
- "\u{1F42B}",
471
- "\u{1F992}",
472
- "\u{1F998}",
473
- "\u{1F9AC}",
474
- "\u{1F416}",
475
- "\u{1F40F}",
476
- "\u{1F98C}",
477
- "\u{1F415}",
478
- "\u{1F408}",
479
- "\u{1F413}",
480
- "\u{1F99A}",
481
- "\u{1F99C}",
482
- "\u{1F9A2}",
483
- "\u{1F9A9}",
484
- "\u{1F9A6}",
485
- "\u{1F401}",
486
- "\u{1F43F}\uFE0F",
487
- "\u{1F335}",
488
- "\u{1F332}",
489
- "\u{1F333}",
490
- "\u{1FAB5}",
491
- "\u{1F331}",
492
- "\u{1F341}",
493
- "\u{1FABA}",
494
- "\u{1F344}",
495
- "\u{1F41A}",
496
- "\u{1FAB8}",
497
- "\u{1FAA8}",
498
- "\u{1F33E}",
499
- "\u{1F337}",
500
- "\u{1F33B}",
501
- "\u2600\uFE0F",
502
- "\u{1F319}",
503
- "\u{1FA90}",
504
- "\u2B50\uFE0F",
505
- "\u26A1\uFE0F",
506
- "\u2604\uFE0F",
507
- "\u{1F525}",
508
- "\u{1F308}",
509
- "\u2601\uFE0F",
510
- "\u{1F4A7}",
511
- "\u26F1\uFE0F",
512
- "\u{1F30A}",
513
- "\u{1F34E}",
514
- "\u{1F34B}",
515
- "\u{1F349}",
516
- "\u{1F347}",
517
- "\u{1FAD0}",
518
- "\u{1F348}",
519
- "\u{1F352}",
520
- "\u{1F351}",
521
- "\u{1F96D}",
522
- "\u{1F34D}",
523
- "\u{1F965}",
524
- "\u{1F95D}",
525
- "\u{1F951}",
526
- "\u{1F336}\uFE0F",
527
- "\u{1F33D}",
528
- "\u{1F955}",
529
- "\u{1F36C}",
530
- "\u{1F95C}",
531
- "\u{1FAD6}",
532
- "\u2615\uFE0F",
533
- "\u{1F375}",
534
- "\u{1F9CA}",
535
- "\u{1F9C2}",
536
- "\u{1F3D4}\uFE0F",
537
- "\u2693\uFE0F",
538
- "\u{1F6DF}",
539
- "\u{1F3DD}\uFE0F",
540
- "\u{1F6F6}",
541
- "\u{1F680}",
542
- "\u{1F6F0}\uFE0F",
543
- "\u26F2\uFE0F",
544
- "\u{1F3F0}",
545
- "\u{1F6B2}",
546
- "\u26FA\uFE0F",
547
- "\u{1F399}\uFE0F",
548
- "\u{1F9F2}",
549
- "\u2699\uFE0F",
550
- "\u{1F529}",
551
- "\u{1F52E}",
552
- "\u{1F52D}",
553
- "\u{1F52C}",
554
- "\u{1F9EC}",
555
- "\u{1F321}\uFE0F",
556
- "\u{1F9FA}",
557
- "\u{1F6CE}\uFE0F",
558
- "\u{1F511}",
559
- "\u{1FA91}",
560
- "\u{1F9F8}",
561
- "\u{1F388}",
562
- "\u{1F380}",
563
- "\u{1F38A}",
564
- "\u267B\uFE0F",
565
- "\u{1F3B5}"
566
- ];
567
- var idHue = [
568
- "red",
569
- // 'orange' as const, /* More shades in these palettes are considered “ugly” */
570
- "amber",
571
- // 'yellow' as const, /* More shades in these palettes are considered “ugly” */
572
- "lime",
573
- "green",
574
- "emerald",
575
- "teal",
576
- "cyan",
577
- // 'sky' as const, /* Omitted since it is quite similar to the primary accent palette */
578
- // 'blue' as const, /* Omitted since it is quite similar to the primary accent palette */
579
- // 'indigo' as const, /* Omitted since it is quite similar to the primary accent palette */
580
- "violet",
581
- "purple",
582
- "fuchsia",
583
- "pink",
584
- "rose"
585
- ];
586
- var keyToEmoji = (key) => hexToEmoji(key.toHex());
587
- var hexToEmoji = (hex) => toEmoji(parseInt(hex, 16));
588
- var toEmoji = (hash) => idEmoji[hash % idEmoji.length];
589
- var keyToHue = (key) => hexToHue(key.toHex());
590
- var hexToHue = (hex) => toHue(parseInt(hex, 16));
591
- var toHue = (hash) => idHue[hash % idHue.length];
592
- var keyToFallback = (key) => hexToFallback(key.toHex());
593
- var hexToFallback = (hex) => toFallback(parseInt(hex, 16));
594
- var toFallback = (hash) => ({
595
- emoji: toEmoji(hash),
596
- hue: toHue(hash)
597
- });
598
410
  var entry = (map, key) => new MapEntry(map, key);
599
411
  var MapEntry = class {
600
412
  /**
@@ -1526,12 +1338,7 @@ var DeferAsyncGuard = class {
1526
1338
  getDeep,
1527
1339
  getHostPlatform,
1528
1340
  getPrototypeSpecificInstanceId,
1529
- hexToEmoji,
1530
- hexToFallback,
1531
- hexToHue,
1532
1341
  humanize,
1533
- idEmoji,
1534
- idHue,
1535
1342
  inferObjectOrder,
1536
1343
  inferRecordOrder,
1537
1344
  iosCheck,
@@ -1541,9 +1348,6 @@ var DeferAsyncGuard = class {
1541
1348
  jsonKeyReplacer,
1542
1349
  jsonReplacer,
1543
1350
  jsonify,
1544
- keyToEmoji,
1545
- keyToFallback,
1546
- keyToHue,
1547
1351
  makeMap,
1548
1352
  makeSet,
1549
1353
  mapValues,
@@ -1564,9 +1368,6 @@ var DeferAsyncGuard = class {
1564
1368
  stringToArray,
1565
1369
  stripUndefinedValues,
1566
1370
  sum,
1567
- toEmoji,
1568
- toFallback,
1569
- toHue,
1570
1371
  tracer
1571
1372
  });
1572
1373
  //# sourceMappingURL=index.cjs.map