nextgen-block-editor 0.2.0 → 0.3.0

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/styles.css CHANGED
@@ -3780,16 +3780,28 @@
3780
3780
 
3781
3781
  /* ── Tighter Toolbar & Plus/Settings Positioning ────────────────── */
3782
3782
  .nextgen-editor-shell #editorjs {
3783
- padding-left: 46px;
3783
+ padding-left: 56px;
3784
+ }
3785
+
3786
+ .nextgen-editor-shell .ce-block__content,
3787
+ .nextgen-editor-shell .ce-toolbar__content {
3788
+ max-width: none;
3789
+ margin-left: 0;
3790
+ margin-right: 0;
3784
3791
  }
3785
3792
 
3786
3793
  .nextgen-editor-shell .ce-toolbar__actions {
3787
- right: calc(100% + 4px);
3794
+ right: calc(100% + 6px);
3788
3795
  display: inline-flex;
3789
3796
  align-items: center;
3790
3797
  gap: 2px;
3791
3798
  }
3792
3799
 
3800
+ .nextgen-editor-shell .ce-toolbar .ce-popover {
3801
+ left: 0;
3802
+ right: auto;
3803
+ }
3804
+
3793
3805
  .nextgen-editor-shell .ce-toolbar__plus,
3794
3806
  .nextgen-editor-shell .ce-toolbar__settings-btn {
3795
3807
  width: 26px;
@@ -4612,3 +4624,268 @@
4612
4624
  padding: 12px 16px;
4613
4625
  border-top: 1px solid var(--ng-border, #e2e8f0);
4614
4626
  }
4627
+
4628
+ /* ── Inline Emoji Side Menu (/emoji) ────────────────────────────── */
4629
+ .editor-emoji-side-popover {
4630
+ position: fixed;
4631
+ z-index: 10000;
4632
+ width: 264px;
4633
+ max-height: 290px;
4634
+ padding: 10px;
4635
+ border-radius: var(--ng-radius, 10px);
4636
+ border: 1px solid var(--ng-border, #e2e8f0);
4637
+ background: var(--ng-popover, #ffffff);
4638
+ color: var(--ng-popover-foreground, #0f172a);
4639
+ box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
4640
+ display: grid;
4641
+ gap: 8px;
4642
+ align-content: start;
4643
+ }
4644
+
4645
+ .editor-emoji-side-popover .editor-emoji-grid {
4646
+ max-height: 210px;
4647
+ overflow-y: auto;
4648
+ }
4649
+
4650
+ .editor-emoji-inline-wrap {
4651
+ display: inline-flex;
4652
+ align-items: center;
4653
+ padding: 4px 0;
4654
+ }
4655
+
4656
+ .editor-emoji-inline-anchor {
4657
+ display: inline-flex;
4658
+ align-items: center;
4659
+ gap: 6px;
4660
+ }
4661
+
4662
+ /* ── Classic Toolbar (Simple Mode) ──────────────────────────────── */
4663
+ .nextgen-editor-shell[data-ng-font='serif'] #editorjs {
4664
+ font-family: Georgia, Cambria, 'Times New Roman', serif;
4665
+ }
4666
+
4667
+ .nextgen-editor-shell[data-ng-font='mono'] #editorjs {
4668
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
4669
+ }
4670
+
4671
+ .ng-classic-toolbar {
4672
+ display: flex;
4673
+ flex-wrap: wrap;
4674
+ align-items: center;
4675
+ gap: 4px;
4676
+ padding: 6px 12px;
4677
+ margin: 0 auto 14px;
4678
+ width: fit-content;
4679
+ max-width: 100%;
4680
+ border-radius: 999px;
4681
+ border: 1px solid var(--ng-border);
4682
+ background: var(--ng-card);
4683
+ box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
4684
+ position: sticky;
4685
+ top: 10px;
4686
+ z-index: 30;
4687
+ }
4688
+
4689
+ .ng-ct-btn {
4690
+ display: inline-flex;
4691
+ align-items: center;
4692
+ justify-content: center;
4693
+ gap: 2px;
4694
+ min-width: 28px;
4695
+ height: 28px;
4696
+ padding: 0 6px;
4697
+ border-radius: 7px;
4698
+ border: none;
4699
+ background: transparent;
4700
+ color: var(--ng-foreground);
4701
+ font-size: 13px;
4702
+ cursor: pointer;
4703
+ }
4704
+
4705
+ .ng-ct-btn:hover {
4706
+ background: var(--ng-accent);
4707
+ color: var(--ng-accent-foreground);
4708
+ }
4709
+
4710
+ .ng-ct-b { font-weight: 700; }
4711
+ .ng-ct-i { font-style: italic; font-family: Georgia, serif; }
4712
+ .ng-ct-u { text-decoration: underline; }
4713
+ .ng-ct-s { text-decoration: line-through; }
4714
+ .ng-ct-highlight {
4715
+ font-weight: 700;
4716
+ text-decoration: underline;
4717
+ text-decoration-thickness: 2px;
4718
+ text-decoration-color: #eab308;
4719
+ }
4720
+
4721
+ .ng-ct-sep {
4722
+ width: 1px;
4723
+ height: 18px;
4724
+ background: var(--ng-border);
4725
+ margin: 0 4px;
4726
+ }
4727
+
4728
+ .ng-ct-select {
4729
+ height: 28px;
4730
+ padding: 0 6px;
4731
+ border-radius: 7px;
4732
+ border: none;
4733
+ background: transparent;
4734
+ color: var(--ng-foreground);
4735
+ font-size: 13px;
4736
+ font-weight: 500;
4737
+ cursor: pointer;
4738
+ }
4739
+
4740
+ .ng-ct-select:hover {
4741
+ background: var(--ng-accent);
4742
+ }
4743
+
4744
+ .ng-ct-dropdown-wrap {
4745
+ position: relative;
4746
+ }
4747
+
4748
+ .ng-ct-caret {
4749
+ font-size: 10px;
4750
+ opacity: 0.7;
4751
+ margin-left: 2px;
4752
+ }
4753
+
4754
+ .ng-ct-insert-btn {
4755
+ display: inline-flex;
4756
+ align-items: center;
4757
+ gap: 4px;
4758
+ height: 28px;
4759
+ padding: 0 10px;
4760
+ border-radius: 999px;
4761
+ border: none;
4762
+ background: transparent;
4763
+ color: var(--ng-foreground);
4764
+ font-size: 13px;
4765
+ font-weight: 600;
4766
+ cursor: pointer;
4767
+ }
4768
+
4769
+ .ng-ct-insert-btn:hover {
4770
+ background: var(--ng-accent);
4771
+ }
4772
+
4773
+ .ng-ct-menu {
4774
+ position: absolute;
4775
+ top: calc(100% + 6px);
4776
+ right: 0;
4777
+ min-width: 160px;
4778
+ padding: 6px;
4779
+ border-radius: 10px;
4780
+ border: 1px solid var(--ng-border);
4781
+ background: var(--ng-popover);
4782
+ color: var(--ng-popover-foreground);
4783
+ box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
4784
+ display: grid;
4785
+ gap: 2px;
4786
+ z-index: 50;
4787
+ }
4788
+
4789
+ .ng-ct-insert-menu {
4790
+ min-width: 210px;
4791
+ max-height: 280px;
4792
+ overflow-y: auto;
4793
+ }
4794
+
4795
+ .ng-ct-menu button {
4796
+ display: flex;
4797
+ align-items: center;
4798
+ justify-content: space-between;
4799
+ gap: 10px;
4800
+ width: 100%;
4801
+ padding: 6px 10px;
4802
+ border: none;
4803
+ border-radius: 6px;
4804
+ background: transparent;
4805
+ color: inherit;
4806
+ font-size: 13px;
4807
+ text-align: left;
4808
+ cursor: pointer;
4809
+ }
4810
+
4811
+ .ng-ct-menu button:hover {
4812
+ background: var(--ng-accent);
4813
+ color: var(--ng-accent-foreground);
4814
+ }
4815
+
4816
+ .ng-ct-cat {
4817
+ font-size: 11px;
4818
+ color: var(--ng-muted-foreground);
4819
+ }
4820
+
4821
+ /* ── Settings Registered Components Manager ─────────────────────── */
4822
+ .ng-tools-manager {
4823
+ display: grid;
4824
+ gap: 10px;
4825
+ }
4826
+
4827
+ .ng-tools-header {
4828
+ display: flex;
4829
+ align-items: center;
4830
+ justify-content: space-between;
4831
+ gap: 8px;
4832
+ }
4833
+
4834
+ .ng-tools-header label {
4835
+ font-size: 13px;
4836
+ font-weight: 600;
4837
+ }
4838
+
4839
+ .ng-tools-actions {
4840
+ display: flex;
4841
+ gap: 6px;
4842
+ }
4843
+
4844
+ .ng-tools-groups {
4845
+ display: grid;
4846
+ gap: 10px;
4847
+ max-height: 220px;
4848
+ overflow-y: auto;
4849
+ padding-right: 4px;
4850
+ }
4851
+
4852
+ .ng-tools-group {
4853
+ display: grid;
4854
+ gap: 6px;
4855
+ }
4856
+
4857
+ .ng-tools-group-title {
4858
+ font-size: 11px;
4859
+ font-weight: 600;
4860
+ text-transform: uppercase;
4861
+ letter-spacing: 0.04em;
4862
+ color: var(--ng-muted-foreground);
4863
+ }
4864
+
4865
+ .ng-tools-grid {
4866
+ display: flex;
4867
+ flex-wrap: wrap;
4868
+ gap: 6px;
4869
+ }
4870
+
4871
+ .ng-tool-chip {
4872
+ display: inline-flex;
4873
+ align-items: center;
4874
+ gap: 5px;
4875
+ padding: 4px 9px;
4876
+ border-radius: 999px;
4877
+ border: 1px solid var(--ng-border);
4878
+ background: var(--ng-background);
4879
+ font-size: 12px;
4880
+ cursor: pointer;
4881
+ user-select: none;
4882
+ }
4883
+
4884
+ .ng-tool-chip.is-checked {
4885
+ border-color: var(--ng-primary, #6366f1);
4886
+ background: rgba(99, 102, 241, 0.1);
4887
+ }
4888
+
4889
+ .ng-tool-chip input {
4890
+ margin: 0;
4891
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextgen-block-editor",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
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": [