@bendyline/squisq-editor-react 2.0.1 → 2.2.0

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.
Files changed (357) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE.md +40 -0
  3. package/README.md +10 -2
  4. package/dist/index.d.ts +683 -60
  5. package/dist/index.js +9648 -3750
  6. package/dist/monaco.js +0 -1
  7. package/dist/styles/index.css +1160 -241
  8. package/package.json +10 -6
  9. package/dist/index.js.map +0 -1
  10. package/dist/monaco.js.map +0 -1
  11. package/src/BlockCardView.tsx +0 -121
  12. package/src/BlockPreviewPanel.tsx +0 -69
  13. package/src/BlockPropertiesPopover.tsx +0 -222
  14. package/src/DocumentSettingsDialog.tsx +0 -272
  15. package/src/DropZoneOverlay.tsx +0 -137
  16. package/src/EditorContext.tsx +0 -1247
  17. package/src/EditorShell.tsx +0 -1334
  18. package/src/EmojiPicker.tsx +0 -332
  19. package/src/FolderView.tsx +0 -131
  20. package/src/Icon.tsx +0 -26
  21. package/src/ImageEditor.tsx +0 -395
  22. package/src/ImageNodeView.tsx +0 -284
  23. package/src/ImageViewer.tsx +0 -221
  24. package/src/InlineIcon.ts +0 -84
  25. package/src/InlinePreviewGutter.tsx +0 -590
  26. package/src/LinkDialog.tsx +0 -276
  27. package/src/MediaBin.tsx +0 -500
  28. package/src/MentionExtension.tsx +0 -261
  29. package/src/OutlinePanel.tsx +0 -547
  30. package/src/PlainHtmlPreview.tsx +0 -277
  31. package/src/PreviewControls.tsx +0 -1250
  32. package/src/PreviewPanel.tsx +0 -422
  33. package/src/RawEditor.tsx +0 -731
  34. package/src/RecorderEntry.tsx +0 -159
  35. package/src/StatusBar.tsx +0 -51
  36. package/src/TemplateAnnotation.ts +0 -167
  37. package/src/TemplateContentPreview.tsx +0 -56
  38. package/src/TemplatePicker.tsx +0 -1314
  39. package/src/ThemeCustomizerPanel.tsx +0 -304
  40. package/src/ThemePicker.tsx +0 -433
  41. package/src/TimelineBlockPreview.tsx +0 -37
  42. package/src/TimelineTrack.tsx +0 -671
  43. package/src/Toolbar.tsx +0 -2587
  44. package/src/Tooltip.tsx +0 -142
  45. package/src/TransitionPicker.tsx +0 -390
  46. package/src/VersionHistoryPanel.tsx +0 -359
  47. package/src/ViewMenuPanel.tsx +0 -189
  48. package/src/ViewSwitcher.tsx +0 -56
  49. package/src/WysiwygEditor.tsx +0 -792
  50. package/src/__tests__/blockProperties.test.ts +0 -92
  51. package/src/__tests__/blockPropertiesPopoverTheme.test.tsx +0 -33
  52. package/src/__tests__/blockRange.test.ts +0 -105
  53. package/src/__tests__/blockTagActivity.test.ts +0 -183
  54. package/src/__tests__/buildDocumentPreviewMarkdown.test.ts +0 -75
  55. package/src/__tests__/buildPreviewDocContent.test.ts +0 -48
  56. package/src/__tests__/buildPreviewDocTransition.test.ts +0 -92
  57. package/src/__tests__/canvasSurfaceTextEditing.test.tsx +0 -60
  58. package/src/__tests__/codeContextSectionView.test.tsx +0 -97
  59. package/src/__tests__/codeContextZoneManager.test.ts +0 -127
  60. package/src/__tests__/createShapeLayer.test.ts +0 -46
  61. package/src/__tests__/customLayoutManagerTheme.test.tsx +0 -34
  62. package/src/__tests__/detectMarkdown.test.ts +0 -73
  63. package/src/__tests__/diffContextSections.test.ts +0 -39
  64. package/src/__tests__/documentSettingsDialog.test.tsx +0 -197
  65. package/src/__tests__/drawingShapeRoundTrip.test.ts +0 -49
  66. package/src/__tests__/editorScrollHandoff.test.tsx +0 -102
  67. package/src/__tests__/editorScrollSync.test.ts +0 -65
  68. package/src/__tests__/editorShellCodeContext.test.tsx +0 -86
  69. package/src/__tests__/editorShellProps.test.tsx +0 -485
  70. package/src/__tests__/embeddedMedia.test.ts +0 -48
  71. package/src/__tests__/emojiPicker.test.tsx +0 -93
  72. package/src/__tests__/fileKind.test.ts +0 -112
  73. package/src/__tests__/headingTransition.test.ts +0 -176
  74. package/src/__tests__/imageEditAffordance.test.tsx +0 -272
  75. package/src/__tests__/imageEditModalContract.test.tsx +0 -119
  76. package/src/__tests__/imageEditorShell.test.tsx +0 -94
  77. package/src/__tests__/imageEditorState.test.ts +0 -171
  78. package/src/__tests__/inlinePreviewGutter.test.tsx +0 -62
  79. package/src/__tests__/inlinePreviewGutterAllBlocks.test.tsx +0 -103
  80. package/src/__tests__/jsonEditor.test.tsx +0 -223
  81. package/src/__tests__/layersPanel.test.tsx +0 -167
  82. package/src/__tests__/layoutChildRoundTrip.test.ts +0 -71
  83. package/src/__tests__/linkDialogDocPicker.test.tsx +0 -137
  84. package/src/__tests__/majorApiTypes.test.ts +0 -26
  85. package/src/__tests__/mediaAttachmentFlow.test.ts +0 -110
  86. package/src/__tests__/mediaBinDrop.test.tsx +0 -90
  87. package/src/__tests__/mediaReferences.test.ts +0 -82
  88. package/src/__tests__/narrationSave.test.ts +0 -148
  89. package/src/__tests__/outlinePanel.test.tsx +0 -169
  90. package/src/__tests__/outlineSource.test.ts +0 -217
  91. package/src/__tests__/plainHtmlPreview.test.tsx +0 -125
  92. package/src/__tests__/presentationMode.test.tsx +0 -290
  93. package/src/__tests__/previewControls.test.tsx +0 -540
  94. package/src/__tests__/previewPanelAudioFailure.test.tsx +0 -46
  95. package/src/__tests__/previewPanelPresentation.test.tsx +0 -126
  96. package/src/__tests__/previewPanelTransforms.test.tsx +0 -117
  97. package/src/__tests__/propertiesPanel.test.tsx +0 -69
  98. package/src/__tests__/rawEditorModelIsolation.test.ts +0 -19
  99. package/src/__tests__/recorderFormats.test.ts +0 -146
  100. package/src/__tests__/recorderMediaInsert.test.ts +0 -86
  101. package/src/__tests__/recorderTheme.test.tsx +0 -42
  102. package/src/__tests__/recorderTimingJson.test.ts +0 -41
  103. package/src/__tests__/resolveBlockVisual.test.ts +0 -43
  104. package/src/__tests__/selectionConversions.test.ts +0 -80
  105. package/src/__tests__/statusBar.test.tsx +0 -27
  106. package/src/__tests__/teleprompter.test.tsx +0 -190
  107. package/src/__tests__/templateAnnotationRoundTrip.test.ts +0 -99
  108. package/src/__tests__/templateContentPreview.test.ts +0 -101
  109. package/src/__tests__/templatePickerMetadata.test.ts +0 -32
  110. package/src/__tests__/templatePickerPortal.test.tsx +0 -62
  111. package/src/__tests__/timelineSource.test.ts +0 -134
  112. package/src/__tests__/tiptapBridge.test.ts +0 -566
  113. package/src/__tests__/tiptapBridgeConformance.test.ts +0 -47
  114. package/src/__tests__/tiptapCodeBlockRoundTrip.test.ts +0 -109
  115. package/src/__tests__/tiptapImageRoundTrip.test.ts +0 -73
  116. package/src/__tests__/toolbarSelectionConversion.test.tsx +0 -164
  117. package/src/__tests__/tooltip.test.tsx +0 -72
  118. package/src/__tests__/transformStyleId.test.ts +0 -13
  119. package/src/__tests__/transitionCatalog.test.ts +0 -64
  120. package/src/__tests__/useBlockNavigator.test.tsx +0 -67
  121. package/src/__tests__/useImageEditor.test.tsx +0 -226
  122. package/src/__tests__/useJsonEditorTokens.test.ts +0 -59
  123. package/src/__tests__/useMediaRecorder.test.ts +0 -302
  124. package/src/__tests__/useTimelineClock.test.ts +0 -21
  125. package/src/__tests__/versionHistory.test.tsx +0 -197
  126. package/src/__tests__/viewMenuPanel.test.tsx +0 -130
  127. package/src/__tests__/wysiwygImageUpload.test.ts +0 -69
  128. package/src/__tests__/wysiwygTemplateBadgeFocus.test.tsx +0 -56
  129. package/src/asciiDiagram/AsciiDiagramExtension.ts +0 -343
  130. package/src/asciiDiagram/AsciiDiagramWidget.tsx +0 -254
  131. package/src/asciiDiagram/RepairableDiagramExtension.ts +0 -200
  132. package/src/asciiDiagram/__tests__/AsciiDiagramExtension.test.ts +0 -145
  133. package/src/asciiDiagram/__tests__/RepairableDiagramExtension.test.ts +0 -159
  134. package/src/asciiDiagram/__tests__/asciiDiagramCommands.test.ts +0 -284
  135. package/src/asciiDiagram/__tests__/asciiDiagramOps.test.ts +0 -114
  136. package/src/asciiDiagram/__tests__/asciiPaste.test.ts +0 -43
  137. package/src/asciiDiagram/asciiDiagramCommands.ts +0 -174
  138. package/src/asciiDiagram/asciiDiagramData.ts +0 -149
  139. package/src/asciiDiagram/asciiDiagramOps.ts +0 -238
  140. package/src/asciiDiagram/asciiPaste.ts +0 -19
  141. package/src/blockProperties.ts +0 -88
  142. package/src/blockRange.ts +0 -132
  143. package/src/blockSlice.ts +0 -75
  144. package/src/blockTagActivity.ts +0 -233
  145. package/src/buildDocumentPreviewMarkdown.ts +0 -168
  146. package/src/buildPreviewDoc.ts +0 -405
  147. package/src/codeContext/CodeContextSectionView.tsx +0 -124
  148. package/src/codeContext/CodeContextZoneManager.ts +0 -149
  149. package/src/codeContext/CodeContextZones.tsx +0 -121
  150. package/src/codeContext/diffContextSections.ts +0 -38
  151. package/src/codeContext/types.ts +0 -75
  152. package/src/customTemplates/AddBin.tsx +0 -126
  153. package/src/customTemplates/CustomLayoutManager.tsx +0 -234
  154. package/src/customTemplates/CustomTemplateContext.tsx +0 -188
  155. package/src/customTemplates/LayerToolbar.tsx +0 -580
  156. package/src/customTemplates/ShapeGlyph.tsx +0 -47
  157. package/src/customTemplates/TemplateDesigner.tsx +0 -433
  158. package/src/customTemplates/__tests__/library.test.ts +0 -96
  159. package/src/customTemplates/__tests__/normalizePositions.test.ts +0 -109
  160. package/src/customTemplates/__tests__/shapeDefs.test.ts +0 -49
  161. package/src/customTemplates/__tests__/useMemoryLayerAdapter.test.ts +0 -108
  162. package/src/customTemplates/designer.css +0 -732
  163. package/src/customTemplates/index.ts +0 -31
  164. package/src/customTemplates/library.ts +0 -110
  165. package/src/customTemplates/normalizePositions.ts +0 -75
  166. package/src/customTemplates/shapeDefs.ts +0 -131
  167. package/src/customTemplates/thumbnail.tsx +0 -63
  168. package/src/customTemplates/tokenDefs.ts +0 -60
  169. package/src/customTemplates/useDocCustomTemplates.ts +0 -52
  170. package/src/customTemplates/useMemoryLayerAdapter.ts +0 -129
  171. package/src/customThemes/CustomThemeContext.tsx +0 -185
  172. package/src/customThemes/CustomThemeDialog.tsx +0 -316
  173. package/src/customThemes/ImportThemeSection.tsx +0 -178
  174. package/src/customThemes/__tests__/CustomThemeContext.test.tsx +0 -64
  175. package/src/customThemes/__tests__/CustomThemeDialog.test.tsx +0 -47
  176. package/src/customThemes/__tests__/customThemeLibrary.test.ts +0 -60
  177. package/src/customThemes/__tests__/importThemeSection.test.tsx +0 -192
  178. package/src/customThemes/customThemeLibrary.ts +0 -100
  179. package/src/customThemes/index.ts +0 -37
  180. package/src/customThemes/themeControls.tsx +0 -229
  181. package/src/customThemes/themeDraft.ts +0 -288
  182. package/src/customThemes/useDocCustomThemes.ts +0 -49
  183. package/src/detectMarkdown.ts +0 -62
  184. package/src/diagram/DiagramCanvas.tsx +0 -259
  185. package/src/diagram/DiagramMaximizedOverlay.tsx +0 -46
  186. package/src/diagram/diagramCommands.ts +0 -604
  187. package/src/diagram/diagramConstants.ts +0 -17
  188. package/src/diagram/types.ts +0 -35
  189. package/src/editorScrollSync.ts +0 -73
  190. package/src/embeddedMedia.ts +0 -78
  191. package/src/emojiData.ts +0 -1317
  192. package/src/fileKind.ts +0 -158
  193. package/src/frontmatter.ts +0 -29
  194. package/src/frontmatterSettings.ts +0 -23
  195. package/src/headingTransition.ts +0 -291
  196. package/src/hooks/useFileDrop.ts +0 -266
  197. package/src/imageEditor/CanvasSurface.tsx +0 -703
  198. package/src/imageEditor/ImageVersionHistoryDropdown.tsx +0 -396
  199. package/src/imageEditor/LayersPanel.tsx +0 -218
  200. package/src/imageEditor/PropertiesPanel.tsx +0 -474
  201. package/src/imageEditor/Toolbar.tsx +0 -459
  202. package/src/imageEditor/createShapeLayer.ts +0 -280
  203. package/src/imageEditor/icons.tsx +0 -68
  204. package/src/imageEditor/image-editor.css +0 -574
  205. package/src/imageEditor/layers/EditorImageLayer.tsx +0 -45
  206. package/src/imageEditor/layers/EditorShapeLayer.tsx +0 -62
  207. package/src/imageEditor/layers/EditorTextLayer.tsx +0 -45
  208. package/src/imageEditor/layers/SelectionHandles.tsx +0 -86
  209. package/src/imageEditor/state.ts +0 -173
  210. package/src/imageEditor/useImageEditor.ts +0 -385
  211. package/src/imageEditor/useImageEditorTokens.ts +0 -70
  212. package/src/index.ts +0 -470
  213. package/src/jsonEditor/EmbeddedRichTextField.tsx +0 -81
  214. package/src/jsonEditor/JsonEditor.tsx +0 -81
  215. package/src/jsonEditor/JsonEditorContext.tsx +0 -81
  216. package/src/jsonEditor/RenderNode.tsx +0 -87
  217. package/src/jsonEditor/editors.tsx +0 -745
  218. package/src/jsonEditor/index.ts +0 -2
  219. package/src/jsonEditor/json-editor.css +0 -463
  220. package/src/jsonEditor/useJsonEditorTokens.ts +0 -33
  221. package/src/mediaDragMime.ts +0 -32
  222. package/src/mediaEntries.ts +0 -12
  223. package/src/mediaReferences.ts +0 -299
  224. package/src/monaco.ts +0 -35
  225. package/src/monacoWorkers.ts +0 -89
  226. package/src/outlineSource.ts +0 -171
  227. package/src/presentation/PresentationMode.tsx +0 -596
  228. package/src/rawEditorIsolation.ts +0 -18
  229. package/src/recorder/RecorderButton.tsx +0 -80
  230. package/src/recorder/RecorderModal.tsx +0 -706
  231. package/src/recorder/RecorderPanel.tsx +0 -77
  232. package/src/recorder/formats.ts +0 -159
  233. package/src/recorder/hooks/useMediaRecorder.ts +0 -436
  234. package/src/recorder/hooks/useStreamPreview.ts +0 -47
  235. package/src/recorder/insertMediaBlock.ts +0 -30
  236. package/src/recorder/sources/cameraStream.ts +0 -32
  237. package/src/recorder/sources/micStream.ts +0 -25
  238. package/src/recorder/sources/screenStream.ts +0 -162
  239. package/src/recorder/timingJson.ts +0 -66
  240. package/src/resolveBlockVisual.ts +0 -39
  241. package/src/scene/Scene.tsx +0 -616
  242. package/src/scene/SceneBlockExtension.ts +0 -205
  243. package/src/scene/SceneBlockToolbar.tsx +0 -201
  244. package/src/scene/SceneBlockWidget.tsx +0 -441
  245. package/src/scene/ScenePropsBar.tsx +0 -85
  246. package/src/scene/SceneSelection.tsx +0 -111
  247. package/src/scene/SceneSideToolbar.tsx +0 -89
  248. package/src/scene/SceneViewport.tsx +0 -106
  249. package/src/scene/ShapePalette.tsx +0 -196
  250. package/src/scene/__tests__/DiagramAdapter.test.ts +0 -142
  251. package/src/scene/__tests__/SceneBlockExtension.test.ts +0 -33
  252. package/src/scene/__tests__/bezierEdit.test.ts +0 -85
  253. package/src/scene/__tests__/blockLayers.test.ts +0 -57
  254. package/src/scene/__tests__/sceneIsolation.test.tsx +0 -119
  255. package/src/scene/__tests__/shapeLayers.test.ts +0 -106
  256. package/src/scene/__tests__/useSceneHitTest.test.ts +0 -90
  257. package/src/scene/__tests__/useScenePanZoom.test.ts +0 -103
  258. package/src/scene/adapters/DiagramAdapter.ts +0 -79
  259. package/src/scene/adapters/DrawingAdapter.ts +0 -420
  260. package/src/scene/adapters/LayoutAdapter.ts +0 -313
  261. package/src/scene/adapters/blockLayers.ts +0 -159
  262. package/src/scene/commands/SceneCommand.ts +0 -84
  263. package/src/scene/commands/drawingCommands.ts +0 -318
  264. package/src/scene/commands/layoutCommands.ts +0 -301
  265. package/src/scene/hooks/useSceneHitTest.ts +0 -105
  266. package/src/scene/hooks/useScenePanZoom.ts +0 -147
  267. package/src/scene/hooks/useSceneSelection.ts +0 -62
  268. package/src/scene/index.ts +0 -90
  269. package/src/scene/layers/DiagramEdges.tsx +0 -142
  270. package/src/scene/layers/edgeGeometry.ts +0 -104
  271. package/src/scene/layers/nodeCard.tsx +0 -164
  272. package/src/scene/layers/renderLayer.tsx +0 -70
  273. package/src/scene/layers/shapeLayers.ts +0 -201
  274. package/src/scene/paths/bezierEdit.ts +0 -208
  275. package/src/scene/scene.css +0 -792
  276. package/src/scene/text/SceneTextOverlay.tsx +0 -161
  277. package/src/scene/text/sceneTextChannel.ts +0 -46
  278. package/src/scene/text/sceneTextConfig.ts +0 -31
  279. package/src/scene/text/sceneTiptap.ts +0 -36
  280. package/src/scene/text/useSceneTextEditing.ts +0 -39
  281. package/src/scene/tools/ConnectTool.ts +0 -209
  282. package/src/scene/tools/DrawingConnectTool.ts +0 -231
  283. package/src/scene/tools/PathTool.ts +0 -158
  284. package/src/scene/tools/PlaceTool.ts +0 -47
  285. package/src/scene/tools/SceneTool.ts +0 -85
  286. package/src/scene/tools/SelectTool.ts +0 -300
  287. package/src/scene/tools/ShapeTool.ts +0 -143
  288. package/src/scene/tools/TextTool.ts +0 -72
  289. package/src/scene/tools/TokenTool.ts +0 -95
  290. package/src/scene/tools/createDrawShapeTool.ts +0 -82
  291. package/src/selectionConversions.ts +0 -155
  292. package/src/styles/ascii-diagram.css +0 -79
  293. package/src/styles/ascii-timeline.css +0 -596
  294. package/src/styles/code-context.css +0 -155
  295. package/src/styles/diagram.css +0 -183
  296. package/src/styles/editor.css +0 -6811
  297. package/src/styles/folder-view.css +0 -210
  298. package/src/styles/image-edit-affordance.css +0 -201
  299. package/src/styles/index.css +0 -18
  300. package/src/styles/tree-view.css +0 -189
  301. package/src/teleprompter/TeleprompterControls.tsx +0 -218
  302. package/src/teleprompter/TeleprompterSelfView.tsx +0 -22
  303. package/src/teleprompter/TeleprompterSurface.tsx +0 -267
  304. package/src/teleprompter/TeleprompterView.tsx +0 -338
  305. package/src/teleprompter/canvasRenderer.ts +0 -161
  306. package/src/teleprompter/floatingWindow.ts +0 -352
  307. package/src/teleprompter/index.ts +0 -61
  308. package/src/teleprompter/pcmWorklet.ts +0 -62
  309. package/src/teleprompter/recording/insertPreamble.ts +0 -80
  310. package/src/teleprompter/recording/narrationSave.ts +0 -134
  311. package/src/teleprompter/recording/useNarrationRecorder.ts +0 -367
  312. package/src/teleprompter/scrollModel.ts +0 -85
  313. package/src/teleprompter/teleprompterTheme.ts +0 -303
  314. package/src/teleprompter/types.ts +0 -38
  315. package/src/teleprompter/useFloatingWindow.ts +0 -74
  316. package/src/teleprompter/useMicAnalysis.ts +0 -211
  317. package/src/teleprompter/useTeleprompter.ts +0 -421
  318. package/src/templateContentPreviewResolver.ts +0 -360
  319. package/src/timeline/TimelineEditorWidget.tsx +0 -861
  320. package/src/timeline/TimelineViewExtension.ts +0 -252
  321. package/src/timeline/__tests__/TimelineEditorWidget.test.tsx +0 -414
  322. package/src/timeline/__tests__/TimelineViewExtension.test.ts +0 -163
  323. package/src/timeline/__tests__/timelineCommands.test.ts +0 -359
  324. package/src/timeline/__tests__/timelineOps.test.ts +0 -277
  325. package/src/timeline/__tests__/timelinePaste.test.ts +0 -34
  326. package/src/timeline/timelineCommands.ts +0 -421
  327. package/src/timeline/timelineData.ts +0 -54
  328. package/src/timeline/timelineOps.ts +0 -381
  329. package/src/timeline/timelinePaste.ts +0 -8
  330. package/src/timelineSource.ts +0 -244
  331. package/src/tiptap/TiptapAudio.tsx +0 -86
  332. package/src/tiptap/TiptapVideo.tsx +0 -119
  333. package/src/tiptap/useResolvedMediaSrc.ts +0 -47
  334. package/src/tiptapBridge.ts +0 -986
  335. package/src/tooltipPlacement.ts +0 -13
  336. package/src/transformStyleId.ts +0 -17
  337. package/src/transitionCatalog.ts +0 -159
  338. package/src/treeview/TreeOutlineWidget.tsx +0 -390
  339. package/src/treeview/TreeViewExtension.ts +0 -250
  340. package/src/treeview/__tests__/TreeOutlineWidget.test.tsx +0 -156
  341. package/src/treeview/__tests__/TreeViewExtension.test.ts +0 -122
  342. package/src/treeview/__tests__/treeOps.test.ts +0 -177
  343. package/src/treeview/__tests__/treePaste.test.ts +0 -40
  344. package/src/treeview/__tests__/treeViewCommands.test.ts +0 -179
  345. package/src/treeview/treeOps.ts +0 -231
  346. package/src/treeview/treePaste.ts +0 -13
  347. package/src/treeview/treeViewCommands.ts +0 -99
  348. package/src/treeview/treeViewData.ts +0 -41
  349. package/src/types/monaco-shims.d.ts +0 -10
  350. package/src/useBlockNavigator.ts +0 -153
  351. package/src/useHeadingLayout.ts +0 -294
  352. package/src/useMonacoLoader.ts +0 -82
  353. package/src/useTimelineClock.ts +0 -76
  354. package/src/utils/collectInlineFontAwesomeCss.ts +0 -69
  355. package/src/utils/dropUtils.ts +0 -136
  356. package/src/utils/normalizeMalformedAssetUrl.ts +0 -22
  357. package/src/wysiwygImageUpload.ts +0 -113
