@tulip-systems/editor 0.14.0 → 0.15.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.
|
@@ -10,8 +10,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
10
10
|
const EditorContext = createContext({});
|
|
11
11
|
const editorVariants = cva("", {
|
|
12
12
|
variants: { variant: {
|
|
13
|
-
default: "border-input rounded-lg border [&_.editor-content]:p-3
|
|
14
|
-
table: "
|
|
13
|
+
default: "border-input rounded-lg border [&_.editor-content]:p-3 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:bg-input/50 data-disabled:opacity-50 dark:data-disabled:bg-input/80",
|
|
14
|
+
table: "data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:bg-input/50 data-disabled:opacity-50 dark:data-disabled:bg-input/80",
|
|
15
15
|
preview: "bg-transparent [&_.editor-content]:p-0 [&_.editor-content]:min-h-0"
|
|
16
16
|
} },
|
|
17
17
|
defaultVariants: { variant: "default" }
|
|
@@ -40,6 +40,7 @@ function Editor$1({ value, extensions, onUpdate, onBlur, disabled, variant, clas
|
|
|
40
40
|
extensions: getEditorExtensionState(extensions)
|
|
41
41
|
},
|
|
42
42
|
children: /* @__PURE__ */ jsx("div", {
|
|
43
|
+
"data-disabled": disabled || void 0,
|
|
43
44
|
className: editorVariants({ variant }),
|
|
44
45
|
children
|
|
45
46
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tulip-systems/editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": true,
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@tiptap/pm": "^3.31.3",
|
|
30
30
|
"@tiptap/react": "^3.31.3",
|
|
31
31
|
"@tiptap/static-renderer": "^3.31.3",
|
|
32
|
-
"@tulip-systems/ui": "0.
|
|
32
|
+
"@tulip-systems/ui": "0.15.0",
|
|
33
33
|
"class-variance-authority": "^0.7.1",
|
|
34
34
|
"lucide-react": "^1.47.0",
|
|
35
35
|
"markdown-it": "^15.0.2"
|