telva 1.1.3 → 1.1.5

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 (113) hide show
  1. package/dist/Telva.d.ts +3 -3
  2. package/dist/components/ContextMenu/ContextMenu.d.ts +1 -1
  3. package/dist/components/Primitives/DropdownMenu/DMCheckboxItem.d.ts +1 -1
  4. package/dist/components/Primitives/DropdownMenu/DMItem.d.ts +1 -1
  5. package/dist/components/Primitives/DropdownMenu/DMTriggerIcon.d.ts +1 -1
  6. package/dist/components/ToolsPanel/ShapesMenu.d.ts +1 -1
  7. package/dist/components/TopPanel/PageMenu/PageMenu.d.ts +1 -1
  8. package/dist/components/TopPanel/PageOptionsDialog/PageOptionsDialog.d.ts +1 -1
  9. package/dist/constants.d.ts +1 -1
  10. package/dist/hooks/useFileSystem.d.ts +1 -1
  11. package/dist/hooks/useTelvaApp.d.ts +1 -1
  12. package/dist/hooks/useTheme.d.ts +1 -1
  13. package/dist/hooks/useTranslation.d.ts +2 -2
  14. package/dist/index.js +2 -2
  15. package/dist/index.js.map +3 -3
  16. package/dist/index.mjs +18 -30283
  17. package/dist/index.mjs.map +3 -3
  18. package/dist/state/StateManager/StateManager.d.ts +1 -1
  19. package/dist/state/TVDR.d.ts +1 -1
  20. package/dist/state/TelvaApp.d.ts +7 -7
  21. package/dist/state/commands/alignShapes/alignShapes.d.ts +2 -2
  22. package/dist/state/commands/changePage/changePage.d.ts +2 -2
  23. package/dist/state/commands/createPage/createPage.d.ts +2 -2
  24. package/dist/state/commands/createShapes/createShapes.d.ts +2 -2
  25. package/dist/state/commands/deletePage/deletePage.d.ts +2 -2
  26. package/dist/state/commands/deleteShapes/deleteShapes.d.ts +2 -2
  27. package/dist/state/commands/distributeShapes/distributeShapes.d.ts +2 -2
  28. package/dist/state/commands/duplicatePage/duplicatePage.d.ts +2 -2
  29. package/dist/state/commands/duplicateShapes/duplicateShapes.d.ts +2 -2
  30. package/dist/state/commands/flipShapes/flipShapes.d.ts +3 -3
  31. package/dist/state/commands/groupShapes/groupShapes.d.ts +2 -2
  32. package/dist/state/commands/insertContent/insertContent.d.ts +2 -2
  33. package/dist/state/commands/movePage/movePage.d.ts +2 -2
  34. package/dist/state/commands/moveShapesToPage/moveShapesToPage.d.ts +2 -2
  35. package/dist/state/commands/renamePage/renamePage.d.ts +2 -2
  36. package/dist/state/commands/reorderShapes/reorderShapes.d.ts +2 -2
  37. package/dist/state/commands/resetBounds/resetBounds.d.ts +2 -2
  38. package/dist/state/commands/rotateShapes/rotateShapes.d.ts +2 -2
  39. package/dist/state/commands/setShapesProps/setShapesProps.d.ts +2 -2
  40. package/dist/state/commands/shared/removeShapesFromPage.d.ts +1 -1
  41. package/dist/state/commands/stretchShapes/stretchShapes.d.ts +3 -3
  42. package/dist/state/commands/styleShapes/styleShapes.d.ts +2 -2
  43. package/dist/state/commands/toggleShapesDecoration/toggleShapesDecoration.d.ts +2 -2
  44. package/dist/state/commands/toggleShapesProp/toggleShapesProp.d.ts +2 -2
  45. package/dist/state/commands/translateShapes/translateShapes.d.ts +2 -2
  46. package/dist/state/commands/ungroupShapes/ungroupShapes.d.ts +3 -3
  47. package/dist/state/commands/updateShapes/updateShapes.d.ts +2 -2
  48. package/dist/state/data/filesystem.d.ts +1 -1
  49. package/dist/state/data/migrate.d.ts +1 -1
  50. package/dist/state/sessions/ArrowSession/ArrowSession.d.ts +3 -3
  51. package/dist/state/sessions/BaseSession.d.ts +2 -2
  52. package/dist/state/sessions/BrushSession/BrushSession.d.ts +3 -3
  53. package/dist/state/sessions/DrawSession/DrawSession.d.ts +3 -3
  54. package/dist/state/sessions/EditSession/EditSession.d.ts +3 -3
  55. package/dist/state/sessions/EraseSession/EraseSession.d.ts +4 -4
  56. package/dist/state/sessions/GridSession/GridSession.d.ts +3 -3
  57. package/dist/state/sessions/HandleSession/HandleSession.d.ts +3 -3
  58. package/dist/state/sessions/RotateSession/RotateSession.d.ts +3 -3
  59. package/dist/state/sessions/TransformSession/TransformSession.d.ts +3 -3
  60. package/dist/state/sessions/TransformSingleSession/TransformSingleSession.d.ts +3 -3
  61. package/dist/state/sessions/TranslateLabelSession/TranslateLabelSession.d.ts +3 -3
  62. package/dist/state/sessions/TranslateSession/TranslateSession.d.ts +3 -3
  63. package/dist/state/sessions/index.d.ts +1 -1
  64. package/dist/state/shapes/ArrowUtil/ArrowUtil.d.ts +2 -2
  65. package/dist/state/shapes/ArrowUtil/arrowHelpers.d.ts +1 -1
  66. package/dist/state/shapes/ArrowUtil/components/CurvedArrow.tsx.d.ts +1 -1
  67. package/dist/state/shapes/ArrowUtil/components/StraightArrow.d.ts +1 -1
  68. package/dist/state/shapes/DrawUtil/DrawUtil.d.ts +2 -2
  69. package/dist/state/shapes/DrawUtil/drawHelpers.d.ts +1 -1
  70. package/dist/state/shapes/EllipseUtil/EllipseUtil.d.ts +2 -2
  71. package/dist/state/shapes/EllipseUtil/components/DashedEllipse.d.ts +1 -1
  72. package/dist/state/shapes/EllipseUtil/components/DrawEllipse.d.ts +1 -1
  73. package/dist/state/shapes/EllipseUtil/ellipseHelpers.d.ts +1 -1
  74. package/dist/state/shapes/GroupUtil/GroupUtil.d.ts +2 -2
  75. package/dist/state/shapes/ImageUtil/ImageUtil.d.ts +3 -3
  76. package/dist/state/shapes/PenUtil/PenUtil.d.ts +2 -2
  77. package/dist/state/shapes/PenUtil/penHelpers.d.ts +1 -1
  78. package/dist/state/shapes/ReactComponentUtil/ReactComponentUtil.d.ts +4 -4
  79. package/dist/state/shapes/ReactComponentUtil/ReactComponentUtil.d.ts.map +1 -1
  80. package/dist/state/shapes/RectangleUtil/RectangleUtil.d.ts +3 -3
  81. package/dist/state/shapes/RectangleUtil/components/DashedRectangle.d.ts +1 -1
  82. package/dist/state/shapes/RectangleUtil/components/DrawRectangle.d.ts +1 -1
  83. package/dist/state/shapes/RectangleUtil/rectangleHelpers.d.ts +1 -1
  84. package/dist/state/shapes/StickyUtil/StickyUtil.d.ts +2 -2
  85. package/dist/state/shapes/TVShapeUtil.d.ts +1 -1
  86. package/dist/state/shapes/TextUtil/TextUtil.d.ts +8 -8
  87. package/dist/state/shapes/TriangleUtil/TriangleUtil.d.ts +3 -3
  88. package/dist/state/shapes/TriangleUtil/components/DashedTriangle.d.ts +1 -1
  89. package/dist/state/shapes/TriangleUtil/components/DrawTriangle.d.ts +1 -1
  90. package/dist/state/shapes/TriangleUtil/triangleHelpers.d.ts +1 -1
  91. package/dist/state/shapes/VideoUtil/VideoUtil.d.ts +3 -3
  92. package/dist/state/shapes/index.d.ts +2 -2
  93. package/dist/state/shapes/shared/TextLabel.d.ts +1 -1
  94. package/dist/state/shapes/shared/getTextAlign.d.ts +1 -1
  95. package/dist/state/shapes/shared/getTextSvgElement.d.ts +1 -1
  96. package/dist/state/shapes/shared/gradient-fill.d.ts +1 -1
  97. package/dist/state/shapes/shared/shape-styles.d.ts +1 -1
  98. package/dist/state/tools/ArrowTool/ArrowTool.d.ts +2 -2
  99. package/dist/state/tools/BaseTool.d.ts +2 -2
  100. package/dist/state/tools/DrawTool/DrawTool.d.ts +2 -2
  101. package/dist/state/tools/EllipseTool/EllipseTool.d.ts +2 -2
  102. package/dist/state/tools/EraseTool/EraseTool.d.ts +1 -1
  103. package/dist/state/tools/LineTool/LineTool.d.ts +2 -2
  104. package/dist/state/tools/PenEditTool.d.ts +2 -2
  105. package/dist/state/tools/PenTool/PenTool.d.ts +2 -2
  106. package/dist/state/tools/RectangleTool/RectangleTool.d.ts +2 -2
  107. package/dist/state/tools/SelectTool/SelectTool.d.ts +44 -44
  108. package/dist/state/tools/StickyTool/StickyTool.d.ts +2 -2
  109. package/dist/state/tools/TextTool/TextTool.d.ts +2 -2
  110. package/dist/state/tools/TriangleTool/TriangleTool.d.ts +2 -2
  111. package/dist/state/tools/index.d.ts +1 -1
  112. package/dist/types.d.ts +1 -1
  113. package/package.json +1 -1