@@ -1,792 +0,0 @@
1
- /*
2
- * Squisq Scene engine — visual styles for the 2D editing surface.
3
- *
4
- * The Scene is a position:relative root with three children:
5
- * 1. Optional toolbar (top-left)
6
- * 2. SVG viewport (fills the root)
7
- * 3. Optional maximize button (top-right)
8
- *
9
- * Colors lean on existing `--squisq-*` CSS variables so light/dark
10
- * themes apply automatically.
11
- */
12
-
13
- .squisq-scene-root {
14
- position: relative;
15
- width: 100%;
16
- height: 100%;
17
- background: var(--squisq-surface, #ffffff);
18
- border: 1px solid var(--squisq-border, #e2e8f0);
19
- border-radius: 8px;
20
- overflow: hidden;
21
- }
22
-
23
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-shell {
24
- --squisq-surface: #0f172a;
25
- --squisq-surface-hover: #1e293b;
26
- --squisq-border: #475569;
27
- --squisq-text: #f8fafc;
28
- --squisq-text-muted: #94a3b8;
29
- }
30
-
31
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-root,
32
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-inline,
33
- .squisq-editor-shell[data-theme='dark'] .squisq-diagram-inline {
34
- background: #0f172a;
35
- border-color: #475569;
36
- }
37
-
38
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-layer--shape,
39
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-layer--path,
40
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-layer--text {
41
- filter: invert(1) hue-rotate(180deg) saturate(0.9);
42
- }
43
-
44
- /* Scene extras (diagram/drawing connectors) already use the dark-aware
45
- --squisq-text tokens below. Inverting this group a second time turns the
46
- intended light strokes and arrowheads nearly black against the canvas. */
47
-
48
- .squisq-scene-viewport {
49
- display: block;
50
- width: 100%;
51
- height: 100%;
52
- touch-action: none;
53
- background: transparent;
54
- user-select: none;
55
- outline: none;
56
- }
57
-
58
- .squisq-scene-viewport:focus,
59
- .squisq-scene-viewport:focus-visible {
60
- outline: none;
61
- }
62
-
63
- /* Custom URL-based cursors with a white halo around a dark stroke, so
64
- the pointer stays visible regardless of canvas background or the
65
- user's OS cursor scheme (Windows lets users render system cursors
66
- in pure white, which makes the OS-stock keywords invisible on the
67
- editor's light surface — mirrors the I-beam workaround in
68
- editor.css). Each tool sets `data-cursor` on the SVG; the matching
69
- selector picks the right URL with a keyword fallback when the URL
70
- fails to load. */
71
-
72
- /* Default arrow — used by SelectTool. Hotspot at the tip (3, 3). */
73
- .squisq-scene-viewport[data-cursor='default'] {
74
- cursor:
75
- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='22' viewBox='0 0 20 22'><path d='M3 3 L3 17 L7 13 L10 19 L12 18 L9 12 L15 12 Z' fill='%231f2937' stroke='white' stroke-width='1.5' stroke-linejoin='round'/></svg>")
76
- 3 3,
77
- default;
78
- }
79
-
80
- /* Crosshair — used by ConnectTool / PathTool / ShapeTool. Hotspot is
81
- the cross center (11, 11). */
82
- .squisq-scene-viewport[data-cursor='crosshair'] {
83
- cursor:
84
- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='23' height='23' viewBox='0 0 23 23'><g fill='none' stroke-linecap='round'><path d='M11 1 L11 21 M1 11 L21 11' stroke='white' stroke-width='3.2'/><path d='M11 1 L11 21 M1 11 L21 11' stroke='%231f2937' stroke-width='1.4'/><circle cx='11' cy='11' r='2' fill='white' stroke='%231f2937' stroke-width='1'/></g></svg>")
85
- 11 11,
86
- crosshair;
87
- }
88
-
89
- /* Text I-beam — used by TextTool. Re-uses the same shape as
90
- `.squisq-wysiwyg-editor` in editor.css so the look is consistent. */
91
- .squisq-scene-viewport[data-cursor='text'] {
92
- cursor:
93
- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='22' viewBox='0 0 16 22'><g fill='none' stroke-linecap='round'><path d='M5 3 L11 3 M5 19 L11 19 M8 3 L8 19' stroke='white' stroke-width='3.2'/><path d='M5 3 L11 3 M5 19 L11 19 M8 3 L8 19' stroke='%231f2937' stroke-width='1.4'/></g></svg>")
94
- 8 11,
95
- text;
96
- }
97
-
98
- .squisq-scene-dot {
99
- fill: var(--squisq-text-muted, #94a3b8);
100
- fill-opacity: 0.35;
101
- }
102
-
103
- /* ── Selection ─────────────────────────────────────────────── */
104
-
105
- .squisq-scene-selection-outline {
106
- fill: none;
107
- stroke: #6366f1;
108
- stroke-width: 1.5;
109
- stroke-dasharray: 4 3;
110
- vector-effect: non-scaling-stroke;
111
- }
112
-
113
- .squisq-scene-selection-handle {
114
- fill: #ffffff;
115
- stroke: #6366f1;
116
- stroke-width: 1.5;
117
- vector-effect: non-scaling-stroke;
118
- }
119
-
120
- /* ── Tool overlays ────────────────────────────────────────── */
121
-
122
- .squisq-scene-marquee {
123
- fill: rgba(99, 102, 241, 0.08);
124
- stroke: #6366f1;
125
- stroke-width: 1;
126
- stroke-dasharray: 4 3;
127
- vector-effect: non-scaling-stroke;
128
- }
129
-
130
- .squisq-scene-connect-preview {
131
- fill: none;
132
- stroke: #6366f1;
133
- stroke-width: 2;
134
- stroke-dasharray: 6 4;
135
- vector-effect: non-scaling-stroke;
136
- pointer-events: none;
137
- }
138
-
139
- .squisq-scene-connection-point {
140
- fill: #ffffff;
141
- stroke: #6366f1;
142
- stroke-width: 2;
143
- vector-effect: non-scaling-stroke;
144
- pointer-events: none;
145
- }
146
-
147
- .squisq-scene-connection-point--active {
148
- fill: #6366f1;
149
- }
150
-
151
- /* ── Toolbar ──────────────────────────────────────────────── */
152
-
153
- .squisq-scene-toolbar {
154
- position: absolute;
155
- top: 8px;
156
- left: 8px;
157
- z-index: 10;
158
- display: flex;
159
- flex-direction: row;
160
- flex-wrap: wrap;
161
- gap: 4px;
162
- padding: 4px;
163
- background: #ffffff;
164
- border: 1px solid #cbd5e1;
165
- border-radius: 6px;
166
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
167
- max-width: calc(100% - 16px);
168
- }
169
-
170
- .squisq-scene-tool {
171
- display: inline-flex;
172
- align-items: center;
173
- justify-content: center;
174
- min-width: 28px;
175
- height: 28px;
176
- padding: 0 8px;
177
- background: #ffffff;
178
- border: 1px solid transparent;
179
- border-radius: 4px;
180
- color: #1e293b;
181
- cursor: pointer;
182
- font-size: 11px;
183
- font-weight: 600;
184
- line-height: 1;
185
- white-space: nowrap;
186
- }
187
-
188
- .squisq-scene-tool:hover {
189
- background: #f1f5f9;
190
- border-color: #cbd5e1;
191
- color: #1e293b;
192
- }
193
-
194
- .squisq-scene-tool:focus-visible {
195
- outline: 2px solid #6366f1;
196
- outline-offset: 1px;
197
- }
198
-
199
- .squisq-scene-tool--active {
200
- background: #eef2ff;
201
- border-color: #6366f1;
202
- color: #4338ca;
203
- }
204
-
205
- .squisq-scene-tool--active:hover {
206
- background: #e0e7ff;
207
- border-color: #4f46e5;
208
- color: #4338ca;
209
- }
210
-
211
- .squisq-scene-tool-label {
212
- font-size: 11px;
213
- font-weight: 600;
214
- text-transform: uppercase;
215
- letter-spacing: 0.04em;
216
- color: inherit;
217
- }
218
-
219
- /* ── Block toolbar (above & outside the canvas) ───────────────
220
- * Shared chrome for diagram / drawing / layout. A right-aligned row
221
- * that sits above the canvas box (rendered by `SceneBlockToolbar`).
222
- * Tool buttons reuse `.squisq-scene-tool`; actions use `.squisq-scene-action`. */
223
- .squisq-scene-block-toolbar {
224
- display: flex;
225
- flex-direction: row;
226
- flex-wrap: wrap;
227
- align-items: center;
228
- justify-content: flex-end;
229
- gap: 8px;
230
- margin-bottom: 6px;
231
- min-height: 30px;
232
- }
233
-
234
- .squisq-scene-block-tools,
235
- .squisq-scene-block-actions {
236
- display: inline-flex;
237
- flex-direction: row;
238
- flex-wrap: wrap;
239
- gap: 4px;
240
- padding: 3px;
241
- background: var(--squisq-surface, #ffffff);
242
- border: 1px solid var(--squisq-border, #cbd5e1);
243
- border-radius: 6px;
244
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
245
- }
246
-
247
- .squisq-scene-action {
248
- display: inline-flex;
249
- align-items: center;
250
- gap: 4px;
251
- height: 28px;
252
- padding: 0 10px;
253
- background: #ffffff;
254
- border: 1px solid transparent;
255
- border-radius: 4px;
256
- color: #1e293b;
257
- cursor: pointer;
258
- font-size: 11px;
259
- font-weight: 600;
260
- line-height: 1;
261
- white-space: nowrap;
262
- }
263
-
264
- .squisq-scene-action:hover:not(:disabled) {
265
- background: #f1f5f9;
266
- border-color: #cbd5e1;
267
- }
268
-
269
- .squisq-scene-action:focus-visible {
270
- outline: 2px solid #6366f1;
271
- outline-offset: 1px;
272
- }
273
-
274
- .squisq-scene-action:disabled {
275
- opacity: 0.45;
276
- cursor: default;
277
- }
278
-
279
- .squisq-scene-action-icon {
280
- font-size: 13px;
281
- line-height: 1;
282
- }
283
-
284
- .squisq-scene-action-label {
285
- font-size: 11px;
286
- font-weight: 600;
287
- text-transform: uppercase;
288
- letter-spacing: 0.04em;
289
- }
290
-
291
- .squisq-scene-action--danger {
292
- color: #b91c1c;
293
- }
294
-
295
- .squisq-scene-action--danger:hover:not(:disabled) {
296
- background: #fef2f2;
297
- border-color: #fecaca;
298
- color: #b91c1c;
299
- }
300
-
301
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-toolbar,
302
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-block-tools,
303
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-block-actions,
304
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-block-props {
305
- background: #111827;
306
- border-color: #475569;
307
- color: #e5e7eb;
308
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
309
- }
310
-
311
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-tool,
312
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-action {
313
- background: #111827;
314
- color: #e5e7eb;
315
- }
316
-
317
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-tool:hover,
318
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-action:hover:not(:disabled) {
319
- background: #1f2937;
320
- border-color: #64748b;
321
- color: #f8fafc;
322
- }
323
-
324
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-tool--active,
325
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-tool--active:hover {
326
- background: #312e81;
327
- border-color: #818cf8;
328
- color: #f8fafc;
329
- }
330
-
331
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-action--danger {
332
- color: #fca5a5;
333
- }
334
-
335
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-action--danger:hover:not(:disabled) {
336
- background: #450a0a;
337
- border-color: #f87171;
338
- color: #fecaca;
339
- }
340
-
341
- /* Maximized overlay: a flex-filling canvas with the toolbar as a right-hand
342
- column (full screen has room to reserve it). */
343
- .squisq-scene-block-max {
344
- display: flex;
345
- flex-direction: row;
346
- align-items: stretch;
347
- gap: 12px;
348
- width: 100%;
349
- height: 100%;
350
- padding: 12px;
351
- }
352
- .squisq-scene-block-max > .squisq-diagram-canvas,
353
- .squisq-scene-block-max > .squisq-scene-stage {
354
- flex: 1;
355
- min-width: 0;
356
- min-height: 0;
357
- }
358
-
359
- /* ── Side (gutter) contextual toolbar ─────────────────────────
360
- The drawing/layout/diagram toolbar renders as a vertical ~180px column to
361
- the RIGHT of the canvas instead of a horizontal bar above it, so it doesn't
362
- reserve any vertical canvas space. Inline, it floats in the page's right
363
- gutter (outside the content column); maximized, it's a normal right column. */
364
- .squisq-scene-shell {
365
- position: relative;
366
- }
367
-
368
- .squisq-scene-side-toolbar {
369
- position: absolute;
370
- top: 0;
371
- left: 100%;
372
- margin-left: 12px;
373
- width: 180px;
374
- }
375
-
376
- .squisq-scene-block-max > .squisq-scene-side-toolbar {
377
- position: static;
378
- flex: 0 0 180px;
379
- width: 180px;
380
- overflow-y: auto;
381
- }
382
-
383
- /* Re-flow the (normally horizontal, right-aligned) gutter toolbar into a
384
- top-aligned vertical column whose button groups wrap within the 180px. */
385
- .squisq-scene-side-toolbar .squisq-scene-block-toolbar {
386
- flex-direction: column;
387
- align-items: stretch;
388
- justify-content: flex-start;
389
- width: 100%;
390
- margin: 0;
391
- }
392
- .squisq-scene-side-toolbar .squisq-scene-block-tools,
393
- .squisq-scene-side-toolbar .squisq-scene-block-actions,
394
- .squisq-scene-side-toolbar .squisq-scene-block-props {
395
- width: 100%;
396
- }
397
-
398
- /* In the gutter the Shape palette can't drop straight down (it'd run off the
399
- page edge), so open it toward the canvas (to the left of the button). */
400
- .squisq-scene-side-toolbar .squisq-scene-tool-popover-anchor .squisq-shape-palette {
401
- top: 0;
402
- left: auto;
403
- right: calc(100% + 6px);
404
- }
405
-
406
- /* ── Narrow-width fallback bar ─────────────────────────────────
407
- When SceneSideToolbar measures that the right gutter can't hold the 180px
408
- column, it renders the same toolbar as an in-flow horizontal bar above the
409
- canvas instead. Normal flow (not an overlay) so it always paints and is
410
- never clipped; it just keeps the toolbar's natural horizontal layout and
411
- wraps on very narrow widths. */
412
- .squisq-scene-inline-toolbar {
413
- display: flex;
414
- margin-bottom: 8px;
415
- }
416
- .squisq-scene-inline-toolbar .squisq-scene-block-toolbar {
417
- flex-wrap: wrap;
418
- justify-content: flex-start;
419
- width: 100%;
420
- margin: 0;
421
- }
422
-
423
- /* ── Maximize button ──────────────────────────────────────── */
424
-
425
- .squisq-scene-maximize-btn {
426
- position: absolute;
427
- top: 8px;
428
- right: 8px;
429
- z-index: 10;
430
- width: 32px;
431
- height: 32px;
432
- display: inline-flex;
433
- align-items: center;
434
- justify-content: center;
435
- background: #ffffff;
436
- border: 1px solid #cbd5e1;
437
- border-radius: 6px;
438
- cursor: pointer;
439
- font-size: 16px;
440
- line-height: 1;
441
- color: #1e293b;
442
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
443
- }
444
-
445
- .squisq-scene-maximize-btn:hover {
446
- background: #f1f5f9;
447
- border-color: #94a3b8;
448
- color: #0f172a;
449
- }
450
-
451
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-maximize-btn {
452
- background: #111827;
453
- border-color: #475569;
454
- color: #e5e7eb;
455
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
456
- }
457
-
458
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-maximize-btn:hover {
459
- background: #1f2937;
460
- border-color: #64748b;
461
- color: #f8fafc;
462
- }
463
-
464
- /* ── Diagram node card (used by nodeCard.tsx) ─────────────── */
465
-
466
- .squisq-scene-node-card {
467
- fill: var(--squisq-surface, #ffffff);
468
- stroke: var(--squisq-text, #1e293b);
469
- stroke-width: 2;
470
- vector-effect: non-scaling-stroke;
471
- }
472
-
473
- .squisq-scene-node-label {
474
- fill: var(--squisq-text, #1e293b);
475
- font-weight: 600;
476
- font-size: 22px;
477
- font-family:
478
- -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
479
- user-select: none;
480
- pointer-events: none;
481
- }
482
-
483
- .squisq-scene-node-handle {
484
- fill: var(--squisq-text, #1e293b);
485
- cursor: crosshair;
486
- pointer-events: all;
487
- }
488
-
489
- .squisq-scene-node-handle:hover {
490
- fill: #6366f1;
491
- }
492
-
493
- .squisq-scene-edge-path {
494
- fill: none;
495
- stroke: var(--squisq-text, #1e293b);
496
- stroke-width: 2;
497
- vector-effect: non-scaling-stroke;
498
- }
499
-
500
- .squisq-scene-edge-arrow {
501
- fill: var(--squisq-text, #1e293b);
502
- }
503
-
504
- .squisq-scene-edge-marker-open {
505
- fill: none;
506
- stroke: var(--squisq-text, #1e293b);
507
- stroke-width: 1.5;
508
- }
509
-
510
- .squisq-scene-edge-label {
511
- fill: var(--squisq-text-muted, #64748b);
512
- font-size: 14px;
513
- font-family:
514
- -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
515
- pointer-events: none;
516
- user-select: none;
517
- }
518
-
519
- /* ── Drawing shape palette + properties panel ──── */
520
-
521
- .squisq-scene-stage {
522
- position: relative;
523
- }
524
-
525
- /* Anchor for a toolbar dropdown (the shape palette below the Shape tool). */
526
- .squisq-scene-tool-popover-anchor {
527
- position: relative;
528
- display: inline-flex;
529
- }
530
-
531
- /* Shape palette — a light dropdown that pops DOWN from the Shape tool
532
- button in the contextual toolbar. */
533
- .squisq-shape-palette {
534
- position: absolute;
535
- top: calc(100% + 6px);
536
- left: 0;
537
- width: 320px;
538
- max-height: 420px;
539
- display: flex;
540
- flex-direction: column;
541
- background: #ffffff;
542
- color: #1e293b;
543
- border: 1px solid #e2e8f0;
544
- border-radius: 8px;
545
- box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
546
- z-index: 30;
547
- padding: 8px;
548
- }
549
-
550
- .squisq-shape-palette-search {
551
- width: 100%;
552
- box-sizing: border-box;
553
- padding: 6px 8px;
554
- margin-bottom: 6px;
555
- background: #f8fafc;
556
- color: inherit;
557
- border: 1px solid #cbd5e1;
558
- border-radius: 6px;
559
- }
560
-
561
- .squisq-shape-palette-scroll {
562
- overflow-y: auto;
563
- }
564
-
565
- .squisq-shape-palette-heading {
566
- font-size: 11px;
567
- font-weight: 600;
568
- opacity: 0.7;
569
- margin: 8px 2px 4px;
570
- text-transform: uppercase;
571
- }
572
-
573
- .squisq-shape-palette-grid {
574
- display: grid;
575
- grid-template-columns: repeat(6, 1fr);
576
- gap: 2px;
577
- }
578
-
579
- .squisq-shape-palette-item {
580
- display: flex;
581
- align-items: center;
582
- justify-content: center;
583
- padding: 4px;
584
- background: none;
585
- border: 1px solid transparent;
586
- border-radius: 6px;
587
- cursor: pointer;
588
- }
589
-
590
- .squisq-shape-palette-item:hover {
591
- background: #f1f5f9;
592
- border-color: #e2e8f0;
593
- }
594
-
595
- .squisq-shape-thumb {
596
- fill: none;
597
- stroke: #334155;
598
- stroke-width: 1.5;
599
- }
600
-
601
- .squisq-shape-thumb-line {
602
- stroke: #334155;
603
- stroke-width: 1.5;
604
- }
605
-
606
- .squisq-shape-thumb-text {
607
- fill: #334155;
608
- font-size: 22px;
609
- font-weight: 700;
610
- }
611
-
612
- .squisq-editor-shell[data-theme='dark'] .squisq-shape-palette {
613
- background: #111827;
614
- color: #e5e7eb;
615
- border-color: #475569;
616
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
617
- }
618
-
619
- .squisq-editor-shell[data-theme='dark'] .squisq-shape-palette-search,
620
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-prop-select {
621
- background: #0f172a;
622
- color: #e5e7eb;
623
- border-color: #475569;
624
- }
625
-
626
- .squisq-editor-shell[data-theme='dark'] .squisq-shape-palette-item:hover,
627
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-prop-clear:hover {
628
- background: #1f2937;
629
- border-color: #64748b;
630
- }
631
-
632
- .squisq-editor-shell[data-theme='dark'] .squisq-shape-thumb,
633
- .squisq-editor-shell[data-theme='dark'] .squisq-shape-thumb-line {
634
- stroke: #e5e7eb;
635
- }
636
-
637
- .squisq-editor-shell[data-theme='dark'] .squisq-shape-thumb-text {
638
- fill: #e5e7eb;
639
- }
640
-
641
- /* Per-selection style controls, inline in the contextual toolbar (Fill /
642
- Stroke / Color swatches + connector dropdowns) — styled as a pill that
643
- matches the tools/actions groups. */
644
- .squisq-scene-block-props {
645
- display: inline-flex;
646
- flex-direction: row;
647
- flex-wrap: wrap;
648
- align-items: center;
649
- gap: 8px;
650
- padding: 3px 8px;
651
- background: var(--squisq-surface, #ffffff);
652
- border: 1px solid var(--squisq-border, #cbd5e1);
653
- border-radius: 6px;
654
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
655
- color: #1e293b;
656
- font-size: 11px;
657
- }
658
-
659
- .squisq-scene-prop {
660
- display: inline-flex;
661
- align-items: center;
662
- gap: 5px;
663
- }
664
-
665
- .squisq-scene-prop-label {
666
- font-weight: 600;
667
- text-transform: uppercase;
668
- letter-spacing: 0.04em;
669
- opacity: 0.7;
670
- }
671
-
672
- .squisq-scene-prop-color {
673
- width: 26px;
674
- height: 22px;
675
- padding: 0;
676
- background: none;
677
- border: 1px solid #cbd5e1;
678
- border-radius: 4px;
679
- cursor: pointer;
680
- }
681
-
682
- .squisq-scene-prop-select {
683
- background: #f8fafc;
684
- color: inherit;
685
- border: 1px solid #cbd5e1;
686
- border-radius: 4px;
687
- padding: 2px 4px;
688
- font-size: 11px;
689
- }
690
-
691
- .squisq-scene-prop-clear {
692
- font-size: 10px;
693
- background: none;
694
- border: 1px solid #cbd5e1;
695
- color: inherit;
696
- border-radius: 4px;
697
- padding: 2px 5px;
698
- cursor: pointer;
699
- }
700
-
701
- .squisq-scene-prop-clear:hover {
702
- background: #f1f5f9;
703
- }
704
-
705
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-prop-color,
706
- .squisq-editor-shell[data-theme='dark'] .squisq-scene-prop-clear {
707
- background: #0f172a;
708
- color: #e5e7eb;
709
- border-color: #475569;
710
- }
711
-
712
- /* ── Inline widget host (mirrors squisq-diagram-inline) ──── */
713
-
714
- .squisq-scene-widget-host {
715
- margin: 0.75rem 0 1.25rem;
716
- }
717
-
718
- .squisq-scene-inline {
719
- position: relative;
720
- width: 100%;
721
- height: 420px;
722
- border: 1px solid var(--squisq-border, #e2e8f0);
723
- border-radius: 8px;
724
- overflow: hidden;
725
- background: var(--squisq-surface, #ffffff);
726
- }
727
-
728
- .squisq-scene-inline-placeholder {
729
- height: 420px;
730
- border: 1px dashed var(--squisq-border, #e2e8f0);
731
- border-radius: 8px;
732
- display: flex;
733
- align-items: center;
734
- justify-content: center;
735
- color: var(--squisq-text-muted, #64748b);
736
- font-size: 14px;
737
- }
738
-
739
- .squisq-scene-inline-placeholder::before {
740
- content: 'Canvas open in full screen — press Esc to return';
741
- }
742
-
743
- /* Hide sub-headings that belong to a layout/drawing block — the canvas
744
- owns their visual representation. */
745
- [data-squisq-scene-child='true'] {
746
- display: none;
747
- }
748
-
749
- /* ── Empty state ──────────────────────────────────────────── */
750
-
751
- .squisq-scene-empty {
752
- position: absolute;
753
- inset: 0;
754
- display: flex;
755
- flex-direction: column;
756
- align-items: center;
757
- justify-content: center;
758
- gap: 8px;
759
- pointer-events: none;
760
- text-align: center;
761
- padding: 24px;
762
- }
763
-
764
- .squisq-scene-empty-title {
765
- font-size: 14px;
766
- font-weight: 600;
767
- color: var(--squisq-text, #1e293b);
768
- }
769
-
770
- .squisq-scene-empty-hint {
771
- font-size: 12px;
772
- color: var(--squisq-text-muted, #64748b);
773
- max-width: 320px;
774
- line-height: 1.45;
775
- }
776
-
777
- .squisq-scene-empty-btn {
778
- pointer-events: auto;
779
- margin-top: 4px;
780
- padding: 6px 12px;
781
- font-size: 12px;
782
- font-weight: 500;
783
- color: #ffffff;
784
- background: #6366f1;
785
- border: none;
786
- border-radius: 6px;
787
- cursor: pointer;
788
- }
789
-
790
- .squisq-scene-empty-btn:hover {
791
- background: #4f46e5;
792
- }