@coorax/react 0.0.0-canary.4 → 0.0.0-canary.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 (73) hide show
  1. package/dist/components/commons/youtube.d.ts +2 -0
  2. package/dist/components/errors/iframe.error.d.ts +2 -0
  3. package/dist/components/errors/image.error.d.ts +2 -0
  4. package/dist/components/errors/video.errors.d.ts +2 -0
  5. package/dist/components/fallbacks/iframe,fallback.d.ts +2 -0
  6. package/dist/components/fallbacks/iframe.fallback.d.ts +2 -0
  7. package/dist/components/fallbacks/image.fallback.d.ts +2 -3
  8. package/dist/components/fallbacks/link.fallback.d.ts +2 -0
  9. package/dist/components/fallbacks/video.fallback.d.ts +2 -0
  10. package/dist/components/slots/buttons/block-actions-button.d.ts +2 -2
  11. package/dist/components/slots/buttons/caption-button.d.ts +3 -0
  12. package/dist/components/slots/buttons/code-theme-button.d.ts +3 -0
  13. package/dist/components/slots/buttons/delete-button.d.ts +3 -0
  14. package/dist/components/slots/buttons/toolbar-button.d.ts +2 -2
  15. package/dist/components/slots/overlays/focus-overlay.d.ts +2 -2
  16. package/dist/components/slots/overlays/hover-overlay.d.ts +2 -2
  17. package/dist/components/slots/overlays/selection-overlay.d.ts +2 -2
  18. package/dist/hooks/use-is-selected.d.ts +2 -0
  19. package/dist/hooks/use-renderer.d.ts +1 -1
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.js +1152 -701
  22. package/dist/lifecycle/fields/common/focus.events/onblur.d.ts +3 -0
  23. package/dist/lifecycle/fields/common/focus.events/onfocus.d.ts +3 -0
  24. package/dist/lifecycle/fields/common/handlers.d.ts +13 -0
  25. package/dist/lifecycle/fields/common/mouse.events/onclick.d.ts +3 -0
  26. package/dist/lifecycle/fields/common/mouse.events/onmouseenter.d.ts +3 -0
  27. package/dist/lifecycle/fields/common/mouse.events/onmouseleave.d.ts +3 -0
  28. package/dist/lifecycle/fields/divider/handlers.d.ts +7 -0
  29. package/dist/lifecycle/fields/divider/keyboard.events/onkeydown.d.ts +3 -0
  30. package/dist/lifecycle/fields/editable/focus.events/onbeforeinput.d.ts +3 -0
  31. package/dist/lifecycle/fields/editable/handlers.d.ts +7 -0
  32. package/dist/lifecycle/fields/editable/keyboard.events/onkeydown.d.ts +3 -0
  33. package/dist/lifecycle/fields/editable/mouse.events/ondoubleclick.d.ts +4 -0
  34. package/dist/lifecycle/fields/editable/synthetic.events/onselect.d.ts +3 -0
  35. package/dist/lifecycle/fields/handlers.registry.d.ts +12 -0
  36. package/dist/lifecycle/fields/lifecycle.fields.d.ts +8 -10
  37. package/dist/lifecycle/fields/lifecycle.fields.types.d.ts +3 -14
  38. package/dist/lifecycle/fields/lifecycle.utils.d.ts +7 -1
  39. package/dist/lifecycle/fields/media/common/handlers.d.ts +7 -0
  40. package/dist/lifecycle/fields/media/common/keyboard.events/onkeydown.d.ts +3 -0
  41. package/dist/lifecycle/fields/media/common/synthetic.events/onerror.d.ts +3 -0
  42. package/dist/lifecycle/fields/media/handlers.d.ts +7 -0
  43. package/dist/lifecycle/fields/media/iframe/handlers.d.ts +7 -0
  44. package/dist/lifecycle/fields/media/iframe/synthetic.events/onload.d.ts +3 -0
  45. package/dist/lifecycle/fields/media/image/handlers.d.ts +7 -0
  46. package/dist/lifecycle/fields/media/image/synthetic.events/onload.d.ts +3 -0
  47. package/dist/lifecycle/fields/media/keyboard.events/onkeydown.d.ts +3 -0
  48. package/dist/lifecycle/fields/media/synthetic.events/onload.d.ts +3 -0
  49. package/dist/lifecycle/fields/media/video/handlers.d.ts +7 -0
  50. package/dist/lifecycle/fields/media/video/mouse.events/ondoubleclick.d.ts +4 -0
  51. package/dist/lifecycle/fields/media/video/synthetic.events/oncanplaythrough.d.ts +3 -0
  52. package/dist/modules/autosave.module.d.ts +10 -0
  53. package/dist/modules/errors.module.d.ts +7 -0
  54. package/dist/primitives/fields/field.primitives.d.ts +1 -1
  55. package/dist/primitives/index.d.ts +1 -1
  56. package/dist/registry/errors.registry.d.ts +8 -0
  57. package/dist/registry/fallbacks.registry.d.ts +3 -2
  58. package/dist/registry/index.d.ts +2 -3
  59. package/dist/registry/slots.registry.d.ts +1 -1
  60. package/dist/registry/ui.primitives.registry.d.ts +1 -1
  61. package/dist/services/index.d.ts +1 -0
  62. package/dist/services/localdb/db/db.d.ts +6 -2
  63. package/dist/services/localdb/lexer/lexer.types.d.ts +1 -1
  64. package/dist/services/localdb/parser/parser.d.ts +1 -0
  65. package/dist/services/localdb/parser/parser.types.d.ts +8 -2
  66. package/dist/styles.css +1 -1093
  67. package/package.json +7 -5
  68. package/styles.css +1 -0
  69. package/dist/renderer/renderer.d.ts +0 -23
  70. package/dist/renderer/renderer.types.d.ts +0 -2
  71. package/dist/renderer/renderer.utils.d.ts +0 -14
  72. package/dist/renderer/utils/divider.renderer.utils.d.ts +0 -6
  73. /package/dist/{renderer/renderer.test.d.ts → services/localdb/dbtest.d.ts} +0 -0
