@dxos/react-ui-editor 0.9.0 → 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.
@@ -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 === "section" ? "positioned" : "base"
1027
+ elevation: role === SECTION_ROLE ? "positioned" : "base"
1027
1028
  }, /* @__PURE__ */ React2.createElement(Menu2.Root, {
1028
1029
  ...menuActions,
1029
1030
  attendableId,