@edifice.io/react 2.6.10-develop-pedago.20261022131512 → 2.6.10-develop-pedago.20261022145938
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.
|
@@ -21,7 +21,11 @@ const EditorToolbarTextSize = ({
|
|
|
21
21
|
action: () => editor == null ? void 0 : editor.chain().focus().scrollIntoView().setCustomHeading({
|
|
22
22
|
level: 1
|
|
23
23
|
}).run(),
|
|
24
|
-
|
|
24
|
+
// The extension's command is still `setCustomHeading`, but
|
|
25
|
+
// useTipTapEditor.ts pins the node's name back to 'heading' (to match
|
|
26
|
+
// already-stored content) - check for that name, not the published
|
|
27
|
+
// package's own 'customHeading' default.
|
|
28
|
+
visibility: hasExtension("heading", editor)
|
|
25
29
|
}, {
|
|
26
30
|
id: "title-2",
|
|
27
31
|
label: t("tiptap.toolbar.size.h2"),
|
|
@@ -29,11 +33,11 @@ const EditorToolbarTextSize = ({
|
|
|
29
33
|
action: () => editor == null ? void 0 : editor.chain().focus().setCustomHeading({
|
|
30
34
|
level: 2
|
|
31
35
|
}).run(),
|
|
32
|
-
visibility: hasExtension("
|
|
36
|
+
visibility: hasExtension("heading", editor)
|
|
33
37
|
}, {
|
|
34
38
|
id: "divider",
|
|
35
39
|
type: "divider",
|
|
36
|
-
visibility: hasExtension("
|
|
40
|
+
visibility: hasExtension("heading", editor) && hasExtension("fontSize", editor)
|
|
37
41
|
}, {
|
|
38
42
|
id: "big-text",
|
|
39
43
|
label: t("tiptap.toolbar.size.big"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.6.10-develop-pedago.
|
|
3
|
+
"version": "2.6.10-develop-pedago.20261022145938",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -132,9 +132,9 @@
|
|
|
132
132
|
"swiper": "10.1.0",
|
|
133
133
|
"ua-parser-js": "1.0.36",
|
|
134
134
|
"zustand": "4.5.7",
|
|
135
|
-
"@edifice.io/
|
|
136
|
-
"@edifice.io/
|
|
137
|
-
"@edifice.io/
|
|
135
|
+
"@edifice.io/utilities": "2.6.10-develop-pedago.20261022145938",
|
|
136
|
+
"@edifice.io/tiptap-extensions": "2.6.10-develop-pedago.20261022145938",
|
|
137
|
+
"@edifice.io/bootstrap": "2.6.10-develop-pedago.20261022145938"
|
|
138
138
|
},
|
|
139
139
|
"devDependencies": {
|
|
140
140
|
"@babel/plugin-transform-react-pure-annotations": "7.27.1",
|
|
@@ -165,8 +165,8 @@
|
|
|
165
165
|
"vite": "5.4.14",
|
|
166
166
|
"vite-plugin-dts": "4.5.4",
|
|
167
167
|
"vite-tsconfig-paths": "5.1.4",
|
|
168
|
-
"@edifice.io/client": "2.6.10-develop-pedago.
|
|
169
|
-
"@edifice.io/config": "2.6.10-develop-pedago.
|
|
168
|
+
"@edifice.io/client": "2.6.10-develop-pedago.20261022145938",
|
|
169
|
+
"@edifice.io/config": "2.6.10-develop-pedago.20261022145938"
|
|
170
170
|
},
|
|
171
171
|
"peerDependencies": {
|
|
172
172
|
"@react-spring/web": "9.7.5",
|