@hellixit/hellixitboard 0.1.1 → 0.1.3

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 (99) hide show
  1. package/README.md +11 -53
  2. package/dist/prod/{chunk-QHHZVMH3.js → chunk-FWD6V37R.js} +3 -3
  3. package/dist/prod/chunk-LMRTGTGG.js +4 -0
  4. package/dist/prod/chunk-RB2IDBVE.js +7 -0
  5. package/dist/prod/components/TTDDialog/{CodeMirrorEditor-MJK6LQ6P.js → CodeMirrorEditor-ERTLCS7Z.js} +1 -1
  6. package/dist/prod/data/image-UDSDQWVP.js +1 -0
  7. package/dist/prod/fonts/DancingScript/DancingScript-Regular-Latin.woff2 +0 -0
  8. package/dist/prod/fonts/DancingScript/DancingScript-Regular-LatinExt.woff2 +0 -0
  9. package/dist/prod/fonts/DancingScript/DancingScript-Regular-Vietnamese.woff2 +0 -0
  10. package/dist/prod/fonts/Lobster/Lobster-Regular-Cyrillic.woff2 +0 -0
  11. package/dist/prod/fonts/Lobster/Lobster-Regular-CyrillicExt.woff2 +0 -0
  12. package/dist/prod/fonts/Lobster/Lobster-Regular-Latin.woff2 +0 -0
  13. package/dist/prod/fonts/Lobster/Lobster-Regular-LatinExt.woff2 +0 -0
  14. package/dist/prod/fonts/Lobster/Lobster-Regular-Vietnamese.woff2 +0 -0
  15. package/dist/prod/fonts/Merriweather/Merriweather-Regular-Cyrillic.woff2 +0 -0
  16. package/dist/prod/fonts/Merriweather/Merriweather-Regular-CyrillicExt.woff2 +0 -0
  17. package/dist/prod/fonts/Merriweather/Merriweather-Regular-Latin.woff2 +0 -0
  18. package/dist/prod/fonts/Merriweather/Merriweather-Regular-LatinExt.woff2 +0 -0
  19. package/dist/prod/fonts/Merriweather/Merriweather-Regular-Vietnamese.woff2 +0 -0
  20. package/dist/prod/fonts/Pacifico/Pacifico-Regular-Cyrillic.woff2 +0 -0
  21. package/dist/prod/fonts/Pacifico/Pacifico-Regular-CyrillicExt.woff2 +0 -0
  22. package/dist/prod/fonts/Pacifico/Pacifico-Regular-Latin.woff2 +0 -0
  23. package/dist/prod/fonts/Pacifico/Pacifico-Regular-LatinExt.woff2 +0 -0
  24. package/dist/prod/fonts/Pacifico/Pacifico-Regular-Vietnamese.woff2 +0 -0
  25. package/dist/prod/fonts/PlayfairDisplay/PlayfairDisplay-Regular-Cyrillic.woff2 +0 -0
  26. package/dist/prod/fonts/PlayfairDisplay/PlayfairDisplay-Regular-Latin.woff2 +0 -0
  27. package/dist/prod/fonts/PlayfairDisplay/PlayfairDisplay-Regular-LatinExt.woff2 +0 -0
  28. package/dist/prod/fonts/PlayfairDisplay/PlayfairDisplay-Regular-Vietnamese.woff2 +0 -0
  29. package/dist/prod/fonts/Righteous/Righteous-Regular-Latin.woff2 +0 -0
  30. package/dist/prod/fonts/Righteous/Righteous-Regular-LatinExt.woff2 +0 -0
  31. package/dist/prod/index.css +1 -1
  32. package/dist/prod/index.js +27 -27
  33. package/dist/prod/locales/en-SLCFPWUZ.js +1 -0
  34. package/dist/prod/subset-shared.chunk.js +1 -1
  35. package/dist/prod/subset-worker.chunk.js +1 -1
  36. package/dist/types/common/src/constants.d.ts +10 -4
  37. package/dist/types/common/src/keys.d.ts +2 -0
  38. package/dist/types/element/src/renderElement.d.ts +1 -0
  39. package/dist/types/hellixitboard/actions/actionAddToLibrary.d.ts +6 -0
  40. package/dist/types/hellixitboard/actions/actionBoundText.d.ts +4 -0
  41. package/dist/types/hellixitboard/actions/actionCanvas.d.ts +24 -0
  42. package/dist/types/hellixitboard/actions/actionClipboard.d.ts +4 -0
  43. package/dist/types/hellixitboard/actions/actionCropEditor.d.ts +2 -0
  44. package/dist/types/hellixitboard/actions/actionDeleteSelected.d.ts +6 -0
  45. package/dist/types/hellixitboard/actions/actionElementLink.d.ts +2 -0
  46. package/dist/types/hellixitboard/actions/actionElementLock.d.ts +4 -0
  47. package/dist/types/hellixitboard/actions/actionEmbeddable.d.ts +2 -0
  48. package/dist/types/hellixitboard/actions/actionExport.d.ts +4 -0
  49. package/dist/types/hellixitboard/actions/actionFrame.d.ts +8 -0
  50. package/dist/types/hellixitboard/actions/actionGroup.d.ts +4 -0
  51. package/dist/types/hellixitboard/actions/actionLinearEditor.d.ts +2 -0
  52. package/dist/types/hellixitboard/actions/actionLink.d.ts +2 -0
  53. package/dist/types/hellixitboard/actions/actionMenu.d.ts +2 -0
  54. package/dist/types/hellixitboard/actions/actionPresentation.d.ts +336 -0
  55. package/dist/types/hellixitboard/actions/actionProperties.d.ts +4 -0
  56. package/dist/types/hellixitboard/actions/actionSelectAll.d.ts +2 -0
  57. package/dist/types/hellixitboard/actions/actionStackToScale.d.ts +173 -0
  58. package/dist/types/hellixitboard/actions/actionStyles.d.ts +2 -0
  59. package/dist/types/hellixitboard/actions/actionToggleArrowBinding.d.ts +2 -0
  60. package/dist/types/hellixitboard/actions/actionToggleGridMode.d.ts +2 -0
  61. package/dist/types/hellixitboard/actions/actionToggleMidpointSnapping.d.ts +2 -0
  62. package/dist/types/hellixitboard/actions/actionToggleObjectsSnapMode.d.ts +2 -0
  63. package/dist/types/hellixitboard/actions/actionToggleSearchMenu.d.ts +2 -0
  64. package/dist/types/hellixitboard/actions/actionToggleStats.d.ts +2 -0
  65. package/dist/types/hellixitboard/actions/actionToggleViewMode.d.ts +2 -0
  66. package/dist/types/hellixitboard/actions/actionToggleZenMode.d.ts +2 -0
  67. package/dist/types/hellixitboard/actions/index.d.ts +2 -0
  68. package/dist/types/hellixitboard/actions/types.d.ts +1 -1
  69. package/dist/types/hellixitboard/components/Actions.d.ts +2 -1
  70. package/dist/types/hellixitboard/components/App.d.ts +1 -1
  71. package/dist/types/hellixitboard/components/FontPicker/FontPicker.d.ts +2 -7
  72. package/dist/types/hellixitboard/components/FontPicker/fontPickerConstants.d.ts +6 -0
  73. package/dist/types/hellixitboard/components/ImageExportDialog.d.ts +4 -1
  74. package/dist/types/hellixitboard/components/PresentationOverlay.d.ts +10 -0
  75. package/dist/types/hellixitboard/components/dropdownMenu/dropdownMenuUtils.d.ts +4 -4
  76. package/dist/types/hellixitboard/components/footer/Footer.d.ts +2 -1
  77. package/dist/types/hellixitboard/data/blob.d.ts +5 -1
  78. package/dist/types/hellixitboard/data/json.d.ts +2 -0
  79. package/dist/types/hellixitboard/data/library.d.ts +1 -1
  80. package/dist/types/hellixitboard/fonts/DancingScript/index.d.ts +2 -0
  81. package/dist/types/hellixitboard/fonts/{Excalifont → Hellixfont}/index.d.ts +1 -1
  82. package/dist/types/hellixitboard/fonts/Lobster/index.d.ts +2 -0
  83. package/dist/types/hellixitboard/fonts/Merriweather/index.d.ts +2 -0
  84. package/dist/types/hellixitboard/fonts/Pacifico/index.d.ts +2 -0
  85. package/dist/types/hellixitboard/fonts/PlayfairDisplay/index.d.ts +2 -0
  86. package/dist/types/hellixitboard/fonts/Righteous/index.d.ts +2 -0
  87. package/dist/types/hellixitboard/types.d.ts +3 -0
  88. package/package.json +1 -1
  89. package/dist/prod/chunk-IGUB3U7T.js +0 -4
  90. package/dist/prod/chunk-SHLNM5GH.js +0 -7
  91. package/dist/prod/data/image-WXEFXRM6.js +0 -1
  92. package/dist/prod/locales/en-MFJ6PZDC.js +0 -1
  93. /package/dist/prod/fonts/{Excalifont/Excalifont-Regular-b9dcf9d2e50a1eaf42fc664b50a3fd0d.woff2 → Hellixfont/Hellixfont-Regular-Cyrillic.woff2} +0 -0
  94. /package/dist/prod/fonts/{Excalifont/Excalifont-Regular-349fac6ca4700ffec595a7150a0d1e1d.woff2 → Hellixfont/Hellixfont-Regular-CyrillicExt.woff2} +0 -0
  95. /package/dist/prod/fonts/{Excalifont/Excalifont-Regular-623ccf21b21ef6b3a0d87738f77eb071.woff2 → Hellixfont/Hellixfont-Regular-Diacritics.woff2} +0 -0
  96. /package/dist/prod/fonts/{Excalifont/Excalifont-Regular-41b173a47b57366892116a575a43e2b6.woff2 → Hellixfont/Hellixfont-Regular-Greek.woff2} +0 -0
  97. /package/dist/prod/fonts/{Excalifont/Excalifont-Regular-a88b72a24fb54c9f94e3b5fdaa7481c9.woff2 → Hellixfont/Hellixfont-Regular-Latin.woff2} +0 -0
  98. /package/dist/prod/fonts/{Excalifont/Excalifont-Regular-be310b9bcd4f1a43f571c46df7809174.woff2 → Hellixfont/Hellixfont-Regular-LatinExt.woff2} +0 -0
  99. /package/dist/prod/fonts/{Excalifont/Excalifont-Regular-3f2c5db56cc93c5a6873b1361d730c16.woff2 → Hellixfont/Hellixfont-Regular-Special.woff2} +0 -0
