@nuasite/cms 0.9.1 → 0.9.2

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/editor.js CHANGED
@@ -33653,7 +33653,7 @@ const ER = ({ id: t, message: e, type: n, onRemove: r }) => {
33653
33653
  onMouseDown: h,
33654
33654
  onClick: h,
33655
33655
  children: /* @__PURE__ */ p("div", { class: "flex items-center justify-between sm:justify-start gap-2 sm:gap-1.5 px-2 sm:px-2 py-2 sm:py-2 bg-cms-dark rounded-cms-xl shadow-[0_8px_32px_rgba(0,0,0,0.3)] border border-white/10", children: [
33656
- n && !r && t.onToggleHighlights && /* @__PURE__ */ p(
33656
+ b && !r && t.onToggleHighlights && /* @__PURE__ */ p(
33657
33657
  Eu,
33658
33658
  {
33659
33659
  onClick: () => {
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/astro-cms"
15
15
  },
16
16
  "license": "Apache-2.0",
17
- "version": "0.9.1",
17
+ "version": "0.9.2",
18
18
  "module": "src/index.ts",
19
19
  "types": "src/index.ts",
20
20
  "type": "module",
@@ -217,8 +217,8 @@ export const Toolbar = ({ callbacks, collectionDefinitions }: ToolbarProps) => {
217
217
  onClick={stopPropagation}
218
218
  >
219
219
  <div class="flex items-center justify-between sm:justify-start gap-2 sm:gap-1.5 px-2 sm:px-2 py-2 sm:py-2 bg-cms-dark rounded-cms-xl shadow-[0_8px_32px_rgba(0,0,0,0.3)] border border-white/10">
220
- {/* Outlines toggle - visible in toolbar when editing */}
221
- {isEditing && !showingOriginal && callbacks.onToggleHighlights && (
220
+ {/* Outlines toggle - visible in toolbar when editing or selecting */}
221
+ {isToolbarOpen && !showingOriginal && callbacks.onToggleHighlights && (
222
222
  <ToolbarButton
223
223
  onClick={() => callbacks.onToggleHighlights?.()}
224
224
  class={'flex gap-2.5 bg-white/10 text-white/80 hover:bg-white/20 hover:text-white py-2! pr-1.5!'}