@kritzel/editor 0.4.32 → 0.4.34

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 (111) hide show
  1. package/dist/cjs/{index-q_Tg9KUw.js → index-BAdxtEc7.js} +15 -9
  2. package/dist/cjs/kritzel-active-users_46.cjs.entry.js +49 -45
  3. package/dist/cjs/kritzel-brush-style.cjs.entry.js +1 -1
  4. package/dist/cjs/kritzel-editor.cjs.js +2 -2
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/collection/collection-manifest.json +1 -1
  7. package/dist/components/index.js +1 -1
  8. package/dist/components/kritzel-active-users.js +1 -1
  9. package/dist/components/kritzel-avatar.js +1 -1
  10. package/dist/components/kritzel-awareness-cursors.js +1 -1
  11. package/dist/components/kritzel-back-to-content.js +1 -1
  12. package/dist/components/kritzel-brush-style.js +3 -3
  13. package/dist/components/kritzel-button.js +1 -1
  14. package/dist/components/kritzel-color-palette.js +1 -1
  15. package/dist/components/kritzel-color.js +1 -1
  16. package/dist/components/kritzel-context-menu.js +1 -1
  17. package/dist/components/kritzel-current-user-dialog.js +1 -1
  18. package/dist/components/kritzel-current-user.js +1 -1
  19. package/dist/components/kritzel-cursor-trail.js +1 -1
  20. package/dist/components/kritzel-dialog.js +1 -1
  21. package/dist/components/kritzel-dropdown.js +1 -1
  22. package/dist/components/kritzel-editor.js +46 -46
  23. package/dist/components/kritzel-engine.js +1 -1
  24. package/dist/components/kritzel-export.js +1 -1
  25. package/dist/components/kritzel-font-family.js +1 -1
  26. package/dist/components/kritzel-font-size.js +1 -1
  27. package/dist/components/kritzel-font.js +1 -1
  28. package/dist/components/kritzel-icon.js +1 -1
  29. package/dist/components/kritzel-input.js +1 -1
  30. package/dist/components/kritzel-line-endings.js +1 -1
  31. package/dist/components/kritzel-loading-overlay.js +1 -1
  32. package/dist/components/kritzel-login-dialog.js +1 -1
  33. package/dist/components/kritzel-master-detail.js +1 -1
  34. package/dist/components/kritzel-menu-item.js +1 -1
  35. package/dist/components/kritzel-menu.js +1 -1
  36. package/dist/components/kritzel-more-menu.js +1 -1
  37. package/dist/components/kritzel-notification-card.js +1 -1
  38. package/dist/components/kritzel-numeric-input.js +1 -1
  39. package/dist/components/kritzel-opacity-slider.js +1 -1
  40. package/dist/components/kritzel-pill-tabs.js +1 -1
  41. package/dist/components/kritzel-portal.js +1 -1
  42. package/dist/components/kritzel-settings.js +1 -1
  43. package/dist/components/kritzel-shape-fill.js +1 -1
  44. package/dist/components/kritzel-share-dialog.js +1 -1
  45. package/dist/components/kritzel-slide-toggle.js +1 -1
  46. package/dist/components/kritzel-split-button.js +1 -1
  47. package/dist/components/kritzel-stroke-size.js +1 -1
  48. package/dist/components/kritzel-tool-config.js +1 -1
  49. package/dist/components/kritzel-toolbar.js +1 -1
  50. package/dist/components/kritzel-tooltip.js +1 -1
  51. package/dist/components/kritzel-utility-panel.js +1 -1
  52. package/dist/components/kritzel-watermark.js +1 -1
  53. package/dist/components/kritzel-workspace-manager.js +1 -1
  54. package/dist/components/kritzel-zoom-panel.js +1 -1
  55. package/dist/components/{p-p2H4pOpF.js → p-2DAZSvN6.js} +4 -4
  56. package/dist/components/{p-C5fgp5y4.js → p-2gylYpXk.js} +6 -6
  57. package/dist/components/{p-Dwg30A00.js → p-B-Divd0Q.js} +3 -3
  58. package/dist/components/{p-Fzi_dVqn.js → p-B-U13Ew1.js} +1 -1
  59. package/dist/components/{p-BbXTqI4t.js → p-B1rmcPZr.js} +5 -5
  60. package/dist/components/{p-5tEZmBli.js → p-B2-SxV8E.js} +2 -2
  61. package/dist/components/{p-DSi2HiZW.js → p-B6Z_VKKH.js} +1 -1
  62. package/dist/components/{p-CPfTzGnn.js → p-B8tHdknP.js} +2 -2
  63. package/dist/components/{p-C01XOYLF.js → p-BDsuJNT_.js} +1 -1
  64. package/dist/components/{p-D53Q7EDf.js → p-BMi-i7sC.js} +1 -1
  65. package/dist/components/{p-CdwD9F0m.js → p-BZ0ReYAA.js} +1 -1
  66. package/dist/components/{p-CiSc7ASZ.js → p-BeCy6w6M.js} +53 -49
  67. package/dist/components/{p-COaLQ4Z-.js → p-Bipc1XvF.js} +1 -1
  68. package/dist/components/{p-Qk844WR4.js → p-BmFJelgk.js} +1 -1
  69. package/dist/components/{p-pWWRmEe8.js → p-BpvSYxxN.js} +4 -4
  70. package/dist/components/{p-g6VqjbL_.js → p-C0ns8IPO.js} +1 -1
  71. package/dist/components/{p-C5Hw8Wv3.js → p-C1_r9nJU.js} +2 -2
  72. package/dist/components/{p-CgCVe3_P.js → p-C2ySiAXO.js} +2 -2
  73. package/dist/components/{p-DAr69onU.js → p-C3KlONnT.js} +1 -1
  74. package/dist/components/{p-CIm1iROq.js → p-C68YXjuL.js} +1 -1
  75. package/dist/components/{p-DoNH4OhF.js → p-CCuNN278.js} +1 -1
  76. package/dist/components/{p-piYX2tVg.js → p-CNH7N3Aq.js} +3 -3
  77. package/dist/components/{p-D0lYLWkj.js → p-CO1cJlfg.js} +1 -1
  78. package/dist/components/{p-DZ0S2l6Z.js → p-CqHKGLYE.js} +1 -1
  79. package/dist/components/{p-CY3fGZlt.js → p-CrEWqua9.js} +4 -4
  80. package/dist/components/{p-EpqroVCx.js → p-Cv2nqOL8.js} +7 -7
  81. package/dist/components/{p-D5OzFEtr.js → p-D-1ixLxq.js} +12 -12
  82. package/dist/components/{p-CHelQjUo.js → p-DF8p-DxR.js} +2 -2
  83. package/dist/components/{p-D1sxfQVN.js → p-DQ3VKzAS.js} +2 -2
  84. package/dist/components/{p-DX4FbgMi.js → p-DRe-rTlX.js} +15 -15
  85. package/dist/components/{p-BhVCoiyK.js → p-DSyb29RF.js} +1 -1
  86. package/dist/components/{p-Dtm4CEHf.js → p-DYDruZIw.js} +2 -2
  87. package/dist/components/{p-xPpMDzPX.js → p-D_JxJxQ6.js} +5 -5
  88. package/dist/components/{p-Ddk64LEI.js → p-Dko_6jIh.js} +1 -1
  89. package/dist/components/{p-COGlcEiV.js → p-DnHvqeyr.js} +2 -2
  90. package/dist/components/{p-DZ4rAt6k.js → p-DqMikMrS.js} +2 -2
  91. package/dist/components/{p-CViWMGoM.js → p-DsnHq8en.js} +1 -1
  92. package/dist/components/{p-DxHrSwYy.js → p-DxFNLy9X.js} +2 -2
  93. package/dist/components/{p-l1BZ4pYI.js → p-Dzr6X2aj.js} +4 -3
  94. package/dist/components/{p-BK5rE1rd.js → p-HbHo7awi.js} +2 -2
  95. package/dist/components/{p-DYNFqwX4.js → p-Qbk7xE91.js} +2 -2
  96. package/dist/components/{p-DE6S-FN0.js → p-VYGV0cr3.js} +1 -1
  97. package/dist/components/{p-hKGrOeEa.js → p-YGBl60lb.js} +1 -1
  98. package/dist/components/{p-BuwiCK1I.js → p-clFfXKKn.js} +6 -6
  99. package/dist/components/{p-BowLPDbq.js → p-dUcCDLDF.js} +1 -1
  100. package/dist/components/{p-B6U2JNDq.js → p-kXnNX65j.js} +2 -2
  101. package/dist/esm/{index-2x7dfLlM.js → index-YR-6hzAW.js} +15 -9
  102. package/dist/esm/kritzel-active-users_46.entry.js +49 -45
  103. package/dist/esm/kritzel-brush-style.entry.js +1 -1
  104. package/dist/esm/kritzel-editor.js +3 -3
  105. package/dist/esm/loader.js +2 -2
  106. package/dist/kritzel-editor/kritzel-editor.esm.js +4 -4
  107. package/dist/kritzel-editor/{p-285cdc18.entry.js → p-3a0f60b0.entry.js} +1 -1
  108. package/dist/kritzel-editor/{p-2x7dfLlM.js → p-YR-6hzAW.js} +15 -9
  109. package/dist/kritzel-editor/{p-d5439a4f.entry.js → p-adc45d46.entry.js} +49 -45
  110. package/dist/types/stencil-public-runtime.d.ts +61 -55
  111. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host, c as createEvent, g as getElement, f as forceUpdate } from './p-2x7dfLlM.js';
