diff --git a/src/actions/actionMenu.tsx b/src/actions/actionMenu.tsx index 6ae29e519..c56999d78 100644 --- a/src/actions/actionMenu.tsx +++ b/src/actions/actionMenu.tsx @@ -74,13 +74,13 @@ export const actionShortcuts = register({ return { appState: { ...appState, - showShortcutsDialog: true, + showHelpDialog: true, }, commitToHistory: false, }; }, PanelComponent: ({ updateData }) => ( - + ), keyTest: (event) => event.key === KEYS.QUESTION_MARK, }); diff --git a/src/actions/shortcuts.ts b/src/actions/shortcuts.ts index e2fcf595a..a12b30ac7 100644 --- a/src/actions/shortcuts.ts +++ b/src/actions/shortcuts.ts @@ -34,7 +34,7 @@ const shortcutMap: Record = { delete: [getShortcutKey("Del")], duplicateSelection: [ getShortcutKey("CtrlOrCmd+D"), - getShortcutKey(`Alt+${t("shortcutsDialog.drag")}`), + getShortcutKey(`Alt+${t("helpDialog.drag")}`), ], sendBackward: [getShortcutKey("CtrlOrCmd+[")], bringForward: [getShortcutKey("CtrlOrCmd+]")], diff --git a/src/appState.ts b/src/appState.ts index dd2aeb8a2..be3a87603 100644 --- a/src/appState.ts +++ b/src/appState.ts @@ -63,7 +63,7 @@ export const getDefaultAppState = (): Omit< selectionElement: null, shouldAddWatermark: false, shouldCacheIgnoreZoom: false, - showShortcutsDialog: false, + showHelpDialog: false, showStats: false, startBoundElement: null, suggestedBindings: [], @@ -142,7 +142,7 @@ const APP_STATE_STORAGE_CONF = (< selectionElement: { browser: false, export: false }, shouldAddWatermark: { browser: true, export: false }, shouldCacheIgnoreZoom: { browser: true, export: false }, - showShortcutsDialog: { browser: false, export: false }, + showHelpDialog: { browser: false, export: false }, showStats: { browser: true, export: false }, startBoundElement: { browser: false, export: false }, suggestedBindings: { browser: false, export: false }, diff --git a/src/components/Actions.tsx b/src/components/Actions.tsx index 177fd61c2..2798caccd 100644 --- a/src/components/Actions.tsx +++ b/src/components/Actions.tsx @@ -163,9 +163,9 @@ export const ShapesSwitcher = ({ {SHAPES.map(({ value, icon, key }, index) => { const label = t(`toolBar.${value}`); const letter = typeof key === "string" ? key : key[0]; - const shortcut = `${capitalizeString(letter)} ${t( - "shortcutsDialog.or", - )} ${index + 1}`; + const shortcut = `${capitalizeString(letter)} ${t("helpDialog.or")} ${ + index + 1 + }`; return ( { if (event.key === KEYS.QUESTION_MARK) { this.setState({ - showShortcutsDialog: true, + showHelpDialog: true, }); } diff --git a/src/components/Dialog.scss b/src/components/Dialog.scss index b694669b7..c00a90884 100644 --- a/src/components/Dialog.scss +++ b/src/components/Dialog.scss @@ -15,6 +15,7 @@ padding: calc(var(--space-factor) * 2); text-align: center; font-variant: small-caps; + font-size: 1.2em; } .Dialog__titleContent { diff --git a/src/components/Dialog.tsx b/src/components/Dialog.tsx index aa2ef7c01..217b625c4 100644 --- a/src/components/Dialog.tsx +++ b/src/components/Dialog.tsx @@ -80,7 +80,7 @@ export const Dialog = (props: { onCloseRequest={props.onCloseRequest} > -

+

{props.title} -

+
{props.children}
diff --git a/src/components/ShortcutsDialog.scss b/src/components/HelpDialog.scss similarity index 60% rename from src/components/ShortcutsDialog.scss rename to src/components/HelpDialog.scss index 6cb6898c3..88e1eb696 100644 --- a/src/components/ShortcutsDialog.scss +++ b/src/components/HelpDialog.scss @@ -1,23 +1,28 @@ @import "../css/_variables"; .excalidraw { - .ShortcutsDialog-island { + .HelpDialog h3 { + border-bottom: 1px solid var(--button-gray-2); + padding-bottom: 4px; + } + + .HelpDialog--island { border: 1px solid var(--button-gray-2); margin-bottom: 16px; } - .ShortcutsDialog-island-title { + .HelpDialog--island-title { margin: 0; padding: 4px; background-color: var(--button-gray-1); text-align: center; } - .ShorcutsDialog-shortcut { + .HelpDialog--shortcut { border-top: 1px solid var(--button-gray-2); } - .ShorcutsDialog-key { + .HelpDialog--key { word-break: keep-all; border: 1px solid var(--button-gray-2); padding: 2px 8px; @@ -32,12 +37,20 @@ font-family: inherit; } - .ShortcutsDialog-footer { + .HelpDialog--header { display: flex; flex-direction: row; justify-content: space-evenly; - border-top: 1px solid var(--button-gray-2); - margin-top: 8px; - padding-top: 16px; + margin-bottom: 32px; + padding-bottom: 16px; + } + + .HelpDialog--btn { + border: 1px solid var(--link-color); + padding: 8px 32px; + border-radius: 4px; + } + .HelpDialog--btn:hover { + text-decoration: none; } } diff --git a/src/components/HelpDialog.tsx b/src/components/HelpDialog.tsx new file mode 100644 index 000000000..fa72a2da5 --- /dev/null +++ b/src/components/HelpDialog.tsx @@ -0,0 +1,348 @@ +import React from "react"; +import { t } from "../i18n"; +import { isDarwin } from "../keys"; +import { Dialog } from "./Dialog"; +import { getShortcutKey } from "../utils"; +import "./HelpDialog.scss"; + +const Header = () => ( +
+ + {t("helpDialog.documentation")} + + + {t("helpDialog.blog")} + + + {t("helpDialog.github")} + +
+); + +const Section = (props: { title: string; children: React.ReactNode }) => ( + <> +

{props.title}

+ {props.children} + +); + +const Columns = (props: { children: React.ReactNode }) => ( +
+ {props.children} +
+); + +const Column = (props: { children: React.ReactNode }) => ( +
{props.children}
+); + +const ShortcutIsland = (props: { + caption: string; + children: React.ReactNode; +}) => ( +
+

{props.caption}

+ {props.children} +
+); + +const Shortcut = (props: { + label: string; + shortcuts: string[]; + isOr: boolean; +}) => { + return ( +
+
+
+ {props.label} +
+
+ {props.shortcuts.map((shortcut, index) => ( + + {shortcut} + {props.isOr && + index !== props.shortcuts.length - 1 && + t("helpDialog.or")} + + ))} +
+
+
+ ); +}; + +Shortcut.defaultProps = { + isOr: true, +}; + +const ShortcutKey = (props: { children: React.ReactNode }) => ( + +); + +export const HelpDialog = ({ onClose }: { onClose?: () => void }) => { + const handleClose = React.useCallback(() => { + if (onClose) { + onClose(); + } + }, [onClose]); + + return ( + <> + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + ); +}; diff --git a/src/components/HelpIcon.tsx b/src/components/HelpIcon.tsx index d114117be..8ec09d4e1 100644 --- a/src/components/HelpIcon.tsx +++ b/src/components/HelpIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; +import { questionCircle } from "../components/icons"; type HelpIconProps = { title?: string; @@ -7,19 +8,8 @@ type HelpIconProps = { onClick?(): void; }; -const ICON = ( - - - -); - export const HelpIcon = (props: HelpIconProps) => ( ); diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx index fbd5fdee0..d13a741d5 100644 --- a/src/components/LayerUI.tsx +++ b/src/components/LayerUI.tsx @@ -36,7 +36,7 @@ import { LockIcon } from "./LockIcon"; import { MobileMenu } from "./MobileMenu"; import { PasteChartDialog } from "./PasteChartDialog"; import { Section } from "./Section"; -import { ShortcutsDialog } from "./ShortcutsDialog"; +import { HelpDialog } from "./HelpDialog"; import Stack from "./Stack"; import { ToolButton } from "./ToolButton"; import { Tooltip } from "./Tooltip"; @@ -566,10 +566,8 @@ const LayerUI = ({ onClose={() => setAppState({ errorMessage: null })} /> )} - {appState.showShortcutsDialog && ( - setAppState({ showShortcutsDialog: false })} - /> + {appState.showHelpDialog && ( + setAppState({ showHelpDialog: false })} /> )} {appState.pasteDialog.shown && ( ( -
- {props.children} -
-); - -const Column = (props: { children: React.ReactNode }) => ( -
{props.children}
-); - -const ShortcutIsland = (props: { - caption: string; - children: React.ReactNode; -}) => ( -
-

{props.caption}

- {props.children} -
-); - -const Shortcut = (props: { - label: string; - shortcuts: string[]; - isOr: boolean; -}) => { - return ( -
-
-
- {props.label} -
-
- {props.shortcuts.map((shortcut, index) => ( - - {shortcut} - {props.isOr && - index !== props.shortcuts.length - 1 && - t("shortcutsDialog.or")} - - ))} -
-
-
- ); -}; - -Shortcut.defaultProps = { - isOr: true, -}; - -const ShortcutKey = (props: { children: React.ReactNode }) => ( - -); - -const Footer = () => ( - -); - -export const ShortcutsDialog = ({ onClose }: { onClose?: () => void }) => { - const handleClose = React.useCallback(() => { - if (onClose) { - onClose(); - } - }, [onClose]); - - return ( - <> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ); -}; diff --git a/src/css/styles.scss b/src/css/styles.scss index c2fcd527b..da616124e 100644 --- a/src/css/styles.scss +++ b/src/css/styles.scss @@ -13,7 +13,7 @@ a { font-weight: 500; text-decoration: none; - color: $oc-blue-7; /* OC Blue 7 */ + color: var(--link-color); &:hover { text-decoration: underline; @@ -431,6 +431,7 @@ cursor: pointer; fill: $oc-gray-6; bottom: 14px; + width: 1.5rem; :root[dir="ltr"] & { right: 14px; diff --git a/src/css/theme.scss b/src/css/theme.scss index 4de90d83d..ca88d8404 100644 --- a/src/css/theme.scss +++ b/src/css/theme.scss @@ -32,6 +32,7 @@ --popup-text-color: #{$oc-black}; --popup-text-inverted-color: #{$oc-white}; --dialog-border: #{$oc-gray-6}; + --link-color: #{$oc-blue-7}; } .excalidraw { diff --git a/src/locales/en.json b/src/locales/en.json index 23a642852..c4d06be61 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -199,24 +199,26 @@ "errorDialog": { "title": "Error" }, - "shortcutsDialog": { - "title": "Keyboard shortcuts", - "shapes": "Shapes", - "or": "or", + "helpDialog": { + "blog": "Read our blog", "click": "click", - "drag": "drag", "curvedArrow": "Curved arrow", "curvedLine": "Curved line", + "documentation": "Documentation", + "drag": "drag", "editor": "Editor", - "view": "View", - "blog": "Read our blog", - "howto": "Follow our guides", "github": "Found an issue? Submit", - "textNewLine": "Add new line (text)", + "howto": "Follow our guides", + "or": "or", + "preventBinding": "Prevent arrow binding", + "shapes": "Shapes", + "shortcuts": "Keyboard shortcuts", "textFinish": "Finish editing (text)", + "textNewLine": "Add new line (text)", + "title": "Help", + "view": "View", "zoomToFit": "Zoom to fit all elements", - "zoomToSelection": "Zoom to selection", - "preventBinding": "Prevent arrow binding" + "zoomToSelection": "Zoom to selection" }, "encrypted": { "tooltip": "Your drawings are end-to-end encrypted so Excalidraw's servers will never see them." diff --git a/src/tests/__snapshots__/regressionTests.test.tsx.snap b/src/tests/__snapshots__/regressionTests.test.tsx.snap index 12270bcb8..ce23cf2de 100644 --- a/src/tests/__snapshots__/regressionTests.test.tsx.snap +++ b/src/tests/__snapshots__/regressionTests.test.tsx.snap @@ -70,7 +70,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -536,7 +536,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -984,7 +984,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -1760,7 +1760,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -1967,7 +1967,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -2418,7 +2418,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -2666,7 +2666,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -2831,7 +2831,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -3303,7 +3303,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -3612,7 +3612,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -3816,7 +3816,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -4056,7 +4056,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -4307,7 +4307,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -4708,7 +4708,7 @@ Object { }, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -4979,7 +4979,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -5304,7 +5304,7 @@ Object { }, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -5488,7 +5488,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -5650,7 +5650,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -6108,7 +6108,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -6417,7 +6417,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -8454,7 +8454,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -8815,7 +8815,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -9066,7 +9066,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -9318,7 +9318,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -9626,7 +9626,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -9788,7 +9788,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -9950,7 +9950,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -10112,7 +10112,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -10304,7 +10304,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -10496,7 +10496,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -10688,7 +10688,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -10880,7 +10880,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -11042,7 +11042,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -11204,7 +11204,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -11396,7 +11396,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -11558,7 +11558,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -11761,7 +11761,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -12468,7 +12468,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -12715,7 +12715,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": true, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -12813,7 +12813,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -12913,7 +12913,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -13075,7 +13075,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -13381,7 +13381,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -13687,7 +13687,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -13847,7 +13847,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -14043,7 +14043,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -14296,7 +14296,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -14612,7 +14612,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -15449,7 +15449,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -15755,7 +15755,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -16065,7 +16065,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -16441,7 +16441,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -16612,7 +16612,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -16925,7 +16925,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -17165,7 +17165,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -17420,7 +17420,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -17735,7 +17735,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -17835,7 +17835,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -18008,7 +18008,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -18814,7 +18814,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -18916,7 +18916,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -19692,7 +19692,7 @@ Object { }, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -20093,7 +20093,7 @@ Object { }, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -20340,7 +20340,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": true, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -20440,7 +20440,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -20934,7 +20934,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], @@ -21032,7 +21032,7 @@ Object { "selectionElement": null, "shouldAddWatermark": false, "shouldCacheIgnoreZoom": false, - "showShortcutsDialog": false, + "showHelpDialog": false, "showStats": false, "startBoundElement": null, "suggestedBindings": Array [], diff --git a/src/types.ts b/src/types.ts index 24b2e8151..b94872def 100644 --- a/src/types.ts +++ b/src/types.ts @@ -81,7 +81,7 @@ export type AppState = { selectedElementIds: { [id: string]: boolean }; previousSelectedElementIds: { [id: string]: boolean }; shouldCacheIgnoreZoom: boolean; - showShortcutsDialog: boolean; + showHelpDialog: boolean; toastMessage: string | null; zenModeEnabled: boolean; appearance: "light" | "dark";