nextgen-block-editor 0.3.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 +495 -334
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +495 -334
- package/dist/styles.css +251 -6
- 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,7 +3874,7 @@
|
|
|
3780
3874
|
|
|
3781
3875
|
/* ── Tighter Toolbar & Plus/Settings Positioning ────────────────── */
|
|
3782
3876
|
.nextgen-editor-shell #editorjs {
|
|
3783
|
-
padding-left:
|
|
3877
|
+
padding-left: 72px;
|
|
3784
3878
|
}
|
|
3785
3879
|
|
|
3786
3880
|
.nextgen-editor-shell .ce-block__content,
|
|
@@ -3791,15 +3885,48 @@
|
|
|
3791
3885
|
}
|
|
3792
3886
|
|
|
3793
3887
|
.nextgen-editor-shell .ce-toolbar__actions {
|
|
3794
|
-
right: calc(100% +
|
|
3888
|
+
right: calc(100% + 4px);
|
|
3889
|
+
left: auto;
|
|
3795
3890
|
display: inline-flex;
|
|
3796
3891
|
align-items: center;
|
|
3797
3892
|
gap: 2px;
|
|
3798
3893
|
}
|
|
3799
3894
|
|
|
3800
|
-
.nextgen-editor-shell .ce-
|
|
3801
|
-
|
|
3802
|
-
|
|
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;
|
|
3803
3930
|
}
|
|
3804
3931
|
|
|
3805
3932
|
.nextgen-editor-shell .ce-toolbar__plus,
|
|
@@ -4844,7 +4971,7 @@
|
|
|
4844
4971
|
.ng-tools-groups {
|
|
4845
4972
|
display: grid;
|
|
4846
4973
|
gap: 10px;
|
|
4847
|
-
max-height:
|
|
4974
|
+
max-height: 310px;
|
|
4848
4975
|
overflow-y: auto;
|
|
4849
4976
|
padding-right: 4px;
|
|
4850
4977
|
}
|
|
@@ -4889,3 +5016,121 @@
|
|
|
4889
5016
|
.ng-tool-chip input {
|
|
4890
5017
|
margin: 0;
|
|
4891
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.
|
|
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": [
|