@examind/block-editor 0.1.15 → 0.1.16

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.
package/dist/index.mjs CHANGED
@@ -4473,16 +4473,22 @@ function humanReadableBytes(bytes) {
4473
4473
  return `${Math.round(bytes / Math.pow(1024, i))} ${sizes[i]}`;
4474
4474
  }
4475
4475
  }
4476
- function getNumber(str) {
4477
- const trimmedStr = str.trim();
4478
- if (trimmedStr === "") {
4479
- return void 0;
4476
+ function getNumber(value) {
4477
+ if (typeof value === "number") {
4478
+ return Number.isNaN(value) ? void 0 : value;
4480
4479
  }
4481
- const num = +trimmedStr;
4482
- if (Number.isNaN(num)) {
4483
- return void 0;
4480
+ if (typeof value === "string") {
4481
+ const trimmedStr = value.trim();
4482
+ if (trimmedStr === "") {
4483
+ return void 0;
4484
+ }
4485
+ const num = +trimmedStr;
4486
+ return Number.isNaN(num) ? void 0 : num;
4484
4487
  }
4485
- return num;
4488
+ if (typeof value === "boolean") {
4489
+ return value ? 1 : 0;
4490
+ }
4491
+ return void 0;
4486
4492
  }
4487
4493
  var formatNumber = (num, format) => {
4488
4494
  return format ? numeral(num).format(format) : autoFormatNumber(num);
@@ -17744,6 +17750,672 @@ function TypeaheadMenuPlugin() {
17744
17750
  );
17745
17751
  }
17746
17752
 
17753
+ // src/theme/defaultThemeVariables.ts
17754
+ var themeLight = `
17755
+ :host,
17756
+ .theme-light {
17757
+ color-scheme: light;
17758
+
17759
+ --sl-color-primary-50: #f0f9ff;
17760
+ --sl-color-primary-100: #e0f2fe;
17761
+ --sl-color-primary-200: #bae6fd;
17762
+ --sl-color-primary-300: #93c5fd;
17763
+ --sl-color-primary-400: #60a5fa;
17764
+ --sl-color-primary-500: #3b82f6;
17765
+ --sl-color-primary-600: #2563eb;
17766
+ --sl-color-primary-700: #1d4ed8;
17767
+ --sl-color-primary-800: #1e40af;
17768
+ --sl-color-primary-900: #1e3a8a;
17769
+ --sl-color-primary-950: #172554;
17770
+
17771
+ --sl-color-success-50: #f0fdf4;
17772
+ --sl-color-success-100: #dcfce7;
17773
+ --sl-color-success-200: #bbf7d0;
17774
+ --sl-color-success-300: #86efac;
17775
+ --sl-color-success-400: #4ade80;
17776
+ --sl-color-success-500: #22c55e;
17777
+ --sl-color-success-600: #16a34a;
17778
+ --sl-color-success-700: #15803d;
17779
+ --sl-color-success-800: #166534;
17780
+ --sl-color-success-900: #14532d;
17781
+ --sl-color-success-950: #052e16;
17782
+
17783
+ --sl-color-warning-50: #fffbeb;
17784
+ --sl-color-warning-100: #fef3c7;
17785
+ --sl-color-warning-200: #fde68a;
17786
+ --sl-color-warning-300: #fcd34d;
17787
+ --sl-color-warning-400: #fbbf24;
17788
+ --sl-color-warning-500: #f59e0b;
17789
+ --sl-color-warning-600: #d97706;
17790
+ --sl-color-warning-700: #b45309;
17791
+ --sl-color-warning-800: #92400e;
17792
+ --sl-color-warning-900: #78350f;
17793
+ --sl-color-warning-950: #451a03;
17794
+
17795
+ --sl-color-danger-50: #fef2f2;
17796
+ --sl-color-danger-100: #fee2e2;
17797
+ --sl-color-danger-200: #fecaca;
17798
+ --sl-color-danger-300: #fca5a5;
17799
+ --sl-color-danger-400: #f87171;
17800
+ --sl-color-danger-500: #ef4444;
17801
+ --sl-color-danger-600: #dc2626;
17802
+ --sl-color-danger-700: #b91c1c;
17803
+ --sl-color-danger-800: #991b1b;
17804
+ --sl-color-danger-900: #7f1d1d;
17805
+ --sl-color-danger-950: #450a0a;
17806
+
17807
+ --sl-color-neutral-50: #fafafa;
17808
+ --sl-color-neutral-100: #f4f4f5;
17809
+ --sl-color-neutral-200: #e4e4e7;
17810
+ --sl-color-neutral-300: #d4d4d8;
17811
+ --sl-color-neutral-400: #a1a1aa;
17812
+ --sl-color-neutral-500: #71717a;
17813
+ --sl-color-neutral-600: #52525b;
17814
+ --sl-color-neutral-700: #3f3f46;
17815
+ --sl-color-neutral-800: #27272a;
17816
+ --sl-color-neutral-900: #18181b;
17817
+ --sl-color-neutral-950: #09090b;
17818
+
17819
+ --sl-color-neutral-0: #ffffff;
17820
+ --sl-color-neutral-1000: hsl(0, 0%, 0%);
17821
+
17822
+ --sl-border-base: var(--be-border-base);
17823
+ --sl-border-radius-small: calc(var(--sl-border-base) * 0.1875);
17824
+ --sl-border-radius-medium: calc(var(--sl-border-base) * 0.25);
17825
+ --sl-border-radius-large: calc(var(--sl-border-base) * 0.5);
17826
+ --sl-border-radius-x-large: var(
17827
+ --sl-border-base
17828
+ );
17829
+
17830
+ --sl-border-radius-circle: 50%;
17831
+ --sl-border-radius-pill: 9999px;
17832
+
17833
+ --sl-shadow-x-small: 0 1px 2px hsl(240 3.8% 46.1% / 6%);
17834
+ --sl-shadow-small: 0 1px 2px hsl(240 3.8% 46.1% / 12%);
17835
+ --sl-shadow-medium: 0 2px 4px hsl(240 3.8% 46.1% / 12%);
17836
+ --sl-shadow-large: var(
17837
+ --be-shadow-large,
17838
+ 0 2px 8px hsl(240 3.8% 46.1% / 12%)
17839
+ );
17840
+ --sl-shadow-x-large: 0 4px 16px hsl(240 3.8% 46.1% / 12%);
17841
+
17842
+ --sl-spacing-base: var(--be-spacing-base, 1rem);
17843
+ --sl-spacing-3x-small: calc(
17844
+ var(--sl-spacing-base) * 0.125
17845
+ );
17846
+ --sl-spacing-2x-small: calc(
17847
+ var(--sl-spacing-base) * 0.25
17848
+ );
17849
+ --sl-spacing-1_5x-small: calc(
17850
+ var(--sl-spacing-base) * 0.375
17851
+ );
17852
+ --sl-spacing-x-small: calc(
17853
+ var(--sl-spacing-base) * 0.5
17854
+ );
17855
+ --sl-spacing-small: calc(
17856
+ var(--sl-spacing-base) * 0.75
17857
+ );
17858
+ --sl-spacing-medium: var(--sl-spacing-base);
17859
+ --sl-spacing-large: calc(
17860
+ var(--sl-spacing-base) * 1.25
17861
+ );
17862
+ --sl-spacing-x-large: calc(
17863
+ var(--sl-spacing-base) * 1.75
17864
+ );
17865
+ --sl-spacing-2x-large: calc(
17866
+ var(--sl-spacing-base) * 2.25
17867
+ );
17868
+ --sl-spacing-3x-large: calc(
17869
+ var(--sl-spacing-base) * 3
17870
+ );
17871
+ --sl-spacing-4x-large: calc(
17872
+ var(--sl-spacing-base) * 4.5
17873
+ );
17874
+ --sl-spacing-5x-large: calc(var(--sl-spacing-base) * 5);
17875
+
17876
+ --indent-size: var(--sl-spacing-large);
17877
+
17878
+ --sl-transition-x-slow: 1000ms;
17879
+ --sl-transition-slow: 500ms;
17880
+ --sl-transition-medium: 250ms;
17881
+ --sl-transition-fast: 150ms;
17882
+ --sl-transition-x-fast: 50ms;
17883
+
17884
+ --sl-font-mono: SFMono-Regular, Consolas, 'Liberation Mono', Menlo,
17885
+ monospace;
17886
+ --sl-font-sans: var(
17887
+ --be-font-sans,
17888
+ -apple-system,
17889
+ BlinkMacSystemFont,
17890
+ 'Segoe UI',
17891
+ Roboto,
17892
+ Helvetica,
17893
+ Arial,
17894
+ sans-serif,
17895
+ 'Apple Color Emoji',
17896
+ 'Segoe UI Emoji',
17897
+ 'Segoe UI Symbol'
17898
+ );
17899
+ --sl-font-serif: var(
17900
+ --be-font-serif,
17901
+ Georgia,
17902
+ 'Times New Roman',
17903
+ serif
17904
+ );
17905
+
17906
+ --sl-font-size-base: var(--be-font-size-base, 1rem);
17907
+ --sl-font-size-2x-small: calc(var(--sl-font-size-base) * 0.625);
17908
+ --sl-font-size-x-small: calc(var(--sl-font-size-base) * 0.75);
17909
+ --sl-font-size-small: calc(var(--sl-font-size-base) * 0.875);
17910
+ --sl-font-size-medium: var(--sl-font-size-base);
17911
+ --sl-font-size-large: calc(var(--sl-font-size-base) * 1.25);
17912
+ --sl-font-size-x-large: calc(var(--sl-font-size-base) * 1.5);
17913
+ --sl-font-size-2x-large: calc(var(--sl-font-size-base) * 2.25);
17914
+ --sl-font-size-3x-large: calc(var(--sl-font-size-base) * 3);
17915
+ --sl-font-size-4x-large: calc(var(--sl-font-size-base) * 4.5);
17916
+
17917
+ --sl-font-weight-light: 300;
17918
+ --sl-font-weight-normal: 400;
17919
+ --sl-font-weight-semibold: 500;
17920
+ --sl-font-weight-bold: 700;
17921
+
17922
+ --sl-letter-spacing-denser: -0.03em;
17923
+ --sl-letter-spacing-dense: -0.015em;
17924
+ --sl-letter-spacing-normal: normal;
17925
+ --sl-letter-spacing-loose: 0.075em;
17926
+ --sl-letter-spacing-looser: 0.15em;
17927
+
17928
+ --sl-line-height-base: 1;
17929
+ --sl-line-height-x-denser: calc(var(--sl-line-height-base) * 1.1);
17930
+ --sl-line-height-denser: calc(var(--sl-line-height-base) * 1.2);
17931
+ --sl-line-height-dense: calc(var(--sl-line-height-base) * 1.4);
17932
+ --sl-line-height-subnormal: calc(var(--sl-line-height-base) * 1.6);
17933
+ --sl-line-height-normal: calc(var(--sl-line-height-base) * 1.8);
17934
+ --sl-line-height-loose: calc(var(--sl-line-height-base) * 2.2);
17935
+ --sl-line-height-looser: calc(var(--sl-line-height-base) * 2.6);
17936
+
17937
+ --sl-focus-ring-color: var(--sl-color-primary-600);
17938
+ --sl-focus-ring-style: solid;
17939
+ --sl-focus-ring-width: var(--be-focus-ring-width, 1px);
17940
+ --sl-focus-ring: var(--sl-focus-ring-style)
17941
+ var(--sl-focus-ring-width) var(--sl-focus-ring-color);
17942
+ --sl-focus-ring-offset: 1px;
17943
+
17944
+ --sl-button-font-size-small: var(--sl-font-size-x-small);
17945
+ --sl-button-font-size-medium: var(--sl-font-size-small);
17946
+ --sl-button-font-size-large: var(--sl-font-size-medium);
17947
+
17948
+ --sl-input-height-base: 1rem;
17949
+ --sl-input-height-small: calc(var(--sl-input-height-base) * 1.875);
17950
+ --sl-input-height-medium: calc(var(--sl-input-height-base) * 2.5);
17951
+ --sl-input-height-large: calc(var(--sl-input-height-base) * 3.125);
17952
+
17953
+ --sl-input-background-color: var(--sl-color-neutral-0);
17954
+ --sl-input-background-color-hover: var(--sl-input-background-color);
17955
+ --sl-input-background-color-focus: var(--sl-input-background-color);
17956
+ --sl-input-background-color-disabled: var(--sl-color-neutral-100);
17957
+ --sl-input-border-color: var(--sl-color-neutral-300);
17958
+ --sl-input-border-color-hover: var(--sl-color-neutral-400);
17959
+ --sl-input-border-color-focus: var(--sl-color-primary-500);
17960
+ --sl-input-border-color-disabled: var(--sl-color-neutral-300);
17961
+ --sl-input-border-width: 1px;
17962
+ --sl-input-required-content: '*';
17963
+ --sl-input-required-content-offset: -2px;
17964
+ --sl-input-required-content-color: var(--sl-input-label-color);
17965
+
17966
+ --sl-input-border-radius-small: var(--sl-border-radius-medium);
17967
+ --sl-input-border-radius-medium: var(--sl-border-radius-medium);
17968
+ --sl-input-border-radius-large: var(--sl-border-radius-medium);
17969
+
17970
+ --sl-input-font-family: var(--sl-font-sans);
17971
+ --sl-input-font-weight: var(--sl-font-weight-normal);
17972
+ --sl-input-font-size-small: var(--sl-font-size-small);
17973
+ --sl-input-font-size-medium: var(--sl-font-size-medium);
17974
+ --sl-input-font-size-large: var(--sl-font-size-large);
17975
+ --sl-input-letter-spacing: var(--sl-letter-spacing-normal);
17976
+
17977
+ --sl-input-color: var(--sl-color-neutral-700);
17978
+ --sl-input-color-hover: var(--sl-color-neutral-700);
17979
+ --sl-input-color-focus: var(--sl-color-neutral-700);
17980
+ --sl-input-color-disabled: var(--sl-color-neutral-900);
17981
+ --sl-input-icon-color: var(--sl-color-neutral-400);
17982
+ --sl-input-icon-color-hover: var(--sl-color-neutral-500);
17983
+ --sl-input-icon-color-focus: var(--sl-color-neutral-500);
17984
+ --sl-input-placeholder-color: var(--sl-color-neutral-400);
17985
+ --sl-input-placeholder-color-disabled: var(--sl-color-neutral-500);
17986
+ --sl-input-spacing-small: var(--sl-spacing-small);
17987
+ --sl-input-spacing-medium: var(--sl-spacing-medium);
17988
+ --sl-input-spacing-large: var(--sl-spacing-large);
17989
+
17990
+ --sl-input-focus-ring-color: hsl(198.6 88.7% 48.4% / 40%);
17991
+ --sl-input-focus-ring-offset: 0;
17992
+
17993
+ --sl-input-filled-background-color: var(--sl-color-neutral-100);
17994
+ --sl-input-filled-background-color-hover: var(
17995
+ --sl-color-neutral-100
17996
+ );
17997
+ --sl-input-filled-background-color-focus: var(
17998
+ --sl-color-neutral-100
17999
+ );
18000
+ --sl-input-filled-background-color-disabled: var(
18001
+ --sl-color-neutral-100
18002
+ );
18003
+ --sl-input-filled-color: var(--sl-color-neutral-800);
18004
+ --sl-input-filled-color-hover: var(--sl-color-neutral-800);
18005
+ --sl-input-filled-color-focus: var(--sl-color-neutral-700);
18006
+ --sl-input-filled-color-disabled: var(--sl-color-neutral-800);
18007
+
18008
+ --sl-input-label-font-size-small: var(--sl-font-size-small);
18009
+ --sl-input-label-font-size-medium: var(--sl-font-size-medium);
18010
+ --sl-input-label-font-size-large: var(--sl-font-size-large);
18011
+ --sl-input-label-color: inherit;
18012
+
18013
+ --sl-input-help-text-font-size-small: var(--sl-font-size-x-small);
18014
+ --sl-input-help-text-font-size-medium: var(--sl-font-size-small);
18015
+ --sl-input-help-text-font-size-large: var(--sl-font-size-medium);
18016
+ --sl-input-help-text-color: var(--sl-color-neutral-500);
18017
+
18018
+ --sl-toggle-size-small: 0.875rem;
18019
+ --sl-toggle-size-medium: 1.125rem;
18020
+ --sl-toggle-size-large: 1.375rem;
18021
+
18022
+ --sl-overlay-background-color: hsl(240 3.8% 46.1% / 33%);
18023
+
18024
+ --sl-panel-background-color: var(--sl-color-neutral-0);
18025
+ --sl-panel-border-color: var(--sl-color-neutral-300);
18026
+ --sl-panel-border-width: 1px;
18027
+
18028
+ --sl-tooltip-border-radius: var(--sl-border-radius-medium);
18029
+ --sl-tooltip-background-color: var(--sl-color-neutral-800);
18030
+ --sl-tooltip-color: var(--sl-color-neutral-0);
18031
+ --sl-tooltip-font-family: var(--sl-font-sans);
18032
+ --sl-tooltip-font-weight: var(--sl-font-weight-normal);
18033
+ --sl-tooltip-font-size: var(--sl-font-size-small);
18034
+ --sl-tooltip-line-height: var(--sl-line-height-dense);
18035
+ --sl-tooltip-padding: var(--sl-spacing-2x-small)
18036
+ var(--sl-spacing-x-small);
18037
+ --sl-tooltip-arrow-size: 6px;
18038
+
18039
+ --sl-z-index-drawer: 700;
18040
+ --sl-z-index-dialog: 800;
18041
+ --sl-z-index-dropdown: 900;
18042
+ --sl-z-index-toast: 950;
18043
+ --sl-z-index-tooltip: 1000;
18044
+
18045
+ --td-footer-background-color: #09090b;
18046
+ --td-footer-color: #e4e4e7;
18047
+
18048
+ --td-code-block-toolbar-cell-background-color: #e2e8f0;
18049
+ --td-code-block-highlighted-background-color: #dbeafe;
18050
+
18051
+ --td-card-color: 'inherit';
18052
+ --td-card-background-color: var(--sl-color-neutral-0);
18053
+ --td-card-background-hover-color: var(--sl-color-neutral-50);
18054
+ --td-card-border-color: rgba(24, 24, 27, 0.08);
18055
+ --td-card-box-shadow-1: rgba(24, 24, 27, 0.02);
18056
+ --td-card-box-shadow-1-y: 3px;
18057
+ --td-card-box-shadow-1-blur: 6px;
18058
+ --td-card-box-shadow-2: rgba(24, 24, 27, 0.04);
18059
+ --td-card-box-shadow-2-y: 2px;
18060
+ --td-card-box-shadow-2-blur: 7px;
18061
+
18062
+ --td-card-hover-border-color: rgba(24, 24, 27, 0.15);
18063
+ --td-card-hover-box-shadow-1: rgba(24, 24, 27, 0.05);
18064
+ --td-card-hover-box-shadow-1-y: 3px;
18065
+ --td-card-hover-box-shadow-1-blur: 6px;
18066
+ --td-card-hover-box-shadow-2: rgba(24, 24, 27, 0.1);
18067
+ --td-card-hover-box-shadow-2-y: 8px;
18068
+ --td-card-hover-box-shadow-2-blur: 15px;
18069
+
18070
+ --td-body-gradient-line-color: #ffffff;
18071
+
18072
+ --td-editor-text-color-blue: hsl(221, 100%, 50%);
18073
+ --td-editor-text-color-purple: hsl(291, 100%, 39%);
18074
+ --td-editor-text-color-red: hsl(4, 100%, 40%);
18075
+ --td-editor-text-color-green: hsl(122, 100%, 23%);
18076
+
18077
+ --td-editor-bg-color-blue: hsl(221, 100%, 50%, 0.1);
18078
+ --td-editor-bg-color-purple: hsl(291, 100%, 39%, 0.1);
18079
+ --td-editor-bg-color-red: hsl(4, 100%, 40%, 0.1);
18080
+ --td-editor-bg-color-green: hsl(122, 100%, 23%, 0.1);
18081
+ }
18082
+ `;
18083
+ var themeDark = `
18084
+ :host,
18085
+ .theme-dark {
18086
+ color-scheme: dark;
18087
+
18088
+ --sl-color-primary-950: #f0f9ff;
18089
+ --sl-color-primary-900: #e0f2fe;
18090
+ --sl-color-primary-800: #bae6fd;
18091
+ --sl-color-primary-700: #93c5fd;
18092
+ --sl-color-primary-600: #60a5fa;
18093
+ --sl-color-primary-500: #3b82f6;
18094
+ --sl-color-primary-400: #2563eb;
18095
+ --sl-color-primary-300: #1d4ed8;
18096
+ --sl-color-primary-200: #1e40af;
18097
+ --sl-color-primary-100: #1e3a8a;
18098
+ --sl-color-primary-50: #172554;
18099
+
18100
+ --sl-color-success-950: #f0fdf4;
18101
+ --sl-color-success-900: #dcfce7;
18102
+ --sl-color-success-800: #bbf7d0;
18103
+ --sl-color-success-700: #86efac;
18104
+ --sl-color-success-600: #4ade80;
18105
+ --sl-color-success-500: #22c55e;
18106
+ --sl-color-success-400: #16a34a;
18107
+ --sl-color-success-300: #15803d;
18108
+ --sl-color-success-200: #166534;
18109
+ --sl-color-success-100: #14532d;
18110
+ --sl-color-success-50: #052e16;
18111
+
18112
+ --sl-color-warning-950: #fffbeb;
18113
+ --sl-color-warning-900: #fef3c7;
18114
+ --sl-color-warning-800: #fde68a;
18115
+ --sl-color-warning-700: #fcd34d;
18116
+ --sl-color-warning-600: #fbbf24;
18117
+ --sl-color-warning-500: #f59e0b;
18118
+ --sl-color-warning-400: #d97706;
18119
+ --sl-color-warning-300: #b45309;
18120
+ --sl-color-warning-200: #92400e;
18121
+ --sl-color-warning-100: #78350f;
18122
+ --sl-color-warning-50: #451a03;
18123
+
18124
+ --sl-color-danger-950: #fef2f2;
18125
+ --sl-color-danger-900: #fee2e2;
18126
+ --sl-color-danger-800: #fecaca;
18127
+ --sl-color-danger-700: #fca5a5;
18128
+ --sl-color-danger-600: #f87171;
18129
+ --sl-color-danger-500: #ef4444;
18130
+ --sl-color-danger-400: #dc2626;
18131
+ --sl-color-danger-300: #b91c1c;
18132
+ --sl-color-danger-200: #991b1b;
18133
+ --sl-color-danger-100: #7f1d1d;
18134
+ --sl-color-danger-50: #450a0a;
18135
+
18136
+ --sl-color-neutral-950: #fafafa;
18137
+ --sl-color-neutral-900: #f4f4f5;
18138
+ --sl-color-neutral-800: #e4e4e7;
18139
+ --sl-color-neutral-700: #d4d4d8;
18140
+ --sl-color-neutral-600: #a1a1aa;
18141
+ --sl-color-neutral-500: #71717a;
18142
+
18143
+ --sl-color-neutral-400: #71717a;
18144
+ --sl-color-neutral-300: #52525b;
18145
+ --sl-color-neutral-200: #3f3f46;
18146
+ --sl-color-neutral-100: #27272a;
18147
+ --sl-color-neutral-50: #18181b;
18148
+ --sl-color-neutral-0: #09090b;
18149
+ --sl-color-neutral-1000: hsl(0, 0%, 100%);
18150
+
18151
+ --sl-border-base: var(--be-border-base);
18152
+ --sl-border-radius-small: calc(var(--sl-border-base) * 0.1875);
18153
+ --sl-border-radius-medium: calc(var(--sl-border-base) * 0.25);
18154
+ --sl-border-radius-large: calc(var(--sl-border-base) * 0.5);
18155
+ --sl-border-radius-x-large: var(
18156
+ --sl-border-base
18157
+ );
18158
+
18159
+ --sl-border-radius-circle: 50%;
18160
+ --sl-border-radius-pill: 9999px;
18161
+
18162
+ --sl-shadow-x-small: 0 1px 2px rgb(0 0 0 / 18%);
18163
+ --sl-shadow-small: 0 1px 2px rgb(0 0 0 / 24%);
18164
+ --sl-shadow-medium: 0 2px 4px rgb(0 0 0 / 24%);
18165
+ --sl-shadow-large: var(
18166
+ --be-shadow-large,
18167
+ 0 2px 8px rgb(0 0 0 / 24%)
18168
+ );
18169
+ --sl-shadow-x-large: 0 4px 16px rgb(0 0 0 / 24%);
18170
+
18171
+ --sl-spacing-base: var(--be-spacing-base, 1rem);
18172
+ --sl-spacing-3x-small: calc(
18173
+ var(--sl-spacing-base) * 0.125
18174
+ );
18175
+ --sl-spacing-2x-small: calc(
18176
+ var(--sl-spacing-base) * 0.25
18177
+ );
18178
+ --sl-spacing-1_5x-small: calc(
18179
+ var(--sl-spacing-base) * 0.375
18180
+ );
18181
+ --sl-spacing-x-small: calc(
18182
+ var(--sl-spacing-base) * 0.5
18183
+ );
18184
+ --sl-spacing-small: calc(
18185
+ var(--sl-spacing-base) * 0.75
18186
+ );
18187
+ --sl-spacing-medium: var(--sl-spacing-base);
18188
+ --sl-spacing-large: calc(
18189
+ var(--sl-spacing-base) * 1.25
18190
+ );
18191
+ --sl-spacing-x-large: calc(
18192
+ var(--sl-spacing-base) * 1.75
18193
+ );
18194
+ --sl-spacing-2x-large: calc(
18195
+ var(--sl-spacing-base) * 2.25
18196
+ );
18197
+ --sl-spacing-3x-large: calc(
18198
+ var(--sl-spacing-base) * 3
18199
+ );
18200
+ --sl-spacing-4x-large: calc(
18201
+ var(--sl-spacing-base) * 4.5
18202
+ );
18203
+ --sl-spacing-5x-large: calc(var(--sl-spacing-base) * 5);
18204
+
18205
+ --indent-size: var(--sl-spacing-large);
18206
+
18207
+ --sl-transition-x-slow: 1000ms;
18208
+ --sl-transition-slow: 500ms;
18209
+ --sl-transition-medium: 250ms;
18210
+ --sl-transition-fast: 150ms;
18211
+ --sl-transition-x-fast: 50ms;
18212
+
18213
+ --sl-font-mono: var(
18214
+ --be-font-mono,
18215
+ SFMono-Regular,
18216
+ Consolas,
18217
+ 'Liberation Mono',
18218
+ Menlo,
18219
+ monospace
18220
+ );
18221
+ --sl-font-sans: var(
18222
+ --be-font-sans,
18223
+ -apple-system,
18224
+ BlinkMacSystemFont,
18225
+ 'Segoe UI',
18226
+ Roboto,
18227
+ Helvetica,
18228
+ Arial,
18229
+ sans-serif,
18230
+ 'Apple Color Emoji',
18231
+ 'Segoe UI Emoji',
18232
+ 'Segoe UI Symbol'
18233
+ );
18234
+ --sl-font-serif: var(
18235
+ --be-font-serif,
18236
+ Georgia,
18237
+ 'Times New Roman',
18238
+ serif
18239
+ );
18240
+
18241
+ --sl-font-size-base: var(--be-font-size-base, 1rem);
18242
+ --sl-font-size-2x-small: calc(var(--sl-font-size-base) * 0.625);
18243
+ --sl-font-size-x-small: calc(var(--sl-font-size-base) * 0.75);
18244
+ --sl-font-size-small: calc(var(--sl-font-size-base) * 0.875);
18245
+ --sl-font-size-medium: var(--sl-font-size-base);
18246
+ --sl-font-size-large: calc(var(--sl-font-size-base) * 1.25);
18247
+ --sl-font-size-x-large: calc(var(--sl-font-size-base) * 1.5);
18248
+ --sl-font-size-2x-large: calc(var(--sl-font-size-base) * 2.25);
18249
+ --sl-font-size-3x-large: calc(var(--sl-font-size-base) * 3);
18250
+ --sl-font-size-4x-large: calc(var(--sl-font-size-base) * 4.5);
18251
+
18252
+ --sl-font-weight-light: 300;
18253
+ --sl-font-weight-normal: 400;
18254
+ --sl-font-weight-semibold: 500;
18255
+ --sl-font-weight-bold: 700;
18256
+
18257
+ --sl-letter-spacing-denser: -0.03em;
18258
+ --sl-letter-spacing-dense: -0.015em;
18259
+ --sl-letter-spacing-normal: normal;
18260
+ --sl-letter-spacing-loose: 0.075em;
18261
+ --sl-letter-spacing-looser: 0.15em;
18262
+
18263
+ --sl-line-height-base: 1;
18264
+ --sl-line-height-x-denser: calc(var(--sl-line-height-base) * 1.1);
18265
+ --sl-line-height-denser: calc(var(--sl-line-height-base) * 1.2);
18266
+ --sl-line-height-dense: calc(var(--sl-line-height-base) * 1.4);
18267
+ --sl-line-height-subnormal: calc(var(--sl-line-height-base) * 1.6);
18268
+ --sl-line-height-normal: calc(var(--sl-line-height-base) * 1.8);
18269
+ --sl-line-height-loose: calc(var(--sl-line-height-base) * 2.2);
18270
+ --sl-line-height-looser: calc(var(--sl-line-height-base) * 2.6);
18271
+
18272
+ --sl-focus-ring-color: var(--sl-color-primary-700);
18273
+ --sl-focus-ring-style: solid;
18274
+ --sl-focus-ring-width: var(--be-focus-ring-width, 1px);
18275
+ --sl-focus-ring: var(--sl-focus-ring-style)
18276
+ var(--sl-focus-ring-width) var(--sl-focus-ring-color);
18277
+ --sl-focus-ring-offset: 1px;
18278
+
18279
+ --sl-button-font-size-small: var(--sl-font-size-x-small);
18280
+ --sl-button-font-size-medium: var(--sl-font-size-small);
18281
+ --sl-button-font-size-large: var(--sl-font-size-medium);
18282
+
18283
+ --sl-input-height-base: 1rem;
18284
+ --sl-input-height-small: calc(var(--sl-input-height-base) * 1.875);
18285
+ --sl-input-height-medium: calc(var(--sl-input-height-base) * 2.5);
18286
+ --sl-input-height-large: calc(var(--sl-input-height-base) * 3.125);
18287
+
18288
+ --sl-input-background-color: var(--sl-color-neutral-0);
18289
+ --sl-input-background-color-hover: var(--sl-input-background-color);
18290
+ --sl-input-background-color-focus: var(--sl-input-background-color);
18291
+ --sl-input-background-color-disabled: var(--sl-color-neutral-100);
18292
+ --sl-input-border-color: var(--sl-color-neutral-300);
18293
+ --sl-input-border-color-hover: var(--sl-color-neutral-400);
18294
+ --sl-input-border-color-focus: var(--sl-color-primary-500);
18295
+ --sl-input-border-color-disabled: var(--sl-color-neutral-300);
18296
+ --sl-input-border-width: 1px;
18297
+ --sl-input-required-content: '*';
18298
+ --sl-input-required-content-offset: -2px;
18299
+ --sl-input-required-content-color: var(--sl-input-label-color);
18300
+
18301
+ --sl-input-border-radius-small: var(--sl-border-radius-medium);
18302
+ --sl-input-border-radius-medium: var(--sl-border-radius-medium);
18303
+ --sl-input-border-radius-large: var(--sl-border-radius-medium);
18304
+
18305
+ --sl-input-font-family: var(--sl-font-sans);
18306
+ --sl-input-font-weight: var(--sl-font-weight-normal);
18307
+ --sl-input-font-size-small: var(--sl-font-size-small);
18308
+ --sl-input-font-size-medium: var(--sl-font-size-medium);
18309
+ --sl-input-font-size-large: var(--sl-font-size-large);
18310
+ --sl-input-letter-spacing: var(--sl-letter-spacing-normal);
18311
+
18312
+ --sl-input-color: var(--sl-color-neutral-700);
18313
+ --sl-input-color-hover: var(--sl-color-neutral-700);
18314
+ --sl-input-color-focus: var(--sl-color-neutral-700);
18315
+ --sl-input-color-disabled: var(--sl-color-neutral-900);
18316
+ --sl-input-icon-color: var(--sl-color-neutral-400);
18317
+ --sl-input-icon-color-hover: var(--sl-color-neutral-500);
18318
+ --sl-input-icon-color-focus: var(--sl-color-neutral-500);
18319
+ --sl-input-placeholder-color: var(--sl-color-neutral-400);
18320
+ --sl-input-placeholder-color-disabled: var(--sl-color-neutral-500);
18321
+ --sl-input-spacing-small: var(--sl-spacing-small);
18322
+ --sl-input-spacing-medium: var(--sl-spacing-medium);
18323
+ --sl-input-spacing-large: var(--sl-spacing-large);
18324
+
18325
+ --sl-input-focus-ring-color: hsl(198.6 88.7% 48.4% / 40%);
18326
+ --sl-input-focus-ring-offset: 0;
18327
+
18328
+ --sl-input-filled-background-color: var(--sl-color-neutral-100);
18329
+ --sl-input-filled-background-color-hover: var(
18330
+ --sl-color-neutral-100
18331
+ );
18332
+ --sl-input-filled-background-color-focus: var(
18333
+ --sl-color-neutral-100
18334
+ );
18335
+ --sl-input-filled-background-color-disabled: var(
18336
+ --sl-color-neutral-100
18337
+ );
18338
+ --sl-input-filled-color: var(--sl-color-neutral-800);
18339
+ --sl-input-filled-color-hover: var(--sl-color-neutral-800);
18340
+ --sl-input-filled-color-focus: var(--sl-color-neutral-700);
18341
+ --sl-input-filled-color-disabled: var(--sl-color-neutral-800);
18342
+
18343
+ --sl-input-label-font-size-small: var(--sl-font-size-small);
18344
+ --sl-input-label-font-size-medium: var(--sl-font-size-medium);
18345
+ --sl-input-label-font-size-large: var(--sl-font-size-large);
18346
+ --sl-input-label-color: inherit;
18347
+
18348
+ --sl-input-help-text-font-size-small: var(--sl-font-size-x-small);
18349
+ --sl-input-help-text-font-size-medium: var(--sl-font-size-small);
18350
+ --sl-input-help-text-font-size-large: var(--sl-font-size-medium);
18351
+ --sl-input-help-text-color: var(--sl-color-neutral-500);
18352
+
18353
+ --sl-toggle-size-small: 0.875rem;
18354
+ --sl-toggle-size-medium: 1.125rem;
18355
+ --sl-toggle-size-large: 1.375rem;
18356
+
18357
+ --sl-overlay-background-color: hsla(0, 0%, 100%, 0.05);
18358
+
18359
+ --sl-panel-background-color: var(--sl-color-neutral-0);
18360
+ --sl-panel-border-color: var(--sl-color-neutral-300);
18361
+ --sl-panel-border-width: 1px;
18362
+
18363
+ --sl-tooltip-border-radius: var(--sl-border-radius-medium);
18364
+ --sl-tooltip-background-color: var(--sl-color-neutral-800);
18365
+ --sl-tooltip-color: var(--sl-color-neutral-0);
18366
+ --sl-tooltip-font-family: var(--sl-font-sans);
18367
+ --sl-tooltip-font-weight: var(--sl-font-weight-normal);
18368
+ --sl-tooltip-font-size: var(--sl-font-size-small);
18369
+ --sl-tooltip-line-height: var(--sl-line-height-dense);
18370
+ --sl-tooltip-padding: var(--sl-spacing-2x-small)
18371
+ var(--sl-spacing-x-small);
18372
+ --sl-tooltip-arrow-size: 6px;
18373
+
18374
+ --sl-z-index-drawer: 700;
18375
+ --sl-z-index-dialog: 800;
18376
+ --sl-z-index-dropdown: 900;
18377
+ --sl-z-index-toast: 950;
18378
+ --sl-z-index-tooltip: 1000;
18379
+
18380
+ --td-footer-background-color: #09090b;
18381
+ --td-footer-color: #e4e4e7;
18382
+
18383
+ --td-code-block-toolbar-cell-background-color: #09090b;
18384
+ --td-code-block-highlighted-background-color: #1e293b;
18385
+
18386
+ --td-card-color: 'inherit';
18387
+ --td-card-background-color: var(--sl-color-neutral-0);
18388
+ --td-card-background-hover-color: var(--sl-color-neutral-50);
18389
+ --td-card-border-color: rgba(255, 255, 255, 0.1);
18390
+ --td-card-box-shadow-1: rgba(0, 0, 0, 0.05);
18391
+ --td-card-box-shadow-1-y: 3px;
18392
+ --td-card-box-shadow-1-blur: 6px;
18393
+ --td-card-box-shadow-2: rgba(0, 0, 0, 0.1);
18394
+ --td-card-box-shadow-2-y: 8px;
18395
+ --td-card-box-shadow-2-blur: 15px;
18396
+
18397
+ --td-card-hover-border-color: rgba(255, 255, 255, 0.2);
18398
+ --td-card-hover-box-shadow-1: rgba(0, 0, 0, 0.04);
18399
+ --td-card-hover-box-shadow-1-y: 5px;
18400
+ --td-card-hover-box-shadow-1-blur: 10px;
18401
+ --td-card-hover-box-shadow-2: rgba(0, 0, 0, 0.3);
18402
+ --td-card-hover-box-shadow-2-y: 15px;
18403
+ --td-card-hover-box-shadow-2-blur: 25px;
18404
+
18405
+ --td-body-gradient-line-color: #27272a47;
18406
+
18407
+ --td-editor-text-color-blue: hsl(221, 100%, 70%);
18408
+ --td-editor-text-color-purple: hsl(291, 100%, 65%);
18409
+ --td-editor-text-color-red: hsl(4, 100%, 63%);
18410
+ --td-editor-text-color-green: hsl(122, 100%, 34%);
18411
+
18412
+ --td-editor-bg-color-blue: hsl(221, 100%, 70%, 0.2);
18413
+ --td-editor-bg-color-purple: hsl(291, 100%, 65%, 0.2);
18414
+ --td-editor-bg-color-red: hsl(4, 100%, 63%, 0.2);
18415
+ --td-editor-bg-color-green: hsl(122, 100%, 34%, 0.2);
18416
+ }
18417
+ `;
18418
+
17747
18419
  // src/theme/ThemeProvider.tsx
17748
18420
  import {
17749
18421
  createContext as createContext2,
@@ -17752,21 +18424,37 @@ import {
17752
18424
  useRef as useRef57,
17753
18425
  useState as useState19
17754
18426
  } from "react";
17755
- import { jsx as jsx117 } from "react/jsx-runtime";
17756
- var themeVariablesMap = {
18427
+
18428
+ // src/theme/constants.ts
18429
+ var themeSettingsMap = {
17757
18430
  borderBase: "--be-border-base",
17758
18431
  fontSans: "--be-font-sans",
17759
18432
  fontSerif: "--be-font-serif",
17760
18433
  fontMono: "--be-font-mono",
17761
18434
  spacingBase: "--be-spacing-base",
17762
- fontSizeBase: "--be-font-size-base"
18435
+ fontSizeBase: "--be-font-size-base",
18436
+ focusRingWidth: "--be-focus-ring-width",
18437
+ shadowLarge: "--be-shadow-large"
18438
+ };
18439
+ var defaultThemeSettings = {
18440
+ borderBase: "1rem",
18441
+ fontSans: "'Inter', sans-serif",
18442
+ fontSerif: "Georgia, 'Times New Roman', serif",
18443
+ fontMono: "Menlo, Monaco, 'Courier New', monospace",
18444
+ focusRingWidth: "1px",
18445
+ shadowLarge: "rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px",
18446
+ spacingBase: "1rem",
18447
+ fontSizeBase: "1rem"
17763
18448
  };
18449
+
18450
+ // src/theme/ThemeProvider.tsx
18451
+ import { jsx as jsx117, jsxs as jsxs43 } from "react/jsx-runtime";
17764
18452
  var ThemeContext = createContext2(
17765
18453
  void 0
17766
18454
  );
17767
18455
  function ThemeProvider({
17768
18456
  theme,
17769
- themeVariables = {},
18457
+ themeSettings = {},
17770
18458
  children
17771
18459
  }) {
17772
18460
  const rootElementRef = useRef57(null);
@@ -17793,20 +18481,33 @@ function ThemeProvider({
17793
18481
  );
17794
18482
  rootElementRef.current?.classList.add(`theme-${effectiveTheme}`);
17795
18483
  }, [effectiveTheme]);
17796
- return /* @__PURE__ */ jsx117(ThemeContext.Provider, { value: { theme, effectiveTheme }, children: /* @__PURE__ */ jsx117(
17797
- "div",
18484
+ return /* @__PURE__ */ jsx117(ThemeContext.Provider, { value: { theme, effectiveTheme }, children: /* @__PURE__ */ jsxs43(
18485
+ "article",
17798
18486
  {
17799
18487
  ref: rootElementRef,
17800
- className: "theme-settings",
18488
+ className: "be-article",
17801
18489
  style: {
17802
18490
  ...Object.fromEntries(
17803
- Object.entries(themeVariables).map(([key, value]) => [
17804
- themeVariablesMap[key],
18491
+ Object.entries({
18492
+ ...defaultThemeSettings,
18493
+ themeSettings
18494
+ }).map(([key, value]) => [
18495
+ themeSettingsMap[key],
17805
18496
  value
17806
18497
  ])
17807
18498
  )
17808
18499
  },
17809
- children
18500
+ children: [
18501
+ /* @__PURE__ */ jsx117(
18502
+ "style",
18503
+ {
18504
+ dangerouslySetInnerHTML: {
18505
+ __html: effectiveTheme === "light" ? themeLight : themeDark
18506
+ }
18507
+ }
18508
+ ),
18509
+ children
18510
+ ]
17810
18511
  }
17811
18512
  ) });
17812
18513
  }
@@ -17826,16 +18527,16 @@ import React24, {
17826
18527
  useRef as useRef58,
17827
18528
  useState as useState20
17828
18529
  } from "react";
17829
- import { jsx as jsx118, jsxs as jsxs43 } from "react/jsx-runtime";
18530
+ import { jsx as jsx118, jsxs as jsxs44 } from "react/jsx-runtime";
17830
18531
  var TOGGLE_EDITING_MODE = "TOGGLE_EDITING_MODE";
17831
18532
  var RESET_EDITING_MODE = "RESET_EDITING_MODE";
17832
18533
  var BlockEditorContext = React24.createContext(null);
17833
18534
  function BlockEditor(props) {
17834
18535
  const {
17835
- themeSettings,
17836
18536
  editable = true,
17837
18537
  editorState,
17838
18538
  theme,
18539
+ themeSettings,
17839
18540
  onChange,
17840
18541
  children,
17841
18542
  renderSettings
@@ -17851,9 +18552,6 @@ function BlockEditor(props) {
17851
18552
  const drawerRef = useRef58(null);
17852
18553
  const [isBlockEditorReady, setBlockEditorReady] = useState20(false);
17853
18554
  const { historyState } = useSharedHistoryContext();
17854
- const [blockEditorStyleVars, setBlockEditorStyleVars] = useState20({
17855
- "--be-ol-list-style-type": "decimal"
17856
- });
17857
18555
  const handleChange = useCallback11(
17858
18556
  (editorState2, _editor, tags) => {
17859
18557
  if (onChange && !tags?.has("new_state") && !tags?.has("history-merge")) {
@@ -17999,83 +18697,63 @@ function BlockEditor(props) {
17999
18697
  },
18000
18698
  drawer: drawerRef.current,
18001
18699
  isBlockEditorReady,
18002
- blockEditorStyleVars,
18003
- setBlockEditorStyleVars: (value) => {
18004
- setBlockEditorStyleVars({
18005
- ...blockEditorStyleVars,
18006
- ...value
18007
- });
18008
- },
18009
18700
  renderSettings: renderSettings ? renderSettings : () => /* @__PURE__ */ jsx118("div", {})
18010
18701
  },
18011
- children: /* @__PURE__ */ jsx118(ThemeProvider, { theme, themeVariables: themeSettings, children: /* @__PURE__ */ jsx118(ResizeObserver, { children: /* @__PURE__ */ jsx118(
18012
- "article",
18013
- {
18014
- className: "be-article",
18015
- style: { ...blockEditorStyleVars },
18016
- children: /* @__PURE__ */ jsx118(SharedHistoryContext, { children: /* @__PURE__ */ jsxs43(NodeProvider, { children: [
18017
- /* @__PURE__ */ jsx118(
18018
- "main",
18019
- {
18020
- className: `${settingsPanelSwitch === "on" ? "narrow" : ""}`,
18021
- children: /* @__PURE__ */ jsxs43(
18022
- LexicalComposer,
18023
- {
18024
- initialConfig: { ...initialConfig },
18025
- children: [
18026
- /* @__PURE__ */ jsx118(
18027
- EditorRefPlugin,
18028
- {
18029
- onMountRef: (editor) => editorRef.current = editor
18030
- }
18031
- ),
18032
- /* @__PURE__ */ jsx118(AutoFocusPlugin, {}),
18033
- /* @__PURE__ */ jsx118(AutoBottomParagraphPlugin, {}),
18034
- /* @__PURE__ */ jsx118(
18035
- HistoryPlugin9,
18036
- {
18037
- externalHistoryState: historyState
18038
- }
18039
- ),
18040
- /* @__PURE__ */ jsx118(
18041
- OnChangePlugin,
18042
- {
18043
- onChange: handleChange,
18044
- ignoreSelectionChange: true
18045
- }
18046
- ),
18047
- /* @__PURE__ */ jsx118(OnNestedChangePlugin, { onChange: handleChange }),
18048
- /* @__PURE__ */ jsx118(
18049
- RichTextPlugin7,
18050
- {
18051
- contentEditable: /* @__PURE__ */ jsx118(ContentEditable, {}),
18052
- placeholder: null,
18053
- ErrorBoundary: LexicalErrorBoundary9
18054
- }
18055
- ),
18056
- /* @__PURE__ */ jsx118(NodePastePlugin, {}),
18057
- /* @__PURE__ */ jsx118(ListPlugin2, {}),
18058
- /* @__PURE__ */ jsx118(ListLevelLimitPlugin, {}),
18059
- /* @__PURE__ */ jsx118(TabIndentationPlugin2, {}),
18060
- children,
18061
- /* @__PURE__ */ jsx118(TypeaheadMenuPlugin, {}),
18062
- /* @__PURE__ */ jsx118(TypeaheadMenuAgentPlugin, {}),
18063
- /* @__PURE__ */ jsx118(NodeMouseAnchorPlugin, {}),
18064
- /* @__PURE__ */ jsx118(NodeMousePlugin, {}),
18065
- /* @__PURE__ */ jsx118(TextToolbarPlugin, {}),
18066
- /* @__PURE__ */ jsx118(TextToolbarAgentPlugin, {}),
18067
- /* @__PURE__ */ jsx118(TypeaheadVariableAgentPlugin, {}),
18068
- /* @__PURE__ */ jsx118(VariableComponentPlugin, {}),
18069
- /* @__PURE__ */ jsx118(MarkdownPlugin, {})
18070
- ]
18071
- }
18072
- )
18073
- }
18074
- ),
18075
- /* @__PURE__ */ jsx118(Drawer, { ref: drawerRef })
18076
- ] }) })
18077
- }
18078
- ) }) })
18702
+ children: /* @__PURE__ */ jsx118(ResizeObserver, { children: /* @__PURE__ */ jsx118(ThemeProvider, { theme, themeSettings, children: /* @__PURE__ */ jsx118(SharedHistoryContext, { children: /* @__PURE__ */ jsxs44(NodeProvider, { children: [
18703
+ /* @__PURE__ */ jsx118(
18704
+ "main",
18705
+ {
18706
+ className: `${settingsPanelSwitch === "on" ? "narrow" : ""}`,
18707
+ children: /* @__PURE__ */ jsxs44(LexicalComposer, { initialConfig: { ...initialConfig }, children: [
18708
+ /* @__PURE__ */ jsx118(
18709
+ EditorRefPlugin,
18710
+ {
18711
+ onMountRef: (editor) => editorRef.current = editor
18712
+ }
18713
+ ),
18714
+ /* @__PURE__ */ jsx118(AutoFocusPlugin, {}),
18715
+ /* @__PURE__ */ jsx118(AutoBottomParagraphPlugin, {}),
18716
+ /* @__PURE__ */ jsx118(
18717
+ HistoryPlugin9,
18718
+ {
18719
+ externalHistoryState: historyState
18720
+ }
18721
+ ),
18722
+ /* @__PURE__ */ jsx118(
18723
+ OnChangePlugin,
18724
+ {
18725
+ onChange: handleChange,
18726
+ ignoreSelectionChange: true
18727
+ }
18728
+ ),
18729
+ /* @__PURE__ */ jsx118(OnNestedChangePlugin, { onChange: handleChange }),
18730
+ /* @__PURE__ */ jsx118(
18731
+ RichTextPlugin7,
18732
+ {
18733
+ contentEditable: /* @__PURE__ */ jsx118(ContentEditable, {}),
18734
+ placeholder: null,
18735
+ ErrorBoundary: LexicalErrorBoundary9
18736
+ }
18737
+ ),
18738
+ /* @__PURE__ */ jsx118(NodePastePlugin, {}),
18739
+ /* @__PURE__ */ jsx118(ListPlugin2, {}),
18740
+ /* @__PURE__ */ jsx118(ListLevelLimitPlugin, {}),
18741
+ /* @__PURE__ */ jsx118(TabIndentationPlugin2, {}),
18742
+ children,
18743
+ /* @__PURE__ */ jsx118(TypeaheadMenuPlugin, {}),
18744
+ /* @__PURE__ */ jsx118(TypeaheadMenuAgentPlugin, {}),
18745
+ /* @__PURE__ */ jsx118(NodeMouseAnchorPlugin, {}),
18746
+ /* @__PURE__ */ jsx118(NodeMousePlugin, {}),
18747
+ /* @__PURE__ */ jsx118(TextToolbarPlugin, {}),
18748
+ /* @__PURE__ */ jsx118(TextToolbarAgentPlugin, {}),
18749
+ /* @__PURE__ */ jsx118(TypeaheadVariableAgentPlugin, {}),
18750
+ /* @__PURE__ */ jsx118(VariableComponentPlugin, {}),
18751
+ /* @__PURE__ */ jsx118(MarkdownPlugin, {})
18752
+ ] })
18753
+ }
18754
+ ),
18755
+ /* @__PURE__ */ jsx118(Drawer, { ref: drawerRef })
18756
+ ] }) }) }) })
18079
18757
  }
18080
18758
  );
18081
18759
  }
@@ -18089,24 +18767,31 @@ var useBlockEditor = () => {
18089
18767
  return context;
18090
18768
  };
18091
18769
 
18770
+ // src/BlockEditorStyle.tsx
18771
+ import { jsx as jsx119 } from "react/jsx-runtime";
18772
+ function BlockEditorStyle(props) {
18773
+ const { children, theme, themeSettings } = props;
18774
+ return /* @__PURE__ */ jsx119(ThemeProvider, { theme, themeSettings, children });
18775
+ }
18776
+
18092
18777
  // src/modules/Callout.tsx
18093
18778
  import { useEffect as useEffect83 } from "react";
18094
- import { jsx as jsx119 } from "react/jsx-runtime";
18779
+ import { jsx as jsx120 } from "react/jsx-runtime";
18095
18780
  function Callout() {
18096
18781
  const { registerModule } = useBlockEditor();
18097
18782
  useEffect83(() => {
18098
18783
  registerModule("Callout");
18099
18784
  }, [registerModule]);
18100
- return /* @__PURE__ */ jsx119(CalloutBoxPlugin, {});
18785
+ return /* @__PURE__ */ jsx120(CalloutBoxPlugin, {});
18101
18786
  }
18102
18787
 
18103
18788
  // src/plugins/TreeViewPlugin/index.tsx
18104
18789
  import { useLexicalComposerContext as useLexicalComposerContext64 } from "@lexical/react/LexicalComposerContext";
18105
18790
  import { TreeView } from "@lexical/react/LexicalTreeView";
18106
- import { jsx as jsx120 } from "react/jsx-runtime";
18791
+ import { jsx as jsx121 } from "react/jsx-runtime";
18107
18792
  function TreeViewPlugin() {
18108
18793
  const [editor] = useLexicalComposerContext64();
18109
- return /* @__PURE__ */ jsx120(
18794
+ return /* @__PURE__ */ jsx121(
18110
18795
  TreeView,
18111
18796
  {
18112
18797
  viewClassName: "tree-view-output",
@@ -18122,25 +18807,25 @@ function TreeViewPlugin() {
18122
18807
 
18123
18808
  // src/modules/Debug.tsx
18124
18809
  import { useEffect as useEffect84 } from "react";
18125
- import { jsx as jsx121 } from "react/jsx-runtime";
18810
+ import { jsx as jsx122 } from "react/jsx-runtime";
18126
18811
  function Debug() {
18127
18812
  const { registerModule } = useBlockEditor();
18128
18813
  useEffect84(() => {
18129
18814
  registerModule("Debug");
18130
18815
  }, [registerModule]);
18131
- return /* @__PURE__ */ jsx121(TreeViewPlugin, {});
18816
+ return /* @__PURE__ */ jsx122(TreeViewPlugin, {});
18132
18817
  }
18133
18818
 
18134
18819
  // src/modules/Image.tsx
18135
18820
  import { useEffect as useEffect85 } from "react";
18136
- import { Fragment as Fragment46, jsx as jsx122 } from "react/jsx-runtime";
18821
+ import { Fragment as Fragment46, jsx as jsx123 } from "react/jsx-runtime";
18137
18822
  function Image(props) {
18138
18823
  const { imageSettings } = props;
18139
18824
  const { registerModule } = useBlockEditor();
18140
18825
  useEffect85(() => {
18141
18826
  registerModule("Image");
18142
18827
  }, [registerModule]);
18143
- return /* @__PURE__ */ jsx122(Fragment46, { children: /* @__PURE__ */ jsx122(ImagePlugin, { imageSettings }) });
18828
+ return /* @__PURE__ */ jsx123(Fragment46, { children: /* @__PURE__ */ jsx123(ImagePlugin, { imageSettings }) });
18144
18829
  }
18145
18830
 
18146
18831
  // src/plugins/LinkToolbarPlugin/LinkToolbarPlugin.tsx
@@ -18161,7 +18846,7 @@ import {
18161
18846
  import debounce6 from "lodash-es/debounce";
18162
18847
  import { Pencil, Trash2 as Trash24, X } from "lucide-react";
18163
18848
  import { useCallback as useCallback12, useEffect as useEffect86, useRef as useRef59, useState as useState21 } from "react";
18164
- import { jsx as jsx123, jsxs as jsxs44 } from "react/jsx-runtime";
18849
+ import { jsx as jsx124, jsxs as jsxs45 } from "react/jsx-runtime";
18165
18850
  function LinkToolbarPlugin() {
18166
18851
  const [editor] = useLexicalComposerContext65();
18167
18852
  const popupToolbarRef = useRef59(null);
@@ -18271,12 +18956,12 @@ function LinkToolbarPlugin() {
18271
18956
  }, [editor]);
18272
18957
  const linkUrl = linkNode?.linkUrl;
18273
18958
  const linkTitle = linkNode?.linkUrl;
18274
- return /* @__PURE__ */ jsx123(
18959
+ return /* @__PURE__ */ jsx124(
18275
18960
  PopupToolbar,
18276
18961
  {
18277
18962
  ref: popupToolbarRef,
18278
18963
  onEscape: handleClose,
18279
- toolbar: /* @__PURE__ */ jsxs44(
18964
+ toolbar: /* @__PURE__ */ jsxs45(
18280
18965
  "div",
18281
18966
  {
18282
18967
  style: {
@@ -18289,23 +18974,23 @@ function LinkToolbarPlugin() {
18289
18974
  padding: "var(--sl-spacing-2x-small) var(--sl-spacing-x-small) var(--sl-spacing-2x-small) var(--sl-spacing-medium)"
18290
18975
  },
18291
18976
  children: [
18292
- /* @__PURE__ */ jsx123("div", { children: /* @__PURE__ */ jsx123("a", { href: linkUrl, target: linkNode?.linkTarget || "", children: /* @__PURE__ */ jsx123(
18977
+ /* @__PURE__ */ jsx124("div", { children: /* @__PURE__ */ jsx124("a", { href: linkUrl, target: linkNode?.linkTarget || "", children: /* @__PURE__ */ jsx124(
18293
18978
  "sl-tooltip",
18294
18979
  {
18295
18980
  style: { "--show-delay": "1800" },
18296
18981
  hoist: true,
18297
18982
  content: linkUrl || "[Empty URL]",
18298
- children: /* @__PURE__ */ jsx123("span", { className: "line-short-20", children: linkTitle })
18983
+ children: /* @__PURE__ */ jsx124("span", { className: "line-short-20", children: linkTitle })
18299
18984
  }
18300
18985
  ) }) }),
18301
- /* @__PURE__ */ jsxs44(Stack, { className: "stack__row", children: [
18302
- /* @__PURE__ */ jsx123("div", { children: /* @__PURE__ */ jsx123(
18986
+ /* @__PURE__ */ jsxs45(Stack, { className: "stack__row", children: [
18987
+ /* @__PURE__ */ jsx124("div", { children: /* @__PURE__ */ jsx124(
18303
18988
  "sl-tooltip",
18304
18989
  {
18305
18990
  style: { "--show-delay": "1800" },
18306
18991
  hoist: "hoist",
18307
18992
  content: "Edit Link",
18308
- children: /* @__PURE__ */ jsx123(
18993
+ children: /* @__PURE__ */ jsx124(
18309
18994
  Button,
18310
18995
  {
18311
18996
  size: "small",
@@ -18344,13 +19029,13 @@ function LinkToolbarPlugin() {
18344
19029
  )
18345
19030
  }
18346
19031
  ) }),
18347
- /* @__PURE__ */ jsx123("div", { children: /* @__PURE__ */ jsx123(
19032
+ /* @__PURE__ */ jsx124("div", { children: /* @__PURE__ */ jsx124(
18348
19033
  "sl-tooltip",
18349
19034
  {
18350
19035
  style: { "--show-delay": "1800" },
18351
19036
  hoist: "hoist",
18352
19037
  content: "Remove Link",
18353
- children: /* @__PURE__ */ jsx123(
19038
+ children: /* @__PURE__ */ jsx124(
18354
19039
  Button,
18355
19040
  {
18356
19041
  size: "small",
@@ -18385,13 +19070,13 @@ function LinkToolbarPlugin() {
18385
19070
  )
18386
19071
  }
18387
19072
  ) }),
18388
- /* @__PURE__ */ jsx123("div", { children: /* @__PURE__ */ jsx123(
19073
+ /* @__PURE__ */ jsx124("div", { children: /* @__PURE__ */ jsx124(
18389
19074
  "sl-tooltip",
18390
19075
  {
18391
19076
  style: { "--show-delay": "1800" },
18392
19077
  hoist: "hoist",
18393
19078
  content: "Close",
18394
- children: /* @__PURE__ */ jsx123(
19079
+ children: /* @__PURE__ */ jsx124(
18395
19080
  Button,
18396
19081
  {
18397
19082
  size: "small",
@@ -18414,15 +19099,15 @@ function LinkToolbarPlugin() {
18414
19099
 
18415
19100
  // src/modules/Link.tsx
18416
19101
  import { useEffect as useEffect87 } from "react";
18417
- import { Fragment as Fragment47, jsx as jsx124, jsxs as jsxs45 } from "react/jsx-runtime";
19102
+ import { Fragment as Fragment47, jsx as jsx125, jsxs as jsxs46 } from "react/jsx-runtime";
18418
19103
  function Link() {
18419
19104
  const { registerModule } = useBlockEditor();
18420
19105
  useEffect87(() => {
18421
19106
  registerModule("Link");
18422
19107
  }, [registerModule]);
18423
- return /* @__PURE__ */ jsxs45(Fragment47, { children: [
18424
- /* @__PURE__ */ jsx124(LinkEditorPlugin, {}),
18425
- /* @__PURE__ */ jsx124(LinkToolbarPlugin, {})
19108
+ return /* @__PURE__ */ jsxs46(Fragment47, { children: [
19109
+ /* @__PURE__ */ jsx125(LinkEditorPlugin, {}),
19110
+ /* @__PURE__ */ jsx125(LinkToolbarPlugin, {})
18426
19111
  ] });
18427
19112
  }
18428
19113
 
@@ -18437,7 +19122,7 @@ import {
18437
19122
  createCommand as createCommand20
18438
19123
  } from "lexical";
18439
19124
  import { useEffect as useEffect88 } from "react";
18440
- import { Fragment as Fragment48, jsx as jsx125 } from "react/jsx-runtime";
19125
+ import { Fragment as Fragment48, jsx as jsx126 } from "react/jsx-runtime";
18441
19126
  var INSERT_ESSAY_QUESTION_COMMAND = createCommand20("INSERT_ESSAY_QUESTION_COMMAND");
18442
19127
  function EssayQuestionPlugin() {
18443
19128
  const [editor] = useLexicalComposerContext66();
@@ -18475,7 +19160,7 @@ function EssayQuestionPlugin() {
18475
19160
  )
18476
19161
  );
18477
19162
  }, [editor]);
18478
- return /* @__PURE__ */ jsx125(Fragment48, {});
19163
+ return /* @__PURE__ */ jsx126(Fragment48, {});
18479
19164
  }
18480
19165
 
18481
19166
  // src/plugins/FinancialStatementQuestionPlugin/FinancialStatementQuestionSettings.tsx
@@ -18503,7 +19188,7 @@ function validatePointsInput6(input) {
18503
19188
  }
18504
19189
 
18505
19190
  // src/plugins/FinancialStatementQuestionPlugin/FinancialStatementQuestionSettings.tsx
18506
- import { jsx as jsx126 } from "react/jsx-runtime";
19191
+ import { jsx as jsx127 } from "react/jsx-runtime";
18507
19192
  function FinancialStatementQuestionSettings(props) {
18508
19193
  const { nodeKey } = props;
18509
19194
  const [editor] = useLexicalComposerContext67();
@@ -18522,7 +19207,7 @@ function FinancialStatementQuestionSettings(props) {
18522
19207
  if (!foundNode) {
18523
19208
  return null;
18524
19209
  }
18525
- return /* @__PURE__ */ jsx126("div", { children: /* @__PURE__ */ jsx126(
19210
+ return /* @__PURE__ */ jsx127("div", { children: /* @__PURE__ */ jsx127(
18526
19211
  TextInput,
18527
19212
  {
18528
19213
  ref: pointsTextInputRef,
@@ -18565,7 +19250,7 @@ import {
18565
19250
  createEditor as createEditor9
18566
19251
  } from "lexical";
18567
19252
  import { useEffect as useEffect90, useRef as useRef61 } from "react";
18568
- import { Fragment as Fragment49, jsx as jsx127, jsxs as jsxs46 } from "react/jsx-runtime";
19253
+ import { Fragment as Fragment49, jsx as jsx128, jsxs as jsxs47 } from "react/jsx-runtime";
18569
19254
  var INSERT_FINANCIAL_STATEMENT_QUESTION_COMMAND = createCommand21("INSERT_FINANCIAL_STATEMENT_QUESTION_COMMAND");
18570
19255
  function FinancialStatementQuestionPlugin() {
18571
19256
  const {
@@ -18630,21 +19315,21 @@ function FinancialStatementQuestionPlugin() {
18630
19315
  }
18631
19316
  }
18632
19317
  }, [isBlockEditorReady]);
18633
- return /* @__PURE__ */ jsxs46(Fragment49, { children: [
18634
- drawer && /* @__PURE__ */ jsx127(
19318
+ return /* @__PURE__ */ jsxs47(Fragment49, { children: [
19319
+ drawer && /* @__PURE__ */ jsx128(
18635
19320
  StickyToPosition,
18636
19321
  {
18637
19322
  ref: settingsPanelStickyRef,
18638
19323
  container: drawer,
18639
19324
  children: (data, position, isVisible) => {
18640
- return /* @__PURE__ */ jsx127("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx127(
19325
+ return /* @__PURE__ */ jsx128("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx128(
18641
19326
  SettingsCard,
18642
19327
  {
18643
19328
  isVisible: !!isVisible,
18644
19329
  container: drawer,
18645
19330
  title: "Financial Statement Settings",
18646
19331
  onClose: toggleSettingsPanelSwitch,
18647
- children: isVisible && /* @__PURE__ */ jsx127(
19332
+ children: isVisible && /* @__PURE__ */ jsx128(
18648
19333
  FinancialStatementQuestionSettings,
18649
19334
  {
18650
19335
  nodeKey: data.nodeKey
@@ -18656,32 +19341,32 @@ function FinancialStatementQuestionPlugin() {
18656
19341
  }
18657
19342
  }
18658
19343
  ),
18659
- /* @__PURE__ */ jsx127(FillInTheBlankSpaceSettingsPlugin, {})
19344
+ /* @__PURE__ */ jsx128(FillInTheBlankSpaceSettingsPlugin, {})
18660
19345
  ] });
18661
19346
  }
18662
19347
 
18663
19348
  // src/modules/Questions.tsx
18664
19349
  import { useEffect as useEffect91 } from "react";
18665
- import { Fragment as Fragment50, jsx as jsx128, jsxs as jsxs47 } from "react/jsx-runtime";
19350
+ import { Fragment as Fragment50, jsx as jsx129, jsxs as jsxs48 } from "react/jsx-runtime";
18666
19351
  function Questions() {
18667
19352
  const { registerModule } = useBlockEditor();
18668
19353
  useEffect91(() => {
18669
19354
  registerModule("Questions");
18670
19355
  }, [registerModule]);
18671
- return /* @__PURE__ */ jsxs47(Fragment50, { children: [
18672
- /* @__PURE__ */ jsx128(MultipleOptionQuestionPlugin, {}),
18673
- /* @__PURE__ */ jsx128(ShortAnswerQuestionPlugin, {}),
18674
- /* @__PURE__ */ jsx128(MatchingQuestionPlugin, {}),
18675
- /* @__PURE__ */ jsx128(FillInTheBlankQuestionPlugin, {}),
18676
- /* @__PURE__ */ jsx128(JournalEntryQuestionPlugin, {}),
18677
- /* @__PURE__ */ jsx128(FinancialStatementQuestionPlugin, {}),
18678
- /* @__PURE__ */ jsx128(EssayQuestionPlugin, {})
19356
+ return /* @__PURE__ */ jsxs48(Fragment50, { children: [
19357
+ /* @__PURE__ */ jsx129(MultipleOptionQuestionPlugin, {}),
19358
+ /* @__PURE__ */ jsx129(ShortAnswerQuestionPlugin, {}),
19359
+ /* @__PURE__ */ jsx129(MatchingQuestionPlugin, {}),
19360
+ /* @__PURE__ */ jsx129(FillInTheBlankQuestionPlugin, {}),
19361
+ /* @__PURE__ */ jsx129(JournalEntryQuestionPlugin, {}),
19362
+ /* @__PURE__ */ jsx129(FinancialStatementQuestionPlugin, {}),
19363
+ /* @__PURE__ */ jsx129(EssayQuestionPlugin, {})
18679
19364
  ] });
18680
19365
  }
18681
19366
 
18682
19367
  // src/modules/SettingsPanel.tsx
18683
19368
  import { useEffect as useEffect92 } from "react";
18684
- import { jsx as jsx129 } from "react/jsx-runtime";
19369
+ import { jsx as jsx130 } from "react/jsx-runtime";
18685
19370
  function SettingsPanel(props) {
18686
19371
  const { defaultOpen = true } = props;
18687
19372
  const { registerModule, openSettingsPanel } = useBlockEditor();
@@ -18693,7 +19378,7 @@ function SettingsPanel(props) {
18693
19378
  }
18694
19379
  }, 50);
18695
19380
  }, [registerModule, defaultOpen, openSettingsPanel]);
18696
- return /* @__PURE__ */ jsx129(SettingsPanelPlugin, {});
19381
+ return /* @__PURE__ */ jsx130(SettingsPanelPlugin, {});
18697
19382
  }
18698
19383
 
18699
19384
  // src/plugins/VariablesPlugin/VariableSettingsPlugin.tsx
@@ -18712,7 +19397,7 @@ import {
18712
19397
  useRef as useRef62,
18713
19398
  useState as useState23
18714
19399
  } from "react";
18715
- import { Fragment as Fragment51, jsx as jsx130, jsxs as jsxs48 } from "react/jsx-runtime";
19400
+ import { Fragment as Fragment51, jsx as jsx131, jsxs as jsxs49 } from "react/jsx-runtime";
18716
19401
  var controlGridStyle = {
18717
19402
  width: "100%",
18718
19403
  display: "flex",
@@ -18934,8 +19619,8 @@ function VariableSettings(props) {
18934
19619
  if (!currentVariableNode) {
18935
19620
  return null;
18936
19621
  }
18937
- return /* @__PURE__ */ jsxs48(Fragment51, { children: [
18938
- /* @__PURE__ */ jsx130("div", { style: formFieldStyle, children: /* @__PURE__ */ jsx130(
19622
+ return /* @__PURE__ */ jsxs49(Fragment51, { children: [
19623
+ /* @__PURE__ */ jsx131("div", { style: formFieldStyle, children: /* @__PURE__ */ jsx131(
18939
19624
  Button,
18940
19625
  {
18941
19626
  className: "button__fullwidth",
@@ -18954,10 +19639,10 @@ function VariableSettings(props) {
18954
19639
  variant: "default"
18955
19640
  }
18956
19641
  ) }),
18957
- /* @__PURE__ */ jsxs48("div", { style: formFieldStyle, children: [
18958
- /* @__PURE__ */ jsx130("div", { style: formFieldLabel, children: "Name" }),
18959
- /* @__PURE__ */ jsxs48("div", { style: controlGridStyle, children: [
18960
- /* @__PURE__ */ jsx130("div", { style: { flexGrow: 1 }, children: isSettingsEditingMode ? /* @__PURE__ */ jsx130(
19642
+ /* @__PURE__ */ jsxs49("div", { style: formFieldStyle, children: [
19643
+ /* @__PURE__ */ jsx131("div", { style: formFieldLabel, children: "Name" }),
19644
+ /* @__PURE__ */ jsxs49("div", { style: controlGridStyle, children: [
19645
+ /* @__PURE__ */ jsx131("div", { style: { flexGrow: 1 }, children: isSettingsEditingMode ? /* @__PURE__ */ jsx131(
18961
19646
  "form",
18962
19647
  {
18963
19648
  onSubmit: (e) => {
@@ -18965,7 +19650,7 @@ function VariableSettings(props) {
18965
19650
  e.preventDefault();
18966
19651
  updateVariableName();
18967
19652
  },
18968
- children: /* @__PURE__ */ jsx130(
19653
+ children: /* @__PURE__ */ jsx131(
18969
19654
  TextInput,
18970
19655
  {
18971
19656
  ref: variableNameInputRef,
@@ -18977,7 +19662,7 @@ function VariableSettings(props) {
18977
19662
  }
18978
19663
  )
18979
19664
  }
18980
- ) : /* @__PURE__ */ jsx130(
19665
+ ) : /* @__PURE__ */ jsx131(
18981
19666
  DropdownButton,
18982
19667
  {
18983
19668
  className: "button__fullwidth button__left_aligned",
@@ -18990,7 +19675,7 @@ function VariableSettings(props) {
18990
19675
  menu: variablesMenu
18991
19676
  }
18992
19677
  ) }),
18993
- /* @__PURE__ */ jsx130("div", { style: { flexGrow: 0 }, children: isSettingsEditingMode ? /* @__PURE__ */ jsx130(
19678
+ /* @__PURE__ */ jsx131("div", { style: { flexGrow: 0 }, children: isSettingsEditingMode ? /* @__PURE__ */ jsx131(
18994
19679
  Button,
18995
19680
  {
18996
19681
  StartIcon: Save,
@@ -18998,7 +19683,7 @@ function VariableSettings(props) {
18998
19683
  size: "small",
18999
19684
  onClick: updateVariableName
19000
19685
  }
19001
- ) : /* @__PURE__ */ jsx130(
19686
+ ) : /* @__PURE__ */ jsx131(
19002
19687
  Button,
19003
19688
  {
19004
19689
  StartIcon: Pencil2,
@@ -19011,9 +19696,9 @@ function VariableSettings(props) {
19011
19696
  ) })
19012
19697
  ] })
19013
19698
  ] }),
19014
- /* @__PURE__ */ jsxs48("div", { style: formFieldStyle, children: [
19015
- /* @__PURE__ */ jsx130("div", { style: formFieldLabel, children: "Type" }),
19016
- /* @__PURE__ */ jsx130(
19699
+ /* @__PURE__ */ jsxs49("div", { style: formFieldStyle, children: [
19700
+ /* @__PURE__ */ jsx131("div", { style: formFieldLabel, children: "Type" }),
19701
+ /* @__PURE__ */ jsx131(
19017
19702
  DropdownButton,
19018
19703
  {
19019
19704
  className: "button__fullwidth button__left_aligned",
@@ -19027,9 +19712,9 @@ function VariableSettings(props) {
19027
19712
  }
19028
19713
  )
19029
19714
  ] }),
19030
- currentVariableNode.getVariableFormat() && /* @__PURE__ */ jsxs48("div", { style: formFieldStyle, children: [
19031
- /* @__PURE__ */ jsx130("div", { style: formFieldLabel, children: "Format" }),
19032
- /* @__PURE__ */ jsx130(
19715
+ currentVariableNode.getVariableFormat() && /* @__PURE__ */ jsxs49("div", { style: formFieldStyle, children: [
19716
+ /* @__PURE__ */ jsx131("div", { style: formFieldLabel, children: "Format" }),
19717
+ /* @__PURE__ */ jsx131(
19033
19718
  DropdownButton,
19034
19719
  {
19035
19720
  className: "button__fullwidth button__left_aligned",
@@ -19043,7 +19728,7 @@ function VariableSettings(props) {
19043
19728
  }
19044
19729
  )
19045
19730
  ] }),
19046
- /* @__PURE__ */ jsx130("div", { style: { width: "100%", display: "f" }, children: /* @__PURE__ */ jsx130(
19731
+ /* @__PURE__ */ jsx131("div", { style: { width: "100%", display: "f" }, children: /* @__PURE__ */ jsx131(
19047
19732
  Button,
19048
19733
  {
19049
19734
  size: "small",
@@ -19085,7 +19770,7 @@ function VariableSettings(props) {
19085
19770
  }
19086
19771
 
19087
19772
  // src/plugins/VariablesPlugin/VariableSettingsPlugin.tsx
19088
- import { Fragment as Fragment52, jsx as jsx131 } from "react/jsx-runtime";
19773
+ import { Fragment as Fragment52, jsx as jsx132 } from "react/jsx-runtime";
19089
19774
  function VariableSettingsPlugin() {
19090
19775
  const {
19091
19776
  registerSettingsPanel,
@@ -19104,20 +19789,20 @@ function VariableSettingsPlugin() {
19104
19789
  }
19105
19790
  }
19106
19791
  }, [isBlockEditorReady]);
19107
- return /* @__PURE__ */ jsx131(Fragment52, { children: drawer && /* @__PURE__ */ jsx131(
19792
+ return /* @__PURE__ */ jsx132(Fragment52, { children: drawer && /* @__PURE__ */ jsx132(
19108
19793
  StickyToPosition,
19109
19794
  {
19110
19795
  ref: settingsPanelStickyRef,
19111
19796
  container: drawer,
19112
19797
  children: (data, position, isVisible) => {
19113
- return /* @__PURE__ */ jsx131("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx131(
19798
+ return /* @__PURE__ */ jsx132("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx132(
19114
19799
  SettingsCard,
19115
19800
  {
19116
19801
  isVisible: !!isVisible,
19117
19802
  container: drawer,
19118
19803
  title: "Variable Settings",
19119
19804
  onClose: toggleSettingsPanelSwitch,
19120
- children: /* @__PURE__ */ jsx131(
19805
+ children: /* @__PURE__ */ jsx132(
19121
19806
  VariableSettings,
19122
19807
  {
19123
19808
  nodeKey: data.nodeKey,
@@ -19150,7 +19835,7 @@ import {
19150
19835
  useRef as useRef64,
19151
19836
  useState as useState24
19152
19837
  } from "react";
19153
- import { jsx as jsx132 } from "react/jsx-runtime";
19838
+ import { jsx as jsx133 } from "react/jsx-runtime";
19154
19839
  function VariableToolbarPlugin() {
19155
19840
  const [editor] = useLexicalComposerContext70();
19156
19841
  const popupToolbarRef = useRef64(null);
@@ -19343,12 +20028,12 @@ function VariableToolbarPlugin() {
19343
20028
  ];
19344
20029
  return resultList;
19345
20030
  }, [toolbarState]);
19346
- return /* @__PURE__ */ jsx132(PopupToolbar, { ref: popupToolbarRef, menu: menuItems });
20031
+ return /* @__PURE__ */ jsx133(PopupToolbar, { ref: popupToolbarRef, menu: menuItems });
19347
20032
  }
19348
20033
 
19349
20034
  // src/modules/Variables.tsx
19350
20035
  import { useEffect as useEffect96 } from "react";
19351
- import { jsx as jsx133, jsxs as jsxs49 } from "react/jsx-runtime";
20036
+ import { jsx as jsx134, jsxs as jsxs50 } from "react/jsx-runtime";
19352
20037
  function Variables(props) {
19353
20038
  const { variablesSettings } = props;
19354
20039
  const { registerModule, setEditingModeDataCallback } = useBlockEditor();
@@ -19362,15 +20047,16 @@ function Variables(props) {
19362
20047
  };
19363
20048
  });
19364
20049
  }, [variablesSettings, setEditingModeDataCallback]);
19365
- return /* @__PURE__ */ jsxs49(VariablesProvider, { variablesSettings, children: [
19366
- /* @__PURE__ */ jsx133(TypeaheadVariablePlugin, {}),
19367
- /* @__PURE__ */ jsx133(VariableSettingsPlugin, {}),
19368
- /* @__PURE__ */ jsx133(VariableToolbarPlugin, {}),
19369
- /* @__PURE__ */ jsx133(VariableToolbarAgentPlugin, {})
20050
+ return /* @__PURE__ */ jsxs50(VariablesProvider, { variablesSettings, children: [
20051
+ /* @__PURE__ */ jsx134(TypeaheadVariablePlugin, {}),
20052
+ /* @__PURE__ */ jsx134(VariableSettingsPlugin, {}),
20053
+ /* @__PURE__ */ jsx134(VariableToolbarPlugin, {}),
20054
+ /* @__PURE__ */ jsx134(VariableToolbarAgentPlugin, {})
19370
20055
  ] });
19371
20056
  }
19372
20057
  export {
19373
20058
  BlockEditor,
20059
+ BlockEditorStyle,
19374
20060
  Callout,
19375
20061
  Debug,
19376
20062
  Image,