@dxos/react-ui-editor 0.7.5-main.9d2a38b → 0.7.5-main.e9bb01b
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/lib/browser/index.mjs +10 -5
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +10 -5
- package/dist/lib/node/index.cjs.map +2 -2
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +10 -5
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/EditorToolbar/comment.d.ts.map +1 -1
- package/package.json +29 -29
- package/src/components/EditorToolbar/comment.ts +5 -2
- package/src/extensions/markdown/decorate.ts +1 -1
- package/src/extensions/markdown/formatting.test.ts +7 -6
- package/src/styles/markdown.ts +1 -1
- package/src/styles/stack-item-content-class-names.ts +1 -1
- package/src/styles/theme.ts +1 -1
@@ -120,7 +120,12 @@ var createCommentAction = (label) => createEditorAction({
|
|
120
120
|
}, "ph--chat-text--regular", label);
|
121
121
|
var createComment = (state) => ({
|
122
122
|
nodes: [
|
123
|
-
createCommentAction(
|
123
|
+
createCommentAction([
|
124
|
+
commentLabel(state.comment, state.selection),
|
125
|
+
{
|
126
|
+
ns: translationKey
|
127
|
+
}
|
128
|
+
])
|
124
129
|
],
|
125
130
|
edges: [
|
126
131
|
{
|
@@ -308,7 +313,7 @@ var createViewMode = (state) => {
|
|
308
313
|
|
309
314
|
// packages/ui/react-ui-editor/src/styles/stack-item-content-class-names.ts
|
310
315
|
import { mx } from "@dxos/react-ui-theme";
|
311
|
-
var stackItemContentEditorClassNames = (role) => mx("
|
316
|
+
var stackItemContentEditorClassNames = (role) => mx("dx-focus-ring-inset data-[toolbar=disabled]:pbs-2 attention-surface", role === "article" ? "min-bs-0" : "[&_.cm-scroller]:overflow-hidden [&_.cm-scroller]:min-bs-24");
|
312
317
|
var stackItemContentToolbarClassNames = (role) => mx("attention-surface is-full border-be !border-separator", role === "section" && "sticky block-start-0 z-[1] -mbe-px min-is-0");
|
313
318
|
|
314
319
|
// packages/ui/react-ui-editor/src/components/EditorToolbar/EditorToolbar.tsx
|
@@ -406,7 +411,7 @@ var headings = {
|
|
406
411
|
3: "text-2xl",
|
407
412
|
4: "text-xl",
|
408
413
|
5: "text-lg",
|
409
|
-
6: "
|
414
|
+
6: ""
|
410
415
|
};
|
411
416
|
var theme = {
|
412
417
|
code: "font-mono !no-underline text-neutral-700 dark:text-neutral-300",
|
@@ -526,7 +531,7 @@ var defaultTheme = {
|
|
526
531
|
* Tooltip.
|
527
532
|
*/
|
528
533
|
".cm-tooltip": {
|
529
|
-
background: "var(--dx-
|
534
|
+
background: "var(--dx-baseSurface)"
|
530
535
|
},
|
531
536
|
".cm-tooltip-below": {},
|
532
537
|
/**
|
@@ -4762,7 +4767,7 @@ var CheckboxWidget = class extends WidgetType5 {
|
|
4762
4767
|
}
|
4763
4768
|
toDOM(view) {
|
4764
4769
|
const input = document.createElement("input");
|
4765
|
-
input.className = "cm-task-checkbox
|
4770
|
+
input.className = "cm-task-checkbox dx-checkbox";
|
4766
4771
|
input.type = "checkbox";
|
4767
4772
|
input.tabIndex = -1;
|
4768
4773
|
input.checked = this._checked;
|