altexxy 0.9.21.3 → 0.9.21.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90d92175559aba3911a489c4983d24d19901beeb8ca59f63e34f80c4f03ee398
4
- data.tar.gz: 37aad2cc929f8c6ac31dd198d641ded7445a1e297162dbdcd5270c0a5da01d3e
3
+ metadata.gz: e83217d52e97f1ee6575b9979b4dddcf0c90a685fa1ff92fcffb4e3f0b8f2c72
4
+ data.tar.gz: 93b523acb2a6e7d4767311986b7eae5a564d233e361491d6c196f150d056a3bb
5
5
  SHA512:
6
- metadata.gz: a6bb6d2785d55e7c20341f971a641478ec3b8192e3f421277f9e3718d39ff085f9412e20810ce02ece664977afd925bfc693e4a59492fa2ca4a82d13a58bf4bc
7
- data.tar.gz: 45c35384db51627e3150ac32b086967fee0a521a03eb604fc8bd265bf34940549a29e95610ec0595b4c04568b33c7fcb59b95e7e8dce4f5157c38f11c47b7548
6
+ metadata.gz: 61b25f9bdb070d3342094b03c4d86f72e543d963c2c015a4b7404b57d2906cd7ca409772929ee96306cc0916b0b00e6f7749d069ded77953980a9161e8c70c7c
7
+ data.tar.gz: eee9aa23392caeab09ab1d4e752b243d7b44b45fe6243dc9d34abc203d0ac50d2e7c0bd5a54144379f6a73750a2886b9dcb4ec9836e28893e0186dd38d318a6e
@@ -6492,6 +6492,12 @@ var ToolbarIcons = {
6492
6492
  <path d="M11.5 2C12.0523 2 12.5 2.44772 12.5 3V3.5C12.5 4.05228 12.0523 4.5 11.5 4.5H8V15C8 15.5523 7.55228 16 7 16H6.5C5.94772 16 5.5 15.5523 5.5 15V4.5H2C1.44772 4.5 1 4.05228 1 3.5V3C1 2.44772 1.44772 2 2 2H11.5ZM16 7C16.5523 7 17 7.44772 17 8V8.5C17 9.05228 16.5523 9.5 16 9.5H15V15C15 15.5523 14.5523 16 14 16H13.5C12.9477 16 12.5 15.5523 12.5 15V9.5H11.5C10.9477 9.5 10.5 9.05228 10.5 8.5V8C10.5 7.44772 10.9477 7 11.5 7H16Z"/>
6493
6493
  </svg>`,
6494
6494
 
6495
+ "h1":
6496
+ `<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
6497
+ <path d="M8.12207 4.30078C8.84668 4.30078 9.25684 4.74512 9.25684 5.51758V12.5518C9.25677 13.3241 8.84662 13.7686 8.12207 13.7686C7.39752 13.7686 6.9942 13.3309 6.99414 12.5518V9.87207H3.56934V12.5518C3.56927 13.3241 3.15912 13.7686 2.43457 13.7686C1.71002 13.7686 1.3067 13.3309 1.30664 12.5518V5.51758C1.30664 4.73828 1.70996 4.30078 2.43457 4.30078C3.15918 4.30078 3.56934 4.74512 3.56934 5.51758V8.07422H6.99414V5.51758C6.99414 4.73828 7.39746 4.30078 8.12207 4.30078Z"/>
6498
+ <text x="13.9" y="13.5" fill="currentColor" font-family="Arial, sans-serif" font-size="9.5" font-weight="700" text-anchor="middle">1</text>
6499
+ </svg>`,
6500
+
6495
6501
  "h2":
6496
6502
  `<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
6497
6503
  <path d="M8.12207 4.30078C8.84668 4.30078 9.25684 4.74512 9.25684 5.51758V12.5518C9.25677 13.3241 8.84662 13.7686 8.12207 13.7686C7.39752 13.7686 6.9942 13.3309 6.99414 12.5518V9.87207H3.56934V12.5518C3.56927 13.3241 3.15912 13.7686 2.43457 13.7686C1.71002 13.7686 1.3067 13.3309 1.30664 12.5518V5.51758C1.30664 4.73828 1.70996 4.30078 2.43457 4.30078C3.15918 4.30078 3.56934 4.74512 3.56934 5.51758V8.07422H6.99414V5.51758C6.99414 4.73828 7.39746 4.30078 8.12207 4.30078ZM13.6445 4.19824C15.5244 4.19824 16.8984 5.34668 16.8984 6.91211C16.8984 7.8759 16.4335 8.7237 15.292 9.84473L13.3438 11.8135V11.9092H16.1875C16.8232 11.9092 17.2197 12.251 17.2197 12.8115C17.2196 13.3651 16.83 13.7002 16.1875 13.7002H11.5117C10.8487 13.7002 10.4112 13.3241 10.4111 12.75C10.4111 12.3399 10.6368 11.9843 11.3203 11.3145L13.6855 8.88086C14.4169 8.13583 14.7245 7.64349 14.7246 7.12402C14.7246 6.4541 14.2393 6.00293 13.5215 6.00293C12.9404 6.00293 12.5166 6.29688 12.2158 6.90527C11.9151 7.37002 11.6552 7.54785 11.2588 7.54785C10.7188 7.54785 10.3429 7.17861 10.3428 6.65918C10.3428 5.3877 11.7783 4.19824 13.6445 4.19824Z"/>
@@ -6507,6 +6513,18 @@ var ToolbarIcons = {
6507
6513
  <path d="M14.6357 4.22559C15.7432 4.22559 16.4336 4.80664 16.4336 5.73633V10.3164H16.7275C17.2881 10.3164 17.6436 10.6787 17.6436 11.2256C17.6435 11.7655 17.3017 12.1006 16.7275 12.1006H16.4336V12.6611C16.4335 13.3515 16.0234 13.7891 15.374 13.7891C14.7247 13.7891 14.3282 13.3583 14.3281 12.6611V12.1006H11.04C10.2335 12.1006 9.76863 11.6766 9.76855 10.918C9.76855 10.5762 9.85064 10.3026 10.1104 9.74219C10.7666 8.42289 11.5733 7.0146 12.5713 5.54492C13.2549 4.56738 13.7812 4.22559 14.6357 4.22559ZM7.88965 4.30078C8.61426 4.30078 9.02441 4.74512 9.02441 5.51758V12.5518C9.02435 13.3241 8.6142 13.7686 7.88965 13.7686C7.1651 13.7686 6.76178 13.3309 6.76172 12.5518V9.87207H3.33691V12.5518C3.33685 13.3241 2.9267 13.7686 2.20215 13.7686C1.4776 13.7686 1.07428 13.3309 1.07422 12.5518V5.51758C1.07422 4.73828 1.47754 4.30078 2.20215 4.30078C2.92676 4.30078 3.33691 4.74512 3.33691 5.51758V8.07422H6.76172V5.51758C6.76172 4.73828 7.16504 4.30078 7.88965 4.30078ZM14.2188 6.07812C13.6035 7.02841 12.2158 9.48929 11.7988 10.2686V10.3164H14.3281V6.07812H14.2188Z"/>
6508
6514
  </svg>`,
6509
6515
 
6516
+ "h5":
6517
+ `<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
6518
+ <path d="M8.12207 4.30078C8.84668 4.30078 9.25684 4.74512 9.25684 5.51758V12.5518C9.25677 13.3241 8.84662 13.7686 8.12207 13.7686C7.39752 13.7686 6.9942 13.3309 6.99414 12.5518V9.87207H3.56934V12.5518C3.56927 13.3241 3.15912 13.7686 2.43457 13.7686C1.71002 13.7686 1.3067 13.3309 1.30664 12.5518V5.51758C1.30664 4.73828 1.70996 4.30078 2.43457 4.30078C3.15918 4.30078 3.56934 4.74512 3.56934 5.51758V8.07422H6.99414V5.51758C6.99414 4.73828 7.39746 4.30078 8.12207 4.30078Z"/>
6519
+ <text x="13.9" y="13.5" fill="currentColor" font-family="Arial, sans-serif" font-size="9.5" font-weight="700" text-anchor="middle">5</text>
6520
+ </svg>`,
6521
+
6522
+ "h6":
6523
+ `<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
6524
+ <path d="M8.12207 4.30078C8.84668 4.30078 9.25684 4.74512 9.25684 5.51758V12.5518C9.25677 13.3241 8.84662 13.7686 8.12207 13.7686C7.39752 13.7686 6.9942 13.3309 6.99414 12.5518V9.87207H3.56934V12.5518C3.56927 13.3241 3.15912 13.7686 2.43457 13.7686C1.71002 13.7686 1.3067 13.3309 1.30664 12.5518V5.51758C1.30664 4.73828 1.70996 4.30078 2.43457 4.30078C3.15918 4.30078 3.56934 4.74512 3.56934 5.51758V8.07422H6.99414V5.51758C6.99414 4.73828 7.39746 4.30078 8.12207 4.30078Z"/>
6525
+ <text x="13.9" y="13.5" fill="currentColor" font-family="Arial, sans-serif" font-size="9.5" font-weight="700" text-anchor="middle">6</text>
6526
+ </svg>`,
6527
+
6510
6528
  "paragraph":
6511
6529
  `<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
6512
6530
  <path d="M9 12C9.55228 12 10 12.4477 10 13C10 13.5523 9.55228 14 9 14H3C2.44772 14 2 13.5523 2 13C2 12.4477 2.44772 12 3 12H9ZM15 8C15.5523 8 16 8.44772 16 9C16 9.55228 15.5523 10 15 10H3C2.44772 10 2 9.55228 2 9C2 8.44772 2.44772 8 3 8H15ZM15 4C15.5523 4 16 4.44772 16 5C16 5.55228 15.5523 6 15 6H3C2.44772 6 2 5.55228 2 5C2 4.44772 2.44772 4 3 4H15Z"/>
@@ -6809,9 +6827,12 @@ class LexicalToolbarElement extends HTMLElement {
6809
6827
 
6810
6828
  this.#setButtonPressed("format", isInHeading);
6811
6829
  this.#setButtonPressed("paragraph", !isInHeading);
6812
- this.#setButtonPressed("heading-large", headingTag === "h2");
6813
- this.#setButtonPressed("heading-medium", headingTag === "h3");
6814
- this.#setButtonPressed("heading-small", headingTag === "h4");
6830
+ this.#setButtonPressed("heading-1", headingTag === "h1");
6831
+ this.#setButtonPressed("heading-2", headingTag === "h2");
6832
+ this.#setButtonPressed("heading-3", headingTag === "h3");
6833
+ this.#setButtonPressed("heading-4", headingTag === "h4");
6834
+ this.#setButtonPressed("heading-5", headingTag === "h5");
6835
+ this.#setButtonPressed("heading-6", headingTag === "h6");
6815
6836
 
6816
6837
  this.#setButtonPressed("lists", isInList);
6817
6838
  this.#setButtonPressed("unordered-list", isInList && listType === "bullet");
@@ -6998,14 +7019,23 @@ class LexicalToolbarElement extends HTMLElement {
6998
7019
  <button type="button" name="paragraph" data-command="setFormatParagraph" title="Paragraph" role="menuitem">
6999
7020
  ${ToolbarIcons.paragraph} <span>Normal</span>
7000
7021
  </button>
7001
- <button type="button" name="heading-large" data-command="setFormatHeadingLarge" title="Large heading" role="menuitem">
7002
- ${ToolbarIcons.h2} <span>Large Heading</span>
7022
+ <button type="button" name="heading-1" data-command="setFormatHeading1" title="Heading 1" role="menuitem">
7023
+ ${ToolbarIcons.h1} <span>Heading 1</span>
7024
+ </button>
7025
+ <button type="button" name="heading-2" data-command="setFormatHeading2" title="Heading 2" role="menuitem">
7026
+ ${ToolbarIcons.h2} <span>Heading 2</span>
7027
+ </button>
7028
+ <button type="button" name="heading-3" data-command="setFormatHeading3" title="Heading 3" role="menuitem">
7029
+ ${ToolbarIcons.h3} <span>Heading 3</span>
7030
+ </button>
7031
+ <button type="button" name="heading-4" data-command="setFormatHeading4" title="Heading 4" role="menuitem">
7032
+ ${ToolbarIcons.h4} <span>Heading 4</span>
7003
7033
  </button>
7004
- <button type="button" name="heading-medium" data-command="setFormatHeadingMedium" title="Medium heading" role="menuitem">
7005
- ${ToolbarIcons.h3} <span>Medium Heading</span>
7034
+ <button type="button" name="heading-5" data-command="setFormatHeading5" title="Heading 5" role="menuitem">
7035
+ ${ToolbarIcons.h5} <span>Heading 5</span>
7006
7036
  </button>
7007
- <button class="lexxy-editor__toolbar-group-end" type="button" name="heading-small" data-command="setFormatHeadingSmall" title="Small heading" role="menuitem">
7008
- ${ToolbarIcons.h4} <span>Small Heading</span>
7037
+ <button class="lexxy-editor__toolbar-group-end" type="button" name="heading-6" data-command="setFormatHeading6" title="Heading 6" role="menuitem">
7038
+ ${ToolbarIcons.h6} <span>Heading 6</span>
7009
7039
  </button>
7010
7040
  <div class="lexxy-editor__toolbar-separator" role="separator"></div>
7011
7041
  <button type="button" name="clear-formatting" data-command="clearFormatting" title="Clear formatting" role="menuitem">
@@ -10537,6 +10567,12 @@ const COMMANDS = [
10537
10567
  "toggleHighlight",
10538
10568
  "removeHighlight",
10539
10569
  "setFontSize",
10570
+ "setFormatHeading1",
10571
+ "setFormatHeading2",
10572
+ "setFormatHeading3",
10573
+ "setFormatHeading4",
10574
+ "setFormatHeading5",
10575
+ "setFormatHeading6",
10540
10576
  "setFormatHeadingLarge",
10541
10577
  "setFormatHeadingMedium",
10542
10578
  "setFormatHeadingSmall",
@@ -10787,18 +10823,42 @@ class CommandDispatcher {
10787
10823
  Pt$3(new HorizontalDividerNode);
10788
10824
  }
10789
10825
 
10790
- dispatchSetFormatHeadingLarge() {
10826
+ dispatchSetFormatHeading1() {
10827
+ this.contents.applyHeadingFormat("h1");
10828
+ }
10829
+
10830
+ dispatchSetFormatHeading2() {
10791
10831
  this.contents.applyHeadingFormat("h2");
10792
10832
  }
10793
10833
 
10794
- dispatchSetFormatHeadingMedium() {
10834
+ dispatchSetFormatHeading3() {
10795
10835
  this.contents.applyHeadingFormat("h3");
10796
10836
  }
10797
10837
 
10798
- dispatchSetFormatHeadingSmall() {
10838
+ dispatchSetFormatHeading4() {
10799
10839
  this.contents.applyHeadingFormat("h4");
10800
10840
  }
10801
10841
 
10842
+ dispatchSetFormatHeading5() {
10843
+ this.contents.applyHeadingFormat("h5");
10844
+ }
10845
+
10846
+ dispatchSetFormatHeading6() {
10847
+ this.contents.applyHeadingFormat("h6");
10848
+ }
10849
+
10850
+ dispatchSetFormatHeadingLarge() {
10851
+ this.dispatchSetFormatHeading2();
10852
+ }
10853
+
10854
+ dispatchSetFormatHeadingMedium() {
10855
+ this.dispatchSetFormatHeading3();
10856
+ }
10857
+
10858
+ dispatchSetFormatHeadingSmall() {
10859
+ this.dispatchSetFormatHeading4();
10860
+ }
10861
+
10802
10862
  dispatchSetFormatParagraph() {
10803
10863
  this.contents.applyParagraphFormat();
10804
10864
  }
@@ -16355,9 +16415,12 @@ class LexicalEditorElement extends HTMLElement {
16355
16415
 
16356
16416
  return [
16357
16417
  { label: "Normal", command: "setFormatParagraph", tag: null },
16358
- { label: "Large heading", command: "setFormatHeadingLarge", tag: "h2" },
16359
- { label: "Medium heading", command: "setFormatHeadingMedium", tag: "h3" },
16360
- { label: "Small heading", command: "setFormatHeadingSmall", tag: "h4" },
16418
+ { label: "Heading 1", command: "setFormatHeading1", tag: "h1" },
16419
+ { label: "Heading 2", command: "setFormatHeading2", tag: "h2" },
16420
+ { label: "Heading 3", command: "setFormatHeading3", tag: "h3" },
16421
+ { label: "Heading 4", command: "setFormatHeading4", tag: "h4" },
16422
+ { label: "Heading 5", command: "setFormatHeading5", tag: "h5" },
16423
+ { label: "Heading 6", command: "setFormatHeading6", tag: "h6" },
16361
16424
  ]
16362
16425
  }
16363
16426
 
Binary file
Binary file