1
+ import { r as registerInstance, h, H as Host, c as createEvent, g as getElement, f as forceUpdate } from './p-YR-6hzAW.js';
2
2
  import { KritzelColorHelper as KritzelColorHelper$1, KritzelHTMLHelper as KritzelHTMLHelper$1, ABSOLUTE_SCALE_MAX as ABSOLUTE_SCALE_MAX$1, ABSOLUTE_SCALE_MIN as ABSOLUTE_SCALE_MIN$1, KritzelSelectionTool as KritzelSelectionTool$1, DEFAULT_BRUSH_CONFIG, KritzelBrushTool as KritzelBrushTool$1, KritzelEraserTool as KritzelEraserTool$1, DEFAULT_LINE_TOOL_CONFIG, KritzelLineTool as KritzelLineTool$1, ShapeType as ShapeType$1, DEFAULT_SHAPE_CONFIG, KritzelShapeTool as KritzelShapeTool$1, DEFAULT_TEXT_CONFIG, KritzelTextTool as KritzelTextTool$1, KritzelImageTool as KritzelImageTool$1, KritzelAlignment as KritzelAlignment$1, hasRemoteSyncProvider, DEFAULT_SYNC_CONFIG as DEFAULT_SYNC_CONFIG$1, DEFAULT_ASSET_STORAGE_CONFIG, ObjectHelper as ObjectHelper$1, resolveTextToolAvailableFonts as resolveTextToolAvailableFonts$1, ThemeHelper as ThemeHelper$1, darkTheme as darkTheme$1, lightTheme as lightTheme$1, KritzelSelectionGroup as KritzelSelectionGroup$1, KritzelSelectionBox as KritzelSelectionBox$1, KritzelIconRegistry as KritzelIconRegistry$1, KritzelFontRegistry as KritzelFontRegistry$1, KritzelKeyboardHelper as KritzelKeyboardHelper$1, KritzelDevicesHelper as KritzelDevicesHelper$1, KRITZEL_VERSION, CURRENT_APP_STATE_SCHEMA_VERSION as CURRENT_APP_STATE_SCHEMA_VERSION$1, CURRENT_WORKSPACE_SCHEMA_VERSION as CURRENT_WORKSPACE_SCHEMA_VERSION$1, KritzelToolConfigHelper, KritzelWorkspace as KritzelWorkspace$1 } from '@kritzel/engine';
