@etrepum/lexical-builder-devtools-core 0.0.24-nightly.20240614.0 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare const BuilderGraphComponent: import('react').LazyExoticComponent<typeof import('./BuilderGraphComponent').BuilderGraphComponent>;
3
- export declare const BuilderGraphPlan: import('@etrepum/lexical-builder').LexicalPlan<{}, "@etrepum/lexical-builder-devtools-core/BuilderGraphPlan", {
3
+ export declare const BuilderGraphPlan: import('@etrepum/lexical-builder').LexicalPlan<import('@etrepum/lexical-builder').PlanConfigBase, "@etrepum/lexical-builder-devtools-core/BuilderGraphPlan", {
4
4
  Component: () => import("react/jsx-runtime").JSX.Element;
5
- }>;
5
+ }, unknown>;
6
6
  //# sourceMappingURL=BuilderGraphPlan.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BuilderGraphPlan.d.ts","sourceRoot":"","sources":["../src/BuilderGraphPlan.tsx"],"names":[],"mappings":";AASA,eAAO,MAAM,qBAAqB,qGAEjC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;EAkB3B,CAAC"}
1
+ {"version":3,"file":"BuilderGraphPlan.d.ts","sourceRoot":"","sources":["../src/BuilderGraphPlan.tsx"],"names":[],"mappings":";AASA,eAAO,MAAM,qBAAqB,qGAEjC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;WAiB3B,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { jsxs as y, jsx as s } from "react/jsx-runtime";
2
- import { lazy as m, useMemo as G, Suspense as v } from "react";
1
+ import { jsxs as G, jsx as s } from "react/jsx-runtime";
2
+ import { lazy as m, useMemo as v, Suspense as y } from "react";
3
3
  import { LexicalBuilder as f, PACKAGE_VERSION as B, definePlan as P, provideOutput as x } from "@etrepum/lexical-builder";
4
4
  import { deflate as A } from "pako";
5
5
  import { fromUint8Array as E } from "js-base64";
@@ -64,14 +64,14 @@ function u({
64
64
  editor: r,
65
65
  ...e
66
66
  }) {
67
- const { text: t, href: o } = G(() => {
67
+ const { text: t, href: o } = v(() => {
68
68
  const l = b(r);
69
69
  return {
70
70
  text: l,
71
71
  href: C(l)
72
72
  };
73
73
  }, [r]), i = e.className ? {} : { style: { display: "grid", gap: "1rem" } };
74
- return /* @__PURE__ */ y("div", { ...i, ...e, children: [
74
+ return /* @__PURE__ */ G("div", { ...i, ...e, children: [
75
75
  /* @__PURE__ */ s("a", { href: o, target: "_blank", children: "mermaid.live" }),
76
76
  /* @__PURE__ */ s(S, { text: t })
77
77
  ] });
@@ -86,17 +86,16 @@ const N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
86
86
  ), L = P({
87
87
  name: "@etrepum/lexical-builder-devtools-core/BuilderGraphPlan",
88
88
  dependencies: [$],
89
- config: {},
90
89
  register(r) {
91
90
  const e = f.fromEditor(r);
92
91
  return h(
93
92
  e !== void 0,
94
93
  "BuilderGraphPlan: Could not get a LexicalBuilder reference"
95
94
  ), x({
96
- Component: () => /* @__PURE__ */ s(v, { children: /* @__PURE__ */ s(O, { editor: r }) })
95
+ Component: () => /* @__PURE__ */ s(y, { children: /* @__PURE__ */ s(O, { editor: r }) })
97
96
  });
98
97
  }
99
- }), T = "0.0.24-nightly.20240614.0";
98
+ }), T = "0.0.24";
100
99
  export {
101
100
  u as BuilderGraphComponent,
102
101
  L as BuilderGraphPlan,
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "test": "vitest run",
16
16
  "test:watch": "vitest"
17
17
  },
18
- "version": "0.0.24-nightly.20240614.0",
18
+ "version": "0.0.24",
19
19
  "license": "MIT",
20
20
  "repository": {
21
21
  "type": "git",