@activecollab/components 2.0.586 → 2.0.587

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 (77) hide show
  1. package/dist/cjs/presentation/whiteboard/boardTools.js +45 -0
  2. package/dist/cjs/presentation/whiteboard/boardTools.js.map +1 -0
  3. package/dist/cjs/presentation/whiteboard/canvasElements.js +46 -38
  4. package/dist/cjs/presentation/whiteboard/canvasElements.js.map +1 -1
  5. package/dist/cjs/presentation/whiteboard/elementToolbars.js +166 -0
  6. package/dist/cjs/presentation/whiteboard/elementToolbars.js.map +1 -0
  7. package/dist/cjs/presentation/whiteboard/elements.js +6 -429
  8. package/dist/cjs/presentation/whiteboard/elements.js.map +1 -1
  9. package/dist/cjs/presentation/whiteboard/entityCardActions.js +12 -18
  10. package/dist/cjs/presentation/whiteboard/entityCardActions.js.map +1 -1
  11. package/dist/cjs/presentation/whiteboard/fileElement.js +66 -58
  12. package/dist/cjs/presentation/whiteboard/fileElement.js.map +1 -1
  13. package/dist/cjs/presentation/whiteboard/linkElement.js +22 -45
  14. package/dist/cjs/presentation/whiteboard/linkElement.js.map +1 -1
  15. package/dist/cjs/presentation/whiteboard/paletteReview.js +10 -4
  16. package/dist/cjs/presentation/whiteboard/paletteReview.js.map +1 -1
  17. package/dist/cjs/presentation/whiteboardModern/contextToolbar.js +408 -0
  18. package/dist/cjs/presentation/whiteboardModern/contextToolbar.js.map +1 -0
  19. package/dist/cjs/presentation/whiteboardModern/surface.js +119 -0
  20. package/dist/cjs/presentation/whiteboardModern/surface.js.map +1 -0
  21. package/dist/cjs/presentation/whiteboardModern/toolDock.js +274 -0
  22. package/dist/cjs/presentation/whiteboardModern/toolDock.js.map +1 -0
  23. package/dist/cjs/presentation/whiteboardModern/topBars.js +223 -0
  24. package/dist/cjs/presentation/whiteboardModern/topBars.js.map +1 -0
  25. package/dist/esm/presentation/whiteboard/boardTools.d.ts +18 -0
  26. package/dist/esm/presentation/whiteboard/boardTools.d.ts.map +1 -0
  27. package/dist/esm/presentation/whiteboard/boardTools.js +37 -0
  28. package/dist/esm/presentation/whiteboard/boardTools.js.map +1 -0
  29. package/dist/esm/presentation/whiteboard/canvasElements.d.ts +5 -2
  30. package/dist/esm/presentation/whiteboard/canvasElements.d.ts.map +1 -1
  31. package/dist/esm/presentation/whiteboard/canvasElements.js +35 -26
  32. package/dist/esm/presentation/whiteboard/canvasElements.js.map +1 -1
  33. package/dist/esm/presentation/whiteboard/elementToolbars.d.ts +22 -0
  34. package/dist/esm/presentation/whiteboard/elementToolbars.d.ts.map +1 -0
  35. package/dist/esm/presentation/whiteboard/elementToolbars.js +130 -0
  36. package/dist/esm/presentation/whiteboard/elementToolbars.js.map +1 -0
  37. package/dist/esm/presentation/whiteboard/elements.d.ts +1 -70
  38. package/dist/esm/presentation/whiteboard/elements.d.ts.map +1 -1
  39. package/dist/esm/presentation/whiteboard/elements.js +7 -369
  40. package/dist/esm/presentation/whiteboard/elements.js.map +1 -1
  41. package/dist/esm/presentation/whiteboard/entityCardActions.d.ts +2 -3
  42. package/dist/esm/presentation/whiteboard/entityCardActions.d.ts.map +1 -1
  43. package/dist/esm/presentation/whiteboard/entityCardActions.js +12 -18
  44. package/dist/esm/presentation/whiteboard/entityCardActions.js.map +1 -1
  45. package/dist/esm/presentation/whiteboard/fileElement.d.ts +1 -1
  46. package/dist/esm/presentation/whiteboard/fileElement.d.ts.map +1 -1
  47. package/dist/esm/presentation/whiteboard/fileElement.js +66 -59
  48. package/dist/esm/presentation/whiteboard/fileElement.js.map +1 -1
  49. package/dist/esm/presentation/whiteboard/linkElement.d.ts +2 -2
  50. package/dist/esm/presentation/whiteboard/linkElement.d.ts.map +1 -1
  51. package/dist/esm/presentation/whiteboard/linkElement.js +24 -47
  52. package/dist/esm/presentation/whiteboard/linkElement.js.map +1 -1
  53. package/dist/esm/presentation/whiteboard/paletteReview.js +11 -5
  54. package/dist/esm/presentation/whiteboard/paletteReview.js.map +1 -1
  55. package/dist/esm/presentation/whiteboardModern/contextToolbar.d.ts +76 -0
  56. package/dist/esm/presentation/whiteboardModern/contextToolbar.d.ts.map +1 -0
  57. package/dist/esm/presentation/whiteboardModern/contextToolbar.js +343 -0
  58. package/dist/esm/presentation/whiteboardModern/contextToolbar.js.map +1 -0
  59. package/dist/esm/presentation/whiteboardModern/surface.d.ts +29 -0
  60. package/dist/esm/presentation/whiteboardModern/surface.d.ts.map +1 -0
  61. package/dist/esm/presentation/whiteboardModern/surface.js +111 -0
  62. package/dist/esm/presentation/whiteboardModern/surface.js.map +1 -0
  63. package/dist/esm/presentation/whiteboardModern/toolDock.d.ts +20 -0
  64. package/dist/esm/presentation/whiteboardModern/toolDock.d.ts.map +1 -0
  65. package/dist/esm/presentation/whiteboardModern/toolDock.js +245 -0
  66. package/dist/esm/presentation/whiteboardModern/toolDock.js.map +1 -0
  67. package/dist/esm/presentation/whiteboardModern/topBars.d.ts +42 -0
  68. package/dist/esm/presentation/whiteboardModern/topBars.d.ts.map +1 -0
  69. package/dist/esm/presentation/whiteboardModern/topBars.js +197 -0
  70. package/dist/esm/presentation/whiteboardModern/topBars.js.map +1 -0
  71. package/package.json +1 -1
  72. package/dist/cjs/presentation/whiteboard/bottomDock.js +0 -264
  73. package/dist/cjs/presentation/whiteboard/bottomDock.js.map +0 -1
  74. package/dist/esm/presentation/whiteboard/bottomDock.d.ts +0 -75
  75. package/dist/esm/presentation/whiteboard/bottomDock.d.ts.map +0 -1
  76. package/dist/esm/presentation/whiteboard/bottomDock.js +0 -214
  77. package/dist/esm/presentation/whiteboard/bottomDock.js.map +0 -1