3
3
 
4
4
  const kritzelActiveUsersCss = () => `:host{display:inline-flex;align-items:center}.avatars{display:flex;align-items:center}.avatar-wrapper{position:relative;transition:margin-left 200ms ease}.avatar-wrapper kritzel-avatar{border-radius:50%;box-shadow:0 0 0 2px var(--kritzel-active-users-avatar-border-color, #ffffff)}.avatars:hover .avatar-wrapper{margin-left:-6px !important}.avatar-tooltip{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:12px;padding:4px 8px;background-color:var(--kritzel-active-users-tooltip-background, #333333);color:var(--kritzel-active-users-tooltip-color, #ffffff);font-family:var(--kritzel-active-users-font-family, var(--kritzel-global-font-family, sans-serif));font-size:12px;font-weight:500;border-radius:4px;white-space:nowrap;width:max-content;pointer-events:none;opacity:0;transition:opacity 150ms ease}.avatar-wrapper:hover .avatar-tooltip,.overflow-count:hover .avatar-tooltip{opacity:1}.overflow-count{position:relative;margin-left:8px;font-family:var(--kritzel-active-users-font-family, var(--kritzel-global-font-family, sans-serif));font-size:var(--kritzel-active-users-overflow-font-size, 14px);font-weight:500;color:var(--kritzel-active-users-overflow-color, #666666);white-space:nowrap;cursor:default}.overflow-count .avatar-tooltip{white-space:nowrap;text-align:left;margin-top:20px}`;
@@ -28377,7 +28377,6 @@ class Mark {
28377
28377
  if (!type)
28378
28378
  throw new RangeError(`There is no mark type ${json.type} in this schema`);
28379
28379
  let mark = type.create(json.attrs);
28380
- type.checkAttrs(mark.attrs);
28381
28380
  return mark;
28382
28381
  }
28383
28382
  /**
@@ -29357,11 +29356,11 @@ class Node {
29357
29356
  */
29358
29357
  check() {
29359
29358
  this.type.checkContent(this.content);
29360
- this.type.checkAttrs(this.attrs);
29359
+ checkAttrs(this.type.attrs, this.attrs, "node", this.type.name);
29361
29360
  let copy = Mark.none;
29362
29361
  for (let i = 0; i < this.marks.length; i++) {
29363
29362
  let mark = this.marks[i];
29364
- mark.type.checkAttrs(mark.attrs);
29363
+ checkAttrs(mark.type.attrs, mark.attrs, "mark", mark.type.name);
29365
29364
  copy = mark.addToSet(copy);
29366
29365
  }
29367
29366
  if (!Mark.sameSet(copy, this.marks))
@@ -29402,7 +29401,6 @@ class Node {
29402
29401
  }
29403
29402
  let content = Fragment.fromJSON(schema, json.content);
29404
29403
  let node = schema.nodeType(json.type).create(json.attrs, content, marks);
29405
- node.type.checkAttrs(node.attrs);
29406
29404
  return node;
29407
29405
  }