package/dist/Telva.d.ts CHANGED
@@ -5,9 +5,9 @@ import '@fontsource/recursive';
5
5
  import '@fontsource/source-code-pro';
6
6
  import '@fontsource/source-sans-pro';
7
7
  import { CursorComponent } from 'telva-core';
8
- import { TVCallbacks } from '~state';
9
- import { ReactComponentEntry } from '~state/reactRegistry';
10
- import { TVDocument } from '~types';
8
+ import { TVCallbacks } from './state';
9
+ import { ReactComponentEntry } from './state/reactRegistry';
10
+ import { TVDocument } from './types';
11
11
  export interface TelvaProps extends TVCallbacks {
12
12
  /**
13
13
  * (optional) If provided, the component will load / persist state under this key.
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { RowButtonProps } from '~components/Primitives/RowButton';
2
+ import { RowButtonProps } from '../Primitives/RowButton';
3
3
  interface ContextMenuProps {
4
4
  onBlur?: React.FocusEventHandler;
5
5
  children: React.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { RowButtonProps } from '~components/Primitives/RowButton';
2
+ import { RowButtonProps } from '../RowButton';
3
3
  interface DMCheckboxItemProps {
4
4
  checked: boolean;
5
5
  disabled?: boolean;
@@ -1,4 +1,4 @@
1
- import { RowButtonProps } from '~components/Primitives/RowButton';
1
+ import { RowButtonProps } from '../RowButton';
2
2
  export declare function DMItem({ onSelect, id, ...rest }: RowButtonProps & {
3
3
  onSelect?: (event: Event) => void;
4
4
  id?: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ToolButtonProps } from '~components/Primitives/ToolButton';
2
+ import { ToolButtonProps } from '../ToolButton';
3
3
  interface DMTriggerIconProps extends ToolButtonProps {
4
4
  children: React.ReactNode;
5
5
  id?: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { TVToolType } from '~types';
2
+ import { TVToolType } from '../../types';
3
3
  interface ShapesMenuProps {
4
4
  activeTool: TVToolType;
5
5
  isToolLocked: boolean;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export declare function PageMenu(): JSX.Element;
3
- export declare const PageButton: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("~components/Primitives/RowButton").RowButtonProps & React.RefAttributes<HTMLButtonElement>>, {}, {
3
+ export declare const PageButton: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("../../Primitives/RowButton").RowButtonProps & React.RefAttributes<HTMLButtonElement>>, {}, {
4
4
  micro: "(max-width: 370px)";
5
5
  sm: "(min-width: 640px)";
6
6
  md: "(min-width: 768px)";
@@ -1,6 +1,6 @@
1
1
  import * as Dialog from '@radix-ui/react-alert-dialog';
2
2
  import * as React from 'react';
3
- import type { TVPage } from '~types';
3
+ import type { TVPage } from '../../../types';
4
4
  interface PageOptionsDialogProps {
5
5
  page: TVPage;
6
6
  onOpen?: () => void;
@@ -1,4 +1,4 @@
1
- import type { Easing } from '~types';
1
+ import type { Easing } from './types';
2
2
  export declare const LETTER_SPACING = "-0.03em";
3
3
  export declare const LINE_HEIGHT = 1;
4
4
  export declare const GRID_SIZE = 8;
@@ -1,4 +1,4 @@
1
- import type { TelvaApp } from '~state';
1
+ import type { TelvaApp } from '../state';
2
2
  import { DialogState } from './useDialog';
3
3
  export declare function useFileSystem(): {
4
4
  onNewProject: (app: TelvaApp, openDialog: (dialogState: DialogState, onYes: () => Promise<void>, onNo: () => Promise<void>, onCancel: () => Promise<void>) => void) => Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { TelvaApp } from '~state';
2
+ import type { TelvaApp } from '../state';
3
3
  export declare const TelvaContext: React.Context<TelvaApp>;
4
4
  export declare function useTelvaApp(): TelvaApp;
5
5
  export declare const ContainerContext: React.Context<React.RefObject<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- import type { Theme } from '~types';
1
+ import type { Theme } from '../types';
2
2
  export declare function useTheme(): {
3
3
  theme: Theme;
4
4
  toggle: () => import("..").TelvaApp;
@@ -1,3 +1,3 @@
1
- import { TVLanguage } from '~translations';
2
- export declare function useTranslation(locale?: TVLanguage): import("~translations").TVTranslation;
1
+ import { TVLanguage } from '../translations';
2
+ export declare function useTranslation(locale?: TVLanguage): import("../translations").TVTranslation;
3
3
  //# sourceMappingURL=useTranslation.d.ts.map