@coorax/react 0.0.0-canary.3 → 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.
- package/dist/components/commons/youtube.d.ts +2 -0
- package/dist/components/errors/iframe.error.d.ts +2 -0
- package/dist/components/errors/image.error.d.ts +2 -0
- package/dist/components/errors/video.errors.d.ts +2 -0
- package/dist/components/fallbacks/iframe,fallback.d.ts +2 -0
- package/dist/components/fallbacks/iframe.fallback.d.ts +2 -0
- package/dist/components/fallbacks/image.fallback.d.ts +2 -3
- package/dist/components/fallbacks/link.fallback.d.ts +2 -0
- package/dist/components/fallbacks/video.fallback.d.ts +2 -0
- package/dist/components/slots/buttons/block-actions-button.d.ts +2 -2
- package/dist/components/slots/buttons/caption-button.d.ts +3 -0
- package/dist/components/slots/buttons/code-theme-button.d.ts +3 -0
- package/dist/components/slots/buttons/delete-button.d.ts +3 -0
- package/dist/components/slots/buttons/toolbar-button.d.ts +2 -2
- package/dist/components/slots/overlays/focus-overlay.d.ts +2 -2
- package/dist/components/slots/overlays/hover-overlay.d.ts +2 -2
- package/dist/components/slots/overlays/selection-overlay.d.ts +2 -2
- package/dist/hooks/use-is-selected.d.ts +2 -0
- package/dist/hooks/use-registry.d.ts +1 -1
- package/dist/hooks/use-renderer.d.ts +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1174 -700
- package/dist/lib/index.d.ts +4 -0
- package/dist/lifecycle/fields/common/focus.events/onblur.d.ts +3 -0
- package/dist/lifecycle/fields/common/focus.events/onfocus.d.ts +3 -0
- package/dist/lifecycle/fields/common/handlers.d.ts +13 -0
- package/dist/lifecycle/fields/common/mouse.events/onclick.d.ts +3 -0
- package/dist/lifecycle/fields/common/mouse.events/onmouseenter.d.ts +3 -0
- package/dist/lifecycle/fields/common/mouse.events/onmouseleave.d.ts +3 -0
- package/dist/lifecycle/fields/divider/handlers.d.ts +7 -0
- package/dist/lifecycle/fields/divider/keyboard.events/onkeydown.d.ts +3 -0
- package/dist/lifecycle/fields/editable/focus.events/onbeforeinput.d.ts +3 -0
- package/dist/lifecycle/fields/editable/handlers.d.ts +7 -0
- package/dist/lifecycle/fields/editable/keyboard.events/onkeydown.d.ts +3 -0
- package/dist/lifecycle/fields/editable/mouse.events/ondoubleclick.d.ts +4 -0
- package/dist/lifecycle/fields/editable/synthetic.events/onselect.d.ts +3 -0
- package/dist/lifecycle/fields/handlers.registry.d.ts +12 -0
- package/dist/lifecycle/fields/lifecycle.fields.d.ts +8 -10
- package/dist/lifecycle/fields/lifecycle.fields.types.d.ts +3 -14
- package/dist/lifecycle/fields/lifecycle.utils.d.ts +7 -1
- package/dist/lifecycle/fields/media/common/handlers.d.ts +7 -0
- package/dist/lifecycle/fields/media/common/keyboard.events/onkeydown.d.ts +3 -0
- package/dist/lifecycle/fields/media/common/synthetic.events/onerror.d.ts +3 -0
- package/dist/lifecycle/fields/media/handlers.d.ts +7 -0
- package/dist/lifecycle/fields/media/iframe/handlers.d.ts +7 -0
- package/dist/lifecycle/fields/media/iframe/synthetic.events/onload.d.ts +3 -0
- package/dist/lifecycle/fields/media/image/handlers.d.ts +7 -0
- package/dist/lifecycle/fields/media/image/synthetic.events/onload.d.ts +3 -0
- package/dist/lifecycle/fields/media/keyboard.events/onkeydown.d.ts +3 -0
- package/dist/lifecycle/fields/media/synthetic.events/onload.d.ts +3 -0
- package/dist/lifecycle/fields/media/video/handlers.d.ts +7 -0
- package/dist/lifecycle/fields/media/video/mouse.events/ondoubleclick.d.ts +4 -0
- package/dist/lifecycle/fields/media/video/synthetic.events/oncanplaythrough.d.ts +3 -0
- package/dist/lifecycle/index.d.ts +3 -1
- package/dist/modules/autosave.module.d.ts +10 -0
- package/dist/modules/errors.module.d.ts +7 -0
- package/dist/primitives/fields/field.primitives.d.ts +1 -1
- package/dist/primitives/index.d.ts +1 -1
- package/dist/registry/errors.registry.d.ts +8 -0
- package/dist/registry/fallbacks.registry.d.ts +3 -2
- package/dist/registry/index.d.ts +2 -3
- package/dist/registry/slots.registry.d.ts +1 -1
- package/dist/registry/ui.primitives.registry.d.ts +1 -1
- package/dist/services/index.d.ts +2 -0
- package/dist/services/localdb/db/db.d.ts +6 -2
- package/dist/services/localdb/lexer/lexer.types.d.ts +1 -1
- package/dist/services/localdb/parser/parser.d.ts +1 -0
- package/dist/services/localdb/parser/parser.types.d.ts +8 -2
- package/dist/styles.css +1 -1093
- package/package.json +7 -5
- package/styles.css +1 -0
- package/dist/renderer/renderer.d.ts +0 -23
- package/dist/renderer/renderer.types.d.ts +0 -2
- package/dist/renderer/renderer.utils.d.ts +0 -14
- package/dist/renderer/utils/divider.renderer.utils.d.ts +0 -6
- /package/dist/{renderer/renderer.test.d.ts → services/localdb/dbtest.d.ts} +0 -0
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { MediaField
|
|
2
|
-
|
|
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;
|
|
@@ -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", "
|
|
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", "
|
|
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 {
|
|
1
|
+
import type { ComponentContribution, SlotBaseProps } from "@coorax/core";
|
|
2
2
|
declare module "@coorax/core" { }
|
|
3
|
-
export declare function FocusOverlay({ c, ui }: SlotBaseProps<"overlay",
|
|
3
|
+
export declare function FocusOverlay({ c, ui, }: SlotBaseProps<ComponentContribution<"overlay", "FocusOverlay">>): import("react").JSX.Element | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentContribution, SlotBaseProps } from "@coorax/core";
|
|
2
2
|
declare module "@coorax/core" { }
|
|
3
|
-
export declare function HoverOverlay({ c, ui }: SlotBaseProps<"overlay",
|
|
3
|
+
export declare function HoverOverlay({ c, ui, }: SlotBaseProps<ComponentContribution<"overlay", "HoverOverlay">>): import("react").JSX.Element | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentContribution, SlotBaseProps } from "@coorax/core";
|
|
2
2
|
declare module "@coorax/core" { }
|
|
3
|
-
export declare function SelectionOverlay({ c, ui }: SlotBaseProps<"overlay",
|
|
3
|
+
export declare function SelectionOverlay({ c, ui, }: SlotBaseProps<ComponentContribution<"overlay", "SelectionOverlay">>): import("react").JSX.Element | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { SlotKey } from "@coorax/core";
|
|
2
2
|
export declare function useRegistryComponent(name: SlotKey): import("react").JSXElementConstructor<any> | undefined;
|
|
3
|
-
export declare function useUIPrimitivesRegistry(name: SlotKey): import("
|
|
3
|
+
export declare function useUIPrimitivesRegistry(name: SlotKey): import("..").UIPrimitivesComponent | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ReactRenderer } from "
|
|
1
|
+
import { ReactRenderer } from "@coorax/render-react";
|
|
2
2
|
export declare function useRenderer(): ReactRenderer;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,12 @@ import type { FieldLifeCycleEvProps } from "./lifecycle/fields/lifecycle.fields.
|
|
|
2
2
|
export * from "./modules";
|
|
3
3
|
export * from "./components";
|
|
4
4
|
export * from "./hooks";
|
|
5
|
+
export * from "./registry";
|
|
6
|
+
export * from "./lifecycle";
|
|
7
|
+
export * from "./services";
|
|
8
|
+
export * from "./lib";
|
|
5
9
|
export * from "@coorax/core";
|
|
10
|
+
export * from "@coorax/render-react";
|
|
6
11
|
declare module "@coorax/core" {
|
|
7
12
|
interface TEventMap {
|
|
8
13
|
"field:lifecycle": FieldLifeCycleEvProps;
|