29408
29406
  }
@@ -29452,6 +29450,15 @@ function wrapMarks(marks, str) {
29452
29450
  str = marks[i].type.name + "(" + str + ")";
29453
29451
  return str;
29454
29452
  }
29453
+ function checkAttrs(attrs, values, type, name) {
29454
+ for (let attr in values)
29455
+ if (!(attr in attrs))
29456
+ throw new RangeError(`Unsupported attribute ${attr} for ${type} of type ${name}`);
29457
+ for (let attr in attrs) {
29458
+ if (attrs[attr].validate)
29459
+ attrs[attr].validate(values[attr]);
29460
+ }
29461
+ }
29455
29462
 
29456
29463
  /**
29457
29464
  Instances of this class represent a match state of a node type's
@@ -29906,27 +29913,21 @@ function defaultAttrs(attrs) {
29906
29913
  function computeAttrs(attrs, value) {
29907
29914
  let built = Object.create(null);
29908
29915
  for (let name in attrs) {
29916
+ let attr = attrs[name];
29909
29917
  let given = value && value[name];
29910
29918
  if (given === undefined) {
29911
- let attr = attrs[name];
29912
29919
  if (attr.hasDefault)
29913
29920
  given = attr.default;
29914
29921
  else
29915
29922
  throw new RangeError("No value supplied for attribute " + name);
29916
29923
  }
29924
+ else if (attr.validate) {
29925
+ attr.validate(given);
29926
+ }
29917
29927
  built[name] = given;
29918
29928
  }
29919
29929
  return built;
29920
29930
  }
29921
- function checkAttrs(attrs, values, type, name) {
29922
- for (let attr in values)
29923
- if (!(attr in attrs))
29924
- throw new RangeError(`Unsupported attribute ${attr} for ${type} of type ${name}`);
29925
- for (let attr in attrs) {
29926
- if (attrs[attr].validate)
29927
- attrs[attr].validate(values[attr]);
29928
- }
29929
- }
29930
29931
  function initAttrs(typeName, attrs) {
29931
29932
  let result = Object.create(null);
29932
29933
  if (attrs)
@@ -30098,11 +30099,9 @@ let NodeType$1 = class NodeType {
30098
30099
  throw new RangeError(`Invalid content for node ${this.name}: ${content.toString().slice(0, 50)}`);
30099
30100
  }
30100
30101
  /**
30101
- @internal
30102
+ @internal no longer useful, but called by old prosemirror-view versions
30102
30103
  */
30103
- checkAttrs(attrs) {
30104
- checkAttrs(this.attrs, attrs, "node", this.name);
30105
- }
30104
+ checkAttrs(attrs) { }
30106
30105
  /**
30107
30106
  Check whether the given mark type is allowed in this node.
30108
30107
  */
@@ -30249,12 +30248,6 @@ class MarkType {
30249
30248
  return set[i];
30250
30249
  }
30251
30250
  /**
30252
- @internal
30253
- */
30254
- checkAttrs(attrs) {
30255
- checkAttrs(this.attrs, attrs, "mark", this.name);
30256
- }
30257
- /**
30258
30251
  Queries whether a given mark type is
30259
30252
  [excluded](https://prosemirror.net/docs/ref/#model.MarkSpec.excludes) by this one.
30260
30253
  */
@@ -36946,7 +36939,8 @@ function nodeLen(node) {
36946
36939
  }
36947
36940
  function isIgnorable(dom, dir) {
36948
36941
  let desc = dom.pmViewDesc;
36949
- return desc && desc.size == 0 && (dir < 0 || dom.nextSibling || dom.nodeName != "BR");
36942
+ return desc ? desc.size == 0 && (dir < 0 || dom.nextSibling || dom.nodeName != "BR")
36943
+ : dom.nodeType == 1 && dom.contentEditable == "false";
36950
36944
  }