@@ -24,11 +24,12 @@ export declare const MobileShapeActions: ({ appState, elementsMap, renderAction,
24
24
  app: AppClassProperties;
25
25
  setAppState: React.Component<any, AppState>["setState"];
26
26
  }) => import("react/jsx-runtime").JSX.Element;
27
- export declare const ShapesSwitcher: ({ activeTool, setAppState, app, UIOptions, }: {
27
+ export declare const ShapesSwitcher: ({ activeTool, setAppState, app, UIOptions, selectedElementIds, }: {
28
28
  activeTool: UIAppState["activeTool"];
29
29
  setAppState: React.Component<any, AppState>["setState"];
30
30
  app: AppClassProperties;
31
31
  UIOptions: AppProps["UIOptions"];
32
+ selectedElementIds: UIAppState["selectedElementIds"];
32
33
  }) => import("react/jsx-runtime").JSX.Element;
33
34
  export declare const ZoomActions: ({ renderAction, zoom, }: {
34
35
  renderAction: ActionManager["renderAction"];
@@ -426,7 +426,7 @@ declare class App extends React.Component<AppProps, AppState> {
426
426
  * - `CaptureUpdateAction.NEVER`: Updates never make it to undo/redo stack. Use for remote updates or scene initialization.
427
427
  * - `CaptureUpdateAction.EVENTUALLY`: Updates will be eventually be captured as part of a future increment.
428
428
  *
429
- * Check [API docs](https://docs.excalidraw.com/docs/@hellixit/hellixitboard/api/props/hellixitboard-api#captureUpdate) for more details.
429
+ * Check [API docs](https://board.hellixit.cloud/docs/api/props/hellixitboard-api#captureUpdate) for more details.
430
430
  *
431
431
  * @default CaptureUpdateAction.EVENTUALLY
432
432
  */
@@ -1,12 +1,8 @@
1
1
  import React from "react";
2
2
  import type { FontFamilyValues } from "@hellixit/element/types";
3
+ import { DEFAULT_FONTS } from "./fontPickerConstants";
3
4
  import "./FontPicker.scss";
4
- export declare const DEFAULT_FONTS: {
5
- value: number;
6
- icon: import("react/jsx-runtime").JSX.Element;
7
- text: string;
8
- testId: string;
9
- }[];
5
+ export { DEFAULT_FONTS };
10
6
  export declare const isDefaultFont: (fontFamily: number | null) => boolean;
11
7
  interface FontPickerProps {
12
8
  isOpened: boolean;
@@ -19,4 +15,3 @@ interface FontPickerProps {
19
15
  compactMode?: boolean;
20
16
  }
21
17
  export declare const FontPicker: React.MemoExoticComponent<({ isOpened, selectedFontFamily, hoveredFontFamily, onSelect, onHover, onLeave, onPopupChange, compactMode, }: FontPickerProps) => import("react/jsx-runtime").JSX.Element>;
22
- export {};
@@ -0,0 +1,6 @@
1
+ export declare const DEFAULT_FONTS: {
2
+ value: number;
3
+ icon: import("react/jsx-runtime").JSX.Element;
4
+ text: string;
5
+ testId: string;
6
+ }[];
@@ -3,7 +3,7 @@ import "./ImageExportDialog.scss";
3
3
  import type { ActionManager } from "../actions/manager";
4
4
  import type { AppClassProperties, BinaryFiles, UIAppState } from "../types";
5
5
  export declare const ErrorCanvasPreview: () => import("react/jsx-runtime").JSX.Element;
6
- export declare const ImageExportDialog: ({ elements, appState, files, actionManager, onExportImage, onCloseRequest, name, }: {
6
+ export declare const ImageExportDialog: ({ elements, appState, files, actionManager, onExportImage, onCloseRequest, name, scrollX, scrollY, app, }: {
7
7
  appState: UIAppState;
8
8
  elements: readonly NonDeletedHellixitboardElement[];
9
9
  files: BinaryFiles;
@@ -11,4 +11,7 @@ export declare const ImageExportDialog: ({ elements, appState, files, actionMana
11
11
  onExportImage: AppClassProperties["onExportImage"];
12
12
  onCloseRequest: () => void;
13
13
  name: string;
14
+ scrollX: number;
15
+ scrollY: number;
16
+ app: AppClassProperties;
14
17
  }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { HellixitboardElement } from "@hellixit/element/types";
2
+ import type { UIAppState, AppClassProperties } from "../types";
3
+ import "./PresentationOverlay.scss";
4
+ interface PresentationOverlayProps {
5
+ appState: UIAppState;
6
+ elements: readonly HellixitboardElement[];
7
+ app: AppClassProperties;
8
+ }
9
+ export declare const PresentationOverlay: ({ appState, elements, app, }: PresentationOverlayProps) => import("react/jsx-runtime").JSX.Element | null;
10
+ export {};
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare const getMenuTriggerComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
3
- export declare const getMenuContentComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
4
- export declare const getSubMenuTriggerComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
5
- export declare const getSubMenuContentComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
2
+ export declare const getMenuTriggerComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
3
+ export declare const getMenuContentComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
4
+ export declare const getSubMenuTriggerComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
5
+ export declare const getSubMenuContentComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
@@ -1,11 +1,12 @@
1
1
  import type { ActionManager } from "../../actions/manager";
2
2
  import type { UIAppState } from "../../types";
3
3
  declare const Footer: {
4
- ({ appState, actionManager, showExitZenModeBtn, renderWelcomeScreen, }: {
4
+ ({ appState, actionManager, showExitZenModeBtn, renderWelcomeScreen, hasFrames, }: {
5
5
  appState: UIAppState;
6
6
  actionManager: ActionManager;
7
7
  showExitZenModeBtn: boolean;
8
8
  renderWelcomeScreen: boolean;
9
+ hasFrames: boolean;
9
10
  }): import("react/jsx-runtime").JSX.Element;
10
11
  displayName: string;
11
12
  };
@@ -16,7 +16,7 @@ export declare const loadSceneOrLibraryFromBlob: (blob: Blob | File,
16
16
  localAppState: AppState | null, localElements: readonly HellixitboardElement[] | null,
17
17
  /** FileSystemFileHandle. Defaults to `blob.handle` if defined, otherwise null. */
18
18
  fileHandle?: FileSystemFileHandle | null) => Promise<{
19
- type: "application/vnd.excalidraw+json";
19
+ type: "application/vnd.hellixitboard+json";
20
20
  data: {
21
21
  elements: import("@hellixit/element/types").OrderedHellixitboardElement[];
22
22
  appState: {
@@ -153,6 +153,8 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
153
153
  closable?: boolean;
154
154
  duration?: number;
155
155
  } | null;
156
+ presentationMode: boolean;
157
+ presentationFrameIndex: number;
156
158
  gridStep: number;
157
159
  gridModeEnabled: boolean;
158
160
  fileHandle: FileSystemFileHandle | null;
@@ -318,6 +320,8 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
318
320
  closable?: boolean;
319
321
  duration?: number;
320
322
  } | null;
323
+ presentationMode: boolean;
324
+ presentationFrameIndex: number;
321
325
  gridStep: number;
322
326
  gridModeEnabled: boolean;
323
327
  fileHandle: FileSystemFileHandle | null;
@@ -151,6 +151,8 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
151
151
  closable?: boolean;
152
152
  duration?: number;
153
153
  } | null;
154
+ presentationMode: boolean;
155
+ presentationFrameIndex: number;
154
156
  gridStep: number;
155
157
  gridModeEnabled: boolean;
156
158
  fileHandle: FileSystemFileHandle | null;
@@ -108,7 +108,7 @@ export declare const useHandleLibrary: (opts: {
108
108
  hellixitboardAPI: HellixitboardImperativeAPI | null;
109
109
  /**
110
110
  * Return `true` if the library install url should be allowed.
111
- * If not supplied, only the excalidraw.com base domain is allowed.
111
+ * If not supplied, only the board.hellixit.cloud base domain is allowed.
112
112
  */
113
113
  validateLibraryUrl?: (libraryUrl: string) => boolean;
114
114
  } & ({
@@ -0,0 +1,2 @@
1
+ import { type HellixitboardFontFaceDescriptor } from "../Fonts";
2
+ export declare const DancingScriptFontFaces: HellixitboardFontFaceDescriptor[];
@@ -1,2 +1,2 @@
1
1
  import { type HellixitboardFontFaceDescriptor } from "../Fonts";
2
- export declare const ExcalifontFontFaces: HellixitboardFontFaceDescriptor[];
2
+ export declare const HellixfontFontFaces: HellixitboardFontFaceDescriptor[];
@@ -0,0 +1,2 @@
1
+ import { type HellixitboardFontFaceDescriptor } from "../Fonts";
2
+ export declare const LobsterFontFaces: HellixitboardFontFaceDescriptor[];
@@ -0,0 +1,2 @@
1
+ import { type HellixitboardFontFaceDescriptor } from "../Fonts";
2
+ export declare const MerriweatherFontFaces: HellixitboardFontFaceDescriptor[];
@@ -0,0 +1,2 @@
1
+ import { type HellixitboardFontFaceDescriptor } from "../Fonts";
2
+ export declare const PacificoFontFaces: HellixitboardFontFaceDescriptor[];
@@ -0,0 +1,2 @@
1
+ import { type HellixitboardFontFaceDescriptor } from "../Fonts";
2
+ export declare const PlayfairDisplayFontFaces: HellixitboardFontFaceDescriptor[];
@@ -0,0 +1,2 @@
1
+ import { type HellixitboardFontFaceDescriptor } from "../Fonts";
2
+ export declare const RighteousFontFaces: HellixitboardFontFaceDescriptor[];
@@ -324,6 +324,8 @@ export interface AppState {
324
324
  duration?: number;
325
325
  } | null;
326
326
  zenModeEnabled: boolean;
327
+ presentationMode: boolean;
328
+ presentationFrameIndex: number;
327
329
  theme: Theme;
328
330
  /** grid cell px size */
329
331
  gridSize: number;
@@ -659,6 +661,7 @@ export type AppClassProperties = {
659
661
  lastPointerMoveCoords: App["lastPointerMoveCoords"];
660
662
  bindModeHandler: App["bindModeHandler"];
661
663
  setAppState: App["setAppState"];
664
+ actionManager: App["actionManager"];
662
665
  };
663
666
  export type PointerDownState = Readonly<{
664
667
  origin: Readonly<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellixit/hellixitboard",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "types": "./dist/types/hellixitboard/index.d.ts",
6
6
  "main": "./dist/prod/index.js",