reactjs-tiptap-editor 0.2.12 → 0.2.13

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.
@@ -4,7 +4,7 @@ var Dt = (t, e, n) => Zr(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { jsxs as f, jsx as r, Fragment as W } from "react/jsx-runtime";
5
5
  import * as V from "react";
6
6
  import ir, { useState as N, useCallback as P, useEffect as B, useRef as rt, useMemo as F, Fragment as pe, forwardRef as Yr, useImperativeHandle as Jr } from "react";
7
- import { X as jt, h as Tt, m as st, Y as Qr, N as dt, R as ut, Z as we, J as ve, _ as Ut, $ as tn, B as Y, a0 as en, a1 as rn, a2 as nn } from "./tiptap-DKUVyykT.js";
7
+ import { X as jt, h as Tt, m as st, Y as Qr, N as dt, R as ut, Z as we, J as ve, _ as Ut, $ as tn, B as Y, a0 as en, a1 as rn, a2 as nn } from "./tiptap-24JNJPT1.js";
8
8
  import { u as U, q as on, I as yt, n as Ct, m as be, C as cn, i as Z, B as an, r as Xt, V as Re, E as sn } from "./index-CGVy85-a.js";
9
9
  import * as or from "@radix-ui/react-separator";
10
10
  import { at as ln, al as Kt, ak as cr, an as ar, au as Jt, am as ye, T as Pt, N as hn, A as dn, ar as sr, av as un, ao as Pe, ap as ht, aq as mn, aw as Qt, ax as xn, H as Ht, ay as fn, az as gn, S as pn, b as lr, P as wn, aA as vn, aB as bn } from "./vendor-K5cb6hwc.js";
@@ -6103,7 +6103,7 @@ function Xa(t) {
6103
6103
  /* @__PURE__ */ r(
6104
6104
  X,
6105
6105
  {
6106
- className: "richtext-size-7 richtext-cursor-grab",
6106
+ className: "!richtext-size-7 richtext-cursor-grab",
6107
6107
  disabled: t == null ? void 0 : t.disabled,
6108
6108
  onClick: I,
6109
6109
  size: "icon",
@@ -6134,7 +6134,7 @@ function Xa(t) {
6134
6134
  children: /* @__PURE__ */ r(
6135
6135
  X,
6136
6136
  {
6137
- className: "richtext-relative richtext-z-[1] richtext-size-7 richtext-cursor-grab",
6137
+ className: "richtext-relative richtext-z-[1] !richtext-size-7 richtext-cursor-grab",
6138
6138
  disabled: t == null ? void 0 : t.disabled,
6139
6139
  size: "icon",
6140
6140
  type: "button",
@@ -6833,14 +6833,15 @@ function ls() {
6833
6833
  ] });
6834
6834
  }
6835
6835
  const hs = `
6836
- .reactjs-tiptap-editor, .richtext-dialog-content {
6836
+ .reactjs-tiptap-editor,
6837
+ .richtext-dialog-content {
6837
6838
  button,
6838
6839
  input:where([type=button]),
6839
6840
  input:where([type=reset]),
6840
6841
  input:where([type=submit]) {
6841
6842
  -webkit-appearance: button;
6842
6843
  background-color: transparent;
6843
- background-image: none
6844
+ background-image: none;
6844
6845
  }
6845
6846
 
6846
6847
  input,
@@ -6867,105 +6868,107 @@ const hs = `
6867
6868
  letter-spacing: inherit;
6868
6869
  color: inherit;
6869
6870
  }
6870
- }
6871
6871
 
6872
- .reactjs-tiptap-editor,
6873
- .richtext-dialog-content,
6874
- div[data-radix-popper-content-wrapper],
6875
- div[data-tippy-root] {
6876
- *,
6877
- :before,
6878
- :after {
6879
- box-sizing: border-box;
6880
- border-width: 0;
6881
- border-style: solid;
6882
- border-color: hsl(var(--richtext-border));
6883
- }
6872
+ *,
6873
+ ::before,
6874
+ ::after {
6875
+ box-sizing: border-box;
6876
+ border-width: 0;
6877
+ border-style: solid;
6878
+ border-color: hsl(var(--richtext-border));
6879
+ }
6884
6880
 
6885
- background-color: hsl(var(--richtext-background));
6886
- color: hsl(var(--richtext-foreground));
6881
+ background-color: hsl(var(--richtext-background));
6882
+ color: hsl(var(--richtext-foreground));
6887
6883
 
6884
+ hr {
6885
+ height: 0;
6886
+ color: inherit;
6887
+ border-top-width: 1px;
6888
+ }
6888
6889
 
6889
- html,
6890
- :host {
6891
- line-height: 1.5;
6892
- -webkit-text-size-adjust: 100%;
6893
- -moz-tab-size: 4;
6894
- tab-size: 4;
6895
- font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
6896
- font-feature-settings: normal;
6897
- font-variation-settings: normal;
6898
- -webkit-tap-highlight-color: transparent
6899
- }
6890
+ a {
6891
+ color: inherit;
6892
+ text-decoration: inherit;
6893
+ }
6900
6894
 
6901
- hr {
6902
- height: 0;
6903
- color: inherit;
6904
- border-top-width: 1px
6905
- }
6895
+ b,
6896
+ strong {
6897
+ font-weight: bolder;
6898
+ }
6906
6899
 
6907
- a {
6908
- color: inherit;
6909
- text-decoration: inherit
6910
- }
6900
+ code,
6901
+ kbd,
6902
+ samp,
6903
+ pre {
6904
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
6905
+ font-feature-settings: normal;
6906
+ font-variation-settings: normal;
6907
+ font-size: 1em;
6908
+ }
6911
6909
 
6912
- b,
6913
- strong {
6914
- font-weight: bolder
6915
- }
6910
+ table {
6911
+ text-indent: 0;
6912
+ border-color: inherit;
6913
+ border-collapse: collapse;
6914
+ }
6916
6915
 
6917
- code,
6918
- kbd,
6919
- samp,
6920
- pre {
6921
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
6922
- font-feature-settings: normal;
6923
- font-variation-settings: normal;
6924
- font-size: 1em
6925
- }
6916
+ input, textarea {
6917
+ border-width: 1px;
6918
+ }
6926
6919
 
6927
- table {
6928
- text-indent: 0;
6929
- border-color: inherit;
6930
- border-collapse: collapse
6931
- }
6920
+ textarea {
6921
+ resize: vertical;
6922
+ }
6932
6923
 
6933
- input, textarea {
6934
- border-width: 1px;
6935
- }
6924
+ input::placeholder,
6925
+ textarea::placeholder {
6926
+ opacity: 1;
6927
+ color: #9ca3af;
6928
+ }
6936
6929
 
6937
- textarea {
6938
- resize: vertical
6939
- }
6930
+ button, input, textarea {
6931
+ cursor: pointer;
6932
+ color: inherit;
6933
+ }
6940
6934
 
6941
- input::placeholder,
6942
- textarea::placeholder {
6943
- opacity: 1;
6944
- color: #9ca3af
6945
- }
6935
+ img,
6936
+ svg,
6937
+ video,
6938
+ canvas,
6939
+ audio,
6940
+ iframe,
6941
+ embed,
6942
+ object {
6943
+ display: block;
6944
+ vertical-align: middle;
6945
+ }
6946
6946
 
6947
- button, input, textarea {
6948
- cursor: pointer;
6949
- color: inherit;
6947
+ img,
6948
+ video {
6949
+ max-width: 100%;
6950
+ height: auto;
6951
+ }
6950
6952
  }
6951
6953
 
6952
- img,
6953
- svg,
6954
- video,
6955
- canvas,
6956
- audio,
6957
- iframe,
6958
- embed,
6959
- object {
6960
- display: block;
6961
- vertical-align: middle
6962
- }
6954
+ div[data-radix-popper-content-wrapper],
6955
+ div[data-tippy-root] {
6956
+ *,
6957
+ ::before,
6958
+ ::after {
6959
+ box-sizing: border-box;
6960
+ border-width: 0;
6961
+ border-style: solid;
6962
+ border-color: hsl(var(--richtext-border));
6963
+ }
6963
6964
 
6964
- img,
6965
- video {
6966
- max-width: 100%;
6967
- height: auto
6968
- }
6965
+ background-color: hsl(var(--richtext-background));
6966
+ color: hsl(var(--richtext-foreground));
6967
+
6968
+ button, input, textarea {
6969
+ cursor: pointer;
6970
+ color: inherit;
6971
+ }
6969
6972
  }
6970
6973
  `, rr = "data-rc-order", nr = "data-rc-priority", ds = "rc-util-key", ge = /* @__PURE__ */ new Map();
6971
6974
  function us(t, e) {