@activecollab/components 2.0.596 → 2.0.597
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/Accordion/AccordionItemBody.js +31 -3
- package/dist/cjs/components/Accordion/AccordionItemBody.js.map +1 -1
- package/dist/cjs/presentation/appsAndIntegrations/McpIntegration.js +308 -68
- package/dist/cjs/presentation/appsAndIntegrations/McpIntegration.js.map +1 -1
- package/dist/cjs/presentation/appsAndIntegrations/layout.js +89 -0
- package/dist/cjs/presentation/appsAndIntegrations/layout.js.map +1 -0
- package/dist/cjs/presentation/appsAndIntegrations/mcpData.js +36 -2
- package/dist/cjs/presentation/appsAndIntegrations/mcpData.js.map +1 -1
- package/dist/cjs/presentation/shared/index.js +7 -0
- package/dist/cjs/presentation/shared/index.js.map +1 -1
- package/dist/cjs/presentation/shared/selfHostedUpgrade.js +2 -2
- package/dist/cjs/presentation/shared/selfHostedUpgrade.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/keyboardShortcuts.js +212 -0
- package/dist/cjs/presentation/whiteboard/keyboardShortcuts.js.map +1 -0
- package/dist/cjs/presentation/whiteboard/outline.js +10 -4
- package/dist/cjs/presentation/whiteboard/outline.js.map +1 -1
- package/dist/cjs/presentation/whiteboardModern/toolDock.js +37 -16
- package/dist/cjs/presentation/whiteboardModern/toolDock.js.map +1 -1
- package/dist/esm/components/Accordion/AccordionItemBody.d.ts.map +1 -1
- package/dist/esm/components/Accordion/AccordionItemBody.js +21 -4
- package/dist/esm/components/Accordion/AccordionItemBody.js.map +1 -1
- package/dist/esm/presentation/appsAndIntegrations/McpIntegration.d.ts +5 -4
- package/dist/esm/presentation/appsAndIntegrations/McpIntegration.d.ts.map +1 -1
- package/dist/esm/presentation/appsAndIntegrations/McpIntegration.js +290 -67
- package/dist/esm/presentation/appsAndIntegrations/McpIntegration.js.map +1 -1
- package/dist/esm/presentation/appsAndIntegrations/layout.d.ts +32 -0
- package/dist/esm/presentation/appsAndIntegrations/layout.d.ts.map +1 -0
- package/dist/esm/presentation/appsAndIntegrations/layout.js +83 -0
- package/dist/esm/presentation/appsAndIntegrations/layout.js.map +1 -0
- package/dist/esm/presentation/appsAndIntegrations/mcpData.d.ts +15 -0
- package/dist/esm/presentation/appsAndIntegrations/mcpData.d.ts.map +1 -1
- package/dist/esm/presentation/appsAndIntegrations/mcpData.js +35 -1
- package/dist/esm/presentation/appsAndIntegrations/mcpData.js.map +1 -1
- package/dist/esm/presentation/shared/index.d.ts +1 -1
- package/dist/esm/presentation/shared/index.d.ts.map +1 -1
- package/dist/esm/presentation/shared/index.js +1 -1
- package/dist/esm/presentation/shared/index.js.map +1 -1
- package/dist/esm/presentation/shared/selfHostedUpgrade.d.ts +2 -0
- package/dist/esm/presentation/shared/selfHostedUpgrade.d.ts.map +1 -1
- package/dist/esm/presentation/shared/selfHostedUpgrade.js +1 -1
- package/dist/esm/presentation/shared/selfHostedUpgrade.js.map +1 -1
- package/dist/esm/presentation/whiteboard/keyboardShortcuts.d.ts +16 -0
- package/dist/esm/presentation/whiteboard/keyboardShortcuts.d.ts.map +1 -0
- package/dist/esm/presentation/whiteboard/keyboardShortcuts.js +198 -0
- package/dist/esm/presentation/whiteboard/keyboardShortcuts.js.map +1 -0
- package/dist/esm/presentation/whiteboard/outline.d.ts +5 -2
- package/dist/esm/presentation/whiteboard/outline.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboard/outline.js +10 -4
- package/dist/esm/presentation/whiteboard/outline.js.map +1 -1
- package/dist/esm/presentation/whiteboardModern/toolDock.d.ts +4 -0
- package/dist/esm/presentation/whiteboardModern/toolDock.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboardModern/toolDock.js +34 -15
- package/dist/esm/presentation/whiteboardModern/toolDock.js.map +1 -1
- package/dist/index.js +24 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
export type ShortcutPlatform = "mac" | "windows";
|
|
3
|
+
interface KeyboardShortcut {
|
|
4
|
+
label: string;
|
|
5
|
+
combos: string[][];
|
|
6
|
+
}
|
|
7
|
+
interface KeyboardShortcutGroup {
|
|
8
|
+
name: string;
|
|
9
|
+
shortcuts: KeyboardShortcut[];
|
|
10
|
+
}
|
|
11
|
+
export declare const KEYBOARD_SHORTCUT_GROUPS: KeyboardShortcutGroup[];
|
|
12
|
+
export declare const KeyboardShortcutsSection: ({ platform, }: {
|
|
13
|
+
platform?: ShortcutPlatform;
|
|
14
|
+
}) => ReactElement;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=keyboardShortcuts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboardShortcuts.d.ts","sourceRoot":"","sources":["../../../../src/presentation/whiteboard/keyboardShortcuts.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAO5C,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,SAAS,CAAC;AAIjD,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;CACpB;AAED,UAAU,qBAAqB;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,gBAAgB,EAAE,CAAC;CAC/B;AAID,eAAO,MAAM,wBAAwB,EAAE,qBAAqB,EA2E3D,CAAC;AA0DF,eAAO,MAAM,wBAAwB,GAAI,eAEtC;IACD,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B,KAAG,YA8BH,CAAC"}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
import { Body2, Caption1, Caption2 } from "../../components/Typography";
|
|
4
|
+
import { DOCK_TOOL_SHORTCUTS } from "../whiteboardModern/toolDock";
|
|
5
|
+
|
|
6
|
+
/* mirrors: no payload yet — a client-side keymap. Each combo is one array of
|
|
7
|
+
key caps; a second combo is an alternative (Redo: ⌘⇧Z or ⌘Y). */
|
|
8
|
+
|
|
9
|
+
const ARROWS = "↑↓←→";
|
|
10
|
+
export const KEYBOARD_SHORTCUT_GROUPS = [{
|
|
11
|
+
name: "Tools",
|
|
12
|
+
shortcuts: [...DOCK_TOOL_SHORTCUTS.map(_ref => {
|
|
13
|
+
let label = _ref.label,
|
|
14
|
+
keys = _ref.keys;
|
|
15
|
+
return {
|
|
16
|
+
label,
|
|
17
|
+
combos: [keys]
|
|
18
|
+
};
|
|
19
|
+
}), {
|
|
20
|
+
label: "Project card",
|
|
21
|
+
combos: [["⇧", "E"]]
|
|
22
|
+
}, {
|
|
23
|
+
label: "Pan (hold)",
|
|
24
|
+
combos: [["Space"]]
|
|
25
|
+
}]
|
|
26
|
+
}, {
|
|
27
|
+
name: "Edit",
|
|
28
|
+
shortcuts: [{
|
|
29
|
+
label: "Copy",
|
|
30
|
+
combos: [["⌘", "C"]]
|
|
31
|
+
}, {
|
|
32
|
+
label: "Cut",
|
|
33
|
+
combos: [["⌘", "X"]]
|
|
34
|
+
}, {
|
|
35
|
+
label: "Paste",
|
|
36
|
+
combos: [["⌘", "V"]]
|
|
37
|
+
}, {
|
|
38
|
+
label: "Duplicate",
|
|
39
|
+
combos: [["⌘", "D"]]
|
|
40
|
+
}, {
|
|
41
|
+
label: "Undo",
|
|
42
|
+
combos: [["⌘", "Z"]]
|
|
43
|
+
}, {
|
|
44
|
+
label: "Redo",
|
|
45
|
+
combos: [["⌘", "⇧", "Z"], ["⌘", "Y"]]
|
|
46
|
+
}, {
|
|
47
|
+
label: "Select all",
|
|
48
|
+
combos: [["⌘", "A"]]
|
|
49
|
+
}, {
|
|
50
|
+
label: "Delete",
|
|
51
|
+
combos: [["⌫"]]
|
|
52
|
+
}, {
|
|
53
|
+
label: "Edit selected",
|
|
54
|
+
combos: [["Enter"]]
|
|
55
|
+
}, {
|
|
56
|
+
label: "Clear selection",
|
|
57
|
+
combos: [["Esc"]]
|
|
58
|
+
}, {
|
|
59
|
+
label: "Copy style",
|
|
60
|
+
combos: [["⌘", "⌥", "C"]]
|
|
61
|
+
}, {
|
|
62
|
+
label: "Paste style",
|
|
63
|
+
combos: [["⌘", "⌥", "V"]]
|
|
64
|
+
}]
|
|
65
|
+
}, {
|
|
66
|
+
name: "Arrange",
|
|
67
|
+
shortcuts: [{
|
|
68
|
+
label: "Group",
|
|
69
|
+
combos: [["⌘", "G"]]
|
|
70
|
+
}, {
|
|
71
|
+
label: "Ungroup",
|
|
72
|
+
combos: [["⌘", "⇧", "G"]]
|
|
73
|
+
}, {
|
|
74
|
+
label: "Forward",
|
|
75
|
+
combos: [["⌘", "]"]]
|
|
76
|
+
}, {
|
|
77
|
+
label: "Backward",
|
|
78
|
+
combos: [["⌘", "["]]
|
|
79
|
+
}, {
|
|
80
|
+
label: "Bring to front",
|
|
81
|
+
combos: [["⌘", "⌥", "]"]]
|
|
82
|
+
}, {
|
|
83
|
+
label: "Send to back",
|
|
84
|
+
combos: [["⌘", "⌥", "["]]
|
|
85
|
+
}, {
|
|
86
|
+
label: "Lock",
|
|
87
|
+
combos: [["⌘", "⇧", "L"]]
|
|
88
|
+
}, {
|
|
89
|
+
label: "Move 1px",
|
|
90
|
+
combos: [[ARROWS]]
|
|
91
|
+
}, {
|
|
92
|
+
label: "Move 10px",
|
|
93
|
+
combos: [["⇧", ARROWS]]
|
|
94
|
+
}, {
|
|
95
|
+
label: "Next / previous element",
|
|
96
|
+
combos: [["Tab"], ["⇧", "Tab"]]
|
|
97
|
+
}]
|
|
98
|
+
}, {
|
|
99
|
+
name: "View",
|
|
100
|
+
shortcuts: [{
|
|
101
|
+
label: "Zoom in",
|
|
102
|
+
combos: [["⌘", "="]]
|
|
103
|
+
}, {
|
|
104
|
+
label: "Zoom out",
|
|
105
|
+
combos: [["⌘", "-"]]
|
|
106
|
+
}, {
|
|
107
|
+
label: "Zoom to 100%",
|
|
108
|
+
combos: [["⌘", "0"]]
|
|
109
|
+
}, {
|
|
110
|
+
label: "Zoom to fit",
|
|
111
|
+
combos: [["⇧", "1"]]
|
|
112
|
+
}, {
|
|
113
|
+
label: "Zoom to selection",
|
|
114
|
+
combos: [["⇧", "2"]]
|
|
115
|
+
}, {
|
|
116
|
+
label: "Toggle sidebar",
|
|
117
|
+
combos: [["⌘", "\\"]]
|
|
118
|
+
}, {
|
|
119
|
+
label: "Toggle inspector",
|
|
120
|
+
combos: [["⌘", "."]]
|
|
121
|
+
}, {
|
|
122
|
+
label: "Export",
|
|
123
|
+
combos: [["⌘", "⇧", "E"]]
|
|
124
|
+
}, {
|
|
125
|
+
label: "Quick Search",
|
|
126
|
+
combos: [["⌘", "K"]]
|
|
127
|
+
}]
|
|
128
|
+
}, {
|
|
129
|
+
name: "While dragging",
|
|
130
|
+
shortcuts: [{
|
|
131
|
+
label: "Lock axis (move)",
|
|
132
|
+
combos: [["⇧"]]
|
|
133
|
+
}, {
|
|
134
|
+
label: "Keep proportions (resize, draw shapes)",
|
|
135
|
+
combos: [["⇧"]]
|
|
136
|
+
}, {
|
|
137
|
+
label: "15° steps (rotate)",
|
|
138
|
+
combos: [["⇧"]]
|
|
139
|
+
}, {
|
|
140
|
+
label: "45° steps (draw line)",
|
|
141
|
+
combos: [["⇧"]]
|
|
142
|
+
}, {
|
|
143
|
+
label: "From center (resize, draw)",
|
|
144
|
+
combos: [["⌥"]]
|
|
145
|
+
}, {
|
|
146
|
+
label: "Suspend snapping",
|
|
147
|
+
combos: [["⌘"]]
|
|
148
|
+
}]
|
|
149
|
+
}];
|
|
150
|
+
const WINDOWS_KEYS = {
|
|
151
|
+
"⌘": "Ctrl",
|
|
152
|
+
"⌥": "Alt",
|
|
153
|
+
"⇧": "Shift",
|
|
154
|
+
"⌫": "Backspace"
|
|
155
|
+
};
|
|
156
|
+
const keyLabel = (key, platform) => {
|
|
157
|
+
var _WINDOWS_KEYS$key;
|
|
158
|
+
return platform === "windows" ? (_WINDOWS_KEYS$key = WINDOWS_KEYS[key]) != null ? _WINDOWS_KEYS$key : key : key;
|
|
159
|
+
};
|
|
160
|
+
const StyledShortcuts = styled.section.withConfig({
|
|
161
|
+
displayName: "keyboardShortcuts__StyledShortcuts",
|
|
162
|
+
componentId: "sc-516go9-0"
|
|
163
|
+
})(["display:flex;flex-direction:column;gap:16px;padding-top:16px;border-top:1px solid var(--border-primary);.shortcut-group{display:flex;flex-direction:column;gap:4px;}.shortcut-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:24px;}.shortcut-keys{display:inline-flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px;}"]);
|
|
164
|
+
|
|
165
|
+
/* ds-exception: the only DS key cap is Capsule's StyledKeyCap, which is not
|
|
166
|
+
exported and is styled for the dark tooltip (white text on a white tint). A
|
|
167
|
+
light-surface key cap is a Design System task; until then, this one. */
|
|
168
|
+
const StyledKeyCap = styled.span.withConfig({
|
|
169
|
+
displayName: "keyboardShortcuts__StyledKeyCap",
|
|
170
|
+
componentId: "sc-516go9-1"
|
|
171
|
+
})(["display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;box-sizing:border-box;border:1px solid var(--border-primary);border-radius:4px;background-color:var(--color-theme-200);"]);
|
|
172
|
+
export const KeyboardShortcutsSection = _ref2 => {
|
|
173
|
+
let _ref2$platform = _ref2.platform,
|
|
174
|
+
platform = _ref2$platform === void 0 ? "mac" : _ref2$platform;
|
|
175
|
+
return /*#__PURE__*/React.createElement(StyledShortcuts, {
|
|
176
|
+
"aria-label": "Keyboard Shortcuts"
|
|
177
|
+
}, /*#__PURE__*/React.createElement(Body2, {
|
|
178
|
+
weight: "bold"
|
|
179
|
+
}, "Keyboard Shortcuts"), KEYBOARD_SHORTCUT_GROUPS.map(group => /*#__PURE__*/React.createElement("div", {
|
|
180
|
+
className: "shortcut-group",
|
|
181
|
+
key: group.name
|
|
182
|
+
}, /*#__PURE__*/React.createElement(Caption1, {
|
|
183
|
+
color: "secondary",
|
|
184
|
+
weight: "bold"
|
|
185
|
+
}, group.name), group.shortcuts.map(shortcut => /*#__PURE__*/React.createElement("div", {
|
|
186
|
+
className: "shortcut-row",
|
|
187
|
+
key: shortcut.label
|
|
188
|
+
}, /*#__PURE__*/React.createElement(Caption1, null, shortcut.label), /*#__PURE__*/React.createElement("span", {
|
|
189
|
+
className: "shortcut-keys"
|
|
190
|
+
}, shortcut.combos.map((combo, comboIndex) => /*#__PURE__*/React.createElement(React.Fragment, {
|
|
191
|
+
key: combo.join("+")
|
|
192
|
+
}, comboIndex > 0 ? /*#__PURE__*/React.createElement(Caption2, {
|
|
193
|
+
color: "tertiary"
|
|
194
|
+
}, "or") : null, combo.map(key => /*#__PURE__*/React.createElement(StyledKeyCap, {
|
|
195
|
+
key: key
|
|
196
|
+
}, /*#__PURE__*/React.createElement(Caption2, null, keyLabel(key, platform))))))))))));
|
|
197
|
+
};
|
|
198
|
+
//# sourceMappingURL=keyboardShortcuts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboardShortcuts.js","names":["React","styled","Body2","Caption1","Caption2","DOCK_TOOL_SHORTCUTS","ARROWS","KEYBOARD_SHORTCUT_GROUPS","name","shortcuts","map","_ref","label","keys","combos","WINDOWS_KEYS","keyLabel","key","platform","_WINDOWS_KEYS$key","StyledShortcuts","section","withConfig","displayName","componentId","StyledKeyCap","span","KeyboardShortcutsSection","_ref2","_ref2$platform","createElement","weight","group","className","color","shortcut","combo","comboIndex","Fragment","join"],"sources":["../../../../src/presentation/whiteboard/keyboardShortcuts.tsx"],"sourcesContent":["import React, { ReactElement } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { Body2, Caption1, Caption2 } from \"../../components/Typography\";\nimport { DOCK_TOOL_SHORTCUTS } from \"../whiteboardModern/toolDock\";\n\nexport type ShortcutPlatform = \"mac\" | \"windows\";\n\n/* mirrors: no payload yet — a client-side keymap. Each combo is one array of\n key caps; a second combo is an alternative (Redo: ⌘⇧Z or ⌘Y). */\ninterface KeyboardShortcut {\n label: string;\n combos: string[][];\n}\n\ninterface KeyboardShortcutGroup {\n name: string;\n shortcuts: KeyboardShortcut[];\n}\n\nconst ARROWS = \"↑↓←→\";\n\nexport const KEYBOARD_SHORTCUT_GROUPS: KeyboardShortcutGroup[] = [\n {\n name: \"Tools\",\n shortcuts: [\n ...DOCK_TOOL_SHORTCUTS.map(({ label, keys }) => ({\n label,\n combos: [keys],\n })),\n { label: \"Project card\", combos: [[\"⇧\", \"E\"]] },\n { label: \"Pan (hold)\", combos: [[\"Space\"]] },\n ],\n },\n {\n name: \"Edit\",\n shortcuts: [\n { label: \"Copy\", combos: [[\"⌘\", \"C\"]] },\n { label: \"Cut\", combos: [[\"⌘\", \"X\"]] },\n { label: \"Paste\", combos: [[\"⌘\", \"V\"]] },\n { label: \"Duplicate\", combos: [[\"⌘\", \"D\"]] },\n { label: \"Undo\", combos: [[\"⌘\", \"Z\"]] },\n {\n label: \"Redo\",\n combos: [\n [\"⌘\", \"⇧\", \"Z\"],\n [\"⌘\", \"Y\"],\n ],\n },\n { label: \"Select all\", combos: [[\"⌘\", \"A\"]] },\n { label: \"Delete\", combos: [[\"⌫\"]] },\n { label: \"Edit selected\", combos: [[\"Enter\"]] },\n { label: \"Clear selection\", combos: [[\"Esc\"]] },\n { label: \"Copy style\", combos: [[\"⌘\", \"⌥\", \"C\"]] },\n { label: \"Paste style\", combos: [[\"⌘\", \"⌥\", \"V\"]] },\n ],\n },\n {\n name: \"Arrange\",\n shortcuts: [\n { label: \"Group\", combos: [[\"⌘\", \"G\"]] },\n { label: \"Ungroup\", combos: [[\"⌘\", \"⇧\", \"G\"]] },\n { label: \"Forward\", combos: [[\"⌘\", \"]\"]] },\n { label: \"Backward\", combos: [[\"⌘\", \"[\"]] },\n { label: \"Bring to front\", combos: [[\"⌘\", \"⌥\", \"]\"]] },\n { label: \"Send to back\", combos: [[\"⌘\", \"⌥\", \"[\"]] },\n { label: \"Lock\", combos: [[\"⌘\", \"⇧\", \"L\"]] },\n { label: \"Move 1px\", combos: [[ARROWS]] },\n { label: \"Move 10px\", combos: [[\"⇧\", ARROWS]] },\n { label: \"Next / previous element\", combos: [[\"Tab\"], [\"⇧\", \"Tab\"]] },\n ],\n },\n {\n name: \"View\",\n shortcuts: [\n { label: \"Zoom in\", combos: [[\"⌘\", \"=\"]] },\n { label: \"Zoom out\", combos: [[\"⌘\", \"-\"]] },\n { label: \"Zoom to 100%\", combos: [[\"⌘\", \"0\"]] },\n { label: \"Zoom to fit\", combos: [[\"⇧\", \"1\"]] },\n { label: \"Zoom to selection\", combos: [[\"⇧\", \"2\"]] },\n { label: \"Toggle sidebar\", combos: [[\"⌘\", \"\\\\\"]] },\n { label: \"Toggle inspector\", combos: [[\"⌘\", \".\"]] },\n { label: \"Export\", combos: [[\"⌘\", \"⇧\", \"E\"]] },\n { label: \"Quick Search\", combos: [[\"⌘\", \"K\"]] },\n ],\n },\n {\n name: \"While dragging\",\n shortcuts: [\n { label: \"Lock axis (move)\", combos: [[\"⇧\"]] },\n { label: \"Keep proportions (resize, draw shapes)\", combos: [[\"⇧\"]] },\n { label: \"15° steps (rotate)\", combos: [[\"⇧\"]] },\n { label: \"45° steps (draw line)\", combos: [[\"⇧\"]] },\n { label: \"From center (resize, draw)\", combos: [[\"⌥\"]] },\n { label: \"Suspend snapping\", combos: [[\"⌘\"]] },\n ],\n },\n];\n\nconst WINDOWS_KEYS: Record<string, string> = {\n \"⌘\": \"Ctrl\",\n \"⌥\": \"Alt\",\n \"⇧\": \"Shift\",\n \"⌫\": \"Backspace\",\n};\n\nconst keyLabel = (key: string, platform: ShortcutPlatform): string =>\n platform === \"windows\" ? WINDOWS_KEYS[key] ?? key : key;\n\nconst StyledShortcuts = styled.section`\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding-top: 16px;\n border-top: 1px solid var(--border-primary);\n\n .shortcut-group {\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n\n .shortcut-row {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n gap: 12px;\n min-height: 24px;\n }\n\n .shortcut-keys {\n display: inline-flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n align-items: center;\n gap: 4px;\n }\n`;\n\n/* ds-exception: the only DS key cap is Capsule's StyledKeyCap, which is not\n exported and is styled for the dark tooltip (white text on a white tint). A\n light-surface key cap is a Design System task; until then, this one. */\nconst StyledKeyCap = styled.span`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 20px;\n height: 20px;\n padding: 0 4px;\n box-sizing: border-box;\n border: 1px solid var(--border-primary);\n border-radius: 4px;\n background-color: var(--color-theme-200);\n`;\n\nexport const KeyboardShortcutsSection = ({\n platform = \"mac\",\n}: {\n platform?: ShortcutPlatform;\n}): ReactElement => (\n <StyledShortcuts aria-label=\"Keyboard Shortcuts\">\n <Body2 weight=\"bold\">Keyboard Shortcuts</Body2>\n {KEYBOARD_SHORTCUT_GROUPS.map((group) => (\n <div className=\"shortcut-group\" key={group.name}>\n <Caption1 color=\"secondary\" weight=\"bold\">\n {group.name}\n </Caption1>\n {group.shortcuts.map((shortcut) => (\n <div className=\"shortcut-row\" key={shortcut.label}>\n <Caption1>{shortcut.label}</Caption1>\n <span className=\"shortcut-keys\">\n {shortcut.combos.map((combo, comboIndex) => (\n <React.Fragment key={combo.join(\"+\")}>\n {comboIndex > 0 ? (\n <Caption2 color=\"tertiary\">or</Caption2>\n ) : null}\n {combo.map((key) => (\n <StyledKeyCap key={key}>\n <Caption2>{keyLabel(key, platform)}</Caption2>\n </StyledKeyCap>\n ))}\n </React.Fragment>\n ))}\n </span>\n </div>\n ))}\n </div>\n ))}\n </StyledShortcuts>\n);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAwB,OAAO;AAE3C,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SAASC,KAAK,EAAEC,QAAQ,EAAEC,QAAQ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AE,GAClCF,UAAU,GAAG,CAAC,gBACbrC,KAAA,CAAA8B,aAAA,CAAC1B,QAAQ;IAAC8B,KAAK,EAAC;EAAU,GAAC,IAAY,CAAC,GACtC,IAAI,EACPE,KAAK,CAAC1B,GAAG,CAAEO,GAAG,iBACbjB,KAAA,CAAA8B,aAAA,CAACL,YAAY;IAACR,GAAG,EAAEA;EAAI,gBACrBjB,KAAA,CAAA8B,aAAA,CAAC1B,QAAQ,QAAEY,QAAQ,CAACC,GAAG,EAAEC,QAAQ,CAAY,CACjC,CACf,CACa,CACjB,CACG,CACH,CACN,CACE,CACN,CACc,CAAC;AAAA,CACnB","ignoreList":[]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ReactElement } from "react";
|
|
2
|
+
import { ShortcutPlatform } from "./keyboardShortcuts";
|
|
2
3
|
import { ProjectElementDef } from "./projectElements";
|
|
3
4
|
export type OutlineElementType = "circle" | "roundedRectangle" | "triangle" | "postit" | "text" | "freehand" | "link" | "file" | "task" | "project" | "person" | "line" | "connector";
|
|
4
5
|
export type OutlineIcon = React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
@@ -88,8 +89,9 @@ export declare const StyledSidebarHeader: import("styled-components").StyledComp
|
|
|
88
89
|
export declare const StyledChooseRow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
89
90
|
export declare const StyledPanelChooseSlot: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
90
91
|
export declare const StyledInfoPanel: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
91
|
-
export declare const InfoPanelContent: ({ boardName, }: {
|
|
92
|
+
export declare const InfoPanelContent: ({ boardName, shortcutPlatform, }: {
|
|
92
93
|
boardName: string;
|
|
94
|
+
shortcutPlatform?: ShortcutPlatform;
|
|
93
95
|
}) => ReactElement;
|
|
94
96
|
export declare const StyledNewGroupRow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
95
97
|
export interface LeftSidebarProps {
|
|
@@ -106,6 +108,7 @@ export interface LeftSidebarProps {
|
|
|
106
108
|
onToggleElementLock: (id: string) => void;
|
|
107
109
|
extraRows?: OutlineElement[];
|
|
108
110
|
onRenameExtraRow?: (id: string, name: string) => void;
|
|
111
|
+
shortcutPlatform?: ShortcutPlatform;
|
|
109
112
|
}
|
|
110
|
-
export declare const LeftSidebar: ({ selectedId, onSelect, activePanel, onPanelChange, sidebarOpen, onToggleSidebar, boardName, onRenameBoard, projectElements, locks, onToggleElementLock, extraRows, onRenameExtraRow, }: LeftSidebarProps) => ReactElement;
|
|
113
|
+
export declare const LeftSidebar: ({ selectedId, onSelect, activePanel, onPanelChange, sidebarOpen, onToggleSidebar, boardName, onRenameBoard, projectElements, locks, onToggleElementLock, extraRows, onRenameExtraRow, shortcutPlatform, }: LeftSidebarProps) => ReactElement;
|
|
111
114
|
//# sourceMappingURL=outline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outline.d.ts","sourceRoot":"","sources":["../../../../src/presentation/whiteboard/outline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAyB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"outline.d.ts","sourceRoot":"","sources":["../../../../src/presentation/whiteboard/outline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAyB,MAAM,OAAO,CAAC;AAKnE,OAAO,EAEL,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAEL,iBAAiB,EAElB,MAAM,mBAAmB,CAAC;AA0F3B,MAAM,MAAM,kBAAkB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,UAAU,GACV,QAAQ,GACR,MAAM,GACN,UAAU,GACV,MAAM,GACN,MAAM,GAGN,MAAM,GACN,SAAS,GACT,QAAQ,GACR,MAAM,GACN,WAAW,CAAC;AAIhB,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ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KAAK,IAAI,CAAC;IACtD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC;AAED,eAAO,MAAM,WAAW,GAAI,2MAezB,gBAAgB,KAAG,YA0drB,CAAC"}
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import React, { useCallback, useState } from "react";
|
|
3
3
|
import styled, { createGlobalStyle } from "styled-components";
|
|
4
4
|
import { SELECTION_BLUE } from "./elements";
|
|
5
|
+
import { KeyboardShortcutsSection } from "./keyboardShortcuts";
|
|
5
6
|
import { WhiteboardPeopleMenu } from "./peopleMenu";
|
|
6
7
|
import { LIMITED_ACCESS_LABEL, projectElementTitle } from "./projectElements";
|
|
7
8
|
import { Button } from "../../components/Button";
|
|
@@ -565,7 +566,8 @@ export const StyledInfoPanel = styled.div.withConfig({
|
|
|
565
566
|
/* Mock only — the Info panel's content is a placeholder while the two-panel dock
|
|
566
567
|
is explored; the fields here are not the point. */
|
|
567
568
|
export const InfoPanelContent = _ref5 => {
|
|
568
|
-
let boardName = _ref5.boardName
|
|
569
|
+
let boardName = _ref5.boardName,
|
|
570
|
+
shortcutPlatform = _ref5.shortcutPlatform;
|
|
569
571
|
return /*#__PURE__*/React.createElement(StyledInfoPanel, null, /*#__PURE__*/React.createElement(Header3, {
|
|
570
572
|
color: "primary"
|
|
571
573
|
}, boardName), /*#__PURE__*/React.createElement("div", {
|
|
@@ -581,7 +583,9 @@ export const InfoPanelContent = _ref5 => {
|
|
|
581
583
|
}, label), /*#__PURE__*/React.createElement(Body2, {
|
|
582
584
|
weight: "medium"
|
|
583
585
|
}, value));
|
|
584
|
-
}))
|
|
586
|
+
})), /*#__PURE__*/React.createElement(KeyboardShortcutsSection, {
|
|
587
|
+
platform: shortcutPlatform
|
|
588
|
+
}));
|
|
585
589
|
};
|
|
586
590
|
|
|
587
591
|
/* Centered text button below the group list — same text-gray treatment as the
|
|
@@ -605,7 +609,8 @@ export const LeftSidebar = _ref7 => {
|
|
|
605
609
|
onToggleElementLock = _ref7.onToggleElementLock,
|
|
606
610
|
_ref7$extraRows = _ref7.extraRows,
|
|
607
611
|
extraRows = _ref7$extraRows === void 0 ? [] : _ref7$extraRows,
|
|
608
|
-
onRenameExtraRow = _ref7.onRenameExtraRow
|
|
612
|
+
onRenameExtraRow = _ref7.onRenameExtraRow,
|
|
613
|
+
shortcutPlatform = _ref7.shortcutPlatform;
|
|
609
614
|
const _useState6 = useState(OUTLINE_WIDTH),
|
|
610
615
|
width = _useState6[0],
|
|
611
616
|
setWidth = _useState6[1];
|
|
@@ -883,7 +888,8 @@ export const LeftSidebar = _ref7 => {
|
|
|
883
888
|
selected: [activePanel],
|
|
884
889
|
onChange: selected => onPanelChange(selected[0])
|
|
885
890
|
}))), activePanel === "info" ? /*#__PURE__*/React.createElement(InfoPanelContent, {
|
|
886
|
-
boardName: boardName
|
|
891
|
+
boardName: boardName,
|
|
892
|
+
shortcutPlatform: shortcutPlatform
|
|
887
893
|
}) : null, activePanel === "outline" ? /*#__PURE__*/React.createElement(StyledOutlineBody, null, /*#__PURE__*/React.createElement(StyledOutlineGroupRow, {
|
|
888
894
|
className: (dropSpot == null ? void 0 : dropSpot.kind) === "into" && dropSpot.id === UNGROUPED ? "drop-into" : "",
|
|
889
895
|
onClick: () => toggleCollapsed(UNGROUPED),
|