@@ -1,75 +0,0 @@
1
- import React, { ReactElement, ReactNode } from "react";
2
- export declare const ToolSurface: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const verticalDivider = "\n .divider {\n width: 1px;\n height: 24px;\n background-color: var(--color-theme-400);\n margin: 0 6px;\n flex-shrink: 0;\n }\n";
4
- export declare const StyledBottomDock: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- /**
6
- * The floating second toolbar row — a small pill above the dock that holds the
7
- * members of one tool family (Circle / Rectangle / Triangle, or Task / Project).
8
- *
9
- * It is the same surface as the dock itself, so a family reads as an extension
10
- * of the button that opened it rather than as a different kind of UI. Only one
11
- * pill is ever up, because only one tool is ever armed.
12
- */
13
- export declare const StyledToolPill: import("styled-components").StyledComponent<"div", any, {}, never>;
14
- export declare const StyledHint: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("../..").ICaptionProps & Omit<import("../../components/Typography/Typography").ITypographyProps, "variant" | "weight"> & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
15
- export declare const TOOL_HINTS: {
16
- readonly circle: "Click to drop a default circle, or draw one to size. Press O for a circle.";
17
- readonly roundedRectangle: "Click to drop a default rectangle, or draw one to size. Press R for a rectangle.";
18
- readonly triangle: "Click to drop a default triangle, or draw one to size. Press Y for a triangle.";
19
- readonly connector: "Drag from one element to another to connect them. Press C to connect.";
20
- readonly projectElements: "Put a task, a project or a person on the board — pick which above, then draw it.";
21
- readonly project: "Draw a box to place a project card, then pick the project it shows.";
22
- readonly task: "Draw a box to place a task card, then pick the task it shows.";
23
- readonly person: "Draw a circle to place a person, then pick who it shows.";
24
- readonly link: "Draw a box to place a link, or paste a URL anywhere. Press L for link.";
25
- readonly file: "Draw a box to place a file, or drop one on the board. Press F for file.";
26
- readonly sticky: "Click anywhere on the canvas to drop a sticky note. Press S for a sticky note.";
27
- readonly text: "Click anywhere on the canvas to start typing. Press T for text.";
28
- readonly draw: "Click and drag to draw freehand. Press D for the pen.";
29
- readonly shapes: "Pick a shape above, then draw it on the board. Press R for a rectangle.";
30
- };
31
- export type ToolHintKey = keyof typeof TOOL_HINTS;
32
- export type ShapeTool = "circle" | "roundedRectangle" | "triangle";
33
- /**
34
- * The armed board tool. Link, File, Project, Task and the three shapes are
35
- * wired — arming one turns the next canvas click into "drop the default-size
36
- * element here" and a drag into "draw one this big"; everything else stays a
37
- * mock, so the board is otherwise always in select mode.
38
- */
39
- export type BoardTool = "select" | "link" | "file" | "project" | "task" | "person" | ShapeTool;
40
- export declare const SHAPE_TOOLS: readonly ShapeTool[];
41
- export declare const isShapeTool: (tool: BoardTool) => tool is ShapeTool;
42
- /**
43
- * What a dock button arms the instant its pill opens.
44
- *
45
- * Opening a family and choosing inside it are two separate decisions, and the
46
- * second one has a right answer often enough that asking for it every time is
47
- * just a toll: a shape is usually a rectangle, and the thing people put on a
48
- * board is usually a task. So the pill opens with that member already armed and
49
- * the gesture can start immediately — picking another member is a correction,
50
- * not a required step.
51
- */
52
- export declare const DEFAULT_SHAPE_TOOL: ShapeTool;
53
- export declare const DEFAULT_PROJECT_ELEMENT_TOOL: BoardTool;
54
- export declare const SHAPE_DEFAULT_SIZES: Record<ShapeTool, {
55
- width: number;
56
- height: number;
57
- }>;
58
- export declare const CARD_PREVIEW_HEIGHT = 240;
59
- /** The kinds of card the draw gesture can place. */
60
- export type DrawableTool = Exclude<BoardTool, "select">;
61
- export interface ToolButtonProps {
62
- tip: string;
63
- active?: boolean;
64
- children: ReactNode;
65
- onClick?: () => void;
66
- onMouseEnter?: () => void;
67
- onMouseLeave?: () => void;
68
- }
69
- export declare const ToolButton: ({ tip, active, children, onClick, onMouseEnter, onMouseLeave, }: ToolButtonProps) => ReactElement;
70
- export interface BottomDockProps {
71
- activeTool: BoardTool;
72
- onToolChange: (tool: BoardTool) => void;
73
- }
74
- export declare const BottomDock: ({ activeTool, onToolChange, }: BottomDockProps) => ReactElement;
75
- //# sourceMappingURL=bottomDock.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bottomDock.d.ts","sourceRoot":"","sources":["../../../../src/presentation/whiteboard/bottomDock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AA6BjE,eAAO,MAAM,WAAW,oEA2BvB,CAAC;AAGF,eAAO,MAAM,eAAe,sJAQ3B,CAAC;AAEF,eAAO,MAAM,g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AYpB,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,SAAS,CAAC;IACtB,YAAY,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACzC;AAMD,eAAO,MAAM,UAAU,GAAI,+BAGxB,eAAe,KAAG,YAqLpB,CAAC"}
@@ -1,214 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import React, { useState } from "react";
3
- import styled from "styled-components";
4
- import { IconButton } from "../../components/IconButton";
5
- import { AttachmentIcon, CircleIcon, ConnectionIcon, DrawIcon, InsertLinkIcon, PersonIcon, ProjectIcon, ProjectStarIcon, RoundedRectangleIcon, ShapesIcon, NoteIcon, TaskIcon, TextIcon, TriangleIcon } from "../../components/Icons";
6
- import { Tooltip } from "../../components/Tooltip";
7
- import { Caption1 } from "../../components/Typography";
8
-
9
- /* ------------------------------------------------------------------ */
10
- /* Floating toolbar surfaces */
11
- /* ------------------------------------------------------------------ */
12
-
13
- /* A floating, rounded toolbar surface (paper + shadow). */
14
- export const ToolSurface = styled.div.withConfig({
15
- displayName: "bottomDock__ToolSurface",
16
- componentId: "sc-1xsxwg0-0"
17
- })(["display:flex;align-items:center;gap:2px;padding:6px;border-radius:14px;background-color:var(--page-paper-main);box-shadow:0 6px 24px rgba(0,0,0,0.16);border:1px solid var(--border-primary);svg > [stroke],svg > g [stroke]{stroke:currentColor;}"]);
18
-
19
- /* vertical separator used inside the toolbars */
20
- export const verticalDivider = "\n .divider {\n width: 1px;\n height: 24px;\n background-color: var(--color-theme-400);\n margin: 0 6px;\n flex-shrink: 0;\n }\n";
21
- export const StyledBottomDock = styled.div.withConfig({
22
- displayName: "bottomDock__StyledBottomDock",
23
- componentId: "sc-1xsxwg0-1"
24
- })(["position:absolute;left:50%;bottom:18px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:10px;max-width:calc(100% - 32px);"]);
25
-
26
- /**
27
- * The floating second toolbar row — a small pill above the dock that holds the
28
- * members of one tool family (Circle / Rectangle / Triangle, or Task / Project).
29
- *
30
- * It is the same surface as the dock itself, so a family reads as an extension
31
- * of the button that opened it rather than as a different kind of UI. Only one
32
- * pill is ever up, because only one tool is ever armed.
33
- */
34
- export const StyledToolPill = styled(ToolSurface).withConfig({
35
- displayName: "bottomDock__StyledToolPill",
36
- componentId: "sc-1xsxwg0-2"
37
- })([""]);
38
-
39
- /* Reserve two Caption1 lines (2 × 16px) so showing/hiding the hint never
40
- shifts the dock; visibility keeps the reserved space when hidden. */
41
- export const StyledHint = styled(Caption1).withConfig({
42
- displayName: "bottomDock__StyledHint",
43
- componentId: "sc-1xsxwg0-3"
44
- })(["text-align:center;padding:0 16px;min-height:32px;&.hint-hidden{visibility:hidden;}"]);
45
-
46
- /* Per-tool hint shown under the dock only while that tool is hovered. */
47
- export const TOOL_HINTS = {
48
- circle: "Click to drop a default circle, or draw one to size. Press O for a circle.",
49
- roundedRectangle: "Click to drop a default rectangle, or draw one to size. Press R for a rectangle.",
50
- triangle: "Click to drop a default triangle, or draw one to size. Press Y for a triangle.",
51
- connector: "Drag from one element to another to connect them. Press C to connect.",
52
- projectElements: "Put a task, a project or a person on the board — pick which above, then draw it.",
53
- project: "Draw a box to place a project card, then pick the project it shows.",
54
- task: "Draw a box to place a task card, then pick the task it shows.",
55
- person: "Draw a circle to place a person, then pick who it shows.",
56
- link: "Draw a box to place a link, or paste a URL anywhere. Press L for link.",
57
- file: "Draw a box to place a file, or drop one on the board. Press F for file.",
58
- sticky: "Click anywhere on the canvas to drop a sticky note. Press S for a sticky note.",
59
- text: "Click anywhere on the canvas to start typing. Press T for text.",
60
- draw: "Click and drag to draw freehand. Press D for the pen.",
61
- shapes: "Pick a shape above, then draw it on the board. Press R for a rectangle."
62
- };
63
-
64
- /**
65
- * The armed board tool. Link, File, Project, Task and the three shapes are
66
- * wired — arming one turns the next canvas click into "drop the default-size
67
- * element here" and a drag into "draw one this big"; everything else stays a
68
- * mock, so the board is otherwise always in select mode.
69
- */
70
-
71
- export const SHAPE_TOOLS = ["circle", "roundedRectangle", "triangle"];
72
- export const isShapeTool = tool => SHAPE_TOOLS.includes(tool);
73
-
74
- /**
75
- * What a dock button arms the instant its pill opens.
76
- *
77
- * Opening a family and choosing inside it are two separate decisions, and the
78
- * second one has a right answer often enough that asking for it every time is
79
- * just a toll: a shape is usually a rectangle, and the thing people put on a
80
- * board is usually a task. So the pill opens with that member already armed and
81
- * the gesture can start immediately — picking another member is a correction,
82
- * not a required step.
83
- */
84
- export const DEFAULT_SHAPE_TOOL = "roundedRectangle";
85
- export const DEFAULT_PROJECT_ELEMENT_TOOL = "task";
86
-
87
- /* What a plain click drops — mirrors DEFAULT_SHAPE_SIZES in
88
- new-activecollab-front, and is exactly what the hover preview promises. */
89
- export const SHAPE_DEFAULT_SIZES = {
90
- roundedRectangle: {
91
- width: 100,
92
- height: 60
93
- },
94
- circle: {
95
- width: 80,
96
- height: 80
97
- },
98
- triangle: {
99
- width: 80,
100
- height: 80
101
- }
102
- };
103
-
104
- /* Cards are auto-height, so their hover preview uses the app's nominal wire
105
- height (DEFAULT_LINK_CARD_SIZE / DEFAULT_FILE_CARD_SIZE). */
106
- export const CARD_PREVIEW_HEIGHT = 240;
107
-
108
- /** The kinds of card the draw gesture can place. */
109
-
110
- export const ToolButton = _ref => {
111
- let tip = _ref.tip,
112
- active = _ref.active,
113
- children = _ref.children,
114
- onClick = _ref.onClick,
115
- onMouseEnter = _ref.onMouseEnter,
116
- onMouseLeave = _ref.onMouseLeave;
117
- return /*#__PURE__*/React.createElement(Tooltip, {
118
- title: tip
119
- }, /*#__PURE__*/React.createElement(IconButton, {
120
- variant: "text gray",
121
- active: active,
122
- onClick: onClick,
123
- onMouseEnter: onMouseEnter,
124
- onMouseLeave: onMouseLeave
125
- }, children));
126
- };
127
- /* Bottom-centre tool dock: the family pill (when one is open), the main
128
- toolbar, and the shared hint line. The dock is anchored by its BOTTOM edge,
129
- so a pill appearing or disappearing grows the stack upwards and never moves
130
- the toolbar itself. */
131
- export const BottomDock = _ref2 => {
132
- let activeTool = _ref2.activeTool,
133
- onToolChange = _ref2.onToolChange;
134
- const _useState = useState(null),
135
- hoverHint = _useState[0],
136
- setHoverHint = _useState[1];
137
- const hoverProps = tool => ({
138
- onMouseEnter: () => setHoverHint(TOOL_HINTS[tool]),
139
- onMouseLeave: () => setHoverHint(null)
140
- });
141
-
142
- /* An armed tool keeps its hint up after the pointer leaves the dock — the
143
- gesture happens on the canvas, so that is exactly when the instruction is
144
- needed. */
145
- const hint = hoverHint != null ? hoverHint : activeTool === "select" ? null : TOOL_HINTS[activeTool];
146
-
147
- /* Which pill is up. Both are DERIVED from the armed tool rather than kept as
148
- their own open/closed state: opening a pill always arms one of its members,
149
- so "a member of this family is armed" and "this pill is showing" are the
150
- same fact. Deriving it is what makes every way of leaving the family close
151
- the pill for free — another dock tool, Esc on the canvas, or the gesture
152
- finishing and disarming the tool. Two states could disagree; one cannot. */
153
- const shapesOpen = isShapeTool(activeTool);
154
- const projectElementsOpen = activeTool === "task" || activeTool === "project" || activeTool === "person";
155
- return /*#__PURE__*/React.createElement(StyledBottomDock, null, shapesOpen ? /*#__PURE__*/React.createElement(StyledToolPill, null, /*#__PURE__*/React.createElement(ToolButton, _extends({
156
- tip: "Circle",
157
- active: activeTool === "circle",
158
- onClick: () => onToolChange("circle")
159
- }, hoverProps("circle")), /*#__PURE__*/React.createElement(CircleIcon, null)), /*#__PURE__*/React.createElement(ToolButton, _extends({
160
- tip: "Rectangle",
161
- active: activeTool === "roundedRectangle",
162
- onClick: () => onToolChange("roundedRectangle")
163
- }, hoverProps("roundedRectangle")), /*#__PURE__*/React.createElement(RoundedRectangleIcon, null)), /*#__PURE__*/React.createElement(ToolButton, _extends({
164
- tip: "Triangle",
165
- active: activeTool === "triangle",
166
- onClick: () => onToolChange("triangle")
167
- }, hoverProps("triangle")), /*#__PURE__*/React.createElement(TriangleIcon, null))) : null, projectElementsOpen ? /*#__PURE__*/React.createElement(StyledToolPill, null, /*#__PURE__*/React.createElement(ToolButton, _extends({
168
- tip: "Task",
169
- active: activeTool === "task",
170
- onClick: () => onToolChange("task")
171
- }, hoverProps("task")), /*#__PURE__*/React.createElement(TaskIcon, null)), /*#__PURE__*/React.createElement(ToolButton, _extends({
172
- tip: "Project",
173
- active: activeTool === "project",
174
- onClick: () => onToolChange("project")
175
- }, hoverProps("project")), /*#__PURE__*/React.createElement(ProjectIcon, null)), /*#__PURE__*/React.createElement(ToolButton, _extends({
176
- tip: "User",
177
- active: activeTool === "person",
178
- onClick: () => onToolChange("person")
179
- }, hoverProps("person")), /*#__PURE__*/React.createElement(PersonIcon, null))) : null, /*#__PURE__*/React.createElement(ToolSurface, null, /*#__PURE__*/React.createElement(Tooltip, {
180
- title: "Sticky Note"
181
- }, /*#__PURE__*/React.createElement(IconButton, _extends({
182
- variant: "text gray",
183
- onClick: () => onToolChange("select")
184
- }, hoverProps("sticky")), /*#__PURE__*/React.createElement(NoteIcon, null))), /*#__PURE__*/React.createElement(ToolButton, _extends({
185
- tip: "Text",
186
- onClick: () => onToolChange("select")
187
- }, hoverProps("text")), /*#__PURE__*/React.createElement(TextIcon, null)), /*#__PURE__*/React.createElement(ToolButton, _extends({
188
- tip: "Draw",
189
- onClick: () => onToolChange("select")
190
- }, hoverProps("draw")), /*#__PURE__*/React.createElement(DrawIcon, null)), /*#__PURE__*/React.createElement(ToolButton, _extends({
191
- tip: "Shape",
192
- active: shapesOpen,
193
- onClick: () => onToolChange(shapesOpen ? "select" : DEFAULT_SHAPE_TOOL)
194
- }, hoverProps("shapes")), /*#__PURE__*/React.createElement(ShapesIcon, null)), /*#__PURE__*/React.createElement(ToolButton, _extends({
195
- tip: "Connect",
196
- onClick: () => onToolChange("select")
197
- }, hoverProps("connector")), /*#__PURE__*/React.createElement(ConnectionIcon, null)), /*#__PURE__*/React.createElement(ToolButton, _extends({
198
- tip: "Project Elements",
199
- active: projectElementsOpen,
200
- onClick: () => onToolChange(projectElementsOpen ? "select" : DEFAULT_PROJECT_ELEMENT_TOOL)
201
- }, hoverProps("projectElements")), /*#__PURE__*/React.createElement(ProjectStarIcon, null)), /*#__PURE__*/React.createElement(ToolButton, _extends({
202
- tip: "Link",
203
- active: activeTool === "link",
204
- onClick: () => onToolChange(activeTool === "link" ? "select" : "link")
205
- }, hoverProps("link")), /*#__PURE__*/React.createElement(InsertLinkIcon, null)), /*#__PURE__*/React.createElement(ToolButton, _extends({
206
- tip: "File",
207
- active: activeTool === "file",
208
- onClick: () => onToolChange(activeTool === "file" ? "select" : "file")
209
- }, hoverProps("file")), /*#__PURE__*/React.createElement(AttachmentIcon, null))), /*#__PURE__*/React.createElement(StyledHint, {
210
- color: "tertiary",
211
- className: hint ? undefined : "hint-hidden"
212
- }, hint != null ? hint : " "));
213
- };
214
- //# sourceMappingURL=bottomDock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bottomDock.js","names":["React","useState","styled","IconButton","AttachmentIcon","CircleIcon","ConnectionIcon","DrawIcon","InsertLinkIcon","PersonIcon","ProjectIcon","ProjectStarIcon","RoundedRectangleIcon","ShapesIcon","NoteIcon","TaskIcon","TextIcon","TriangleIcon","Tooltip","Caption1","ToolSurface","div","withConfig","displayName","componentId","verticalDivider","StyledBottomDock","StyledToolPill","StyledHint","TOOL_HINTS","circle","roundedRectangle","triangle","connector","projectElements","project","task","person","link","file","sticky","text","draw","shapes","SHAPE_TOOLS","isShapeTool","tool","includes","DEFAULT_SHAPE_TOOL","DEFAULT_PROJECT_ELEMENT_TOOL","SHAPE_DEFAULT_SIZES","width","height","CARD_PREVIEW_HEIGHT","ToolButton","_ref","tip","active","children","onClick","onMouseEnter","onMouseLeave","createElement","title","variant","BottomDock","_ref2","activeTool","onToolChange","_useState","hoverHint","setHoverHint","hoverProps","hint","shapesOpen","projectElementsOpen","_extends","color","className","undefined"],"sources":["../../../../src/presentation/whiteboard/bottomDock.tsx"],"sourcesContent":["import React, { ReactElement, ReactNode, useState } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { IconButton } from \"../../components/IconButton\";\nimport {\n AttachmentIcon,\n CircleIcon,\n ConnectionIcon,\n DrawIcon,\n InsertLinkIcon,\n PersonIcon,\n ProjectIcon,\n ProjectStarIcon,\n RoundedRectangleIcon,\n ShapesIcon,\n NoteIcon,\n TaskIcon,\n TextIcon,\n TriangleIcon,\n} from \"../../components/Icons\";\nimport { Tooltip } from \"../../components/Tooltip\";\nimport { Caption1 } from \"../../components/Typography\";\n\n/* ------------------------------------------------------------------ */\n/* Floating toolbar surfaces */\n/* ------------------------------------------------------------------ */\n\n/* A floating, rounded toolbar surface (paper + shadow). */\nexport const ToolSurface = styled.div`\n display: flex;\n align-items: center;\n gap: 2px;\n padding: 6px;\n border-radius: 14px;\n background-color: var(--page-paper-main);\n box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);\n border: 1px solid var(--border-primary);\n\n /* A DS button colours its icon by declaring svg { fill: currentColor }, so\n every FILLED glyph follows the button's active and hover states for free.\n Three glyphs here are not filled: RoundedRectangleIcon and TriangleIcon are\n outlines with a stroke of var(--color-theme-600) baked into the path, and\n ProjectIcon draws its ruler as a stroked rect. Nothing about the button\n could ever reach them — an armed rectangle stayed exactly as grey as an\n unarmed one. This extends the same currentColor contract to a declared\n stroke.\n\n Scoped to direct children and to shapes inside a <g>, NOT to every\n descendant: ProjectIcon cuts its ruler with a <mask> whose <line> is\n stroked BLACK on purpose. In a mask only luminance matters, so recolouring\n that line would turn a clean diagonal cut into a half-transparent smear. */\n svg > [stroke],\n svg > g [stroke] {\n stroke: currentColor;\n }\n`;\n\n/* vertical separator used inside the toolbars */\nexport const verticalDivider = `\n .divider {\n width: 1px;\n height: 24px;\n background-color: var(--color-theme-400);\n margin: 0 6px;\n flex-shrink: 0;\n }\n`;\n\nexport const StyledBottomDock = styled.div`\n position: absolute;\n left: 50%;\n bottom: 18px;\n transform: translateX(-50%);\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n max-width: calc(100% - 32px);\n`;\n\n/**\n * The floating second toolbar row — a small pill above the dock that holds the\n * members of one tool family (Circle / Rectangle / Triangle, or Task / Project).\n *\n * It is the same surface as the dock itself, so a family reads as an extension\n * of the button that opened it rather than as a different kind of UI. Only one\n * pill is ever up, because only one tool is ever armed.\n */\nexport const StyledToolPill = styled(ToolSurface)``;\n\n/* Reserve two Caption1 lines (2 × 16px) so showing/hiding the hint never\n shifts the dock; visibility keeps the reserved space when hidden. */\nexport const StyledHint = styled(Caption1)`\n text-align: center;\n padding: 0 16px;\n min-height: 32px;\n\n &.hint-hidden {\n visibility: hidden;\n }\n`;\n\n/* Per-tool hint shown under the dock only while that tool is hovered. */\nexport const TOOL_HINTS = {\n circle:\n \"Click to drop a default circle, or draw one to size. Press O for a circle.\",\n roundedRectangle:\n \"Click to drop a default rectangle, or draw one to size. Press R for a rectangle.\",\n triangle:\n \"Click to drop a default triangle, or draw one to size. Press Y for a triangle.\",\n connector:\n \"Drag from one element to another to connect them. Press C to connect.\",\n projectElements:\n \"Put a task, a project or a person on the board — pick which above, then draw it.\",\n project:\n \"Draw a box to place a project card, then pick the project it shows.\",\n task: \"Draw a box to place a task card, then pick the task it shows.\",\n person: \"Draw a circle to place a person, then pick who it shows.\",\n link: \"Draw a box to place a link, or paste a URL anywhere. Press L for link.\",\n file: \"Draw a box to place a file, or drop one on the board. Press F for file.\",\n sticky:\n \"Click anywhere on the canvas to drop a sticky note. Press S for a sticky note.\",\n text: \"Click anywhere on the canvas to start typing. Press T for text.\",\n draw: \"Click and drag to draw freehand. Press D for the pen.\",\n shapes:\n \"Pick a shape above, then draw it on the board. Press R for a rectangle.\",\n} as const;\n\nexport type ToolHintKey = keyof typeof TOOL_HINTS;\n\nexport type ShapeTool = \"circle\" | \"roundedRectangle\" | \"triangle\";\n\n/**\n * The armed board tool. Link, File, Project, Task and the three shapes are\n * wired — arming one turns the next canvas click into \"drop the default-size\n * element here\" and a drag into \"draw one this big\"; everything else stays a\n * mock, so the board is otherwise always in select mode.\n */\nexport type BoardTool =\n | \"select\"\n | \"link\"\n | \"file\"\n | \"project\"\n | \"task\"\n | \"person\"\n | ShapeTool;\n\nexport const SHAPE_TOOLS: readonly ShapeTool[] = [\n \"circle\",\n \"roundedRectangle\",\n \"triangle\",\n];\n\nexport const isShapeTool = (tool: BoardTool): tool is ShapeTool =>\n (SHAPE_TOOLS as readonly string[]).includes(tool);\n\n/**\n * What a dock button arms the instant its pill opens.\n *\n * Opening a family and choosing inside it are two separate decisions, and the\n * second one has a right answer often enough that asking for it every time is\n * just a toll: a shape is usually a rectangle, and the thing people put on a\n * board is usually a task. So the pill opens with that member already armed and\n * the gesture can start immediately — picking another member is a correction,\n * not a required step.\n */\nexport const DEFAULT_SHAPE_TOOL: ShapeTool = \"roundedRectangle\";\nexport const DEFAULT_PROJECT_ELEMENT_TOOL: BoardTool = \"task\";\n\n/* What a plain click drops — mirrors DEFAULT_SHAPE_SIZES in\n new-activecollab-front, and is exactly what the hover preview promises. */\nexport const SHAPE_DEFAULT_SIZES: Record<\n ShapeTool,\n { width: number; height: number }\n> = {\n roundedRectangle: { width: 100, height: 60 },\n circle: { width: 80, height: 80 },\n triangle: { width: 80, height: 80 },\n};\n\n/* Cards are auto-height, so their hover preview uses the app's nominal wire\n height (DEFAULT_LINK_CARD_SIZE / DEFAULT_FILE_CARD_SIZE). */\nexport const CARD_PREVIEW_HEIGHT = 240;\n\n/** The kinds of card the draw gesture can place. */\nexport type DrawableTool = Exclude<BoardTool, \"select\">;\n\nexport interface ToolButtonProps {\n tip: string;\n active?: boolean;\n children: ReactNode;\n onClick?: () => void;\n onMouseEnter?: () => void;\n onMouseLeave?: () => void;\n}\n\nexport const ToolButton = ({\n tip,\n active,\n children,\n onClick,\n onMouseEnter,\n onMouseLeave,\n}: ToolButtonProps): ReactElement => (\n <Tooltip title={tip}>\n <IconButton\n variant=\"text gray\"\n active={active}\n onClick={onClick}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n {children}\n </IconButton>\n </Tooltip>\n);\n\nexport interface BottomDockProps {\n activeTool: BoardTool;\n onToolChange: (tool: BoardTool) => void;\n}\n\n/* Bottom-centre tool dock: the family pill (when one is open), the main\n toolbar, and the shared hint line. The dock is anchored by its BOTTOM edge,\n so a pill appearing or disappearing grows the stack upwards and never moves\n the toolbar itself. */\nexport const BottomDock = ({\n activeTool,\n onToolChange,\n}: BottomDockProps): ReactElement => {\n const [hoverHint, setHoverHint] = useState<string | null>(null);\n\n const hoverProps = (tool: ToolHintKey): Record<string, () => void> => ({\n onMouseEnter: () => setHoverHint(TOOL_HINTS[tool]),\n onMouseLeave: () => setHoverHint(null),\n });\n\n /* An armed tool keeps its hint up after the pointer leaves the dock — the\n gesture happens on the canvas, so that is exactly when the instruction is\n needed. */\n const hint =\n hoverHint ?? (activeTool === \"select\" ? null : TOOL_HINTS[activeTool]);\n\n /* Which pill is up. Both are DERIVED from the armed tool rather than kept as\n their own open/closed state: opening a pill always arms one of its members,\n so \"a member of this family is armed\" and \"this pill is showing\" are the\n same fact. Deriving it is what makes every way of leaving the family close\n the pill for free — another dock tool, Esc on the canvas, or the gesture\n finishing and disarming the tool. Two states could disagree; one cannot. */\n const shapesOpen = isShapeTool(activeTool);\n const projectElementsOpen =\n activeTool === \"task\" ||\n activeTool === \"project\" ||\n activeTool === \"person\";\n\n return (\n <StyledBottomDock>\n {/* Shapes pill — hidden until the Shape dock button opens it. Inside a\n pill a click is a plain choice, never a toggle off: the dock button is\n what closes the family, so clicking the armed shape again must not\n make the row that is being used disappear. */}\n {shapesOpen ? (\n <StyledToolPill>\n <ToolButton\n tip=\"Circle\"\n active={activeTool === \"circle\"}\n onClick={() => onToolChange(\"circle\")}\n {...hoverProps(\"circle\")}\n >\n <CircleIcon />\n </ToolButton>\n <ToolButton\n tip=\"Rectangle\"\n active={activeTool === \"roundedRectangle\"}\n onClick={() => onToolChange(\"roundedRectangle\")}\n {...hoverProps(\"roundedRectangle\")}\n >\n <RoundedRectangleIcon />\n </ToolButton>\n <ToolButton\n tip=\"Triangle\"\n active={activeTool === \"triangle\"}\n onClick={() => onToolChange(\"triangle\")}\n {...hoverProps(\"triangle\")}\n >\n <TriangleIcon />\n </ToolButton>\n </StyledToolPill>\n ) : null}\n\n {/* Project Elements pill — the same surface, the same button size and\n spacing, in the same slot above the dock. Task comes first because it\n is what the button arms by default; User is third, beside Task and\n Project, and arms the same draw gesture with a person placeholder. */}\n {projectElementsOpen ? (\n <StyledToolPill>\n <ToolButton\n tip=\"Task\"\n active={activeTool === \"task\"}\n onClick={() => onToolChange(\"task\")}\n {...hoverProps(\"task\")}\n >\n <TaskIcon />\n </ToolButton>\n <ToolButton\n tip=\"Project\"\n active={activeTool === \"project\"}\n onClick={() => onToolChange(\"project\")}\n {...hoverProps(\"project\")}\n >\n <ProjectIcon />\n </ToolButton>\n <ToolButton\n tip=\"User\"\n active={activeTool === \"person\"}\n onClick={() => onToolChange(\"person\")}\n {...hoverProps(\"person\")}\n >\n <PersonIcon />\n </ToolButton>\n </StyledToolPill>\n ) : null}\n\n <ToolSurface>\n {/* The tools that are still mocks arm nothing — but they do DISARM, so\n reaching for one closes whatever pill is up and ends the gesture the\n board was waiting for. A dead button that also leaves the previous\n tool armed would be the confusing half of \"not implemented yet\". */}\n <Tooltip title=\"Sticky Note\">\n <IconButton\n variant=\"text gray\"\n onClick={() => onToolChange(\"select\")}\n {...hoverProps(\"sticky\")}\n >\n <NoteIcon />\n </IconButton>\n </Tooltip>\n <ToolButton\n tip=\"Text\"\n onClick={() => onToolChange(\"select\")}\n {...hoverProps(\"text\")}\n >\n <TextIcon />\n </ToolButton>\n <ToolButton\n tip=\"Draw\"\n onClick={() => onToolChange(\"select\")}\n {...hoverProps(\"draw\")}\n >\n <DrawIcon />\n </ToolButton>\n {/* Opening the family and arming its default member are one click: the\n pill appears with Rectangle already armed, so the next thing the\n pointer does can be the drawing itself. */}\n <ToolButton\n tip=\"Shape\"\n active={shapesOpen}\n onClick={() =>\n onToolChange(shapesOpen ? \"select\" : DEFAULT_SHAPE_TOOL)\n }\n {...hoverProps(\"shapes\")}\n >\n <ShapesIcon />\n </ToolButton>\n <ToolButton\n tip=\"Connect\"\n onClick={() => onToolChange(\"select\")}\n {...hoverProps(\"connector\")}\n >\n <ConnectionIcon />\n </ToolButton>\n <ToolButton\n tip=\"Project Elements\"\n active={projectElementsOpen}\n onClick={() =>\n onToolChange(\n projectElementsOpen ? \"select\" : DEFAULT_PROJECT_ELEMENT_TOOL\n )\n }\n {...hoverProps(\"projectElements\")}\n >\n <ProjectStarIcon />\n </ToolButton>\n <ToolButton\n tip=\"Link\"\n active={activeTool === \"link\"}\n onClick={() =>\n onToolChange(activeTool === \"link\" ? \"select\" : \"link\")\n }\n {...hoverProps(\"link\")}\n >\n <InsertLinkIcon />\n </ToolButton>\n <ToolButton\n tip=\"File\"\n active={activeTool === \"file\"}\n onClick={() =>\n onToolChange(activeTool === \"file\" ? \"select\" : \"file\")\n }\n {...hoverProps(\"file\")}\n >\n <AttachmentIcon />\n </ToolButton>\n </ToolSurface>\n\n <StyledHint color=\"tertiary\" className={hint ? undefined : \"hint-hidden\"}>\n {hint ?? \" \"}\n </StyledHint>\n </StyledBottomDock>\n );\n};\n"],"mappings":";AAAA,OAAOA,KAAK,IAA6BC,QAAQ,QAAQ,OAAO;AAEhE,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SAASC,UAAU,QAAQ,6BAA6B;AACxD,SACEC,cAAc,EACdC,UAAU,EACVC,cAAc,EACdC,QAAQ,EACRC,cAAc,EACdC,UAAU,EACVC,WAAW,EACXC,eAAe,EACfC,oBAAoB,EACpBC,UAAU,EACVC,QAAQ,EACRC,QAAQ,EACRC,QAAQ,EACRC,YAAY,QACP,wBAAwB;AAC/B,SAASC,OAAO,QAAQ,0BAA0B;AAClD,SAASC,QAAQ,QAAQ,6BAA6B;;AAEtD;AACA;AACA;;AAEA;AACA,OAAO,MAAMC,WAAW,GAAGlB,MAAM,CAACmB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC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