@dxos/react-ui-editor 0.8.4-staging.60fe92afc8 → 0.9.1-main.c7dcc2e112
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 +2 -1
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +2 -1
- 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/EditorToolbar.d.ts.map +1 -1
- package/dist/types/src/stories/Preview.stories.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +38 -38
- package/src/components/EditorToolbar/EditorToolbar.tsx +4 -1
- package/src/stories/Preview.stories.tsx +12 -6
|
@@ -1020,10 +1020,11 @@ var addViewMode = (state, onViewModeChange) => (builder) => {
|
|
|
1020
1020
|
};
|
|
1021
1021
|
|
|
1022
1022
|
// src/components/EditorToolbar/EditorToolbar.tsx
|
|
1023
|
+
var SECTION_ROLE = "org.dxos.role.section";
|
|
1023
1024
|
var EditorToolbar = /* @__PURE__ */ memo(({ classNames, role, attendableId, onAction, ...props }) => {
|
|
1024
1025
|
const menuActions = useMarkdownMenuActions(props);
|
|
1025
1026
|
return /* @__PURE__ */ React2.createElement(ElevationProvider, {
|
|
1026
|
-
elevation: role ===
|
|
1027
|
+
elevation: role === SECTION_ROLE ? "positioned" : "base"
|
|
1027
1028
|
}, /* @__PURE__ */ React2.createElement(Menu2.Root, {
|
|
1028
1029
|
...menuActions,
|
|
1029
1030
|
attendableId,
|