x-star-editor 0.4.2 → 0.6.0

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.
@@ -28,25 +28,25 @@ var FileInput = function FileInput(_ref) {
28
28
  var _useLocale = useLocale('fileInput'),
29
29
  t = _useLocale.format;
30
30
  return /*#__PURE__*/React.createElement("div", {
31
- className: classNames("".concat(prefix, "file-input"))
31
+ className: classNames("".concat(prefix, "-file-input"))
32
32
  }, /*#__PURE__*/React.createElement("div", {
33
- className: classNames("".concat(prefix, "tabs"))
33
+ className: classNames("".concat(prefix, "-tabs"))
34
34
  }, /*#__PURE__*/React.createElement("div", {
35
- className: classNames("".concat(prefix, "tab"), _defineProperty({}, "".concat(prefix, "active"), type === 'file')),
35
+ className: classNames("".concat(prefix, "-tab"), _defineProperty({}, "".concat(prefix, "-active"), type === 'file')),
36
36
  onClick: function onClick() {
37
37
  return setType('file');
38
38
  }
39
39
  }, t('file')), /*#__PURE__*/React.createElement("div", {
40
- className: classNames("".concat(prefix, "tab"), _defineProperty({}, "".concat(prefix, "active"), type === 'url')),
40
+ className: classNames("".concat(prefix, "-tab"), _defineProperty({}, "".concat(prefix, "-active"), type === 'url')),
41
41
  onClick: function onClick() {
42
42
  return setType('url');
43
43
  }
44
44
  }, t('url'))), type === 'file' ? /*#__PURE__*/React.createElement("label", {
45
- className: classNames("".concat(prefix, "field"))
45
+ className: classNames("".concat(prefix, "-field"))
46
46
  }, t('file'), /*#__PURE__*/React.createElement("div", {
47
- className: classNames("".concat(prefix, "file-container"))
47
+ className: classNames("".concat(prefix, "-file-container"))
48
48
  }, /*#__PURE__*/React.createElement("input", {
49
- className: classNames("".concat(prefix, "hidden")),
49
+ className: classNames("".concat(prefix, "-hidden")),
50
50
  type: "file",
51
51
  accept: image ? 'image/*' : undefined,
52
52
  onChange: function onChange(e) {
@@ -54,30 +54,30 @@ var FileInput = function FileInput(_ref) {
54
54
  return setFile((_e$target$files = e.target.files) === null || _e$target$files === void 0 ? void 0 : _e$target$files[0]);
55
55
  }
56
56
  }), /*#__PURE__*/React.createElement("input", {
57
- className: classNames("".concat(prefix, "input")),
57
+ className: classNames("".concat(prefix, "-input")),
58
58
  readOnly: true,
59
59
  value: (_file$name = file === null || file === void 0 ? void 0 : file.name) !== null && _file$name !== void 0 ? _file$name : ''
60
60
  }), /*#__PURE__*/React.createElement("button", {
61
- className: classNames("".concat(prefix, "button")),
61
+ className: classNames("".concat(prefix, "-button")),
62
62
  type: "button"
63
63
  }, t('chooseFile')))) : /*#__PURE__*/React.createElement("label", {
64
- className: classNames("".concat(prefix, "field"))
64
+ className: classNames("".concat(prefix, "-field"))
65
65
  }, t('url'), /*#__PURE__*/React.createElement("input", {
66
- className: classNames("".concat(prefix, "input")),
66
+ className: classNames("".concat(prefix, "-input")),
67
67
  onChange: function onChange(e) {
68
68
  return setURL(e.target.value);
69
69
  }
70
70
  })), /*#__PURE__*/React.createElement("label", {
71
- className: classNames("".concat(prefix, "field"))
71
+ className: classNames("".concat(prefix, "-field"))
72
72
  }, t('description'), /*#__PURE__*/React.createElement("input", {
73
- className: classNames("".concat(prefix, "input")),
73
+ className: classNames("".concat(prefix, "-input")),
74
74
  onChange: function onChange(e) {
75
75
  return setDescription(e.target.value);
76
76
  }
77
77
  })), /*#__PURE__*/React.createElement("div", {
78
- className: classNames("".concat(prefix, "buttons"))
78
+ className: classNames("".concat(prefix, "-buttons"))
79
79
  }, /*#__PURE__*/React.createElement("button", {
80
- className: classNames("".concat(prefix, "button"), "".concat(prefix, "primary")),
80
+ className: classNames("".concat(prefix, "-button"), "".concat(prefix, "-primary")),
81
81
  type: "button",
82
82
  onClick: function onClick() {
83
83
  if (type === 'file' && file) {
@@ -95,7 +95,7 @@ var FileInput = function FileInput(_ref) {
95
95
  }
96
96
  }
97
97
  }, t('confirm')), /*#__PURE__*/React.createElement("button", {
98
- className: classNames("".concat(prefix, "button")),
98
+ className: classNames("".concat(prefix, "-button")),
99
99
  type: "button",
100
100
  onClick: onCancel
101
101
  }, t('cancel'))));
@@ -76,9 +76,9 @@ var Item = function Item(_ref) {
76
76
  }
77
77
  }, [popoverMount]);
78
78
  return /*#__PURE__*/React.createElement("div", {
79
- className: classNames("".concat(prefix, "item-container"))
79
+ className: classNames("".concat(prefix, "-item-container"))
80
80
  }, /*#__PURE__*/React.createElement("div", {
81
- className: classNames("".concat(prefix, "item"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "disabled"), disabled), _defineProperty(_classNames, "".concat(prefix, "active"), popoverMount), _classNames)),
81
+ className: classNames("".concat(prefix, "-item"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefix, "-active"), popoverMount), _classNames)),
82
82
  onClick: function onClick() {
83
83
  if (!disabled) {
84
84
  setTooltipOpen(false);
@@ -98,14 +98,14 @@ var Item = function Item(_ref) {
98
98
  timeout: 300
99
99
  }, /*#__PURE__*/React.createElement("div", {
100
100
  ref: tooltipRef,
101
- className: classNames("".concat(prefix, "tooltip"))
101
+ className: classNames("".concat(prefix, "-tooltip"))
102
102
  }, tooltip)), /*#__PURE__*/React.createElement(Fade, {
103
103
  nodeRef: popoverRef,
104
104
  appear: popoverMount,
105
105
  timeout: 300
106
106
  }, /*#__PURE__*/React.createElement("div", {
107
107
  ref: popoverRef,
108
- className: classNames("".concat(prefix, "popover"))
108
+ className: classNames("".concat(prefix, "-popover"))
109
109
  }, popover)));
