@ones-editor/editor 2.2.14-beta.15 → 2.2.14-beta.17

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.
@@ -2,11 +2,13 @@ import './toast.scss';
2
2
  export type ToastOptions = {
3
3
  html: boolean;
4
4
  duration: number;
5
+ autoClose: boolean;
5
6
  theme: string;
6
7
  id: string;
7
8
  position: {
8
9
  x: number;
9
10
  y: number;
10
11
  };
12
+ onClick: (e: MouseEvent) => boolean;
11
13
  };
12
- export declare function showToast(text: string, options?: Partial<ToastOptions>): void;
14
+ export declare function showToast(text: string, options?: Partial<ToastOptions>): () => void;
package/dist/index.js CHANGED
@@ -762,7 +762,7 @@ div.comment-editor-root div.root.select-all > .container-blocks > div[data-type=
762
762
  ::placeholder {
763
763
  color: #bbb;
764
764
  }/* The snackbar - position it at the bottom and in the middle of the screen */
765
- .toast {
765
+ .ones-editor-toast {
766
766
  font-family: Avenir, Helvetica, Arial, sans-serif;
767
767
  visibility: hidden; /* Hidden by default. Visible on click */
768
768
  min-width: 250px; /* Set a default minimum width */
@@ -773,20 +773,35 @@ div.comment-editor-root div.root.select-all > .container-blocks > div[data-type=
773
773
  border-radius: 2px; /* Rounded borders */
774
774
  padding: 8px; /* Padding */
775
775
  position: fixed; /* Sit on top of the screen */
776
- z-index: 1; /* Add a z-index if needed */
776
+ z-index: 12000; /* Add a z-index if needed */
777
777
  left: 50%; /* Center the snackbar */
778
778
  bottom: 30px; /* 30px from the bottom */
779
+ display: flex;
780
+ align-items: center;
781
+ justify-content: space-between;
782
+ font-size: 14px;
779
783
  }
780
- .toast.show {
784
+ .ones-editor-toast.show {
781
785
  visibility: visible; /* Show the snackbar */
782
786
  animation: toast_fade_in 0.5s, toast_fade_out 0.5s 2.5s;
783
787
  }
784
- .toast.positioned.show {
788
+ .ones-editor-toast.positioned.show {
785
789
  animation: toast_fade_in_positioned 0.5s, toast_fade_out_positioned 0.5s 2.5s;
786
790
  }
787
- .toast.positioned {
791
+ .ones-editor-toast.positioned {
788
792
  bottom: unset;
789
793
  }
794
+ .ones-editor-toast > .close {
795
+ width: 24px;
796
+ height: 24px;
797
+ justify-content: center;
798
+ display: inline-flex;
799
+ align-items: center;
800
+ cursor: pointer;
801
+ }
802
+ .ones-editor-toast > .close:hover {
803
+ background-color: rgba(255, 255, 255, 0.1019607843);
804
+ }
790
805
  @keyframes toast_fade_in {
791
806
  from {
792
807
  bottom: 0;
@@ -6985,6 +7000,23 @@ div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .co
6985
7000
  }
6986
7001
  .command-item[data-id=preset-1] {
6987
7002
  background-color: #fff0d9 !important;
7003
+ }.ones-editor-toast[data-theme=warn] {
7004
+ background-color: #f59300;
7005
+ }
7006
+ .ones-editor-toast[data-theme=warn] .toast-message {
7007
+ display: inline-flex;
7008
+ align-items: center;
7009
+ }
7010
+ .ones-editor-toast[data-theme=warn] .toast-message svg {
7011
+ margin-right: 8px;
7012
+ width: 24px;
7013
+ height: 24px;
7014
+ fill: white;
7015
+ }
7016
+ .ones-editor-toast[data-theme=warn] a {
7017
+ margin-left: 5px;
7018
+ text-decoration: underline;
7019
+ cursor: pointer;
6988
7020
  }:root {
6989
7021
  --editor-quoted-color: #7084a4;
6990
7022
  --editor-drawio-empty-svg: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zOC43MjAzIDI4LjcwOTdIMjUuOTIzM0MyNS4yMTY1IDI4LjcwOTcgMjQuNjQzNSAyOC4xNDgxIDI0LjY0MzUgMjcuNDU1MlYyNS43MzMzSDIwLjUyODNDMjAuNDk4NiAyNS43Njk2IDIwLjQ2NjkgMjUuODA0MiAyMC40MzMzIDI1LjgzN0wxNS45MTkyIDMwLjI2MjFWMzQuNzU1NkgyNC42NDM1VjMzLjcyNzZDMjQuNjQzNSAzMy4wMzQ4IDI1LjIxNjUgMzIuNDczMiAyNS45MjMzIDMyLjQ3MzJIMzguNzIwM0MzOS40MjcgMzIuNDczMiA0MCAzMy4wMzQ4IDQwIDMzLjcyNzZWMzguNzQ1NUM0MCAzOS40MzgzIDM5LjQyNyA0MCAzOC43MjAzIDQwSDI1LjkyMzNDMjUuMjE2NSA0MCAyNC42NDM1IDM5LjQzODMgMjQuNjQzNSAzOC43NDU1VjM3LjMzMzNIMTQuNjI2M0MxMy45MTIyIDM3LjMzMzMgMTMuMzMzMyAzNi43NTYyIDEzLjMzMzMgMzYuMDQ0NFYzMC42OTQxTDguMzc4NTIgMjUuODM3QzguMTM2MjYgMjUuNjAxNCA4IDI1LjI4MDggOCAyNC45NDYzQzggMjQuNjExOCA4LjEzNjI2IDI0LjI5MTEgOC4zNzg1MiAyNC4wNTU2TDEzLjMzMzMgMTkuMTk4NVYxNS43NzJDMTEuNzc5OCAxNS4yMjI5IDEwLjY2NjcgMTMuNzQxNiAxMC42NjY3IDEyQzEwLjY2NjcgOS43OTA4NSAxMi40NTc1IDggMTQuNjY2NyA4QzE2Ljg3NTggOCAxOC42NjY2IDkuNzkwODUgMTguNjY2NiAxMkMxOC42NjY2IDEzLjcyNjUgMTcuNTU4OCAxNS4yNTgxIDE1LjkxOTEgMTUuNzk4OFYxOS4yODg4QzE1LjkxOTEgMTkuMzkxOCAxNS45MDY4IDE5LjQ5NDMgMTUuODgyMyAxOS41OTQzTDE5LjUxNTEgMjMuMTU1NUgyNC42NDM1VjIyLjQzNzNDMjQuNjQzNSAyMS43NDQ1IDI1LjIxNjUgMjEuMTgyOSAyNS45MjMzIDIxLjE4MjlIMzguNzIwM0MzOS40MjcgMjEuMTgyOSA0MCAyMS43NDQ1IDQwIDIyLjQzNzNWMjcuNDU1MkM0MCAyOC4xNDgxIDM5LjQyNyAyOC43MDk3IDM4LjcyMDMgMjguNzA5N1pNMjcuMjAzIDM3LjQ5MUgzNy40NDA2VjM0Ljk4MjFIMjcuMjAzVjM3LjQ5MVpNMTQuNDA1OSAyOC4xOTU0TDExLjA5MTUgMjQuOTQ2M0wxNC40MDU5IDIxLjY5NzJMMTcuNzIwNCAyNC45NDYzTDE0LjQwNTkgMjguMTk1NFpNMjcuMjAzIDI2LjIwMDhIMzcuNDQwNlYyMy42OTE4SDI3LjIwM1YyNi4yMDA4WiIgZmlsbD0iIzA3MTQyQSIvPgo8L3N2Zz4K");
@@ -7109,14 +7141,19 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] .emb
7109
7141
  .embed-block[data-embed-type=flowchart] div[data-type=block-content],
7110
7142
  .embed-block[data-embed-type=plantuml] div[data-type=block-content] {
7111
7143
  --border-color: #e5e5e5;
7112
- display: flex;
7113
- flex-direction: column;
7114
7144
  outline: 1px solid var(--border-color);
7115
7145
  border-radius: 3px;
7116
7146
  }
7117
- .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-header,
7118
- .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-header,
7119
- .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-header {
7147
+ .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-wrapper,
7148
+ .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-wrapper,
7149
+ .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-wrapper {
7150
+ display: flex;
7151
+ flex-direction: column;
7152
+ flex: 1;
7153
+ }
7154
+ .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-wrapper .embed-graph-header,
7155
+ .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-wrapper .embed-graph-header,
7156
+ .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-wrapper .embed-graph-header {
7120
7157
  display: flex;
7121
7158
  align-items: center;
7122
7159
  flex-shrink: 0;
@@ -7126,58 +7163,58 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] .emb
7126
7163
  background: var(--Background-Default-o-color-bg-weak, #f7f8fa);
7127
7164
  border-bottom: 1px solid var(--border-color);
7128
7165
  }
7129
- .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-header .editor-command-bar-root,
7130
- .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-header .editor-command-bar,
7131
- .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-header .editor-command-bar-root,
7132
- .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-header .editor-command-bar,
7133
- .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-header .editor-command-bar-root,
7134
- .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-header .editor-command-bar {
7166
+ .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-wrapper .embed-graph-header .editor-command-bar-root,
7167
+ .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-wrapper .embed-graph-header .editor-command-bar,
7168
+ .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-wrapper .embed-graph-header .editor-command-bar-root,
7169
+ .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-wrapper .embed-graph-header .editor-command-bar,
7170
+ .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-wrapper .embed-graph-header .editor-command-bar-root,
7171
+ .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-wrapper .embed-graph-header .editor-command-bar {
7135
7172
  background-color: transparent;
7136
7173
  }
7137
- .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-content,
7138
- .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-content,
7139
- .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-content {
7174
+ .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content,
7175
+ .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content,
7176
+ .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content {
7140
7177
  position: relative;
7141
7178
  display: flex;
7142
7179
  flex-direction: column;
7143
7180
  height: calc(100% - 40px);
7144
7181
  flex: 1;
7145
7182
  }
7146
- .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-content .graph-content,
7147
- .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-content .graph-content,
7148
- .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-content .graph-content {
7183
+ .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content,
7184
+ .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content,
7185
+ .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content {
7149
7186
  flex: 1;
7150
7187
  display: flex;
7151
7188
  height: 100%;
7152
7189
  }
7153
- .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-content .graph-content .embed-graph-left,
7154
- .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-content .graph-content .embed-graph-left,
7155
- .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-content .graph-content .embed-graph-left {
7190
+ .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content .embed-graph-left,
7191
+ .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content .embed-graph-left,
7192
+ .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content .embed-graph-left {
7156
7193
  border-right: 1px solid var(--border-color);
7157
7194
  }
7158
- .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-content .graph-content .embed-graph-left,
7159
- .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-content .graph-content .embed-graph-right,
7160
- .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-content .graph-content .embed-graph-left,
7161
- .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-content .graph-content .embed-graph-right,
7162
- .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-content .graph-content .embed-graph-left,
7163
- .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-content .graph-content .embed-graph-right {
7195
+ .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content .embed-graph-left,
7196
+ .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content .embed-graph-right,
7197
+ .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content .embed-graph-left,
7198
+ .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content .embed-graph-right,
7199
+ .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content .embed-graph-left,
7200
+ .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content .embed-graph-right {
7164
7201
  display: flex;
7165
7202
  align-items: center;
7166
7203
  justify-content: center;
7167
7204
  overflow: hidden;
7168
7205
  padding: 10px;
7169
7206
  }
7170
- .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-content .graph-content .embed-graph-left > div,
7171
- .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-content .graph-content .embed-graph-right > div,
7172
- .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-content .graph-content .embed-graph-left > div,
7173
- .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-content .graph-content .embed-graph-right > div,
7174
- .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-content .graph-content .embed-graph-left > div,
7175
- .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-content .graph-content .embed-graph-right > div {
7207
+ .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content .embed-graph-left > div,
7208
+ .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content .embed-graph-right > div,
7209
+ .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content .embed-graph-left > div,
7210
+ .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content .embed-graph-right > div,
7211
+ .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content .embed-graph-left > div,
7212
+ .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .graph-content .embed-graph-right > div {
7176
7213
  flex: 1;
7177
7214
  }
7178
- .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-content .resize-gripper,
7179
- .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-content .resize-gripper,
7180
- .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-content .resize-gripper {
7215
+ .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .resize-gripper,
7216
+ .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .resize-gripper,
7217
+ .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-wrapper .embed-graph-content .resize-gripper {
7181
7218
  position: absolute;
7182
7219
  top: 0;
7183
7220
  width: 10px;
@@ -7301,6 +7338,9 @@ div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container
7301
7338
  background-color: transparent;
7302
7339
  }
7303
7340
  div[data-type=editor-block].layout-block .layout-column-container > .container-blocks > .embed-block[data-embed-type=mermaid] div[data-type=block-content], div[data-type=editor-block].layout-block .layout-column-container > .container-blocks > .embed-block[data-embed-type=flowchart] div[data-type=block-content], div[data-type=editor-block].layout-block .layout-column-container > .container-blocks > .embed-block[data-embed-type=plantuml] div[data-type=block-content] {
7341
+ overflow-x: auto;
7342
+ }
7343
+ div[data-type=editor-block].layout-block .layout-column-container > .container-blocks > .embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-wrapper, div[data-type=editor-block].layout-block .layout-column-container > .container-blocks > .embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-wrapper, div[data-type=editor-block].layout-block .layout-column-container > .container-blocks > .embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-wrapper {
7304
7344
  min-width: 290px;
7305
7345
  }
7306
7346
  div.comment-editor-root [data-type=editor-container].root .embed-block[data-embed-type=mermaid],
@@ -39695,7 +39735,7 @@ ${codeText}
39695
39735
  const DownloadIcon$1 = '<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M8.00001 9.2376L8.00006 1L9.00006 1.00001L9.00001 9.2373L12.1299 6.10621L12.8372 6.81318L8.85364 10.7982L8.50009 11.1519L8.14647 10.7983L4.16145 6.81325L4.86855 6.10614L8.00001 9.2376ZM3 13.9434C3 14.2195 3.22386 14.4434 3.5 14.4434L13.5 14.4434C13.7761 14.4434 14 14.2195 14 13.9434V9.94336H15V13.9434C15 14.7718 14.3284 15.4434 13.5 15.4434L3.5 15.4434C2.67157 15.4434 2 14.7718 2 13.9434L2 9.94336H3L3 13.9434Z" fill="currentColor"/>\n</svg>\n';
39696
39736
  const alterEmoji = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="5" cy="6" r="1" fill="#2D2D2E"/>\n<circle cx="11" cy="6" r="1" fill="#2D2D2E"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M4.12622 9C4.57027 10.7252 6.13637 12 8.0002 12C9.86403 12 11.4301 10.7252 11.8742 9H10.2922C9.90639 9.88294 9.02535 10.5 8.0002 10.5C6.97505 10.5 6.09401 9.88294 5.70823 9H4.12622Z" fill="#2D2D2E"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C8.69781 1.5 9.36994 1.60996 10 1.8135V0.252035C9.36076 0.087506 8.6906 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16C12.4183 16 16 12.4183 16 8C16 7.3094 15.9125 6.63924 15.748 6H14.1865C14.39 6.63006 14.5 7.30219 14.5 8Z" fill="#2D2D2E"/>\n<line x1="12" y1="2.5" x2="15" y2="2.5" stroke="#2D2D2E"/>\n<line x1="13.5" y1="1" x2="13.5" y2="4" stroke="#2D2D2E"/>\n</svg>\n';
39697
39737
  const ForbiddenIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M8 15C11.866 15 15 11.866 15 8M8 15C4.13401 15 1 11.866 1 8M8 15C11.8324 15 15 11.8324 15 8M8 15C4.16755 15 1 11.8324 1 8M15 8C15 4.13401 11.866 1 8 1M15 8C15 4.16755 11.8324 1 8 1M1 8C1 4.13401 4.13401 1 8 1M1 8C1 4.16755 4.16755 1 8 1M12.9581 12.7581L3.2 3" stroke="currentColor" stroke-width="1" stroke-linecap="square" stroke-linejoin="round"/>\n</svg>\n';
39698
- const WarningFilledIcon = '<svg width="1em" height="1em" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M14.7768 15.0001H2.22316C1.45534 15.0001 0.973967 14.1706 1.35491 13.5039L7.63174 2.51949C8.01563 1.84767 8.98433 1.84767 9.36822 2.51949L13.6428 10.0001L15.645 13.5039C16.026 14.1706 15.5446 15.0001 14.7768 15.0001ZM8.99998 6.00006V10.0001H7.99998V6.00006H8.99998ZM8.99998 13.0001V11.0001H7.99998V13.0001H8.99998Z" fill="#F59300"/>\n</svg>\n';
39738
+ const WarningFilledIcon = '<svg width="1em" height="1em" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M14.7768 15.0001H2.22316C1.45534 15.0001 0.973967 14.1706 1.35491 13.5039L7.63174 2.51949C8.01563 1.84767 8.98433 1.84767 9.36822 2.51949L13.6428 10.0001L15.645 13.5039C16.026 14.1706 15.5446 15.0001 14.7768 15.0001ZM8.99998 6.00006V10.0001H7.99998V6.00006H8.99998ZM8.99998 13.0001V11.0001H7.99998V13.0001H8.99998Z" fill="currentColor"/>\n</svg>\n';
39699
39739
  const InformationFilledIcon = '<svg width="1em" height="1em" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M15.5 8C15.5 11.8659 12.3659 15 8.5 15C4.63408 15 1.5 11.8659 1.5 8C1.5 4.13408 4.63408 1 8.5 1C12.3659 1 15.5 4.13408 15.5 8ZM9 7V12H8V7H9ZM9 6V4H8V6H9Z" fill="#0064FF"/>\n</svg>\n';
39700
39740
  const AddEmojiIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M13 0V2H11V3H13V5H14V3H16V2H14V0H13ZM8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 7.68424 14.4775 7.37402 14.4341 7.0708L15.4241 6.9292C15.4741 7.27918 15.5 7.63672 15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5C8.36328 0.5 8.72082 0.525866 9.0708 0.575927L8.9292 1.56585C8.62598 1.52248 8.31576 1.5 8 1.5ZM6.5 6C6.5 6.55228 6.05228 7 5.5 7C4.94772 7 4.5 6.55228 4.5 6C4.5 5.44772 4.94772 5 5.5 5C6.05228 5 6.5 5.44772 6.5 6ZM10.5 7C11.0523 7 11.5 6.55228 11.5 6C11.5 5.44772 11.0523 5 10.5 5C9.94771 5 9.5 5.44772 9.5 6C9.5 6.55228 9.94771 7 10.5 7ZM5.5 9C5.5 9.21658 5.52742 9.42603 5.57873 9.62537C5.85629 10.7037 6.83579 11.5 8 11.5C9.16421 11.5 10.1437 10.7037 10.4213 9.62537C10.4726 9.42603 10.5 9.21658 10.5 9H11.5C11.5 9.30137 11.4618 9.59454 11.3897 9.87463C11.0012 11.3841 9.63155 12.5 8 12.5C6.36845 12.5 4.9988 11.3841 4.61029 9.87463C4.53821 9.59454 4.5 9.30137 4.5 9H5.5Z" fill="currentColor"/>\n</svg>\n';
39701
39741
  const BallIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<mask id="path-1-inside-1_1548_11413" fill="white">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M11.5013 3.3051C10.1794 2.54193 8.68788 2.3389 7.30151 2.62236C7.45689 4.13682 7.15402 5.71323 6.33478 7.13219C5.50852 8.56333 4.11113 9.53449 2.72696 10.1315C3.13679 11.5836 4.09134 12.8834 5.50125 13.6974C6.88859 14.4984 8.46285 14.6824 9.90627 14.3344C9.73444 12.799 10.0339 11.1962 10.8656 9.75572C11.672 8.35905 12.8605 7.31942 14.2224 6.69331C13.7867 5.31322 12.8534 4.08575 11.5013 3.3051ZM14.4471 7.6945C13.3477 8.2443 12.3923 9.11137 11.7316 10.2557C11.049 11.4381 10.78 12.7449 10.8797 14.0101C12.0246 13.5168 13.0262 12.6639 13.6974 11.5013C14.3889 10.3035 14.6205 8.96642 14.4471 7.6945ZM3.3051 5.50125C4.01521 4.2713 5.09503 3.38789 6.32314 2.91033C6.41573 4.16535 6.14557 5.45992 5.46876 6.63219C4.82049 7.75503 3.71484 8.57888 2.53314 9.12317C2.40542 7.90718 2.64699 6.64113 3.3051 5.50125ZM2.43907 5.00125C4.37207 1.6532 8.6532 0.506078 12.0013 2.43907C15.3493 4.37207 16.4964 8.6532 14.5634 12.0013C12.6304 15.3493 8.3493 16.4964 5.00125 14.5634C1.6532 12.6304 0.506078 8.3493 2.43907 5.00125Z"/>\n</mask>\n<path d="M7.30151 2.62236L7.10119 1.64262L6.21435 1.82395L6.30673 2.72442L7.30151 2.62236ZM11.5013 3.3051L11.0013 4.17113L11.5013 3.3051ZM6.33478 7.13219L5.46876 6.63219L6.33478 7.13219ZM2.72696 10.1315L2.33094 9.21321L1.52664 9.56009L1.76455 10.4031L2.72696 10.1315ZM5.50125 13.6974L5.00125 14.5634L5.50125 13.6974ZM9.90627 14.3344L10.1406 15.3066L10.9982 15.0999L10.9001 14.2232L9.90627 14.3344ZM10.8656 9.75572L11.7316 10.2557H11.7316L10.8656 9.75572ZM14.2224 6.69331L14.6401 7.60189L15.4416 7.23343L15.176 6.39225L14.2224 6.69331ZM14.4471 7.6945L15.4379 7.55935L15.2491 6.17528L13.9997 6.80012L14.4471 7.6945ZM11.7316 10.2557L10.8656 9.75572H10.8656L11.7316 10.2557ZM10.8797 14.0101L9.88282 14.0886L9.99256 15.4812L11.2754 14.9285L10.8797 14.0101ZM13.6974 11.5013L12.8314 11.0013L13.6974 11.5013ZM6.32314 2.91033L7.32043 2.83676L7.22095 1.48827L5.96072 1.97831L6.32314 2.91033ZM3.3051 5.50125L2.43907 5.00125H2.43907L3.3051 5.50125ZM5.46876 6.63219L6.33478 7.13219L5.46876 6.63219ZM2.53314 9.12317L1.53861 9.22763L1.68435 10.6151L2.95149 10.0315L2.53314 9.12317ZM12.0013 2.43907L12.5013 1.57305V1.57305L12.0013 2.43907ZM2.43907 5.00125L1.57305 4.50125L2.43907 5.00125ZM5.00125 14.5634L5.50125 13.6974L5.00125 14.5634ZM7.50182 3.60209C8.65795 3.36571 9.89913 3.53482 11.0013 4.17113L12.0013 2.43907C10.4597 1.54905 8.71781 1.31209 7.10119 1.64262L7.50182 3.60209ZM7.20081 7.63219C8.12871 6.02502 8.47241 4.23693 8.29629 2.5203L6.30673 2.72442C6.44137 4.03672 6.17934 5.40143 5.46876 6.63219L7.20081 7.63219ZM3.12298 11.0497C4.62558 10.4017 6.23063 9.31259 7.20081 7.63219L5.46876 6.63219C4.7864 7.81407 3.59667 8.66733 2.33094 9.21321L3.12298 11.0497ZM6.00125 12.8314C4.82601 12.1529 4.03127 11.0713 3.68936 9.85983L1.76455 10.4031C2.24231 12.0959 3.35667 13.6139 5.00125 14.5634L6.00125 12.8314ZM9.67195 13.3623C8.46788 13.6525 7.15776 13.4991 6.00125 12.8314L5.00125 14.5634C6.61943 15.4977 8.45783 15.7122 10.1406 15.3066L9.67195 13.3623ZM10.9001 14.2232C10.7512 12.8926 11.0103 11.5051 11.7316 10.2557L9.99958 9.25572C9.05756 10.8874 8.71771 12.7053 8.91247 14.4457L10.9001 14.2232ZM11.7316 10.2557C12.4311 9.04424 13.4601 8.14438 14.6401 7.60189L13.8047 5.78473C12.2609 6.49445 10.9129 7.67385 9.99958 9.25572L11.7316 10.2557ZM11.0013 4.17113C12.1285 4.82195 12.9054 5.84331 13.2688 6.99437L15.176 6.39225C14.668 4.78312 13.5782 3.34955 12.0013 2.43907L11.0013 4.17113ZM13.9997 6.80012C12.7306 7.43489 11.6272 8.43667 10.8656 9.75572L12.5977 10.7557C13.1575 9.78606 13.9649 9.05372 14.8944 8.58888L13.9997 6.80012ZM10.8656 9.75572C10.0787 11.1187 9.76773 12.6282 9.88282 14.0886L11.8766 13.9315C11.7923 12.8617 12.0193 11.7575 12.5977 10.7557L10.8656 9.75572ZM12.8314 11.0013C12.2714 11.9711 11.438 12.6807 10.4841 13.0917L11.2754 14.9285C12.6112 14.353 13.7809 13.3566 14.5634 12.0013L12.8314 11.0013ZM13.4562 7.82965C13.6008 8.88963 13.4082 10.0022 12.8314 11.0013L14.5634 12.0013C15.3697 10.6048 15.6403 9.0432 15.4379 7.55935L13.4562 7.82965ZM5.96072 1.97831C4.52816 2.53538 3.26705 3.56715 2.43907 5.00125L4.17113 6.00125C4.76337 4.97546 5.6619 4.2404 6.68556 3.84234L5.96072 1.97831ZM6.33478 7.13219C7.11497 5.78087 7.42731 4.28557 7.32043 2.83676L5.32585 2.9839C5.40414 4.04514 5.17618 5.13896 4.60273 6.13219L6.33478 7.13219ZM2.95149 10.0315C4.24894 9.43386 5.54945 8.49242 6.33478 7.13219L4.60273 6.13219C4.09152 7.01764 3.18075 7.72391 2.11479 8.21488L2.95149 10.0315ZM2.43907 5.00125C1.6719 6.33004 1.38957 7.80869 1.53861 9.22763L3.52767 9.01871C3.42126 8.00567 3.62209 6.95221 4.17113 6.00125L2.43907 5.00125ZM12.5013 1.57305C8.67491 -0.63609 3.78219 0.674911 1.57305 4.50125L3.3051 5.50125C4.96195 2.6315 8.6315 1.64825 11.5013 3.3051L12.5013 1.57305ZM15.4295 12.5013C17.6386 8.67491 16.3276 3.78219 12.5013 1.57305L11.5013 3.3051C14.371 4.96195 15.3543 8.6315 13.6974 11.5013L15.4295 12.5013ZM4.50125 15.4295C8.32759 17.6386 13.2203 16.3276 15.4295 12.5013L13.6974 11.5013C12.0406 14.371 8.37101 15.3543 5.50125 13.6974L4.50125 15.4295ZM1.57305 4.50125C-0.63609 8.32759 0.674911 13.2203 4.50125 15.4295L5.50125 13.6974C2.6315 12.0406 1.64825 8.37101 3.3051 5.50125L1.57305 4.50125Z" fill="currentColor" mask="url(#path-1-inside-1_1548_11413)"/>\n</svg>\n';
@@ -40890,10 +40930,11 @@ ${codeText}
40890
40930
  }
40891
40931
  }
40892
40932
  const list = "";
40893
- const toast = "";
40933
+ const toast$1 = "";
40894
40934
  function showToast(text2, options) {
40935
+ var _a;
40895
40936
  const toast2 = document.createElement("div");
40896
- toast2.classList.add("toast", "show");
40937
+ toast2.classList.add("ones-editor-toast", "show");
40897
40938
  if (options == null ? void 0 : options.theme) {
40898
40939
  toast2.setAttribute("data-theme", options.theme);
40899
40940
  }
@@ -40910,13 +40951,29 @@ ${codeText}
40910
40951
  toast2.style.top = `${options.position.y}px`;
40911
40952
  toast2.classList.add("positioned");
40912
40953
  }
40913
- document.body.appendChild(toast2);
40914
- setTimeout(() => {
40954
+ const exit = () => {
40915
40955
  toast2.classList.remove("show");
40916
40956
  setTimeout(() => {
40917
40957
  toast2.remove();
40918
40958
  }, 500);
40919
- }, (options == null ? void 0 : options.duration) || 3e3);
40959
+ };
40960
+ toast2.onclick = (e2) => {
40961
+ var _a2;
40962
+ if ((_a2 = options == null ? void 0 : options.onClick) == null ? void 0 : _a2.call(options, e2)) {
40963
+ exit();
40964
+ }
40965
+ };
40966
+ const autoClose = (_a = options == null ? void 0 : options.autoClose) != null ? _a : true;
40967
+ if (!autoClose) {
40968
+ const icon = createElement("span", ["close"], toast2);
40969
+ icon.innerHTML = CloseIcon;
40970
+ icon.onclick = exit;
40971
+ }
40972
+ document.body.appendChild(toast2);
40973
+ if (options == null ? void 0 : options.autoClose) {
40974
+ setTimeout(() => exit(), (options == null ? void 0 : options.duration) || 3e3);
40975
+ }
40976
+ return exit;
40920
40977
  }
40921
40978
  function initMenuItem$1(item, elem) {
40922
40979
  var _a, _b;
@@ -80608,7 +80665,7 @@ ${content}
80608
80665
  "preset-1": {
80609
80666
  name: i18n$1.t("callout.command.presetAlert"),
80610
80667
  backgroundColor: 2,
80611
- icon: WarningFilledIcon
80668
+ icon: WarningFilledIcon.replaceAll('fill="currentColor"', 'fill="#F59300"')
80612
80669
  }
80613
80670
  };
80614
80671
  return presets[id];
@@ -81842,8 +81899,9 @@ ${content}
81842
81899
  const oldCode = this.getGraphData(data2).code;
81843
81900
  return oldCode !== code;
81844
81901
  }
81845
- createEmbedContent(content, blockData) {
81902
+ createEmbedContent(blockContent, blockData) {
81846
81903
  const { code, src, height, flex = DEFAULT_FLEX, view } = this.getGraphData(blockData);
81904
+ const content = createElement("div", ["embed-graph-wrapper"], blockContent);
81847
81905
  const header = createElement("div", ["embed-graph-header"], content, i18n$1.t(`graph.${this.graphType}`));
81848
81906
  this.viewSelect = new ViewSelect(header);
81849
81907
  this.viewSelect.addListener("viewChange", this.updateLayoutData);
@@ -81858,13 +81916,16 @@ ${content}
81858
81916
  const realView = this.getRealView(view);
81859
81917
  this.viewSelect.setSelectedView(realView);
81860
81918
  this.updateLayout(realView, flex);
81861
- this.updateHeight(content, height);
81919
+ this.updateHeight(blockContent, height);
81862
81920
  this.updateDraw(src, code);
81863
81921
  setTimeout(() => {
81864
81922
  if (clientType.isMobile) {
81865
81923
  return;
81866
81924
  }
81867
81925
  const blockElement = this.editor.getBlockById(blockData.id);
81926
+ if (!this.editor.readonly) {
81927
+ addClass(blockElement, "no-highlighted");
81928
+ }
81868
81929
  blockElement.addEventListener("mousedown", this.handleClick, { capture: true });
81869
81930
  EmbedBlockResizer.register(this.editor, blockElement, { maxHeight: GRAPH_MAX_HEIGHT, minHeight: GRAPH_MIN_HEIGHT });
81870
81931
  });
@@ -81987,6 +82048,9 @@ ${content}
81987
82048
  static get(editor, id) {
81988
82049
  return editor.addCustom(`${MERMAID_TYPE}_${id}`, () => new _MermaidInstance(editor));
81989
82050
  }
82051
+ static destroyCustom(editor, id) {
82052
+ editor.destroyCustom(`${MERMAID_TYPE}_${id}`);
82053
+ }
81990
82054
  code2ObjectUrl(code) {
81991
82055
  return mermaidCodeToObjectUrl(this.editor, code);
81992
82056
  }
@@ -82113,8 +82177,7 @@ ${data2.mermaidText}
82113
82177
  }
82114
82178
  function handleDeleteBlock$2(editor, block) {
82115
82179
  const blockId = getBlockId(block);
82116
- const mermaid = MermaidInstance.get(editor, blockId);
82117
- mermaid.destroy();
82180
+ MermaidInstance.destroyCustom(editor, blockId);
82118
82181
  }
82119
82182
  const MermaidEmbed = {
82120
82183
  embedType: MERMAID_TYPE,
@@ -82486,6 +82549,28 @@ ${data2.flowchartText}
82486
82549
  </add>
82487
82550
  </mxStylesheet>
82488
82551
  `;
82552
+ const toast = "";
82553
+ const showWarnToast = (exit) => {
82554
+ const errorHTML = `<span class="toast-message">${WarningFilledIcon}${i18n$1.t("drawio.errorTips")} <a>\u8FD4\u56DE\u9875\u9762</a></span>`;
82555
+ const onClick = (e2) => {
82556
+ if (e2.target instanceof HTMLAnchorElement) {
82557
+ exit();
82558
+ return true;
82559
+ }
82560
+ return false;
82561
+ };
82562
+ const hide = showToast(errorHTML, {
82563
+ autoClose: false,
82564
+ position: {
82565
+ y: 30,
82566
+ x: window.innerWidth / 2
82567
+ },
82568
+ html: true,
82569
+ onClick,
82570
+ theme: "warn"
82571
+ });
82572
+ return hide;
82573
+ };
82489
82574
  const BORDER = 0;
82490
82575
  const SAVE_DELAY_TIME = 30 * 1e3;
82491
82576
  const DRAWIO_EMPTY_CLASS = "editor-empty-drawio";
@@ -82626,9 +82711,12 @@ ${data2.flowchartText}
82626
82711
  }
82627
82712
  }
82628
82713
  function contactWithIframe(editor, block, drawIoData, iframe, loaded, exit, isInitializationCompleted2) {
82714
+ let hide = () => {
82715
+ };
82629
82716
  const destroy = () => {
82630
82717
  window.removeEventListener("message", receive);
82631
82718
  exit();
82719
+ hide();
82632
82720
  };
82633
82721
  const loadingHandler = new LoadingHandler();
82634
82722
  loadingHandler.setLoading(iframe, i18n$1.t("drawio.loading"));
@@ -82649,15 +82737,16 @@ ${data2.flowchartText}
82649
82737
  }), "*");
82650
82738
  break;
82651
82739
  case "init":
82652
- if (xml != null) {
82653
- iframe.contentWindow.postMessage(JSON.stringify({
82654
- action: "load",
82655
- saveAndExit: 1,
82656
- noSaveBtn: 1,
82657
- noExitBtn: 0,
82658
- xml
82659
- }), "*");
82740
+ if (xml == null) {
82741
+ hide = showWarnToast(destroy);
82660
82742
  }
82743
+ iframe.contentWindow.postMessage(JSON.stringify({
82744
+ action: "load",
82745
+ saveAndExit: 1,
82746
+ noSaveBtn: 1,
82747
+ noExitBtn: 0,
82748
+ xml: xml || ""
82749
+ }), "*");
82661
82750
  loaded();
82662
82751
  loadingHandler.removeLoading();
82663
82752
  break;
@@ -83117,6 +83206,38 @@ ${data2.flowchartText}
83117
83206
  getBlockProperties: getBlockProperties$3,
83118
83207
  convertTo: convertTo$3
83119
83208
  };
83209
+ class DrawioPasteHandler {
83210
+ constructor(editor) {
83211
+ __publicField(this, "handleBeforePasteDoc", async (editor, doc2) => {
83212
+ Object.values(doc2.blocks).forEach((blocks) => {
83213
+ var _a;
83214
+ for (let i = blocks.length - 1; i >= 0; i -= 1) {
83215
+ const block = blocks[i];
83216
+ if (block.type === "embed" && block.embedType === "drawio") {
83217
+ const src = ((_a = block.embedData) == null ? void 0 : _a.src) || "";
83218
+ if (!this.isSameOrigin(editor, doc2, src)) {
83219
+ blocks.splice(i, 1);
83220
+ }
83221
+ }
83222
+ }
83223
+ });
83224
+ return false;
83225
+ });
83226
+ this.editor = editor;
83227
+ setTimeout(() => {
83228
+ this.editor.input.addHandler(this);
83229
+ });
83230
+ }
83231
+ isSameOrigin(editor, doc2, src) {
83232
+ var _a, _b;
83233
+ const apiServer = ((_b = (_a = editor.doc).getServerMeta) == null ? void 0 : _b.call(_a).apiServer) || window.location.origin;
83234
+ const origin = new URL(apiServer).origin;
83235
+ const docServer = src.startsWith("http") ? src : doc2.meta.apiServer;
83236
+ return (docServer == null ? void 0 : docServer.startsWith(origin)) || false;
83237
+ }
83238
+ destroy() {
83239
+ }
83240
+ }
83120
83241
  const style = "";
83121
83242
  const logger$f = getLogger("plantuml-helper");
83122
83243
  const PLANTUML_TYPE = "plantuml";
@@ -88998,6 +89119,7 @@ ${data2.plantumlText}
88998
89119
  editor.addCustom("list-to-mention", () => new OnesEditorBlockMention(editor));
88999
89120
  editor.addCustom("code-caret", () => new OnesEditorCodeCaret(editor));
89000
89121
  editor.addCustom("image-paste-handler", () => new ImagePasteHandler(editor));
89122
+ editor.addCustom("drawio-paste-handler", () => new DrawioPasteHandler(editor));
89001
89123
  editor.addCustom("layout-paste-handler", () => new LayoutBlockCaptionInputHandler(editor, true));
89002
89124
  if ((_n = options.componentsOptions) == null ? void 0 : _n.mention) {
89003
89125
  const mentionOptions = options.componentsOptions.mention;
@@ -89057,7 +89179,7 @@ ${data2.plantumlText}
89057
89179
  }
89058
89180
  }
89059
89181
  });
89060
- editor.version = "2.2.14-beta.15";
89182
+ editor.version = "2.2.14-beta.17";
89061
89183
  return editor;
89062
89184
  }
89063
89185
  function isDoc(doc2) {
@@ -89129,6 +89251,7 @@ ${data2.plantumlText}
89129
89251
  } else {
89130
89252
  editor.addCustom("mobile-helper", () => new OnesEditorMobileHelper(editor));
89131
89253
  }
89254
+ editor.addCustom("drawio-paste-handler", () => new DrawioPasteHandler(editor));
89132
89255
  editor.addCustom("image-paste-handler", () => new ImagePasteHandler(editor));
89133
89256
  if (enableComments) {
89134
89257
  editor.addCustom(
@@ -89158,7 +89281,7 @@ ${data2.plantumlText}
89158
89281
  });
89159
89282
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
89160
89283
  OnesEditorToolbar.register(editor);
89161
- editor.version = "2.2.14-beta.15";
89284
+ editor.version = "2.2.14-beta.17";
89162
89285
  return editor;
89163
89286
  }
89164
89287
  async function showDocVersions(editor, options, serverUrl) {
@@ -134923,6 +135046,7 @@ ${data2.plantumlText}
134923
135046
  exports2.DocReAuthCallbacks = DocReAuthCallbacks;
134924
135047
  exports2.DragDrop = DragDrop;
134925
135048
  exports2.DrawioEmbed = DrawioEmbed;
135049
+ exports2.DrawioPasteHandler = DrawioPasteHandler;
134926
135050
  exports2.EditorBlocks = EditorBlocks;
134927
135051
  exports2.EditorBoxes = EditorBoxes;
134928
135052
  exports2.EditorCommandProviders = EditorCommandProviders;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.2.14-beta.15",
3
+ "version": "2.2.14-beta.17",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {