nextgen-block-editor 0.2.0 → 0.3.1
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.cjs +1183 -394
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1182 -393
- package/dist/styles.css +523 -1
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -2085,6 +2085,7 @@
|
|
|
2085
2085
|
}
|
|
2086
2086
|
|
|
2087
2087
|
.nextgen-editor-shell {
|
|
2088
|
+
position: relative;
|
|
2088
2089
|
border: 1px solid var(--ng-border);
|
|
2089
2090
|
border-radius: calc(var(--ng-radius) + 2px);
|
|
2090
2091
|
padding: 20px 24px;
|
|
@@ -3593,6 +3594,74 @@
|
|
|
3593
3594
|
overflow: hidden;
|
|
3594
3595
|
}
|
|
3595
3596
|
|
|
3597
|
+
.ng-modal.ng-modal-wide {
|
|
3598
|
+
max-width: 760px;
|
|
3599
|
+
}
|
|
3600
|
+
|
|
3601
|
+
.ng-modal-layout {
|
|
3602
|
+
display: grid;
|
|
3603
|
+
grid-template-columns: 186px minmax(0, 1fr);
|
|
3604
|
+
min-height: 400px;
|
|
3605
|
+
max-height: 75vh;
|
|
3606
|
+
}
|
|
3607
|
+
|
|
3608
|
+
.ng-modal-sidebar {
|
|
3609
|
+
border-right: 1px solid var(--ng-border);
|
|
3610
|
+
background: var(--ng-background);
|
|
3611
|
+
padding: 12px 10px;
|
|
3612
|
+
display: grid;
|
|
3613
|
+
gap: 4px;
|
|
3614
|
+
align-content: start;
|
|
3615
|
+
}
|
|
3616
|
+
|
|
3617
|
+
.ng-modal-tab {
|
|
3618
|
+
width: 100%;
|
|
3619
|
+
text-align: left;
|
|
3620
|
+
padding: 8px 11px;
|
|
3621
|
+
border-radius: 8px;
|
|
3622
|
+
border: none;
|
|
3623
|
+
background: transparent;
|
|
3624
|
+
color: var(--ng-muted-foreground);
|
|
3625
|
+
font-size: 13px;
|
|
3626
|
+
font-weight: 500;
|
|
3627
|
+
cursor: pointer;
|
|
3628
|
+
}
|
|
3629
|
+
|
|
3630
|
+
.ng-modal-tab:hover {
|
|
3631
|
+
background: var(--ng-accent);
|
|
3632
|
+
color: var(--ng-accent-foreground);
|
|
3633
|
+
}
|
|
3634
|
+
|
|
3635
|
+
.ng-modal-tab.is-active {
|
|
3636
|
+
background: var(--ng-accent);
|
|
3637
|
+
color: var(--ng-foreground);
|
|
3638
|
+
font-weight: 600;
|
|
3639
|
+
}
|
|
3640
|
+
|
|
3641
|
+
.ng-modal-main {
|
|
3642
|
+
padding: 18px 20px;
|
|
3643
|
+
overflow-y: auto;
|
|
3644
|
+
}
|
|
3645
|
+
|
|
3646
|
+
.ng-modal-panel {
|
|
3647
|
+
display: grid;
|
|
3648
|
+
gap: 14px;
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3651
|
+
@media (max-width: 620px) {
|
|
3652
|
+
.ng-modal-layout {
|
|
3653
|
+
grid-template-columns: 1fr;
|
|
3654
|
+
}
|
|
3655
|
+
.ng-modal-sidebar {
|
|
3656
|
+
border-right: none;
|
|
3657
|
+
border-bottom: 1px solid var(--ng-border);
|
|
3658
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
3659
|
+
}
|
|
3660
|
+
.ng-modal-tab {
|
|
3661
|
+
text-align: center;
|
|
3662
|
+
}
|
|
3663
|
+
}
|
|
3664
|
+
|
|
3596
3665
|
.ng-modal-head {
|
|
3597
3666
|
display: flex;
|
|
3598
3667
|
align-items: flex-start;
|
|
@@ -3658,6 +3727,31 @@
|
|
|
3658
3727
|
}
|
|
3659
3728
|
|
|
3660
3729
|
/* Built-in Theme Presets via Settings Modal */
|
|
3730
|
+
html[data-ng-theme],
|
|
3731
|
+
html[data-ng-theme] body {
|
|
3732
|
+
background: var(--ng-background);
|
|
3733
|
+
color: var(--ng-foreground);
|
|
3734
|
+
transition: background-color 180ms ease, color 180ms ease;
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
.nextgen-editor-shell[data-ng-theme],
|
|
3738
|
+
.nextgen-editor-article[data-ng-theme] {
|
|
3739
|
+
background: var(--ng-card);
|
|
3740
|
+
color: var(--ng-foreground);
|
|
3741
|
+
--bg: var(--ng-background);
|
|
3742
|
+
--surface: var(--ng-card);
|
|
3743
|
+
--ink: var(--ng-foreground);
|
|
3744
|
+
--soft: var(--ng-muted-foreground);
|
|
3745
|
+
--line: var(--ng-border);
|
|
3746
|
+
--tint: var(--ng-muted);
|
|
3747
|
+
}
|
|
3748
|
+
|
|
3749
|
+
.nextgen-editor-article[data-ng-theme] {
|
|
3750
|
+
padding: 20px 24px;
|
|
3751
|
+
border-radius: calc(var(--ng-radius) + 2px);
|
|
3752
|
+
border: 1px solid var(--ng-border);
|
|
3753
|
+
}
|
|
3754
|
+
|
|
3661
3755
|
[data-ng-theme='light'] {
|
|
3662
3756
|
--ng-background: #ffffff;
|
|
3663
3757
|
--ng-foreground: #09090b;
|
|
@@ -3780,16 +3874,61 @@
|
|
|
3780
3874
|
|
|
3781
3875
|
/* ── Tighter Toolbar & Plus/Settings Positioning ────────────────── */
|
|
3782
3876
|
.nextgen-editor-shell #editorjs {
|
|
3783
|
-
padding-left:
|
|
3877
|
+
padding-left: 72px;
|
|
3878
|
+
}
|
|
3879
|
+
|
|
3880
|
+
.nextgen-editor-shell .ce-block__content,
|
|
3881
|
+
.nextgen-editor-shell .ce-toolbar__content {
|
|
3882
|
+
max-width: none;
|
|
3883
|
+
margin-left: 0;
|
|
3884
|
+
margin-right: 0;
|
|
3784
3885
|
}
|
|
3785
3886
|
|
|
3786
3887
|
.nextgen-editor-shell .ce-toolbar__actions {
|
|
3787
3888
|
right: calc(100% + 4px);
|
|
3889
|
+
left: auto;
|
|
3788
3890
|
display: inline-flex;
|
|
3789
3891
|
align-items: center;
|
|
3790
3892
|
gap: 2px;
|
|
3791
3893
|
}
|
|
3792
3894
|
|
|
3895
|
+
.nextgen-editor-shell .ce-toolbox,
|
|
3896
|
+
.nextgen-editor-shell .ce-settings {
|
|
3897
|
+
position: absolute;
|
|
3898
|
+
left: calc(100% + 6px);
|
|
3899
|
+
top: calc(100% + 4px);
|
|
3900
|
+
width: 0;
|
|
3901
|
+
height: 0;
|
|
3902
|
+
}
|
|
3903
|
+
|
|
3904
|
+
.nextgen-editor-shell .ce-toolbox .ce-popover,
|
|
3905
|
+
.nextgen-editor-shell .ce-settings .ce-popover {
|
|
3906
|
+
min-width: 0 !important;
|
|
3907
|
+
border: none !important;
|
|
3908
|
+
box-shadow: none !important;
|
|
3909
|
+
background: transparent !important;
|
|
3910
|
+
}
|
|
3911
|
+
|
|
3912
|
+
.nextgen-editor-shell .ce-toolbox .ce-popover__container,
|
|
3913
|
+
.nextgen-editor-shell .ce-settings .ce-popover__container {
|
|
3914
|
+
left: 0 !important;
|
|
3915
|
+
right: auto !important;
|
|
3916
|
+
top: 0 !important;
|
|
3917
|
+
--popover-left: 0px !important;
|
|
3918
|
+
min-width: 240px;
|
|
3919
|
+
}
|
|
3920
|
+
|
|
3921
|
+
.nextgen-editor-shell .ce-inline-toolbar {
|
|
3922
|
+
max-width: calc(100% - 16px);
|
|
3923
|
+
min-width: 0;
|
|
3924
|
+
}
|
|
3925
|
+
|
|
3926
|
+
.nextgen-editor-shell .ce-inline-toolbar .ce-popover__container {
|
|
3927
|
+
left: 0 !important;
|
|
3928
|
+
right: auto !important;
|
|
3929
|
+
--popover-left: 0px !important;
|
|
3930
|
+
}
|
|
3931
|
+
|
|
3793
3932
|
.nextgen-editor-shell .ce-toolbar__plus,
|
|
3794
3933
|
.nextgen-editor-shell .ce-toolbar__settings-btn {
|
|
3795
3934
|
width: 26px;
|
|
@@ -4612,3 +4751,386 @@
|
|
|
4612
4751
|
padding: 12px 16px;
|
|
4613
4752
|
border-top: 1px solid var(--ng-border, #e2e8f0);
|
|
4614
4753
|
}
|
|
4754
|
+
|
|
4755
|
+
/* ── Inline Emoji Side Menu (/emoji) ────────────────────────────── */
|
|
4756
|
+
.editor-emoji-side-popover {
|
|
4757
|
+
position: fixed;
|
|
4758
|
+
z-index: 10000;
|
|
4759
|
+
width: 264px;
|
|
4760
|
+
max-height: 290px;
|
|
4761
|
+
padding: 10px;
|
|
4762
|
+
border-radius: var(--ng-radius, 10px);
|
|
4763
|
+
border: 1px solid var(--ng-border, #e2e8f0);
|
|
4764
|
+
background: var(--ng-popover, #ffffff);
|
|
4765
|
+
color: var(--ng-popover-foreground, #0f172a);
|
|
4766
|
+
box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
|
|
4767
|
+
display: grid;
|
|
4768
|
+
gap: 8px;
|
|
4769
|
+
align-content: start;
|
|
4770
|
+
}
|
|
4771
|
+
|
|
4772
|
+
.editor-emoji-side-popover .editor-emoji-grid {
|
|
4773
|
+
max-height: 210px;
|
|
4774
|
+
overflow-y: auto;
|
|
4775
|
+
}
|
|
4776
|
+
|
|
4777
|
+
.editor-emoji-inline-wrap {
|
|
4778
|
+
display: inline-flex;
|
|
4779
|
+
align-items: center;
|
|
4780
|
+
padding: 4px 0;
|
|
4781
|
+
}
|
|
4782
|
+
|
|
4783
|
+
.editor-emoji-inline-anchor {
|
|
4784
|
+
display: inline-flex;
|
|
4785
|
+
align-items: center;
|
|
4786
|
+
gap: 6px;
|
|
4787
|
+
}
|
|
4788
|
+
|
|
4789
|
+
/* ── Classic Toolbar (Simple Mode) ──────────────────────────────── */
|
|
4790
|
+
.nextgen-editor-shell[data-ng-font='serif'] #editorjs {
|
|
4791
|
+
font-family: Georgia, Cambria, 'Times New Roman', serif;
|
|
4792
|
+
}
|
|
4793
|
+
|
|
4794
|
+
.nextgen-editor-shell[data-ng-font='mono'] #editorjs {
|
|
4795
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
4796
|
+
}
|
|
4797
|
+
|
|
4798
|
+
.ng-classic-toolbar {
|
|
4799
|
+
display: flex;
|
|
4800
|
+
flex-wrap: wrap;
|
|
4801
|
+
align-items: center;
|
|
4802
|
+
gap: 4px;
|
|
4803
|
+
padding: 6px 12px;
|
|
4804
|
+
margin: 0 auto 14px;
|
|
4805
|
+
width: fit-content;
|
|
4806
|
+
max-width: 100%;
|
|
4807
|
+
border-radius: 999px;
|
|
4808
|
+
border: 1px solid var(--ng-border);
|
|
4809
|
+
background: var(--ng-card);
|
|
4810
|
+
box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
|
|
4811
|
+
position: sticky;
|
|
4812
|
+
top: 10px;
|
|
4813
|
+
z-index: 30;
|
|
4814
|
+
}
|
|
4815
|
+
|
|
4816
|
+
.ng-ct-btn {
|
|
4817
|
+
display: inline-flex;
|
|
4818
|
+
align-items: center;
|
|
4819
|
+
justify-content: center;
|
|
4820
|
+
gap: 2px;
|
|
4821
|
+
min-width: 28px;
|
|
4822
|
+
height: 28px;
|
|
4823
|
+
padding: 0 6px;
|
|
4824
|
+
border-radius: 7px;
|
|
4825
|
+
border: none;
|
|
4826
|
+
background: transparent;
|
|
4827
|
+
color: var(--ng-foreground);
|
|
4828
|
+
font-size: 13px;
|
|
4829
|
+
cursor: pointer;
|
|
4830
|
+
}
|
|
4831
|
+
|
|
4832
|
+
.ng-ct-btn:hover {
|
|
4833
|
+
background: var(--ng-accent);
|
|
4834
|
+
color: var(--ng-accent-foreground);
|
|
4835
|
+
}
|
|
4836
|
+
|
|
4837
|
+
.ng-ct-b { font-weight: 700; }
|
|
4838
|
+
.ng-ct-i { font-style: italic; font-family: Georgia, serif; }
|
|
4839
|
+
.ng-ct-u { text-decoration: underline; }
|
|
4840
|
+
.ng-ct-s { text-decoration: line-through; }
|
|
4841
|
+
.ng-ct-highlight {
|
|
4842
|
+
font-weight: 700;
|
|
4843
|
+
text-decoration: underline;
|
|
4844
|
+
text-decoration-thickness: 2px;
|
|
4845
|
+
text-decoration-color: #eab308;
|
|
4846
|
+
}
|
|
4847
|
+
|
|
4848
|
+
.ng-ct-sep {
|
|
4849
|
+
width: 1px;
|
|
4850
|
+
height: 18px;
|
|
4851
|
+
background: var(--ng-border);
|
|
4852
|
+
margin: 0 4px;
|
|
4853
|
+
}
|
|
4854
|
+
|
|
4855
|
+
.ng-ct-select {
|
|
4856
|
+
height: 28px;
|
|
4857
|
+
padding: 0 6px;
|
|
4858
|
+
border-radius: 7px;
|
|
4859
|
+
border: none;
|
|
4860
|
+
background: transparent;
|
|
4861
|
+
color: var(--ng-foreground);
|
|
4862
|
+
font-size: 13px;
|
|
4863
|
+
font-weight: 500;
|
|
4864
|
+
cursor: pointer;
|
|
4865
|
+
}
|
|
4866
|
+
|
|
4867
|
+
.ng-ct-select:hover {
|
|
4868
|
+
background: var(--ng-accent);
|
|
4869
|
+
}
|
|
4870
|
+
|
|
4871
|
+
.ng-ct-dropdown-wrap {
|
|
4872
|
+
position: relative;
|
|
4873
|
+
}
|
|
4874
|
+
|
|
4875
|
+
.ng-ct-caret {
|
|
4876
|
+
font-size: 10px;
|
|
4877
|
+
opacity: 0.7;
|
|
4878
|
+
margin-left: 2px;
|
|
4879
|
+
}
|
|
4880
|
+
|
|
4881
|
+
.ng-ct-insert-btn {
|
|
4882
|
+
display: inline-flex;
|
|
4883
|
+
align-items: center;
|
|
4884
|
+
gap: 4px;
|
|
4885
|
+
height: 28px;
|
|
4886
|
+
padding: 0 10px;
|
|
4887
|
+
border-radius: 999px;
|
|
4888
|
+
border: none;
|
|
4889
|
+
background: transparent;
|
|
4890
|
+
color: var(--ng-foreground);
|
|
4891
|
+
font-size: 13px;
|
|
4892
|
+
font-weight: 600;
|
|
4893
|
+
cursor: pointer;
|
|
4894
|
+
}
|
|
4895
|
+
|
|
4896
|
+
.ng-ct-insert-btn:hover {
|
|
4897
|
+
background: var(--ng-accent);
|
|
4898
|
+
}
|
|
4899
|
+
|
|
4900
|
+
.ng-ct-menu {
|
|
4901
|
+
position: absolute;
|
|
4902
|
+
top: calc(100% + 6px);
|
|
4903
|
+
right: 0;
|
|
4904
|
+
min-width: 160px;
|
|
4905
|
+
padding: 6px;
|
|
4906
|
+
border-radius: 10px;
|
|
4907
|
+
border: 1px solid var(--ng-border);
|
|
4908
|
+
background: var(--ng-popover);
|
|
4909
|
+
color: var(--ng-popover-foreground);
|
|
4910
|
+
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
|
|
4911
|
+
display: grid;
|
|
4912
|
+
gap: 2px;
|
|
4913
|
+
z-index: 50;
|
|
4914
|
+
}
|
|
4915
|
+
|
|
4916
|
+
.ng-ct-insert-menu {
|
|
4917
|
+
min-width: 210px;
|
|
4918
|
+
max-height: 280px;
|
|
4919
|
+
overflow-y: auto;
|
|
4920
|
+
}
|
|
4921
|
+
|
|
4922
|
+
.ng-ct-menu button {
|
|
4923
|
+
display: flex;
|
|
4924
|
+
align-items: center;
|
|
4925
|
+
justify-content: space-between;
|
|
4926
|
+
gap: 10px;
|
|
4927
|
+
width: 100%;
|
|
4928
|
+
padding: 6px 10px;
|
|
4929
|
+
border: none;
|
|
4930
|
+
border-radius: 6px;
|
|
4931
|
+
background: transparent;
|
|
4932
|
+
color: inherit;
|
|
4933
|
+
font-size: 13px;
|
|
4934
|
+
text-align: left;
|
|
4935
|
+
cursor: pointer;
|
|
4936
|
+
}
|
|
4937
|
+
|
|
4938
|
+
.ng-ct-menu button:hover {
|
|
4939
|
+
background: var(--ng-accent);
|
|
4940
|
+
color: var(--ng-accent-foreground);
|
|
4941
|
+
}
|
|
4942
|
+
|
|
4943
|
+
.ng-ct-cat {
|
|
4944
|
+
font-size: 11px;
|
|
4945
|
+
color: var(--ng-muted-foreground);
|
|
4946
|
+
}
|
|
4947
|
+
|
|
4948
|
+
/* ── Settings Registered Components Manager ─────────────────────── */
|
|
4949
|
+
.ng-tools-manager {
|
|
4950
|
+
display: grid;
|
|
4951
|
+
gap: 10px;
|
|
4952
|
+
}
|
|
4953
|
+
|
|
4954
|
+
.ng-tools-header {
|
|
4955
|
+
display: flex;
|
|
4956
|
+
align-items: center;
|
|
4957
|
+
justify-content: space-between;
|
|
4958
|
+
gap: 8px;
|
|
4959
|
+
}
|
|
4960
|
+
|
|
4961
|
+
.ng-tools-header label {
|
|
4962
|
+
font-size: 13px;
|
|
4963
|
+
font-weight: 600;
|
|
4964
|
+
}
|
|
4965
|
+
|
|
4966
|
+
.ng-tools-actions {
|
|
4967
|
+
display: flex;
|
|
4968
|
+
gap: 6px;
|
|
4969
|
+
}
|
|
4970
|
+
|
|
4971
|
+
.ng-tools-groups {
|
|
4972
|
+
display: grid;
|
|
4973
|
+
gap: 10px;
|
|
4974
|
+
max-height: 310px;
|
|
4975
|
+
overflow-y: auto;
|
|
4976
|
+
padding-right: 4px;
|
|
4977
|
+
}
|
|
4978
|
+
|
|
4979
|
+
.ng-tools-group {
|
|
4980
|
+
display: grid;
|
|
4981
|
+
gap: 6px;
|
|
4982
|
+
}
|
|
4983
|
+
|
|
4984
|
+
.ng-tools-group-title {
|
|
4985
|
+
font-size: 11px;
|
|
4986
|
+
font-weight: 600;
|
|
4987
|
+
text-transform: uppercase;
|
|
4988
|
+
letter-spacing: 0.04em;
|
|
4989
|
+
color: var(--ng-muted-foreground);
|
|
4990
|
+
}
|
|
4991
|
+
|
|
4992
|
+
.ng-tools-grid {
|
|
4993
|
+
display: flex;
|
|
4994
|
+
flex-wrap: wrap;
|
|
4995
|
+
gap: 6px;
|
|
4996
|
+
}
|
|
4997
|
+
|
|
4998
|
+
.ng-tool-chip {
|
|
4999
|
+
display: inline-flex;
|
|
5000
|
+
align-items: center;
|
|
5001
|
+
gap: 5px;
|
|
5002
|
+
padding: 4px 9px;
|
|
5003
|
+
border-radius: 999px;
|
|
5004
|
+
border: 1px solid var(--ng-border);
|
|
5005
|
+
background: var(--ng-background);
|
|
5006
|
+
font-size: 12px;
|
|
5007
|
+
cursor: pointer;
|
|
5008
|
+
user-select: none;
|
|
5009
|
+
}
|
|
5010
|
+
|
|
5011
|
+
.ng-tool-chip.is-checked {
|
|
5012
|
+
border-color: var(--ng-primary, #6366f1);
|
|
5013
|
+
background: rgba(99, 102, 241, 0.1);
|
|
5014
|
+
}
|
|
5015
|
+
|
|
5016
|
+
.ng-tool-chip input {
|
|
5017
|
+
margin: 0;
|
|
5018
|
+
}
|
|
5019
|
+
|
|
5020
|
+
/* ── Floating Sticky Note Scratchpad (/scratch) ─────────────────── */
|
|
5021
|
+
.ng-scratch-sticky {
|
|
5022
|
+
position: fixed;
|
|
5023
|
+
right: 24px;
|
|
5024
|
+
bottom: 24px;
|
|
5025
|
+
z-index: 9500;
|
|
5026
|
+
width: 300px;
|
|
5027
|
+
max-width: calc(100vw - 32px);
|
|
5028
|
+
border-radius: 12px;
|
|
5029
|
+
border: 1px solid #facc15;
|
|
5030
|
+
background: #fef9c3;
|
|
5031
|
+
color: #422006;
|
|
5032
|
+
box-shadow: 0 16px 38px rgba(15, 23, 42, 0.24);
|
|
5033
|
+
overflow: hidden;
|
|
5034
|
+
display: flex;
|
|
5035
|
+
flex-direction: column;
|
|
5036
|
+
}
|
|
5037
|
+
|
|
5038
|
+
.dark .ng-scratch-sticky,
|
|
5039
|
+
[data-theme='dark'] .ng-scratch-sticky,
|
|
5040
|
+
[data-ng-theme='dark'] .ng-scratch-sticky {
|
|
5041
|
+
border-color: rgba(250, 204, 21, 0.35);
|
|
5042
|
+
background: #272312;
|
|
5043
|
+
color: #fef08a;
|
|
5044
|
+
}
|
|
5045
|
+
|
|
5046
|
+
.ng-scratch-sticky-head {
|
|
5047
|
+
display: flex;
|
|
5048
|
+
align-items: center;
|
|
5049
|
+
gap: 6px;
|
|
5050
|
+
padding: 8px 10px;
|
|
5051
|
+
border-bottom: 1px solid rgba(161, 98, 7, 0.2);
|
|
5052
|
+
cursor: move;
|
|
5053
|
+
user-select: none;
|
|
5054
|
+
}
|
|
5055
|
+
|
|
5056
|
+
.ng-scratch-sticky-title {
|
|
5057
|
+
font-size: 12px;
|
|
5058
|
+
font-weight: 700;
|
|
5059
|
+
flex: 1;
|
|
5060
|
+
}
|
|
5061
|
+
|
|
5062
|
+
.ng-scratch-sticky-count {
|
|
5063
|
+
font-size: 11px;
|
|
5064
|
+
opacity: 0.75;
|
|
5065
|
+
}
|
|
5066
|
+
|
|
5067
|
+
.ng-scratch-sticky-actions {
|
|
5068
|
+
display: flex;
|
|
5069
|
+
align-items: center;
|
|
5070
|
+
gap: 4px;
|
|
5071
|
+
}
|
|
5072
|
+
|
|
5073
|
+
.ng-scratch-sticky-btn {
|
|
5074
|
+
padding: 2px 7px;
|
|
5075
|
+
border-radius: 6px;
|
|
5076
|
+
border: 1px solid rgba(161, 98, 7, 0.25);
|
|
5077
|
+
background: rgba(255, 255, 255, 0.45);
|
|
5078
|
+
color: inherit;
|
|
5079
|
+
font-size: 11px;
|
|
5080
|
+
font-weight: 600;
|
|
5081
|
+
cursor: pointer;
|
|
5082
|
+
}
|
|
5083
|
+
|
|
5084
|
+
.dark .ng-scratch-sticky-btn,
|
|
5085
|
+
[data-theme='dark'] .ng-scratch-sticky-btn,
|
|
5086
|
+
[data-ng-theme='dark'] .ng-scratch-sticky-btn {
|
|
5087
|
+
background: rgba(255, 255, 255, 0.08);
|
|
5088
|
+
border-color: rgba(250, 204, 21, 0.25);
|
|
5089
|
+
}
|
|
5090
|
+
|
|
5091
|
+
.ng-scratch-sticky-body {
|
|
5092
|
+
width: 100%;
|
|
5093
|
+
min-height: 170px;
|
|
5094
|
+
max-height: 360px;
|
|
5095
|
+
box-sizing: border-box;
|
|
5096
|
+
padding: 10px 12px;
|
|
5097
|
+
border: none;
|
|
5098
|
+
outline: none;
|
|
5099
|
+
resize: vertical;
|
|
5100
|
+
background: transparent;
|
|
5101
|
+
color: inherit;
|
|
5102
|
+
font-family: inherit;
|
|
5103
|
+
font-size: 13px;
|
|
5104
|
+
line-height: 1.55;
|
|
5105
|
+
}
|
|
5106
|
+
|
|
5107
|
+
/* ── Inline AI Prompt Div (/continue & /askai) ──────────────────── */
|
|
5108
|
+
.ng-ai-inline-popover {
|
|
5109
|
+
position: absolute;
|
|
5110
|
+
z-index: 9600;
|
|
5111
|
+
width: 320px;
|
|
5112
|
+
max-width: calc(100vw - 24px);
|
|
5113
|
+
padding: 10px 12px;
|
|
5114
|
+
border-radius: var(--ng-radius, 10px);
|
|
5115
|
+
border: 1px solid var(--ng-border, #e2e8f0);
|
|
5116
|
+
background: var(--ng-popover, #ffffff);
|
|
5117
|
+
color: var(--ng-popover-foreground, #0f172a);
|
|
5118
|
+
box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
|
|
5119
|
+
display: grid;
|
|
5120
|
+
gap: 8px;
|
|
5121
|
+
}
|
|
5122
|
+
|
|
5123
|
+
.ng-ai-inline-head {
|
|
5124
|
+
display: flex;
|
|
5125
|
+
align-items: center;
|
|
5126
|
+
justify-content: space-between;
|
|
5127
|
+
font-size: 12px;
|
|
5128
|
+
font-weight: 600;
|
|
5129
|
+
}
|
|
5130
|
+
|
|
5131
|
+
.ng-ai-inline-row {
|
|
5132
|
+
display: grid;
|
|
5133
|
+
grid-template-columns: 1fr auto;
|
|
5134
|
+
gap: 6px;
|
|
5135
|
+
align-items: center;
|
|
5136
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nextgen-block-editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "A modular, block-based React + TypeScript rich text editor built on Editor.js with Bento grids, Carousels, Before/After sliders, Lightbox galleries, Slides, Tabs, Accordions, Toggle headings, Alerts, and more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|