@elia-ori/editor 0.1.27 → 0.1.28
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 +1627 -533
- package/dist/index.cjs.map +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +14 -21
- package/dist/index.d.ts +14 -21
- package/dist/index.js +1572 -480
- package/dist/index.js.map +1 -1
- package/dist/styles/editor.css +213 -243
- package/package.json +1 -2
package/dist/styles/editor.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
/* Tailwind utilities */
|
|
5
5
|
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
|
|
6
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-white:#fff;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.table{display:table}.min-h-96{min-height:calc(var(--spacing)*96)}.flex-shrink{flex-shrink:1}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.resize{resize:both}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing)*2)}.border{border-style:var(--tw-border-style);border-width:1px}.bg-white{background-color:var(--color-white)}.p-4{padding:calc(var(--spacing)*4)}.capitalize{text-transform:capitalize}.italic{font-style:italic}.underline{text-decoration-line:underline}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
|
|
6
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-white:#fff;--spacing:.25rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.min-h-96{min-height:calc(var(--spacing)*96)}.flex-shrink{flex-shrink:1}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.resize{resize:both}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing)*2)}.rounded{border-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.bg-white{background-color:var(--color-white)}.p-4{padding:calc(var(--spacing)*4)}.capitalize{text-transform:capitalize}.italic{font-style:italic}.underline{text-decoration-line:underline}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
|
|
7
7
|
|
|
8
8
|
/* Editor styles */
|
|
9
9
|
/* Editor CSS Variables (defaults) - on :root for Radix Portal compatibility */
|
|
@@ -1750,48 +1750,6 @@
|
|
|
1750
1750
|
cursor: grabbing;
|
|
1751
1751
|
}
|
|
1752
1752
|
|
|
1753
|
-
/* src/components/tiptap-node/callout-node/callout-node.scss */
|
|
1754
|
-
.tiptap [data-callout] {
|
|
1755
|
-
padding: 1rem 1.25rem;
|
|
1756
|
-
border-radius: var(--tt-radius-lg);
|
|
1757
|
-
margin: 1rem 0;
|
|
1758
|
-
}
|
|
1759
|
-
.tiptap [data-callout] p {
|
|
1760
|
-
margin: 0;
|
|
1761
|
-
}
|
|
1762
|
-
.tiptap [data-callout][data-type=success] {
|
|
1763
|
-
background-color: oklch(95% 0.05 145deg);
|
|
1764
|
-
color: oklch(35% 0.1 145deg);
|
|
1765
|
-
}
|
|
1766
|
-
.dark .tiptap [data-callout][data-type=success] {
|
|
1767
|
-
background-color: oklch(25% 0.05 145deg);
|
|
1768
|
-
color: oklch(80% 0.1 145deg);
|
|
1769
|
-
}
|
|
1770
|
-
.tiptap [data-callout][data-type=warning] {
|
|
1771
|
-
background-color: oklch(95% 0.06 85deg);
|
|
1772
|
-
color: oklch(40% 0.12 85deg);
|
|
1773
|
-
}
|
|
1774
|
-
.dark .tiptap [data-callout][data-type=warning] {
|
|
1775
|
-
background-color: oklch(25% 0.05 85deg);
|
|
1776
|
-
color: oklch(85% 0.1 85deg);
|
|
1777
|
-
}
|
|
1778
|
-
.tiptap [data-callout][data-type=error] {
|
|
1779
|
-
background-color: oklch(95% 0.04 25deg);
|
|
1780
|
-
color: oklch(45% 0.15 25deg);
|
|
1781
|
-
}
|
|
1782
|
-
.dark .tiptap [data-callout][data-type=error] {
|
|
1783
|
-
background-color: oklch(25% 0.06 25deg);
|
|
1784
|
-
color: oklch(85% 0.1 25deg);
|
|
1785
|
-
}
|
|
1786
|
-
.tiptap [data-callout][data-type=info] {
|
|
1787
|
-
background-color: oklch(95% 0.04 250deg);
|
|
1788
|
-
color: oklch(40% 0.12 250deg);
|
|
1789
|
-
}
|
|
1790
|
-
.dark .tiptap [data-callout][data-type=info] {
|
|
1791
|
-
background-color: oklch(25% 0.05 250deg);
|
|
1792
|
-
color: oklch(85% 0.08 250deg);
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
1753
|
/* src/components/tiptap-node/table-node/table-node.scss */
|
|
1796
1754
|
.tiptap table {
|
|
1797
1755
|
width: 100%;
|
|
@@ -2156,88 +2114,6 @@
|
|
|
2156
2114
|
}
|
|
2157
2115
|
|
|
2158
2116
|
/* src/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.scss */
|
|
2159
|
-
@keyframes fadeIn {
|
|
2160
|
-
from {
|
|
2161
|
-
opacity: 0;
|
|
2162
|
-
}
|
|
2163
|
-
to {
|
|
2164
|
-
opacity: 1;
|
|
2165
|
-
}
|
|
2166
|
-
}
|
|
2167
|
-
@keyframes fadeOut {
|
|
2168
|
-
from {
|
|
2169
|
-
opacity: 1;
|
|
2170
|
-
}
|
|
2171
|
-
to {
|
|
2172
|
-
opacity: 0;
|
|
2173
|
-
}
|
|
2174
|
-
}
|
|
2175
|
-
@keyframes zoomIn {
|
|
2176
|
-
from {
|
|
2177
|
-
transform: scale(0.95);
|
|
2178
|
-
}
|
|
2179
|
-
to {
|
|
2180
|
-
transform: scale(1);
|
|
2181
|
-
}
|
|
2182
|
-
}
|
|
2183
|
-
@keyframes zoomOut {
|
|
2184
|
-
from {
|
|
2185
|
-
transform: scale(1);
|
|
2186
|
-
}
|
|
2187
|
-
to {
|
|
2188
|
-
transform: scale(0.95);
|
|
2189
|
-
}
|
|
2190
|
-
}
|
|
2191
|
-
@keyframes zoom {
|
|
2192
|
-
0% {
|
|
2193
|
-
opacity: 0;
|
|
2194
|
-
transform: scale(0.95);
|
|
2195
|
-
}
|
|
2196
|
-
100% {
|
|
2197
|
-
opacity: 1;
|
|
2198
|
-
transform: scale(1);
|
|
2199
|
-
}
|
|
2200
|
-
}
|
|
2201
|
-
@keyframes slideFromTop {
|
|
2202
|
-
from {
|
|
2203
|
-
transform: translateY(-0.5rem);
|
|
2204
|
-
}
|
|
2205
|
-
to {
|
|
2206
|
-
transform: translateY(0);
|
|
2207
|
-
}
|
|
2208
|
-
}
|
|
2209
|
-
@keyframes slideFromRight {
|
|
2210
|
-
from {
|
|
2211
|
-
transform: translateX(0.5rem);
|
|
2212
|
-
}
|
|
2213
|
-
to {
|
|
2214
|
-
transform: translateX(0);
|
|
2215
|
-
}
|
|
2216
|
-
}
|
|
2217
|
-
@keyframes slideFromLeft {
|
|
2218
|
-
from {
|
|
2219
|
-
transform: translateX(-0.5rem);
|
|
2220
|
-
}
|
|
2221
|
-
to {
|
|
2222
|
-
transform: translateX(0);
|
|
2223
|
-
}
|
|
2224
|
-
}
|
|
2225
|
-
@keyframes slideFromBottom {
|
|
2226
|
-
from {
|
|
2227
|
-
transform: translateY(0.5rem);
|
|
2228
|
-
}
|
|
2229
|
-
to {
|
|
2230
|
-
transform: translateY(0);
|
|
2231
|
-
}
|
|
2232
|
-
}
|
|
2233
|
-
@keyframes spin {
|
|
2234
|
-
from {
|
|
2235
|
-
transform: rotate(0deg);
|
|
2236
|
-
}
|
|
2237
|
-
to {
|
|
2238
|
-
transform: rotate(360deg);
|
|
2239
|
-
}
|
|
2240
|
-
}
|
|
2241
2117
|
.tiptap-dropdown-menu {
|
|
2242
2118
|
--tt-dropdown-menu-bg-color: var(--white);
|
|
2243
2119
|
--tt-dropdown-menu-border-color: var(--tt-gray-light-a-100);
|
|
@@ -2262,29 +2138,31 @@
|
|
|
2262
2138
|
.tiptap-dropdown-menu[data-state=open] {
|
|
2263
2139
|
animation: fadeIn 150ms cubic-bezier(0.16, 1, 0.3, 1), zoomIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
2264
2140
|
}
|
|
2265
|
-
.tiptap-dropdown-menu[data-state=
|
|
2266
|
-
.
|
|
2267
|
-
|
|
2141
|
+
.tiptap-dropdown-menu[data-state=closed] {
|
|
2142
|
+
animation: fadeOut 150ms cubic-bezier(0.16, 1, 0.3, 1), zoomOut 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
2143
|
+
}
|
|
2144
|
+
.tiptap-dropdown-menu {
|
|
2145
|
+
}
|
|
2146
|
+
.tiptap-dropdown-menu[data-side=top],
|
|
2147
|
+
.tiptap-dropdown-menu[data-side=top-start],
|
|
2148
|
+
.tiptap-dropdown-menu[data-side=top-end] {
|
|
2268
2149
|
animation: slideFromBottom 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
2269
2150
|
}
|
|
2270
|
-
.tiptap-dropdown-menu[data-
|
|
2271
|
-
.tiptap-dropdown-menu[data-
|
|
2272
|
-
.tiptap-dropdown-menu[data-
|
|
2151
|
+
.tiptap-dropdown-menu[data-side=right],
|
|
2152
|
+
.tiptap-dropdown-menu[data-side=right-start],
|
|
2153
|
+
.tiptap-dropdown-menu[data-side=right-end] {
|
|
2273
2154
|
animation: slideFromLeft 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
2274
2155
|
}
|
|
2275
|
-
.tiptap-dropdown-menu[data-
|
|
2276
|
-
.tiptap-dropdown-menu[data-
|
|
2277
|
-
.tiptap-dropdown-menu[data-
|
|
2156
|
+
.tiptap-dropdown-menu[data-side=bottom],
|
|
2157
|
+
.tiptap-dropdown-menu[data-side=bottom-start],
|
|
2158
|
+
.tiptap-dropdown-menu[data-side=bottom-end] {
|
|
2278
2159
|
animation: slideFromTop 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
2279
2160
|
}
|
|
2280
|
-
.tiptap-dropdown-menu[data-
|
|
2281
|
-
.tiptap-dropdown-menu[data-
|
|
2282
|
-
.tiptap-dropdown-menu[data-
|
|
2161
|
+
.tiptap-dropdown-menu[data-side=left],
|
|
2162
|
+
.tiptap-dropdown-menu[data-side=left-start],
|
|
2163
|
+
.tiptap-dropdown-menu[data-side=left-end] {
|
|
2283
2164
|
animation: slideFromRight 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
2284
2165
|
}
|
|
2285
|
-
.tiptap-dropdown-menu[data-state=closed] {
|
|
2286
|
-
animation: fadeOut 150ms cubic-bezier(0.16, 1, 0.3, 1), zoomOut 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
2287
|
-
}
|
|
2288
2166
|
|
|
2289
2167
|
/* src/components/tiptap-ui-primitive/card/card.scss */
|
|
2290
2168
|
:root {
|
|
@@ -2480,134 +2358,158 @@
|
|
|
2480
2358
|
align-items: stretch;
|
|
2481
2359
|
}
|
|
2482
2360
|
|
|
2483
|
-
/* src/components/tiptap-ui/
|
|
2484
|
-
|
|
2485
|
-
|
|
2361
|
+
/* src/components/tiptap-node/table-node/ui/table-trigger-button/table-grid-selector.scss */
|
|
2362
|
+
:root {
|
|
2363
|
+
--tt-bg: var(--white);
|
|
2364
|
+
--tt-selected-bg-color: var(--tt-brand-color-50);
|
|
2365
|
+
--tt-selected-border-color: var(--tt-brand-color-400);
|
|
2366
|
+
--tt-cell-bg-color: var(--tt-gray-light-50);
|
|
2367
|
+
--tt-cell-border-color: var(--tt-gray-light-200);
|
|
2368
|
+
--tt-indicator-item-border-color: var(--tt-gray-light-a-200);
|
|
2369
|
+
--tt-indicator-icon-color: var(--tt-gray-light-a-400);
|
|
2370
|
+
--tt-indicator-delimiter-color: var(--tt-gray-light-a-500);
|
|
2371
|
+
}
|
|
2372
|
+
.dark {
|
|
2373
|
+
--tt-bg: var(--black);
|
|
2374
|
+
--tt-selected-bg-color: var(--tt-brand-color-900);
|
|
2375
|
+
--tt-cell-bg-color: var(--tt-gray-dark-100);
|
|
2376
|
+
--tt-cell-border-color: var(--tt-gray-dark-200);
|
|
2377
|
+
--tt-indicator-item-border-color: var(--tt-gray-dark-a-200);
|
|
2378
|
+
--tt-indicator-icon-color: var(--tt-gray-dark-a-400);
|
|
2379
|
+
--tt-indicator-delimiter-color: var(--tt-gray-dark-a-500);
|
|
2380
|
+
}
|
|
2381
|
+
.tiptap-table-grid {
|
|
2382
|
+
display: grid;
|
|
2486
2383
|
gap: 0.25rem;
|
|
2487
2384
|
padding: 0.25rem;
|
|
2385
|
+
grid-template-columns: repeat(var(--tt-table-columns), 1rem);
|
|
2488
2386
|
}
|
|
2489
|
-
.
|
|
2490
|
-
width:
|
|
2491
|
-
height:
|
|
2387
|
+
.tiptap-button[data-size=small].tiptap-table-grid-cell {
|
|
2388
|
+
width: 1rem;
|
|
2389
|
+
height: 1rem;
|
|
2390
|
+
min-width: 1rem;
|
|
2391
|
+
padding: 0;
|
|
2392
|
+
border: 1px solid var(--tt-cell-border-color);
|
|
2492
2393
|
border-radius: var(--tt-radius-xs);
|
|
2493
|
-
|
|
2394
|
+
background-color: var(--tt-cell-bg-color);
|
|
2494
2395
|
cursor: pointer;
|
|
2495
|
-
transition:
|
|
2496
|
-
}
|
|
2497
|
-
.callout-option:hover {
|
|
2498
|
-
transform: scale(1.1);
|
|
2499
|
-
}
|
|
2500
|
-
.callout-option--success {
|
|
2501
|
-
background-color: var(--tt-color-green-inc-3);
|
|
2396
|
+
transition: all 150ms ease;
|
|
2502
2397
|
}
|
|
2503
|
-
.
|
|
2504
|
-
background-color: var(--tt-
|
|
2398
|
+
.tiptap-button[data-size=small].tiptap-table-grid-cell.selected {
|
|
2399
|
+
background-color: var(--tt-selected-bg-color);
|
|
2400
|
+
border-color: var(--tt-selected-border-color);
|
|
2505
2401
|
}
|
|
2506
|
-
.
|
|
2507
|
-
background-color: var(--tt-color-red-inc-3);
|
|
2508
|
-
}
|
|
2509
|
-
.callout-option--info {
|
|
2510
|
-
background-color: var(--tt-color-highlight-blue);
|
|
2511
|
-
}
|
|
2512
|
-
|
|
2513
|
-
/* src/components/tiptap-ui/table-button/table-button.scss */
|
|
2514
|
-
.table-grid-picker {
|
|
2402
|
+
.tiptap-table-size-indicator {
|
|
2515
2403
|
display: flex;
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2404
|
+
align-items: center;
|
|
2405
|
+
justify-content: center;
|
|
2406
|
+
gap: 0.25rem;
|
|
2407
|
+
width: 100%;
|
|
2408
|
+
margin-top: 0.25rem;
|
|
2519
2409
|
}
|
|
2520
|
-
.table-
|
|
2521
|
-
display:
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
.
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
border: 1px solid var(--tt-border-color
|
|
2529
|
-
border-radius:
|
|
2530
|
-
background:
|
|
2531
|
-
cursor: pointer;
|
|
2532
|
-
transition: background-color 0.1s, border-color 0.1s;
|
|
2410
|
+
.tiptap-table-size-indicator-item {
|
|
2411
|
+
display: flex;
|
|
2412
|
+
flex: 1;
|
|
2413
|
+
align-items: center;
|
|
2414
|
+
justify-content: center;
|
|
2415
|
+
gap: 0.75rem;
|
|
2416
|
+
min-height: 2rem;
|
|
2417
|
+
padding: 0.5rem;
|
|
2418
|
+
border: 1px solid var(--tt-indicator-item-border-color);
|
|
2419
|
+
border-radius: var(--tt-radius-xl);
|
|
2420
|
+
background: var(--tt-bg);
|
|
2533
2421
|
}
|
|
2534
|
-
.table-
|
|
2535
|
-
|
|
2536
|
-
|
|
2422
|
+
.tiptap-table-size-indicator-item .tiptap-table-column-icon,
|
|
2423
|
+
.tiptap-table-size-indicator-item .tiptap-table-row-icon {
|
|
2424
|
+
width: 1rem;
|
|
2425
|
+
height: 1rem;
|
|
2426
|
+
color: var(--tt-indicator-icon-color);
|
|
2537
2427
|
}
|
|
2538
|
-
.table-
|
|
2428
|
+
.tiptap-table-size-indicator-text {
|
|
2429
|
+
width: 1.781rem;
|
|
2430
|
+
font-size: 0.875rem;
|
|
2431
|
+
font-weight: 400;
|
|
2539
2432
|
text-align: center;
|
|
2540
|
-
font-size: 12px;
|
|
2541
|
-
color: var(--tt-text-secondary-color, hsl(240, 3.8%, 46.1%));
|
|
2542
|
-
min-height: 16px;
|
|
2543
|
-
}
|
|
2544
|
-
:root.dark .table-grid-cell {
|
|
2545
|
-
border-color: var(--tt-border-color, hsl(240, 3.7%, 25%));
|
|
2546
|
-
}
|
|
2547
|
-
:root.dark .table-grid-cell.is-selected {
|
|
2548
|
-
background: var(--tt-brand-color, hsl(217.2, 91.2%, 59.8%));
|
|
2549
|
-
border-color: var(--tt-brand-color, hsl(217.2, 91.2%, 59.8%));
|
|
2550
2433
|
}
|
|
2551
|
-
|
|
2552
|
-
|
|
2434
|
+
.tiptap-table-size-indicator-delimiter {
|
|
2435
|
+
flex-shrink: 0;
|
|
2436
|
+
font-size: 0.75rem;
|
|
2437
|
+
font-weight: 500;
|
|
2438
|
+
color: var(--tt-indicator-delimiter-color);
|
|
2553
2439
|
}
|
|
2554
2440
|
|
|
2555
|
-
/* src/components/tiptap-ui/text-color-
|
|
2556
|
-
.
|
|
2557
|
-
display: grid;
|
|
2558
|
-
grid-template-columns: repeat(5, 1fr);
|
|
2559
|
-
gap: 0.25rem;
|
|
2560
|
-
padding: 0.25rem;
|
|
2561
|
-
}
|
|
2562
|
-
.text-color-option {
|
|
2563
|
-
width: 1.5rem;
|
|
2564
|
-
height: 1.5rem;
|
|
2565
|
-
border-radius: var(--tt-radius-xs);
|
|
2566
|
-
border: 1px solid var(--tt-border-color);
|
|
2567
|
-
cursor: pointer;
|
|
2568
|
-
font-size: 0.75rem;
|
|
2569
|
-
font-weight: 600;
|
|
2441
|
+
/* src/components/tiptap-ui/color-text-button/color-text-button.scss */
|
|
2442
|
+
.tiptap-button-color-text {
|
|
2570
2443
|
display: flex;
|
|
2571
2444
|
align-items: center;
|
|
2572
2445
|
justify-content: center;
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
.text-color-option--default {
|
|
2580
|
-
color: var(--tt-gray-light-a-800);
|
|
2581
|
-
}
|
|
2582
|
-
.text-color-option--gray {
|
|
2583
|
-
color: var(--tt-color-text-gray);
|
|
2446
|
+
position: relative;
|
|
2447
|
+
width: 1.25rem;
|
|
2448
|
+
height: 1.25rem;
|
|
2449
|
+
margin: 0 -0.175rem;
|
|
2450
|
+
border-radius: var(--tt-radius-xl);
|
|
2451
|
+
transition: transform 0.2s ease;
|
|
2584
2452
|
}
|
|
2585
|
-
.
|
|
2586
|
-
|
|
2453
|
+
.tiptap-button-color-text::after {
|
|
2454
|
+
content: "";
|
|
2455
|
+
position: absolute;
|
|
2456
|
+
width: 100%;
|
|
2457
|
+
height: 100%;
|
|
2458
|
+
left: 0;
|
|
2459
|
+
top: 0;
|
|
2460
|
+
border-radius: inherit;
|
|
2461
|
+
box-sizing: border-box;
|
|
2462
|
+
border: 1px solid var(--color-text-button-color);
|
|
2463
|
+
filter: brightness(150%);
|
|
2464
|
+
mix-blend-mode: multiply;
|
|
2465
|
+
opacity: 0.5;
|
|
2587
2466
|
}
|
|
2588
|
-
.
|
|
2589
|
-
|
|
2467
|
+
.dark .tiptap-button-color-text::after {
|
|
2468
|
+
filter: brightness(140%);
|
|
2469
|
+
mix-blend-mode: lighten;
|
|
2590
2470
|
}
|
|
2591
|
-
.
|
|
2592
|
-
|
|
2471
|
+
.tiptap-button[data-active-state=on] .tiptap-button-color-text::after {
|
|
2472
|
+
filter: brightness(80%);
|
|
2593
2473
|
}
|
|
2594
|
-
.
|
|
2595
|
-
|
|
2474
|
+
.dark .tiptap-button[data-active-state=on] .tiptap-button-color-text::after {
|
|
2475
|
+
filter: brightness(180%);
|
|
2596
2476
|
}
|
|
2597
|
-
|
|
2598
|
-
|
|
2477
|
+
|
|
2478
|
+
/* src/components/tiptap-ui/color-text-popover/color-text-popover.scss */
|
|
2479
|
+
:root {
|
|
2480
|
+
--tiptap-ouline-fallback-color: var(--tt-gray-light-a-200);
|
|
2599
2481
|
}
|
|
2600
|
-
.
|
|
2601
|
-
color: var(--tt-
|
|
2482
|
+
.dark {
|
|
2483
|
+
--tiptap-ouline-fallback-color: var(--tt-gray-dark-a-200);
|
|
2602
2484
|
}
|
|
2603
|
-
.
|
|
2604
|
-
|
|
2485
|
+
.tiptap-button-color-text-popover {
|
|
2486
|
+
position: relative;
|
|
2487
|
+
width: 1.25rem;
|
|
2488
|
+
height: 1.25rem;
|
|
2489
|
+
margin: 0 -0.175rem;
|
|
2490
|
+
border-radius: var(--tt-radius-xl);
|
|
2491
|
+
background-color: var(--active-highlight-color);
|
|
2492
|
+
transition: transform 0.2s ease;
|
|
2493
|
+
display: flex;
|
|
2494
|
+
align-items: center;
|
|
2495
|
+
justify-content: center;
|
|
2605
2496
|
}
|
|
2606
|
-
.
|
|
2607
|
-
|
|
2497
|
+
.tiptap-button-color-text-popover::after {
|
|
2498
|
+
content: "";
|
|
2499
|
+
position: absolute;
|
|
2500
|
+
width: 100%;
|
|
2501
|
+
height: 100%;
|
|
2502
|
+
left: 0;
|
|
2503
|
+
top: 0;
|
|
2504
|
+
border-radius: inherit;
|
|
2505
|
+
box-sizing: border-box;
|
|
2506
|
+
border: 1px solid var(--active-highlight-color, var(--tiptap-ouline-fallback-color));
|
|
2507
|
+
filter: brightness(95%);
|
|
2508
|
+
mix-blend-mode: multiply;
|
|
2608
2509
|
}
|
|
2609
|
-
.dark .
|
|
2610
|
-
|
|
2510
|
+
.dark .tiptap-button-color-text-popover::after {
|
|
2511
|
+
filter: brightness(140%);
|
|
2512
|
+
mix-blend-mode: lighten;
|
|
2611
2513
|
}
|
|
2612
2514
|
|
|
2613
2515
|
/* src/components/tiptap-templates/simple/simple-editor.scss */
|
|
@@ -2684,15 +2586,21 @@ body,
|
|
|
2684
2586
|
}
|
|
2685
2587
|
}
|
|
2686
2588
|
.simple-editor-embedded .simple-editor-content {
|
|
2687
|
-
max-width:
|
|
2589
|
+
max-width: min(1200px, 100%);
|
|
2590
|
+
margin: 0 auto;
|
|
2688
2591
|
height: auto;
|
|
2689
2592
|
flex: none;
|
|
2690
2593
|
}
|
|
2691
2594
|
.simple-editor-embedded .simple-editor-content .tiptap.ProseMirror.simple-editor {
|
|
2692
2595
|
flex: none;
|
|
2693
|
-
padding: 1rem;
|
|
2596
|
+
padding: 3rem 3rem 1rem;
|
|
2694
2597
|
min-height: 120px;
|
|
2695
2598
|
}
|
|
2599
|
+
@media screen and (max-width: 480px) {
|
|
2600
|
+
.simple-editor-embedded .simple-editor-content .tiptap.ProseMirror.simple-editor {
|
|
2601
|
+
padding: 1rem 1.5rem 1rem;
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2696
2604
|
.simple-editor-wrapper[style*=height] {
|
|
2697
2605
|
display: flex;
|
|
2698
2606
|
flex-direction: column;
|
|
@@ -2722,4 +2630,66 @@ body,
|
|
|
2722
2630
|
border-top-left-radius: 11px;
|
|
2723
2631
|
border-top-right-radius: 11px;
|
|
2724
2632
|
}
|
|
2633
|
+
|
|
2634
|
+
/* src/components/toc-sidebar/toc-sidebar.scss */
|
|
2635
|
+
.toc-sidebar {
|
|
2636
|
+
width: 200px;
|
|
2637
|
+
flex-shrink: 0;
|
|
2638
|
+
padding: 1rem;
|
|
2639
|
+
font-size: 0.875rem;
|
|
2640
|
+
line-height: 1.5;
|
|
2641
|
+
position: sticky;
|
|
2642
|
+
top: 1rem;
|
|
2643
|
+
align-self: start;
|
|
2644
|
+
height: fit-content;
|
|
2645
|
+
}
|
|
2646
|
+
.toc-sidebar-title {
|
|
2647
|
+
font-weight: 600;
|
|
2648
|
+
margin-bottom: 0.75rem;
|
|
2649
|
+
color: var(--toc-title-color, #374151);
|
|
2650
|
+
}
|
|
2651
|
+
.toc-sidebar-list {
|
|
2652
|
+
list-style: none;
|
|
2653
|
+
margin: 0;
|
|
2654
|
+
padding: 0;
|
|
2655
|
+
}
|
|
2656
|
+
.toc-sidebar-item {
|
|
2657
|
+
margin: 0;
|
|
2658
|
+
padding: 0;
|
|
2659
|
+
}
|
|
2660
|
+
.toc-sidebar-item--level-1 {
|
|
2661
|
+
padding-left: 0;
|
|
2662
|
+
}
|
|
2663
|
+
.toc-sidebar-item--level-2 {
|
|
2664
|
+
padding-left: 0.75rem;
|
|
2665
|
+
}
|
|
2666
|
+
.toc-sidebar-item--level-3 {
|
|
2667
|
+
padding-left: 1.5rem;
|
|
2668
|
+
}
|
|
2669
|
+
.toc-sidebar-item--level-4 {
|
|
2670
|
+
padding-left: 2.25rem;
|
|
2671
|
+
}
|
|
2672
|
+
.toc-sidebar-item--active .toc-sidebar-link {
|
|
2673
|
+
color: var(--toc-active-color, #2563eb);
|
|
2674
|
+
font-weight: 500;
|
|
2675
|
+
}
|
|
2676
|
+
.toc-sidebar-link {
|
|
2677
|
+
display: block;
|
|
2678
|
+
width: 100%;
|
|
2679
|
+
padding: 0.25rem 0.5rem;
|
|
2680
|
+
text-align: left;
|
|
2681
|
+
background: none;
|
|
2682
|
+
border: none;
|
|
2683
|
+
border-radius: 0.25rem;
|
|
2684
|
+
color: var(--toc-link-color, #6b7280);
|
|
2685
|
+
cursor: pointer;
|
|
2686
|
+
transition: color 0.15s, background-color 0.15s;
|
|
2687
|
+
overflow: hidden;
|
|
2688
|
+
text-overflow: ellipsis;
|
|
2689
|
+
white-space: nowrap;
|
|
2690
|
+
}
|
|
2691
|
+
.toc-sidebar-link:hover {
|
|
2692
|
+
color: var(--toc-hover-color, #374151);
|
|
2693
|
+
background-color: var(--toc-hover-bg, #f3f4f6);
|
|
2694
|
+
}
|
|
2725
2695
|
/*# sourceMappingURL=index.css.map */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elia-ori/editor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"description": "基於 TipTap 的富文字編輯器套件",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
36
36
|
"@radix-ui/react-popover": "^1.1.15",
|
|
37
37
|
"@radix-ui/react-toggle": "^1.1.0",
|
|
38
|
-
"@tiptap-pro/extension-ai": "^3.3.0",
|
|
39
38
|
"@tiptap/core": "^3.18.0",
|
|
40
39
|
"@tiptap/extension-color": "^3.18.0",
|
|
41
40
|
"@tiptap/extension-drag-handle-react": "^3.18.0",
|