36951
36945
  function skipIgnoredNodes(view, dir) {
36952
36946
  return dir < 0 ? skipIgnoredNodesBefore(view) : skipIgnoredNodesAfter(view);
@@ -37535,12 +37529,11 @@ function addContext(slice, context) {
37535
37529
  if (!type || type.hasRequiredAttrs())
37536
37530
  break;
37537
37531
  try {
37538
- type.checkAttrs(array[i + 1]);
37532
+ content = Fragment.from(type.create(array[i + 1], content));
37539
37533
  }
37540
37534
  catch (e) {
37541
37535
  break;
37542
37536
  }
37543
- content = Fragment.from(type.create(array[i + 1], content));
37544
37537
  openStart++;
37545
37538
  openEnd++;
37546
37539
  }
@@ -38020,7 +38013,7 @@ editHandlers.compositionstart = editHandlers.compositionupdate = view => {
38020
38013
  if (!view.composing) {
38021
38014
  view.domObserver.flush();
38022
38015
  let { state } = view, $pos = state.selection.$to;
38023
- if (state.selection instanceof TextSelection &&
38016
+ if (state.selection instanceof TextSelection && state.selection.empty &&
38024
38017
  (state.storedMarks ||
38025
38018
  (!$pos.textOffset && $pos.parentOffset && $pos.nodeBefore.marks.some(m => m.type.spec.inclusive === false)) ||
38026
38019
  chrome && windows$1 && selectionBeforeUneditable(view))) { // Issue #1500
@@ -39657,9 +39650,7 @@ function readDOMChange(view, from, to, typeOver, addedNodes) {
39657
39650
  // as being an iOS enter press), just dispatch an Enter key instead.
39658
39651
  if (((ios && view.input.lastIOSEnter > Date.now() - 225 &&
39659
39652
  (!inlineChange || addedNodes.some(n => n.nodeName == "DIV" || n.nodeName == "P"))) ||
39660
- (!inlineChange && $from.pos < parse.doc.content.size &&
39661
- (!$from.sameParent($to) || !$from.parent.inlineContent) &&
39662
- $from.pos < $to.pos && !/\S/.test(parse.doc.textBetween($from.pos, $to.pos, "", "")))) &&
39653
+ (!inlineChange && looksLikeEnter(parse.doc, $from.pos, $to.pos))) &&
39663
39654
  view.someProp("handleKeyDown", f => f(view, keyEvent(13, "Enter")))) {
39664
39655
  view.input.lastIOSEnter = 0;
39665
39656
  return;
@@ -39810,6 +39801,16 @@ function looksLikeBackspace(old, start, end, $newStart, $newEnd) {
39810
39801
  // The fragments after the join point must match
39811
39802
  return $newStart.parent.content.cut($newStart.parentOffset).eq($next.parent.content);
39812
39803
  }
39804
+ function looksLikeEnter(content, from, to) {
39805
+ let newTextlines = 0, newLeaves = 0;
39806
+ content.nodesBetween(from, to, (node, pos) => {
39807
+ if (node.isTextblock && pos >= from && pos < to)
39808
+ newTextlines++;
39809
+ else if (node.isText ? /\S/.test(node.text.slice(Math.max(0, from - pos), Math.min(node.nodeSize, to - pos))) : node.isLeaf)
39810
+ newLeaves++;
39811
+ });
39812
+ return newLeaves == 0 && newTextlines == 1;
39813
+ }
39813
39814
  function skipClosingAndOpening($pos, fromEnd, mayOpen) {
39814
39815
  let depth = $pos.depth, end = fromEnd ? $pos.end() : $pos.pos;
39815
39816
  while (depth > 0 && (fromEnd || $pos.indexAfter(depth) == $pos.node(depth).childCount)) {
@@ -52212,20 +52213,22 @@ const cleanupTransactions = (transactionCleanups, i) => {
52212
52213
  // We need to think about the possibility that the user transforms the
52213
52214
  // Y.Doc in the event.
52214
52215
  if (type._dEH.l.length > 0 && (type._item === null || !type._item.deleted)) {
52215
- events = events
52216
- .filter(event =>
52217
- event.target._item === null || !event.target._item.deleted
52218
- );
52219
- events
52220
- .forEach(event => {
52221
- event.currentTarget = type;
52222
- // path is relative to the current target
52223
- event._path = null;
52224
- });
52225
- // sort events by path length so that top-level events are fired first.
52226
- events
52227
- .sort((event1, event2) => event1.path.length - event2.path.length);
52228
52216
  fs.push(() => {
52217
+ // The same event instance is shared by all parent types. Hence, we must set
52218
+ // currentTarget right before calling the handlers (see #768).
52219
+ events = events
52220
+ .filter(event =>
52221
+ event.target._item === null || !event.target._item.deleted
52222
+ );
52223
+ events
52224
+ .forEach(event => {
52225
+ event.currentTarget = type;
52226
+ // path is relative to the current target
52227
+ event._path = null;
52228
+ });
52229
+ // sort events by path length so that top-level events are fired first.
52230
+ events
52231
+ .sort((event1, event2) => event1.path.length - event2.path.length);
52229
52232
  // We don't need to check for events.length
52230
52233
  // because we know it has at least one element
52231
52234
  callEventHandlerListeners(type._dEH, events, transaction);
@@ -52239,6 +52242,7 @@ const cleanupTransactions = (transactionCleanups, i) => {
52239
52242
  }
52240
52243
  });
52241
52244
  });
52245
+ // note the nested fs calls, must not modify fs at this point
52242
52246
  callAll(fs, []);
52243
52247
  } finally {
52244
52248
  // Replace deleted items with ItemDeleted / GC.
@@ -752,7 +752,7 @@ declare namespace LocalJSX {
752
752
  }
753
753
  export { LocalJSX as JSX };
754
754
  export declare namespace JSXBase {
755
- interface IntrinsicElements {
755
+ export interface IntrinsicElements {
756
756
  slot: JSXBase.SlotAttributes<HTMLSlotElement>;
757
757
  a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
758
758
  abbr: JSXBase.HTMLAttributes;
@@ -923,12 +923,12 @@ export declare namespace JSXBase {
923
923
  use: JSXBase.SVGAttributes;
924
924
  view: JSXBase.SVGAttributes;
925
925
  }
926
- interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
926
+ export interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
927
927
  name?: string;
928
928
  slot?: string;
929
929
  onSlotchange?: (event: Event) => void;
930
930
  }
931
- interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
931
+ export interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
932
932
  download?: any;
933
933
  href?: string;
934
934
  hrefLang?: string;
@@ -939,9 +939,9 @@ export declare namespace JSXBase {
939
939
  target?: string;
940
940
  referrerPolicy?: ReferrerPolicy;
941
941
  }
942
- interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {
942
+ export interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {
943
943
  }
944
- interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
944
+ export interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
945
945
  alt?: string;
946
946
  coords?: string;
947
947
  download?: any;
@@ -953,14 +953,14 @@ export declare namespace JSXBase {
953
953
  shape?: string;
954
954
  target?: string;
955
955
  }
956
- interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
956
+ export interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
957
957
  href?: string;
958
958
  target?: string;
959
959
  }
960
- interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
960
+ export interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
961
961
  cite?: string;
962
962
  }
963
- interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
963
+ export interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
964
964
  disabled?: boolean;
965
965
  form?: string;
966
966
  formAction?: string;
@@ -983,45 +983,45 @@ export declare namespace JSXBase {
983
983
  commandFor?: string;
984
984
  commandfor?: string;
985
985
  }
986
- interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
986
+ export interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
987
987
  height?: number | string;
988
988
  width?: number | string;
989
989
  }
990
- interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
990
+ export interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
991
991
  span?: number;
992
992
  }
993
- interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
993
+ export interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
994
994
  span?: number;
995
995
  }
996
- interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
996
+ export interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
997
997
  open?: boolean;
998
998
  name?: string;
999
999
  onToggle?: (event: ToggleEvent) => void;
1000
1000
  }
1001
- interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
1001
+ export interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
1002
1002
  cite?: string;
1003
1003
  dateTime?: string;
1004
1004
  datetime?: string;
1005
1005
  }
1006
- interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
1006
+ export interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
1007
1007
  onCancel?: (event: Event) => void;
1008
1008
  onClose?: (event: Event) => void;
1009
1009
  open?: boolean;
1010
1010
  returnValue?: string;
1011
1011
  closedby?: 'any' | 'closerequest' | 'none';
1012
1012
  }
1013
- interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
1013
+ export interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
1014
1014
  height?: number | string;
1015
1015
  src?: string;
1016
1016
  type?: string;
1017
1017
  width?: number | string;
1018
1018
  }
1019
- interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
1019
+ export interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
1020
1020
  disabled?: boolean;
1021
1021
  form?: string;
1022
1022
  name?: string;
1023
1023
  }
1024
- interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
1024
+ export interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
1025
1025
  acceptCharset?: string;
1026
1026
  acceptcharset?: string;
1027
1027
  action?: string;
@@ -1035,10 +1035,10 @@ export declare namespace JSXBase {
1035
1035
  novalidate?: boolean | string;
1036
1036
  target?: string;
1037
1037
  }
1038
- interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
1038
+ export interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
1039
1039
  manifest?: string;
1040
1040
  }
