@jvs-milkdown/crepe 1.2.17 → 1.2.20

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.
Files changed (93) hide show
  1. package/lib/cjs/builder.js +4 -0
  2. package/lib/cjs/builder.js.map +1 -1
  3. package/lib/cjs/feature/block-edit/index.js +4 -0
  4. package/lib/cjs/feature/block-edit/index.js.map +1 -1
  5. package/lib/cjs/feature/code-mirror/index.js +4 -0
  6. package/lib/cjs/feature/code-mirror/index.js.map +1 -1
  7. package/lib/cjs/feature/cursor/index.js +4 -0
  8. package/lib/cjs/feature/cursor/index.js.map +1 -1
  9. package/lib/cjs/feature/image-block/index.js +4 -0
  10. package/lib/cjs/feature/image-block/index.js.map +1 -1
  11. package/lib/cjs/feature/inline-diff/index.js +4 -0
  12. package/lib/cjs/feature/inline-diff/index.js.map +1 -1
  13. package/lib/cjs/feature/latex/index.js +4 -0
  14. package/lib/cjs/feature/latex/index.js.map +1 -1
  15. package/lib/cjs/feature/link-tooltip/index.js +4 -0
  16. package/lib/cjs/feature/link-tooltip/index.js.map +1 -1
  17. package/lib/cjs/feature/list-item/index.js +4 -0
  18. package/lib/cjs/feature/list-item/index.js.map +1 -1
  19. package/lib/cjs/feature/placeholder/index.js +4 -0
  20. package/lib/cjs/feature/placeholder/index.js.map +1 -1
  21. package/lib/cjs/feature/table/index.js +4 -0
  22. package/lib/cjs/feature/table/index.js.map +1 -1
  23. package/lib/cjs/feature/toolbar/index.js +56 -22
  24. package/lib/cjs/feature/toolbar/index.js.map +1 -1
  25. package/lib/cjs/index.js +533 -151
  26. package/lib/cjs/index.js.map +1 -1
  27. package/lib/esm/builder.js +4 -0
  28. package/lib/esm/builder.js.map +1 -1
  29. package/lib/esm/feature/block-edit/index.js +4 -0
  30. package/lib/esm/feature/block-edit/index.js.map +1 -1
  31. package/lib/esm/feature/code-mirror/index.js +4 -0
  32. package/lib/esm/feature/code-mirror/index.js.map +1 -1
  33. package/lib/esm/feature/cursor/index.js +4 -0
  34. package/lib/esm/feature/cursor/index.js.map +1 -1
  35. package/lib/esm/feature/image-block/index.js +4 -0
  36. package/lib/esm/feature/image-block/index.js.map +1 -1
  37. package/lib/esm/feature/inline-diff/index.js +4 -0
  38. package/lib/esm/feature/inline-diff/index.js.map +1 -1
  39. package/lib/esm/feature/latex/index.js +4 -0
  40. package/lib/esm/feature/latex/index.js.map +1 -1
  41. package/lib/esm/feature/link-tooltip/index.js +4 -0
  42. package/lib/esm/feature/link-tooltip/index.js.map +1 -1
  43. package/lib/esm/feature/list-item/index.js +4 -0
  44. package/lib/esm/feature/list-item/index.js.map +1 -1
  45. package/lib/esm/feature/placeholder/index.js +4 -0
  46. package/lib/esm/feature/placeholder/index.js.map +1 -1
  47. package/lib/esm/feature/table/index.js +4 -0
  48. package/lib/esm/feature/table/index.js.map +1 -1
  49. package/lib/esm/feature/toolbar/index.js +56 -22
  50. package/lib/esm/feature/toolbar/index.js.map +1 -1
  51. package/lib/esm/index.js +700 -318
  52. package/lib/esm/index.js.map +1 -1
  53. package/lib/theme/common/toolbar.css +9 -0
  54. package/lib/tsconfig.tsbuildinfo +1 -1
  55. package/lib/types/core/crepe.d.ts +2 -1
  56. package/lib/types/core/crepe.d.ts.map +1 -1
  57. package/lib/types/core/locale.d.ts +4 -0
  58. package/lib/types/core/locale.d.ts.map +1 -1
  59. package/lib/types/feature/fixed-toolbar/component.d.ts +2 -0
  60. package/lib/types/feature/fixed-toolbar/component.d.ts.map +1 -1
  61. package/lib/types/feature/fixed-toolbar/config.d.ts.map +1 -1
  62. package/lib/types/feature/fixed-toolbar/index.d.ts +16 -0
  63. package/lib/types/feature/fixed-toolbar/index.d.ts.map +1 -1
  64. package/lib/types/feature/fixed-toolbar/menu-bar.d.ts.map +1 -1
  65. package/lib/types/feature/toolbar/component.d.ts.map +1 -1
  66. package/lib/types/icons/export.d.ts +2 -0
  67. package/lib/types/icons/export.d.ts.map +1 -0
  68. package/lib/types/icons/import.d.ts +2 -0
  69. package/lib/types/icons/import.d.ts.map +1 -0
  70. package/lib/types/icons/index.d.ts +4 -0
  71. package/lib/types/icons/index.d.ts.map +1 -1
  72. package/lib/types/icons/redo.d.ts +2 -0
  73. package/lib/types/icons/redo.d.ts.map +1 -0
  74. package/lib/types/icons/undo.d.ts +2 -0
  75. package/lib/types/icons/undo.d.ts.map +1 -0
  76. package/lib/types/utils/fixed-toolbar-popup-state.d.ts +1 -0
  77. package/lib/types/utils/fixed-toolbar-popup-state.d.ts.map +1 -1
  78. package/package.json +116 -62
  79. package/src/core/crepe.ts +122 -7
  80. package/src/core/locale.ts +4 -0
  81. package/src/feature/fixed-toolbar/component.tsx +154 -53
  82. package/src/feature/fixed-toolbar/config.ts +70 -2
  83. package/src/feature/fixed-toolbar/index.ts +85 -0
  84. package/src/feature/fixed-toolbar/menu-bar.tsx +17 -3
  85. package/src/feature/toolbar/component.tsx +61 -23
  86. package/src/icons/export.ts +5 -0
  87. package/src/icons/import.ts +6 -0
  88. package/src/icons/index.ts +4 -0
  89. package/src/icons/redo.ts +5 -0
  90. package/src/icons/undo.ts +5 -0
  91. package/src/theme/common/toolbar.css +19 -0
  92. package/src/utils/fixed-toolbar-popup-state.ts +5 -0
  93. package/LICENSE +0 -21