@@ -0,0 +1,2 @@
1
+ import type React from "react";
2
+ export declare function YoutubeIcon({ className, ...props }: React.ComponentProps<"svg">): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IFrameField } from "@coorax/core";
2
+ export declare function IFrameErrorComponent({ children, ...rest }: IFrameField & React.PropsWithChildren): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { MediaField } from "@coorax/core";
2
+ export declare function ImageErrorComponent({ children, ...rest }: MediaField & React.PropsWithChildren): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { MediaField } from "@coorax/core";
2
+ export declare function VideoErrorComponent({ children, ...rest }: MediaField & React.PropsWithChildren): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { MediaField } from "@coorax/core";
2
+ export declare function IFrameFallback({ children, ...rest }: MediaField & React.PropsWithChildren): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { MediaField } from "@coorax/core";
2
+ export declare function IFrameFallback({ children, ...rest }: MediaField & React.PropsWithChildren): import("react").JSX.Element;
@@ -1,3 +1,2 @@
1
- import type { MediaField, NodeCommonProps } from "@coorax/core";
2
- import type { CSSProperties } from "react";
3
- export declare function ImageFallback({ className, style, ...props }: MediaField & NodeCommonProps<CSSProperties>): import("react").JSX.Element;
1
+ import type { MediaField } from "@coorax/core";
2
+ export declare function ImageFallback({ children, ...rest }: MediaField & React.PropsWithChildren): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { LinkField } from "@coorax/core";
2
+ export declare function LinkFallback({ ...rest }: LinkField & React.PropsWithChildren): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { MediaField } from "@coorax/core";
2
+ export declare function VideoFallback({ children, ...rest }: MediaField & React.PropsWithChildren): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
- import type { SlotBaseProps } from "@coorax/core";
1
+ import type { ButtonContribution, SlotBaseProps } from "@coorax/core";
2
2
  import React from "react";