1041
- interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
1041
+ export interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
1042
1042
  allow?: string;
1043
1043
  allowFullScreen?: boolean;
1044
1044
  allowfullScreen?: string | boolean;
@@ -1065,7 +1065,7 @@ export declare namespace JSXBase {
1065
1065
  srcdoc?: string;
1066
1066
  width?: number | string;
1067
1067
  }
1068
- interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
1068
+ export interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
1069
1069
  alt?: string;
1070
1070
  crossOrigin?: string;
1071
1071
  crossorigin?: string;
@@ -1084,12 +1084,12 @@ export declare namespace JSXBase {
1084
1084
  usemap?: string;
1085
1085
  width?: number | string;
1086
1086
  }
1087
- interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
1087
+ export interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
1088
1088
  cite?: string;
1089
1089
  dateTime?: string;
1090
1090
  datetime?: string;
1091
1091
  }
1092
- interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
1092
+ export interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
1093
1093
  accept?: string;
1094
1094
  allowdirs?: boolean;
1095
1095
  alt?: string;
@@ -1152,7 +1152,7 @@ export declare namespace JSXBase {
1152
1152
  popoverTargetElement?: Element | null;
1153
1153
  popoverTarget?: string;
1154
1154
  }
1155
- interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
1155
+ export interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
1156
1156
  challenge?: string;
