@coorax/react 0.0.0-canary.3 → 0.0.0-canary.4

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.
@@ -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("../registry").UIPrimitivesComponent | undefined;
3
+ export declare function useUIPrimitivesRegistry(name: SlotKey): import("..").UIPrimitivesComponent | undefined;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,10 @@ 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";
6
10
  declare module "@coorax/core" {
7
11
  interface TEventMap {
package/dist/index.js CHANGED
@@ -353,6 +353,12 @@ var ToolbarButton = React3.memo(function ToolbarButton2({
353
353
  import { useEffect } from "react";
354
354
 
355
355
  // src/lib/func.utils.ts
356
+ function focusDomBLockById(engine, id) {
357
+ const disposer = engine.events.on("re-render", () => {
358
+ focusDomElement(id);
359
+ disposer();
360
+ });
361
+ }
356
362
  function focusDomElement(id) {
357
363
  const domElement = document.getElementById(id);
358
364
  if (!domElement)
@@ -2730,6 +2736,8 @@ function CoraxFlow({
2730
2736
 
2731
2737
  // src/components/index.ts
2732
2738
  "use client";
2739
+ // src/services/index.ts
2740
+ var CORAX_INDEXED_DB = "coraxdb";
2733
2741
  // src/index.ts
2734
2742
  export * from "@coorax/core";
2735
2743
  "use client";
@@ -2738,14 +2746,29 @@ export {
2738
2746
  useSlice,
2739
2747
  useIsomorphicLayoutEffect,
2740
2748
  useEngine,
2749
+ rangeToOffsets,
2750
+ offsetsToRange,
2741
2751
  loadCompleteDocument,
2752
+ getFieldTypeAndTargetId,
2753
+ getBlockActionsProps,
2754
+ focusDomElement,
2755
+ focusDomBLockById,
2756
+ blockRectFromBlockId,
2757
+ UIPrimitivesRegistry,
2742
2758
  Toolbar,
2743
2759
  TextInspector,
2744
2760
  SlotsModule,
2761
+ SlotsComponentRegistry,
2762
+ PrimitivesComponentsRegistry,
2745
2763
  Overlays,
2764
+ GenericRegistry,
2746
2765
  FallbacksModule,
2766
+ FallbackComponentsRegistry,
2767
+ FLC,
2768
+ CoraxIcon,
2747
2769
  CoraxFlow,
2748
2770
  CoraxEngineProvider,
2771
+ CORAX_INDEXED_DB,
2749
2772
  BlockActions,
2750
2773
  AutoSaveModule
2751
2774
  };
@@ -0,0 +1,4 @@
1
+ export * from "./comp.utils";
2
+ export * from "./selection.utils";
3
+ export * from "./func.utils";
4
+ export * from "./slots.utils";
@@ -1 +1,3 @@
1
- export {};
1
+ export * from "./fields/lifecycle.fields";
2
+ export * from "./fields/lifecycle.fields.types";
3
+ export * from "./fields/lifecycle.utils";
@@ -0,0 +1 @@
1
+ export declare const CORAX_INDEXED_DB = "coraxdb";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorax/react",
3
- "version": "0.0.0-canary.3",
3
+ "version": "0.0.0-canary.4",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",