3
- export declare const BlockActionButton: React.MemoExoticComponent<({ c, ui, ...rest }: SlotBaseProps<"block-actions", "blocks.insert" | "actions.toggle", "button">) => React.JSX.Element | null>;
3
+ export declare const BlockActionButton: React.MemoExoticComponent<({ c, ui, ...rest }: SlotBaseProps<ButtonContribution<"block-actions", "blocks.insert" | "actions.toggle", "BlockActionButton">>) => React.JSX.Element | null>;
@@ -0,0 +1,3 @@
1
+ import type { ButtonContribution, SlotBaseProps } from "@coorax/core";
2
+ import React from "react";
3
+ export declare const CaptionButton: React.MemoExoticComponent<({ c, ui, ...rest }: SlotBaseProps<ButtonContribution<"toolbar", "caption.add", "CaptionButton">>) => React.JSX.Element>;
@@ -0,0 +1,3 @@
1
+ import type { ButtonContribution, SlotBaseProps } from "@coorax/core";
2
+ import React from "react";
3
+ export declare const CodeThemeButton: React.MemoExoticComponent<({ c, ui, }: SlotBaseProps<ButtonContribution<"toolbar", "code.toggleTheme", "CodeThemeButton">>) => React.JSX.Element>;
@@ -0,0 +1,3 @@
1
+ import type { ButtonContribution, SlotBaseProps } from "@coorax/core";
2
+ import React from "react";
3
+ export declare const DeleteButton: React.MemoExoticComponent<({ c, ui, ...rest }: SlotBaseProps<ButtonContribution<"toolbar", "blocks.deleteSelection", "DeleteButton">>) => React.JSX.Element>;
@@ -1,3 +1,3 @@
1
- import type { SlotBaseProps } from "@coorax/core";
1
+ import type { ButtonContribution, SlotBaseProps } from "@coorax/core";
2
2
  import React from "react";
3
- export declare const ToolbarButton: React.MemoExoticComponent<({ c, ui, }: SlotBaseProps<"toolbar", "ToolBarButton", "text.format", "button">) => React.JSX.Element>;
3
+ export declare const ToolbarButton: React.MemoExoticComponent<({ c, ui, }: SlotBaseProps<ButtonContribution<"toolbar", "text.format", "ToolBarButton">>) => React.JSX.Element>;
@@ -1,3 +1,3 @@
1
- import type { CommandType, SlotBaseProps } from "@coorax/core";
1
+ import type { ComponentContribution, SlotBaseProps } from "@coorax/core";
2
2
  declare module "@coorax/core" { }
3
- export declare function FocusOverlay({ c, ui }: SlotBaseProps<"overlay", CommandType, "component">): import("react").JSX.Element | null;
3
+ export declare function FocusOverlay({ c, ui, }: SlotBaseProps<ComponentContribution<"overlay", "FocusOverlay">>): import("react").JSX.Element | null;
@@ -1,3 +1,3 @@
1
- import type { CommandType, SlotBaseProps } from "@coorax/core";
1
+ import type { ComponentContribution, SlotBaseProps } from "@coorax/core";
2
2
  declare module "@coorax/core" { }
3
- export declare function HoverOverlay({ c, ui }: SlotBaseProps<"overlay", CommandType, "component">): import("react").JSX.Element | null;
3
+ export declare function HoverOverlay({ c, ui, }: SlotBaseProps<ComponentContribution<"overlay", "HoverOverlay">>): import("react").JSX.Element | null;
@@ -1,3 +1,3 @@
1
- import type { CommandType, SlotBaseProps } from "@coorax/core";
1
+ import type { ComponentContribution, SlotBaseProps } from "@coorax/core";
2
2
  declare module "@coorax/core" { }
3
- export declare function SelectionOverlay({ c, ui }: SlotBaseProps<"overlay", CommandType, "component">): import("react").JSX.Element | null;
3
+ export declare function SelectionOverlay({ c, ui, }: SlotBaseProps<ComponentContribution<"overlay", "SelectionOverlay">>): import("react").JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ import type { BlockId } from "@coorax/core";
2
+ export declare function useIsSelected(id: BlockId): boolean | undefined;
@@ -1,2 +1,2 @@
1
- import { ReactRenderer } from "../renderer/renderer";
1
+ import { ReactRenderer } from "@coorax/render-react";
2
2
  export declare function useRenderer(): ReactRenderer;
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from "./lifecycle";
7
7
  export * from "./services";
8
8
  export * from "./lib";
9
9
  export * from "@coorax/core";
10
+ export * from "@coorax/render-react";
10
11
  declare module "@coorax/core" {
11
12
  interface TEventMap {
12
13
  "field:lifecycle": FieldLifeCycleEvProps;