1157
1157
  disabled?: boolean;
1158
1158
  form?: string;
@@ -1162,14 +1162,14 @@ export declare namespace JSXBase {
1162
1162
  keyparams?: string;
1163
1163
  name?: string;
1164
1164
  }
1165
- interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
1165
+ export interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
1166
1166
  form?: string;
1167
1167
  htmlFor?: string;
1168
1168
  }
1169
- interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
1169
+ export interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
1170
1170
  value?: string | string[] | number;
1171
1171
  }
1172
- interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
1172
+ export interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
1173
1173
  as?: string;
1174
1174
  fetchPriority?: 'high' | 'low' | 'auto';
1175
1175
  fetchpriority?: 'high' | 'low' | 'auto';
@@ -1183,13 +1183,13 @@ export declare namespace JSXBase {
1183
1183
  sizes?: string;
1184
1184
  type?: string;
1185
1185
  }
1186
- interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
1186
+ export interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
1187
1187
  name?: string;
1188
1188
  }
1189
- interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
1189
+ export interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
1190
1190
  type?: string;
1191
1191
  }
1192
- interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
1192
+ export interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
1193
1193
  autoPlay?: boolean;
1194
1194
  autoplay?: boolean | string;
1195
1195
  controls?: boolean;
@@ -1229,7 +1229,7 @@ export declare namespace JSXBase {
1229
1229
  onVolumeChange?: (event: Event) => void;
1230
1230
  onWaiting?: (event: Event) => void;
1231
1231
  }
1232
- interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
1232
+ export interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
1233
1233
  charSet?: string;
1234
1234
  charset?: string;
1235
1235
  content?: string;
@@ -1237,7 +1237,7 @@ export declare namespace JSXBase {
1237
1237
  httpequiv?: string;
1238
1238
  name?: string;
1239
1239
  }
1240
- interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
1240
+ export interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
1241
1241
  form?: string;
1242
1242
  high?: number;
1243
1243
  low?: number;
@@ -1246,10 +1246,10 @@ export declare namespace JSXBase {
1246
1246
  optimum?: number;
1247
1247
  value?: string | string[] | number;
1248
1248
  }
1249
- interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
1249
+ export interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
1250
1250
  cite?: string;
1251
1251
  }
1252
- interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
1252
+ export interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
1253
1253
  classID?: string;
1254
1254
  classid?: string;
1255
1255
  data?: string;
@@ -1262,34 +1262,34 @@ export declare namespace JSXBase {
1262
1262
  width?: number | string;
1263
1263
  wmode?: string;
1264
1264
  }
1265
- interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
1265
+ export interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
1266
1266
  reversed?: boolean;
1267
1267
  start?: number;
1268
1268
  }
1269
- interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
1269
+ export interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
1270
1270
  disabled?: boolean;
1271
1271
  label?: string;
1272
1272
  }
1273
- interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
1273
+ export interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
1274
1274
  disabled?: boolean;
1275
1275
  label?: string;
1276
1276
  selected?: boolean;
1277
1277
  value?: string | string[] | number;
1278
1278
  }
1279
- interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
1279
+ export interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
1280
1280
  form?: string;
1281
1281
  htmlFor?: string;
1282
1282
  name?: string;
1283
1283
  }
1284
- interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
1284
+ export interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
1285
1285
  name?: string;
1286
1286
  value?: string | string[] | number;
1287
1287
  }
1288
- interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
1288
+ export interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
1289
1289
  max?: number | string;
1290
1290
  value?: string | string[] | number;
1291
1291
  }
1292
- interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
1292
+ export interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
1293
1293
  async?: boolean;
1294
1294
  charSet?: string;
1295
1295
  charset?: string;
@@ -1304,7 +1304,7 @@ export declare namespace JSXBase {
1304
1304
  src?: string;
1305
1305
  type?: string;
1306
1306
  }
1307
- interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1307
+ export interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1308
1308
  disabled?: boolean;
1309
1309
  form?: string;
1310
1310
  multiple?: boolean;
@@ -1314,7 +1314,7 @@ export declare namespace JSXBase {
1314
1314
  autoComplete?: string;
1315
1315
  autocomplete?: string;
1316
1316
  }
1317
- interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
1317
+ export interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
1318
1318
  height?: number;
1319
1319
  media?: string;
1320
1320
  sizes?: string;
@@ -1323,20 +1323,20 @@ export declare namespace JSXBase {
1323
1323
  type?: string;
1324
1324
  width?: number;
1325
1325
  }
1326
- interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
1326
+ export interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
1327
1327
  media?: string;
1328
1328
  nonce?: string;
1329
1329
  scoped?: boolean;
1330
1330
  type?: string;
1331
1331
  }