@@ -549,7 +549,11 @@ export const Toolbar = defineComponent<ToolbarProps>({
549
549
 
550
550
  if (!isFixed) {
551
551
  const view = ctx.get(editorViewCtx)
552
- container.style.maxWidth = `${view.dom.clientWidth - 32}px`
552
+ const containerDOM =
553
+ view.dom.closest('.milkdown-editor-container') ||
554
+ view.dom.closest('.milkdown') ||
555
+ view.dom
556
+ container.style.maxWidth = `${containerDOM.clientWidth - 32}px`
553
557
  }
554
558
 
555
559
  // For fixed toolbar: use available space in parent (minus MenuBar & separator)
@@ -573,18 +577,17 @@ export const Toolbar = defineComponent<ToolbarProps>({
573
577
  }
574
578
  } else {
575
579
  const view = ctx.get(editorViewCtx)
576
- containerWidth = view.dom.clientWidth - 32
580
+ const containerDOM =
581
+ view.dom.closest('.milkdown-editor-container') ||
582
+ view.dom.closest('.milkdown') ||
583
+ view.dom
584
+ containerWidth = containerDOM.clientWidth - 32
577
585
  }
578
586
 
579
- if (containerWidth === lastContainerWidth) {
580
- return
581
- }
582
- lastContainerWidth = containerWidth
583
-
584
587
  if (showOverflowMenu.value) {
585
588
  showOverflowMenu.value = false
586
589
  }
587
- const MORE_BUTTON_WIDTH = 44
590
+ const MORE_BUTTON_WIDTH = 56
588
591
  const children = Array.from(container.children) as HTMLElement[]
589
592
  const toolbarChildren = children.filter(
590
593
  (el): el is HTMLElement =>
@@ -598,6 +601,15 @@ export const Toolbar = defineComponent<ToolbarProps>({
598
601
  totalWidth += measureChild(child, i)
599
602
  }
600
603
 
604
+ if (totalWidth === 0) {
605
+ return
606
+ }
607
+
608
+ if (containerWidth === lastContainerWidth) {
609
+ return
610
+ }
611
+ lastContainerWidth = containerWidth
612
+
601
613
  if (totalWidth <= containerWidth) {
602
614
  overflowVisibleCount.value = Infinity
603
615
  totalSectionCount.value = toolbarChildren.length
@@ -808,6 +820,16 @@ export const Toolbar = defineComponent<ToolbarProps>({
808
820
  } else {
809
821
  const view = ctx.get(editorViewCtx)
810
822
  overflowResizeObserver.observe(view.dom)
823
+
824
+ const containerDOM = view.dom.closest('.milkdown-editor-container')
825
+ if (containerDOM) {
826
+ overflowResizeObserver.observe(containerDOM)
827
+ }
828
+
829
+ const rootDOM = view.dom.closest('.milkdown')
830
+ if (rootDOM) {
831
+ overflowResizeObserver.observe(rootDOM)
832
+ }
811
833
  }
812
834
  computeOverflow()
813
835
  }
@@ -849,6 +871,18 @@ export const Toolbar = defineComponent<ToolbarProps>({
849
871
  setTimeout(computeOverflow, 0)
850
872
  })
851
873
 
874
+ watch(
875
+ () => props.show?.value,
876
+ (val) => {
877
+ if (val) {
878
+ cachedWidths.clear()
879
+ overflowVisibleCount.value = Infinity
880
+ lastContainerWidth = 0
881
+ setTimeout(computeOverflow, 0)
882
+ }
883
+ }
884
+ )
885
+
852
886
  const onClick = (fn: (ctx: Ctx) => void) => (e: MouseEvent) => {
853
887
  e.preventDefault()
854
888
  if (ctx) fn(ctx)
@@ -1398,7 +1432,7 @@ export const Toolbar = defineComponent<ToolbarProps>({
1398
1432
  <div
1399
1433
  style={{
1400
1434
  position: 'relative',
1401
- display: isSectionOverflowed(0) ? 'none' : 'flex',
1435
+ display: isSectionOverflowed(1) ? 'none' : 'flex',
1402
1436
  flexShrink: 0,
1403
1437
  }}
1404
1438
  >
@@ -1444,7 +1478,7 @@ export const Toolbar = defineComponent<ToolbarProps>({
1444
1478
  style={{
1445
1479
  margin: '0 4px',
1446
1480
  alignSelf: 'center',
1447
- display: isSectionOverflowed(1) ? 'none' : undefined,
1481
+ display: isSectionOverflowed(2) ? 'none' : undefined,
1448
1482
  flexShrink: 0,
1449
1483
  }}
1450
1484
  ></div>
@@ -1456,7 +1490,7 @@ export const Toolbar = defineComponent<ToolbarProps>({
1456
1490
  onMouseleave={handleFontFamilyLeave}
1457
1491
  style={{
1458
1492
  position: 'relative',
1459
- display: isSectionOverflowed(2) ? 'none' : 'flex',
1493
+ display: isSectionOverflowed(3) ? 'none' : 'flex',
1460
1494
  alignItems: 'center',
1461
1495
  padding: '0 6px',
1462
1496
  minWidth: '50px',
@@ -1502,7 +1536,7 @@ export const Toolbar = defineComponent<ToolbarProps>({
1502
1536
  onMouseleave={handleFontSizeLeave}
1503
1537
  style={{
1504
1538
  position: 'relative',
1505
- display: isSectionOverflowed(3) ? 'none' : 'flex',
1539
+ display: isSectionOverflowed(4) ? 'none' : 'flex',
1506
1540
  alignItems: 'center',
1507
1541
  padding: '0 6px',
1508
1542
  minWidth: '40px',
@@ -1533,7 +1567,7 @@ export const Toolbar = defineComponent<ToolbarProps>({
1533
1567
  style={{
1534
1568
  margin: '0 4px',
1535
1569
  alignSelf: 'center',
1536
- display: isSectionOverflowed(4) ? 'none' : undefined,
1570
+ display: isSectionOverflowed(5) ? 'none' : undefined,
1537
1571
  flexShrink: 0,
1538
1572
  }}
1539
1573
  ></div>
@@ -1545,7 +1579,7 @@ export const Toolbar = defineComponent<ToolbarProps>({
1545
1579
  onMouseleave={handleAlignLeave}
1546
1580
  style={{
1547
1581
  position: 'relative',
1548
- display: isSectionOverflowed(5) ? 'none' : 'flex',
1582
+ display: isSectionOverflowed(6) ? 'none' : 'flex',
1549
1583
  alignItems: 'center',
1550
1584
  padding: '0 6px',
1551
1585
  flexShrink: 0,
@@ -1575,7 +1609,7 @@ export const Toolbar = defineComponent<ToolbarProps>({
1575
1609
  onMouseleave={handleColorLeave}
1576
1610
  style={{
1577
1611
  position: 'relative',
1578
- display: isSectionOverflowed(6) ? 'none' : 'flex',
1612
+ display: isSectionOverflowed(7) ? 'none' : 'flex',
1579
1613
  alignItems: 'center',
1580
1614
  padding: '0 4px',
1581
1615
  flexShrink: 0,
@@ -1608,7 +1642,7 @@ export const Toolbar = defineComponent<ToolbarProps>({
1608
1642
 
1609
1643
  {/* Formatting Tools (sections 7+) */}
1610
1644
  {(() => {
1611
- let sectionIdx = 7
1645
+ let sectionIdx = 8
1612
1646
  return nonHeadingGroups.map((group: any, groupIndex: number) => {
1613
1647
  const items = group.items.map((item: any) => {
1614
1648
  const idx = sectionIdx
@@ -1631,6 +1665,7 @@ export const Toolbar = defineComponent<ToolbarProps>({
1631
1665
  'toolbar-item',
1632
1666
  ctx && checkActive(item.active) && 'active'
1633
1667
  )}
1668
+ data-key={item.key}
1634
1669
  onPointerdown={(e: PointerEvent) => {
1635
1670
  if (isTable) {
1636
1671
  e.preventDefault()
@@ -2547,11 +2582,13 @@ export const Toolbar = defineComponent<ToolbarProps>({
2547
2582
  onClick: ((e: MouseEvent) => void) | undefined,
2548
2583
  hasDropdown = false,
2549
2584
  onMouseEnter?: (e: MouseEvent) => void,
2550
- onMouseLeave?: (e: MouseEvent) => void
2585
+ onMouseLeave?: (e: MouseEvent) => void,
2586
+ key?: string
2551
2587
  ) => (
2552
2588
  <button
2553
2589
  type="button"
2554
2590
  class={clsx('toolbar-item', isActive && 'active')}
2591
+ data-key={key}
2555
2592
  title={title}
2556
2593
  onPointerdown={(e: PointerEvent) => {
2557
2594
  e.preventDefault()
@@ -2604,7 +2641,7 @@ export const Toolbar = defineComponent<ToolbarProps>({
2604
2641
  )
2605
2642
  }
2606
2643
  // Section 2: Font Family
2607
- if (2 >= cutoff) {
2644
+ if (3 >= cutoff) {
2608
2645
  items.push(
2609
2646
  renderIconButton(
2610
2647
  textIcon,
@@ -2618,7 +2655,7 @@ export const Toolbar = defineComponent<ToolbarProps>({
2618
2655
  )
2619
2656
  }
2620
2657
  // Section 3: Font Size
2621
- if (3 >= cutoff) {
2658
+ if (4 >= cutoff) {
2622
2659
  items.push(
2623
2660
  renderIconButton(
2624
2661
  textIcon,
@@ -2632,7 +2669,7 @@ export const Toolbar = defineComponent<ToolbarProps>({
2632
2669
  )
2633
2670
  }
2634
2671
  // Section 5: Alignment
2635
- if (5 >= cutoff) {
2672
+ if (6 >= cutoff) {
2636
2673
  items.push(
2637
2674
  renderIconButton(
2638
2675
  currentAlignIndent.value.align === 'center'
@@ -2650,7 +2687,7 @@ export const Toolbar = defineComponent<ToolbarProps>({
2650
2687
  )
2651
2688
  }
2652
2689
  // Section 6: Color
2653
- if (6 >= cutoff) {
2690
+ if (7 >= cutoff) {
2654
2691
  items.push(
2655
2692
  renderIconButton(
2656
2693
  fontColorIcon,
@@ -2664,7 +2701,7 @@ export const Toolbar = defineComponent<ToolbarProps>({
2664
2701
  )
2665
2702
  }
2666
2703
  // Formatting buttons (section 7+)
2667
- let fmtIdx = 7
2704
+ let fmtIdx = 8
2668
2705
  for (const group of nonHeadingGroups) {
2669
2706
  for (const item of group.items) {
2670
2707
  const idx = fmtIdx
@@ -2686,7 +2723,8 @@ export const Toolbar = defineComponent<ToolbarProps>({
2686
2723
  },
2687
2724
  isTable,
2688
2725
  isTable ? handleTableEnter : undefined,
2689
- isTable ? handleTableLeave : undefined
2726
+ isTable ? handleTableLeave : undefined,
2727
+ item.key
2690
2728
  )
2691
2729
  )
2692
2730
  }
@@ -0,0 +1,5 @@
1
+ export const exportIcon = `
2
+ <svg viewBox="0 0 1024 1024" version="1.1" width="20" height="20">
3
+ <path d="M452.288 725.12L246.016 537.6c-4.928-4.48-10.432-8.832-14.72-13.696-20.8-23.232-21.312-42.944-2.304-59.52 17.664-15.36 43.392-14.976 65.536 4.48 49.088 43.328 32.256 27.712 80.512 71.744l69.376 63.36 11.968 10.688v-173.44c0-33.92-0.128-80.96-0.32-128.448-0.192-51.52-0.32-103.616-0.32-140.16L455.68 163.84a183.04 183.04 0 0 1 0.704-24.896c3.52-29.248 19.328-43.712 45.248-42.88 25.344 0.768 41.088 15.872 42.688 45.504 1.28 22.848 1.024 45.888 0.768 68.864l-0.128 27.136c0 50.048 0.128 112.832 0.256 176.384 0.192 71.552 0.384 144.192 0.32 200.704 74.432-68.224 131.968-119.68 162.688-147.584 7.424-6.72 14.912-14.272 24-18.304 18.688-8.448 37.76-7.808 52.8 7.36 14.72 14.72 16.384 31.36 3.968 48.192-3.84 5.248-8.64 10.112-13.44 14.656-45.76 41.92-189.76 173.248-236.16 214.464a62.336 62.336 0 0 1-8.064 6.016 43.712 43.712 0 0 1-15.872 9.792c-20.544 7.104-37.504-0.512-51.968-13.952l-11.2-10.24z m430.784-37.248c24-0.576 42.176 13.44 43.328 39.04 1.728 38.208 2.944 76.992-1.088 115.136-5.312 50.752-51.52 84.16-114.752 85.312-50.112 0.832-100.224 0.64-150.4 0.512l-64.832-0.128H422.272a26252.8 26252.8 0 0 1-194.432-0.192c-90.624-0.512-130.752-37.696-131.392-120.64l-0.192-17.408c-0.32-19.84-0.576-39.68 0.768-59.392 1.92-27.904 20.48-43.648 45.76-42.368 23.488 1.152 37.312 15.296 40.064 42.368 0.896 9.152 0.832 18.432 0.704 27.648l-0.064 10.816c0.384 71.744 7.36 78.208 88.128 78.272 117.248 0.128 234.432 0.128 351.68 0l43.968 0.192c36.096 0.064 72.192 0.192 108.288-0.448 52.672-0.96 64-12.096 65.152-60.288a494.464 494.464 0 0 0 0-21.76 365.632 365.632 0 0 1 0.704-35.84c2.24-26.048 17.92-40.32 41.664-40.832z" fill="currentColor"></path>
4
+ </svg>
5
+ `
@@ -0,0 +1,6 @@
1
+ export const importIcon = `
2
+ <svg viewBox="0 0 1024 1024" version="1.1" width="20" height="20">
3
+ <path d="M838.656 594.432a41.152 41.152 0 0 0-40.768 41.472v176.128c0 0.384-0.384 0.96-1.216 0.96H210.688c-0.768 0-1.216-0.576-1.216-0.96V275.968c0-0.384 0.448-0.96 1.216-0.96h143.616a41.088 41.088 0 0 0 41.28-41.472A41.088 41.088 0 0 0 354.304 192H210.688C165.12 192 128 229.76 128 275.968v536.064C128 858.368 165.12 896 210.688 896h585.984c45.632 0 82.688-37.632 82.688-83.968V635.904a41.152 41.152 0 0 0-40.704-41.472z" fill="currentColor"></path>
4
+ <path d="M895.744 229.056a40.896 40.896 0 0 0-44.864-36.8c-4.032 0.448-99.456 11.52-200.576 68.352-106.24 59.776-179.2 147.648-214.656 257.28l-44.672-131.584a40.576 40.576 0 0 0-51.84-25.792 41.664 41.664 0 0 0-25.152 52.928l80.064 235.968a40.576 40.576 0 0 0 51.84 25.6l0.512-0.128 232.192-85.312a41.728 41.728 0 0 0 24-52.928 40.576 40.576 0 0 0-51.648-25.152l-144 52.928c26.048-99.2 86.464-176.256 180.416-229.76a508.672 508.672 0 0 1 172.416-59.904c22.336-2.56 38.4-22.976 35.968-45.696z" fill="currentColor"></path>
5
+ </svg>
6
+ `
@@ -53,3 +53,7 @@ export * from './word-wrap'
53
53
  export * from './crop'
54
54
  export * from './border'
55
55
  export * from './format-painter'
56
+ export * from './undo'
57
+ export * from './redo'
58
+ export * from './export'
59
+ export * from './import'
@@ -0,0 +1,5 @@
1
+ export const redoIcon = `
2
+ <svg viewBox="0 0 1024 1024" version="1.1" width="20" height="20">
3
+ <path d="M755.584 183.168a42.688 42.688 0 0 0-60.352 60.352l97.856 97.792H341.44a256 256 0 0 0 0 512h213.312a42.688 42.688 0 0 0 0-85.312H341.44a170.688 170.688 0 0 1 0-341.312h451.648l-97.856 97.856a42.688 42.688 0 0 0 60.352 60.288l170.048-170.048a42.56 42.56 0 0 0 0-61.568l-170.048-170.048z" fill="currentColor"></path>
4
+ </svg>
5
+ `
@@ -0,0 +1,5 @@
1
+ export const undoIcon = `
2
+ <svg viewBox="0 0 1024 1024" version="1.1" width="20" height="20">
3
+ <path d="M328.768 243.52a42.688 42.688 0 0 0-60.352-60.352L97.92 353.664A43.008 43.008 0 0 0 85.248 384a42.56 42.56 0 0 0 12.48 30.208l170.688 170.624a42.688 42.688 0 1 0 60.352-60.288l-97.92-97.92h451.712a170.688 170.688 0 1 1 0 341.376H469.248a42.688 42.688 0 1 0 0 85.312h213.312a256 256 0 1 0 0-512H230.912l97.856-97.792z" fill="currentColor"></path>
4
+ </svg>
5
+ `
@@ -73,6 +73,14 @@
73
73
  fill: var(--crepe-color-primary);
74
74
  }
75
75
  }
76
+
77
+ &[data-key='export'],
78
+ &[data-key='import'],
79
+ &[data-key='shortcuts'] {
80
+ svg {
81
+ --toolbar-icon-color: #363b4c;
82
+ }
83
+ }
76
84
  }
77
85
  }
78
86
 
@@ -89,6 +97,9 @@
89
97
  position: sticky;
90
98
  top: 0;
91
99
  flex-shrink: 0;
100
+ min-width: 0;
101
+ max-width: 100%;
102
+ box-sizing: border-box;
92
103
 
93
104
  .toolbar-shortcut-btn {
94
105
  display: flex;
@@ -164,6 +175,14 @@
164
175
  fill: var(--crepe-color-primary);
165
176
  }
166
177
  }
178
+
179
+ &[data-key='export'],
180
+ &[data-key='import'],
181
+ &[data-key='shortcuts'] {
182
+ svg {
183
+ --toolbar-icon-color: #363b4c;
184
+ }
185
+ }
167
186
  }
168
187
  }
169
188
  }
@@ -25,3 +25,8 @@ export function decrementPopupCount(): void {
25
25
  listeners.forEach((fn) => fn())
26
26
  }
27
27
  }
28
+
29
+ export function resetPopupCount(): void {
30
+ _popupCount = 0
31
+ listeners.forEach((fn) => fn())
32
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2020-present Mirone
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.