@jx-health/rich-editor 0.0.4 → 0.0.5

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/README.md CHANGED
File without changes
package/dist/index.d.ts CHANGED
@@ -317,10 +317,10 @@ declare const __VLS_component$1: import("vue").DefineComponent<RichEditorProps,
317
317
  onChange?: ((value: RichEditorOnChange) => any) | undefined;
318
318
  "onUpdate:modelValue"?: ((value: string | JSONContent$1) => any) | undefined;
319
319
  }>, {
320
- disabled: boolean;
321
320
  modelValue: string | JSONContent$1;
322
321
  output: "html" | "json" | "text";
323
322
  dark: boolean;
323
+ disabled: boolean;
324
324
  hideToolbar: boolean;
325
325
  hideMenubar: boolean;
326
326
  hideBubble: boolean;
@@ -362,10 +362,10 @@ type __VLS_Slots = {} & {
362
362
  default?: (props: typeof __VLS_32) => any;
363
363
  };
364
364
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
365
+ disabled: boolean;
365
366
  icon: keyof typeof icons;
366
367
  title: string;
367
368
  tooltip: string;
368
- disabled: boolean;
369
369
  shortcutKeys: string[];
370
370
  customClass: string;
371
371
  loading: boolean;
package/dist/index.js CHANGED
@@ -6282,7 +6282,10 @@ function _sfc_render$69(_ctx, _cache, $props, $setup, $data, $options) {
6282
6282
  open: $setup.menuOpen,
6283
6283
  "onUpdate:open": _cache[3] || (_cache[3] = ($event) => $setup.menuOpen = $event)
6284
6284
  }, {
6285
- default: withCtx(() => [createVNode($setup["DropdownMenuTrigger"], { disable: $props.disabled }, {
6285
+ default: withCtx(() => [createVNode($setup["DropdownMenuTrigger"], {
6286
+ disable: $props.disabled,
6287
+ "as-child": ""
6288
+ }, {
6286
6289
  default: withCtx(() => [createVNode($setup["TooltipProvider"], { "delay-duration": 0 }, {
6287
6290
  default: withCtx(() => [createVNode($setup["Tooltip"], null, {
6288
6291
  default: withCtx(() => [createVNode($setup["TooltipTrigger"], { "as-child": "" }, {
@@ -12943,7 +12946,7 @@ function _sfc_render$31(_ctx, _cache, $props, $setup, $data, $options) {
12943
12946
  key: 1,
12944
12947
  editor: $setup.editor
12945
12948
  }, null, 8, ["editor"])) : createCommentVNode("v-if", true),
12946
- createElementVNode("div", { class: normalizeClass(["relative flex flex-col overflow-hidden", { "!fixed bg-background inset-0 z-[10] w-full h-full m-0 rounded-[0.5rem]": $setup.isFullscreen }]) }, [
12949
+ createElementVNode("div", { class: normalizeClass(["relative flex flex-col overflow-hidden", { "fullscreen !fixed bg-background inset-0 z-[10] w-full h-full m-0 rounded-[0.5rem]": $setup.isFullscreen }]) }, [
12947
12950
  !$props.hideMenubar ? (openBlock(), createBlock($setup["Menubars"], {
12948
12951
  key: 0,
12949
12952
  editor: $setup.editor,
package/dist/style.css CHANGED
@@ -40,7 +40,7 @@
40
40
  @property --un-sepia{syntax:"*";inherits:false;}
41
41
  @property --un-space-x-reverse{syntax:"*";inherits:false;initial-value:0;}
42
42
  /* layer: theme */
43
- :root, :host { --spacing: 0.25rem; --text-sm-fontSize: 0.875rem; --text-sm-lineHeight: 1.25rem; --font-sans: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",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; --default-font-family: var(--font-sans); --default-monoFont-family: var(--font-mono); --fontWeight-normal: 400; --colors-black: #000; --colors-white: #fff; --radius-DEFAULT: 0.25rem; --default-transition-timingFunction: cubic-bezier(0.4, 0, 0.2, 1); --default-transition-duration: 150ms; --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); --container-2xl: 42rem; --leading-relaxed: 1.625; --fontWeight-bold: 700; --fontWeight-extrabold: 800; --radius-sm: 0.25rem; --radius-lg: 0.5rem; --radius-none: 0; --colors-gray-50: oklch(98.5% 0.002 247.839); --colors-neutral-100: oklch(97% 0 0); --colors-yellow-300: oklch(90.5% 0.182 98.111); --colors-red-400: oklch(70.4% 0.191 22.216); --colors-blue-500: oklch(62.3% 0.214 259.815); --colors-red-500: oklch(63.7% 0.237 25.331); --colors-neutral-900: oklch(20.5% 0 0); --colors-neutral-700: oklch(37.1% 0 0); --colors-neutral-400: oklch(70.8% 0 0); --colors-red-300: oklch(80.8% 0.114 19.571); --colors-orange-300: oklch(83.7% 0.128 66.29); --colors-lime-300: oklch(89.7% 0.196 126.665); --colors-teal-300: oklch(85.5% 0.138 181.071); --text-3xl-fontSize: 1.875rem; --text-3xl-lineHeight: 2.25rem; --text-2xl-fontSize: 1.5rem; --text-2xl-lineHeight: 2rem; --text-xl-fontSize: 1.25rem; --text-xl-lineHeight: 1.75rem; --text-lg-fontSize: 1.125rem; --text-lg-lineHeight: 1.75rem; --text-base-fontSize: 1rem; --text-base-lineHeight: 1.5rem; --colors-gray-900: oklch(21% 0.034 264.665); --colors-blue-400: oklch(70.7% 0.165 254.624); --colors-neutral-800: oklch(26.9% 0 0); --colors-neutral-300: oklch(87% 0 0); --leading-none: 1; --radius-md: 0.375rem; --ease-out: cubic-bezier(0, 0, 0.2, 1); --colors-neutral-200: oklch(92.2% 0 0); --container-sm: 24rem; --fontWeight-medium: 500; --colors-neutral-600: oklch(43.9% 0 0); --text-xs-fontSize: 0.75rem; --text-xs-lineHeight: 1rem; --colors-gray-200: oklch(92.8% 0.006 264.531); --colors-zinc-500: oklch(55.2% 0.016 285.938); --tracking-widest: 0.1em; --container-lg: 32rem; --fontWeight-semibold: 600; --tracking-tight: -0.025em; --tracking-wider: 0.05em; --colors-neutral-500: oklch(55.6% 0 0); --colors-gray-800: oklch(27.8% 0.033 256.848); --colors-gray-100: oklch(96.7% 0.003 264.542); --ease-in: cubic-bezier(0.4, 0, 1, 1); --colors-zinc-600: oklch(44.2% 0.017 285.786); }
43
+ :root, :host { --spacing: 0.25rem; --text-sm-fontSize: 0.875rem; --text-sm-lineHeight: 1.25rem; --font-sans: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",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; --default-font-family: var(--font-sans); --default-monoFont-family: var(--font-mono); --fontWeight-normal: 400; --colors-black: #000; --colors-white: #fff; --radius-DEFAULT: 0.25rem; --default-transition-timingFunction: cubic-bezier(0.4, 0, 0.2, 1); --default-transition-duration: 150ms; --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); --container-2xl: 42rem; --leading-relaxed: 1.625; --fontWeight-bold: 700; --fontWeight-extrabold: 800; --radius-sm: 0.25rem; --radius-lg: 0.5rem; --radius-none: 0; --colors-gray-50: oklch(98.5% 0.002 247.839); --colors-neutral-100: oklch(97% 0 0); --colors-yellow-300: oklch(90.5% 0.182 98.111); --colors-red-400: oklch(70.4% 0.191 22.216); --colors-blue-500: oklch(62.3% 0.214 259.815); --colors-red-500: oklch(63.7% 0.237 25.331); --colors-neutral-900: oklch(20.5% 0 0); --colors-neutral-700: oklch(37.1% 0 0); --colors-neutral-400: oklch(70.8% 0 0); --colors-red-300: oklch(80.8% 0.114 19.571); --colors-orange-300: oklch(83.7% 0.128 66.29); --colors-lime-300: oklch(89.7% 0.196 126.665); --colors-teal-300: oklch(85.5% 0.138 181.071); --text-3xl-fontSize: 1.875rem; --text-3xl-lineHeight: 2.25rem; --text-2xl-fontSize: 1.5rem; --text-2xl-lineHeight: 2rem; --text-xl-fontSize: 1.25rem; --text-xl-lineHeight: 1.75rem; --text-lg-fontSize: 1.125rem; --text-lg-lineHeight: 1.75rem; --text-base-fontSize: 1rem; --text-base-lineHeight: 1.5rem; --colors-gray-900: oklch(21% 0.034 264.665); --colors-blue-400: oklch(70.7% 0.165 254.624); --colors-neutral-800: oklch(26.9% 0 0); --colors-neutral-300: oklch(87% 0 0); --ease-out: cubic-bezier(0, 0, 0.2, 1); --colors-neutral-200: oklch(92.2% 0 0); --radius-md: 0.375rem; --container-sm: 24rem; --fontWeight-medium: 500; --leading-none: 1; --colors-neutral-600: oklch(43.9% 0 0); --text-xs-fontSize: 0.75rem; --text-xs-lineHeight: 1rem; --colors-zinc-500: oklch(55.2% 0.016 285.938); --colors-gray-200: oklch(92.8% 0.006 264.531); --container-lg: 32rem; --fontWeight-semibold: 600; --tracking-tight: -0.025em; --tracking-widest: 0.1em; --tracking-wider: 0.05em; --colors-neutral-500: oklch(55.6% 0 0); --colors-gray-800: oklch(27.8% 0.033 256.848); --colors-gray-100: oklch(96.7% 0.003 264.542); --ease-in: cubic-bezier(0.4, 0, 1, 1); --colors-zinc-600: oklch(44.2% 0.017 285.786); }
44
44
  /* layer: base */
45
45
  *, ::after, ::before, ::backdrop, ::file-selector-button { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; } html, :host { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; 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-featureSettings, normal); font-variation-settings: var(--default-font-variationSettings, 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; text-decoration: inherit; } b, strong { font-weight: bolder; } code, kbd, samp, pre { font-family: var( --default-monoFont-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace ); font-feature-settings: var(--default-monoFont-featureSettings, normal); font-variation-settings: var(--default-monoFont-variationSettings, normal); font-size: 1em; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.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 { display: block; vertical-align: middle; } img, video { max-width: 100%; height: auto; } button, input, select, optgroup, textarea, ::file-selector-button { font: inherit; font-feature-settings: inherit; font-variation-settings: inherit; letter-spacing: inherit; color: inherit; border-radius: 0; background-color: transparent; opacity: 1; } :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: 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, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-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']), ::file-selector-button { appearance: button; } ::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; } [hidden]:where(:not([hidden~='until-found'])) { display: none !important; }
46
46
  /* layer: preflights */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx-health/rich-editor",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Vue3 Rich editor",
5
5
  "license": "MIT",
6
6
  "author": "Hosanna <ohosanna@gmail.com>",
@@ -24,6 +24,14 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
+ "scripts": {
28
+ "build": "vp pack",
29
+ "dev": "vp pack --watch",
30
+ "test": "vp test",
31
+ "check": "vp check",
32
+ "release": "bumpp",
33
+ "prepublishOnly": "vp run build"
34
+ },
27
35
  "devDependencies": {
28
36
  "@iconify-json/carbon": "^1.2.24",
29
37
  "@iconify/vue": "^5.0.1",
@@ -40,7 +48,7 @@
40
48
  "prosemirror-model": "^1.25.11",
41
49
  "rolldown-plugin-unocss": "^0.1.0",
42
50
  "sass-embedded": "^1.100.0",
43
- "typescript": "^5.9.3",
51
+ "typescript": "catalog:",
44
52
  "unocss": "^66.7.5",
45
53
  "unocss-preset-animations": "^1.3.0",
46
54
  "unocss-preset-shadcn": "^1.0.1",
@@ -48,7 +56,7 @@
48
56
  "unplugin-vue": "^7.2.0",
49
57
  "unplugin-vue-components": "^32.1.0",
50
58
  "vite-plus": "^0.1.24",
51
- "vue-tsc": "^3.3.8"
59
+ "vue-tsc": "catalog:"
52
60
  },
53
61
  "dependencies": {
54
62
  "@lucide/vue": "^1.27.0",
@@ -102,7 +110,7 @@
102
110
  "reka-ui": "^2.10.1",
103
111
  "tailwind-merge": "^3.6.0",
104
112
  "tippy.js": "^6.3.7",
105
- "vue": "^3.5.40",
113
+ "vue": "catalog:",
106
114
  "vue-sonner": "^2.0.9",
107
115
  "y-prosemirror": "^1.3.7"
108
116
  },
@@ -110,12 +118,5 @@
110
118
  "@iconify/vue": "5.0.1",
111
119
  "prism-code-editor": "5.1.0",
112
120
  "prosemirror-model": "1.25.4"
113
- },
114
- "scripts": {
115
- "build": "vp pack",
116
- "dev": "vp pack --watch",
117
- "test": "vp test",
118
- "check": "vp check",
119
- "release": "bumpp"
120
121
  }
121
- }
122
+ }