1332
- interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
1332
+ export interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
1333
1333
  cellPadding?: number | string;
1334
1334
  cellpadding?: number | string;
1335
1335
  cellSpacing?: number | string;
1336
1336
  cellspacing?: number | string;
1337
1337
  summary?: string;
1338
1338
  }
1339
- interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1339
+ export interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1340
1340
  autoComplete?: string;
1341
1341
  autocomplete?: string;
1342
1342
  cols?: number;
@@ -1357,12 +1357,12 @@ export declare namespace JSXBase {
1357
1357
  value?: string | string[] | number;
1358
1358
  wrap?: string;
1359
1359
  }
1360
- interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
1360
+ export interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
1361
1361
  colSpan?: number;
1362
1362
  headers?: string;
1363
1363
  rowSpan?: number;
1364
1364
  }
1365
- interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
1365
+ export interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
1366
1366
  abbr?: string;
1367
1367
  colSpan?: number;
1368
1368
  headers?: string;
@@ -1370,10 +1370,10 @@ export declare namespace JSXBase {
1370
1370
  rowspan?: number | string;
1371
1371
  scope?: string;
1372
1372
  }
1373
- interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
1373
+ export interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
1374
1374
  dateTime?: string;
1375
1375
  }
1376
- interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
1376
+ export interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
1377
1377
  default?: boolean;
1378
1378
  kind?: string;
1379
1379
  label?: string;
@@ -1381,14 +1381,14 @@ export declare namespace JSXBase {
1381
1381
  srcLang?: string;
1382
1382
  srclang?: string;
1383
1383
  }
1384
- interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
1384
+ export interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
1385
1385
  height?: number | string;
1386
1386
  playsInline?: boolean;
1387
1387
  playsinline?: boolean | string;
1388
1388
  poster?: string;
1389
1389
  width?: number | string;
1390
1390
  }
1391
- interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
1391
+ export interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
1392
1392
  innerHTML?: string;
1393
1393
  accessKey?: string;
1394
1394
  autoFocus?: boolean;
@@ -1454,7 +1454,7 @@ export declare namespace JSXBase {
1454
1454
  security?: string;
1455
1455
  unselectable?: boolean;
1456
1456
  }
1457
- interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
1457
+ export interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
1458
1458
  class?: string | {
1459
1459
  [className: string]: boolean;
1460
1460
  };
@@ -1716,13 +1716,19 @@ export declare namespace JSXBase {
1716
1716
  zoomAndPan?: string;
1717
1717
  }
1718
1718
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
1719
- interface ToggleEvent extends Event {
1719
+ export interface ToggleEvent extends Event {
1720
1720
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
1721
1721
  readonly newState: string;
1722
1722
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
1723
1723
  readonly oldState: string;
1724
1724
  }
1725
- interface DOMAttributes<T> extends JSXAttributes<T> {
1725
+ type AriaIDLPropertyName = {
1726
+ [K in keyof ARIAMixin]: ARIAMixin[K] extends string | null ? K : never;
1727
+ }[keyof ARIAMixin];
1728
+ type JSXAriaProperties = {
1729
+ [K in AriaIDLPropertyName]?: string | boolean | undefined;
1730
+ };
1731
+ export interface DOMAttributes<T> extends JSXAttributes<T>, JSXAriaProperties {
1726
1732
  slot?: string;
1727
1733
  part?: string;
1728
1734
  exportparts?: string;
@@ -1852,8 +1858,8 @@ export declare namespace JSXBase {
1852
1858
  onTransitionStart?: (event: TransitionEvent) => void;
1853
1859
  onTransitionStartCapture?: (event: TransitionEvent) => void;
1854
1860
  [key: `aria-${string}`]: string | boolean | undefined;
1855
- [key: `aria${string}`]: string | boolean | undefined;
1856
1861
  }
1862
+ export {};
1857
1863
  }
1858
1864
  export interface JSXAttributes<T = Element> {
1859
1865
  key?: string | number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kritzel/editor",
3
- "version": "0.4.32",
3
+ "version": "0.4.34",
4
4
  "description": "Core editor package for Kritzel UI components.",
5
5
  "homepage": "https://kritzel.io/",
6
6
  "keywords": [
@@ -64,7 +64,7 @@
64
64
  "qrcode": "^1.5.4"
65
65
  },
66
66
  "devDependencies": {
67
- "@kritzel/engine": "^0.4.32",
67
+ "@kritzel/engine": "^0.4.34",
68
68
  "@stencil/angular-output-target": "^1.3.0",
69
69
  "@stencil/core": "^4.43.3",
70
70
  "@stencil/react-output-target": "^1.2.0",
@@ -78,6 +78,6 @@
78
78
  "ts-jest": "^29.4.4"
79
79
  },
80
80
  "peerDependencies": {
81
- "@kritzel/engine": "^0.4.32"
81
+ "@kritzel/engine": "^0.4.34"
82
82
  }
83
83
  }