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