110
110
  };
111
111
  var codeOptions = [{
@@ -140,42 +140,22 @@ var headingOptions = [{
140
140
  depth: 6,
141
141
  fontSize: '0.9em'
142
142
  }];
143
- var mermaidOptions = [
144
- // {
145
- // label: 'Flowchart',
146
- // value: `flowchart TD
147
- // A[Start] --> B{Is it?}
148
- // B -- Yes --> C[OK]
149
- // C --> D[Rethink]
150
- // D --> B
151
- // B -- No ----> E[End]`,
152
- // },
153
- {
143
+ var mermaidOptions = [{
144
+ label: 'Flowchart',
145
+ value: "flowchart TD\n A[Start] --> B{Is it?}\n B -- Yes --> C[OK]\n C --> D[Rethink]\n D --> B\n B -- No ----> E[End]"
146
+ }, {
154
147
  label: 'Sequence Diagram',
155
148
  value: "sequenceDiagram\n Alice->>John: Hello John, how are you?\n John-->>Alice: Great!\n Alice-)John: See you later!"
156
149
  }, {
157
150
  label: 'Class Diagram',
158
- value: "classDiagram\n class BankAccount\n BankAccount : +String owner\n BankAccount : +Bigdecimal balance\n BankAccount : +deposit(amount)\n BankAccount : +withdrawal(amount)"
159
- },
160
- // {
161
- // label: 'State Diagram',
162
- // value: `stateDiagram-v2
163
- // [*] --> Still
164
- // Still --> [*]
165
-
166
- // Still --> Moving
167
- // Moving --> Still
168
- // Moving --> Crash
169
- // Crash --> [*]`,
170
- // },
171
- // {
172
- // label: 'Entity Relationship Diagram',
173
- // value: `erDiagram
174
- // CUSTOMER ||--o{ ORDER : places
175
- // ORDER ||--|{ LINE-ITEM : contains
176
- // CUSTOMER }|..|{ DELIVERY-ADDRESS : uses`,
177
- // },
178
- {
151
+ value: "classDiagram\n Animal <|-- Duck\n Animal <|-- Fish\n Animal <|-- Zebra\n Animal : +int age\n Animal : +String gender\n Animal: +isMammal()\n Animal: +mate()\n class Duck{\n +String beakColor\n +swim()\n +quack()\n }\n class Fish{\n -int sizeInFeet\n -canEat()\n }\n class Zebra{\n +bool is_wild\n +run()\n }"
152
+ }, {
153
+ label: 'State Diagram',
154
+ value: "stateDiagram-v2\n [*] --> Still\n Still --> [*]\n\n Still --> Moving\n Moving --> Still\n Moving --> Crash\n Crash --> [*]"
155
+ }, {
156
+ label: 'Entity Relationship Diagram',
157
+ value: "erDiagram\n CUSTOMER ||--o{ ORDER : places\n ORDER ||--|{ LINE-ITEM : contains\n CUSTOMER }|..|{ DELIVERY-ADDRESS : uses"
158
+ }, {
179
159
  label: 'User Journey',
180
160
  value: "journey\n title My working day\n section Go to work\n Make tea: 5: Me\n Go upstairs: 3: Me\n Do work: 1: Me, Cat\n section Go home\n Go downstairs: 5: Me\n Sit down: 5: Me"
181
161
  }, {
@@ -187,25 +167,10 @@ var mermaidOptions = [
187
167
  }, {
188
168
  label: 'Quadrant Chart',
189
169
  value: "quadrantChart\n title Reach and engagement of campaigns\n x-axis Low Reach --> High Reach\n y-axis Low Engagement --> High Engagement\n quadrant-1 We should expand\n quadrant-2 Need to promote\n quadrant-3 Re-evaluate\n quadrant-4 May be improved\n Campaign A: [0.3, 0.6]\n Campaign B: [0.45, 0.23]\n Campaign C: [0.57, 0.69]\n Campaign D: [0.78, 0.34]\n Campaign E: [0.40, 0.34]\n Campaign F: [0.35, 0.78]"
190
- },
191
- // {
192
- // label: 'Requirement Diagram',
193
- // value: `requirementDiagram
194
-
195
- // requirement test_req {
196
- // id: 1
197
- // text: the test text.
198
- // risk: high
199
- // verifymethod: test
200
- // }
201
-
202
- // element test_entity {
203
- // type: simulation
204
- // }
205
-
206
- // test_entity - satisfies -> test_req`,
207
- // },
208
- {
170
+ }, {
171
+ label: 'Requirement Diagram',
172
+ value: "requirementDiagram\n\n requirement test_req {\n id: 1\n text: the test text.\n risk: high\n verifymethod: test\n }\n\n element test_entity {\n type: simulation\n }\n\n test_entity - satisfies -> test_req"
173
+ }, {
209
174
  label: 'Gitgraph (Git) Diagram',
210
175
  value: "gitGraph\n commit\n commit\n branch develop\n checkout develop\n commit\n commit\n checkout main\n merge develop\n commit\n commit"
211
176
  }, {
@@ -220,7 +185,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
220
185
  return {
221
186
  blockquote: {
222
187
  children: /*#__PURE__*/React.createElement(SvgBlockquote, {
223
- className: classNames("".concat(prefix, "icon"))
188
+ className: classNames("".concat(prefix, "-icon"))
224
189
  }),
225
190
  tooltip: t('blockquote'),
226
191
  onClick: function onClick(exec) {
@@ -231,7 +196,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
231
196
  },
232
197
  code: {
233
198
  children: /*#__PURE__*/React.createElement(SvgCode, {
234
- className: classNames("".concat(prefix, "icon"))
199
+ className: classNames("".concat(prefix, "-icon"))
235
200
  }),
236
201
  tooltip: t('code'),
237
202
  popoverRender: function popoverRender(exec, close) {
@@ -240,7 +205,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
240
205
  lang = _ref2.lang;
241
206
  return /*#__PURE__*/React.createElement("div", {
242
207
  key: label,
243
- className: classNames("".concat(prefix, "option")),
208
+ className: classNames("".concat(prefix, "-option")),
244
209
  onClick: function onClick() {
245
210
  exec(toggleHandler({
246
211
  type: 'code',
@@ -256,7 +221,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
256
221
  },
257
222
  delete: {
258
223
  children: /*#__PURE__*/React.createElement(SvgDelete, {
259
- className: classNames("".concat(prefix, "icon"))
224
+ className: classNames("".concat(prefix, "-icon"))
260
225
  }),
261
226
  tooltip: t('delete'),
262
227
  onClick: function onClick(exec) {
@@ -267,7 +232,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
267
232
  },
268
233
  emphasis: {
269
234
  children: /*#__PURE__*/React.createElement(SvgEmphasis, {
270
- className: classNames("".concat(prefix, "icon"))
235
+ className: classNames("".concat(prefix, "-icon"))
271
236
  }),
272
237
  tooltip: t('emphasis'),
273
238
  onClick: function onClick(exec) {
@@ -278,7 +243,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
278
243
  },
279
244
  heading: {
280
245
  children: /*#__PURE__*/React.createElement(SvgHeading, {
281
- className: classNames("".concat(prefix, "icon"))
246
+ className: classNames("".concat(prefix, "-icon"))
282
247
  }),
283
248
  tooltip: t('heading'),
284
249
  popoverRender: function popoverRender(exec, close) {
@@ -287,7 +252,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
287
252
  fontSize = _ref3.fontSize;
288
253
  return /*#__PURE__*/React.createElement("div", {
289
254
  key: depth,
290
- className: classNames("".concat(prefix, "option")),
255
+ className: classNames("".concat(prefix, "-option")),
291
256
  style: {
292
257
  fontSize: fontSize
293
258
  },
@@ -304,13 +269,13 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
304
269
  },
305
270
  help: {
306
271
  children: /*#__PURE__*/React.createElement(SvgHelp, {
307
- className: classNames("".concat(prefix, "icon"))
272
+ className: classNames("".concat(prefix, "-icon"))
308
273
  }),
309
274
  tooltip: t('help')
310
275
  },
311
276
  image: {
312
277
  children: /*#__PURE__*/React.createElement(SvgImage, {
313
- className: classNames("".concat(prefix, "icon"))
278
+ className: classNames("".concat(prefix, "-icon"))
314
279
  }),
315
280
  tooltip: t('image'),
316
281
  popoverRender: function popoverRender(exec, close) {
@@ -337,7 +302,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
337
302
  },
338
303
  inlineCode: {
339
304
  children: /*#__PURE__*/React.createElement(SvgInlineCode, {
340
- className: classNames("".concat(prefix, "icon"))
305
+ className: classNames("".concat(prefix, "-icon"))
341
306
  }),
342
307
  tooltip: t('inlineCode'),
343
308
  onClick: function onClick(exec) {
@@ -348,7 +313,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
348
313
  },
349
314
  inlineMath: {
350
315
  children: /*#__PURE__*/React.createElement(SvgInlineMath, {
351
- className: classNames("".concat(prefix, "icon"))
316
+ className: classNames("".concat(prefix, "-icon"))
352
317
  }),
353
318
  tooltip: t('inlineMath'),
354
319
  onClick: function onClick(exec) {
@@ -359,7 +324,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
359
324
  },
360
325
  link: {
361
326
  children: /*#__PURE__*/React.createElement(SvgLink, {
362
- className: classNames("".concat(prefix, "icon"))
327
+ className: classNames("".concat(prefix, "-icon"))
363
328
  }),
364
329
  tooltip: t('link'),
365
330
  popoverRender: function popoverRender(exec, close) {
@@ -385,7 +350,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
385
350
  },
386
351
  math: {
387
352
  children: /*#__PURE__*/React.createElement(SvgMath, {
388
- className: classNames("".concat(prefix, "icon"))
353
+ className: classNames("".concat(prefix, "-icon"))
389
354
  }),
390
355
  tooltip: t('math'),
391
356
  onClick: function onClick(exec) {
@@ -396,7 +361,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
396
361
  },
397
362
  mermaid: {
398
363
  children: /*#__PURE__*/React.createElement(SvgMermaid, {
399
- className: classNames("".concat(prefix, "icon"))
364
+ className: classNames("".concat(prefix, "-icon"))
400
365
  }),
401
366
  tooltip: t('mermaid'),
402
367
  popoverRender: function popoverRender(exec, close) {
@@ -405,7 +370,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
405
370
  value = _ref4.value;
406
371
  return /*#__PURE__*/React.createElement("div", {
407
372
  key: label,
408
- className: classNames("".concat(prefix, "option")),
373
+ className: classNames("".concat(prefix, "-option")),
409
374
  onClick: function onClick() {
410
375
  exec(toggleHandler({
411
376
  type: 'code',
@@ -421,7 +386,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
421
386
  },
422
387
  orderedList: {
423
388
  children: /*#__PURE__*/React.createElement(SvgOrderedList, {
424
- className: classNames("".concat(prefix, "icon"))
389
+ className: classNames("".concat(prefix, "-icon"))
425
390
  }),
426
391
  tooltip: t('orderedList'),
427
392
  onClick: function onClick(exec) {
@@ -434,7 +399,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
434
399
  var history = _ref5.history;
435
400
  return {
436
401
  children: /*#__PURE__*/React.createElement(SvgRedo, {
437
- className: classNames("".concat(prefix, "icon"))
402
+ className: classNames("".concat(prefix, "-icon"))
438
403
  }),
439
404
  disabled: history.index === history.states.length - 1,
440
405
  tooltip: t('redo'),
@@ -445,7 +410,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
445
410
  },
446
411
  strong: {
447
412
  children: /*#__PURE__*/React.createElement(SvgStrong, {
448
- className: classNames("".concat(prefix, "icon"))
413
+ className: classNames("".concat(prefix, "-icon"))
449
414
  }),
450
415
  tooltip: t('strong'),
451
416
  onClick: function onClick(exec) {
@@ -456,7 +421,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
456
421
  },
457
422
  table: {
458
423
  children: /*#__PURE__*/React.createElement(SvgTable, {
459
- className: classNames("".concat(prefix, "icon"))
424
+ className: classNames("".concat(prefix, "-icon"))
460
425
  }),
461
426
  tooltip: t('table'),
462
427
  onClick: function onClick(exec) {
@@ -467,7 +432,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
467
432
  },
468
433
  taskList: {
469
434
  children: /*#__PURE__*/React.createElement(SvgTaskList, {
470
- className: classNames("".concat(prefix, "icon"))
435
+ className: classNames("".concat(prefix, "-icon"))
471
436
  }),
472
437
  tooltip: t('taskList'),
473
438
  onClick: function onClick(exec) {
@@ -478,7 +443,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
478
443
  },
479
444
  thematicBreak: {
480
445
  children: /*#__PURE__*/React.createElement(SvgThematicBreak, {
481
- className: classNames("".concat(prefix, "icon"))
446
+ className: classNames("".concat(prefix, "-icon"))
482
447
  }),
483
448
  tooltip: t('thematicBreak'),
484
449
  onClick: function onClick(exec) {
@@ -489,7 +454,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
489
454
  },
490
455
  toHTML: {
491
456
  children: /*#__PURE__*/React.createElement(SvgToHTML, {
492
- className: classNames("".concat(prefix, "icon"))
457
+ className: classNames("".concat(prefix, "-icon"))
493
458
  }),
494
459
  tooltip: t('toHTML'),
495
460
  onClick: function onClick(exec) {
@@ -510,7 +475,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
510
475
  },
511
476
  toMarkdown: {
512
477
  children: /*#__PURE__*/React.createElement(SvgToMarkdown, {
513
- className: classNames("".concat(prefix, "icon"))
478
+ className: classNames("".concat(prefix, "-icon"))
514
479
  }),
515
480
  tooltip: t('toMarkdown'),
516
481
  onClick: function onClick(exec) {
@@ -533,7 +498,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
533
498
  var history = _ref8.history;
534
499
  return {
535
500
  children: /*#__PURE__*/React.createElement(SvgUndo, {
536
- className: classNames("".concat(prefix, "icon"))
501
+ className: classNames("".concat(prefix, "-icon"))
537
502
  }),
538
503
  disabled: !history.index,
539
504
  tooltip: t('undo'),
@@ -544,7 +509,7 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap(locale,
544
509
  },
545
510
  unorderedList: {
546
511
  children: /*#__PURE__*/React.createElement(SvgUnorderedList, {
547
- className: classNames("".concat(prefix, "icon"))
512
+ className: classNames("".concat(prefix, "-icon"))
548
513
  }),
549
514
  tooltip: t('unorderedList'),
550
515
  onClick: function onClick(exec) {
@@ -573,13 +538,13 @@ var Toolbar = function Toolbar(_ref9) {
573
538
  });
574
539
  return /*#__PURE__*/React.createElement("div", {
575
540
  ref: toolbarRef,
576
- className: classNames("".concat(prefix, "toolbar"), className),
541
+ className: classNames("".concat(prefix, "-toolbar"), className),
577
542
  style: style
578
543
  }, items.map(function (group, index) {
579
544
  return /*#__PURE__*/React.createElement(React.Fragment, {
580
545
  key: index
581
546
  }, !!index && /*#__PURE__*/React.createElement("div", {
582
- className: classNames("".concat(prefix, "divider"))
547
+ className: classNames("".concat(prefix, "-divider"))
583
548
  }), group.map(function (item, index) {
584
549
  var toolbarItem = typeof item === 'string' ? itemMap[item] : item;
585
550
  if (!toolbarItem) {
package/dist/index.d.ts CHANGED
@@ -9,3 +9,5 @@ export { default as XStarMdEditor, useMdEditorRef } from './x-star-md-editor';
9
9
  export type { XStarMdEditorHandle, XStarMdEditorPlugin, XStarMdEditorProps, } from './x-star-md-editor';
10
10
  export { default as XStarMdViewer, useMdViewerRef } from './x-star-md-viewer';
11
11
  export type { XStarMdViewerHandle, XStarMdViewerPlugin, XStarMdViewerProps, } from './x-star-md-viewer';
12
+ export { default as XStarSlideViewer, useSlideViewerRef, } from './x-star-slide-viewer';
13
+ export type { XStarSlideViewerHandle, XStarSlideViewerPlugin, XStarSlideViewerProps, } from './x-star-slide-viewer';
package/dist/index.js CHANGED
@@ -3,4 +3,5 @@ export { batchHandler, insertHandler, mutateHandler, redoHandler, selectHandler,
3
3
  export { toHTML, toMarkdown, toText } from "./utils/markdown";
4
4
  export { default as XStarEditor, useEditorRef } from "./x-star-editor";
5
5
  export { default as XStarMdEditor, useMdEditorRef } from "./x-star-md-editor";
6
- export { default as XStarMdViewer, useMdViewerRef } from "./x-star-md-viewer";
6
+ export { default as XStarMdViewer, useMdViewerRef } from "./x-star-md-viewer";
7
+ export { default as XStarSlideViewer, useSlideViewerRef } from "./x-star-slide-viewer";
Binary file