eddev 2.0.0-beta.12 → 2.0.0-beta.14

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 (89) hide show
  1. package/dist/app/entry/ssr-root.d.ts +1 -1
  2. package/dist/app/lib/admin/index.d.ts +2 -2
  3. package/dist/app/lib/admin/index.js +2 -2
  4. package/dist/app/lib/admin/installFieldTypes.js +1 -1
  5. package/dist/app/lib/admin/runWidgets.js +1 -1
  6. package/dist/app/lib/blocks/ContentBlocks.js +4 -4
  7. package/dist/app/lib/blocks/EditableText.d.ts +1 -1
  8. package/dist/app/lib/blocks/EditableText.js +2 -2
  9. package/dist/app/lib/blocks/InnerBlocks.d.ts +2 -2
  10. package/dist/app/lib/blocks/InnerBlocks.js +4 -4
  11. package/dist/app/lib/blocks/block-utils.d.ts +1 -1
  12. package/dist/app/lib/blocks/block-utils.js +1 -1
  13. package/dist/app/lib/blocks/editor/EditorSupport.js +3 -3
  14. package/dist/app/lib/blocks/editor/editor-config.d.ts +1 -1
  15. package/dist/app/lib/blocks/editor/editor-config.js +1 -1
  16. package/dist/app/lib/blocks/editor/installGutenbergHooks.js +5 -5
  17. package/dist/app/lib/blocks/editor/usePostEditor.d.ts +1 -1
  18. package/dist/app/lib/blocks/index.d.ts +9 -9
  19. package/dist/app/lib/blocks/index.js +9 -9
  20. package/dist/app/lib/blocks/inline-editing.d.ts +1 -1
  21. package/dist/app/lib/blocks/inline-editing.js +3 -3
  22. package/dist/app/lib/devtools/components/DevUI.js +1 -1
  23. package/dist/app/lib/devtools/hooks/useTailwind.d.ts +974 -974
  24. package/dist/app/lib/devtools/hooks/useTailwind.js +1 -1
  25. package/dist/app/lib/devtools/index.d.ts +1 -1
  26. package/dist/app/lib/devtools/index.js +1 -1
  27. package/dist/app/lib/devtools/loader.js +4 -4
  28. package/dist/app/lib/dynamic/index.d.ts +1 -1
  29. package/dist/app/lib/dynamic/index.js +1 -1
  30. package/dist/app/lib/hooks/index.d.ts +5 -5
  31. package/dist/app/lib/hooks/index.js +5 -5
  32. package/dist/app/lib/hooks/queryUtils.d.ts +1 -1
  33. package/dist/app/lib/hooks/queryUtils.js +4 -4
  34. package/dist/app/lib/hooks/useAppData.js +1 -1
  35. package/dist/app/lib/internal/index.d.ts +4 -4
  36. package/dist/app/lib/internal/index.js +4 -4
  37. package/dist/app/lib/internal/read-admin-manifest.d.ts +1 -1
  38. package/dist/app/lib/legacy-stitches/createStitches.d.ts +3 -511
  39. package/dist/app/lib/legacy-stitches/createStitches.js +1 -1
  40. package/dist/app/lib/legacy-stitches/index.d.ts +1 -1
  41. package/dist/app/lib/legacy-stitches/index.js +1 -1
  42. package/dist/app/lib/routing/components/BrowserRouter.js +4 -4
  43. package/dist/app/lib/routing/components/ClientOnly.js +1 -1
  44. package/dist/app/lib/routing/components/Link.js +5 -5
  45. package/dist/app/lib/routing/components/RouteRenderer.d.ts +1 -1
  46. package/dist/app/lib/routing/components/RouteRenderer.js +3 -3
  47. package/dist/app/lib/routing/components/SSRRouter.d.ts +2 -2
  48. package/dist/app/lib/routing/components/SSRRouter.js +4 -4
  49. package/dist/app/lib/routing/components/ScrollRestoration.js +1 -1
  50. package/dist/app/lib/routing/context.d.ts +4 -5
  51. package/dist/app/lib/routing/context.js +1 -96
  52. package/dist/app/lib/routing/hooks/useRestorableState.js +1 -1
  53. package/dist/app/lib/routing/hooks/useRoute.d.ts +1 -1
  54. package/dist/app/lib/routing/hooks/useRoute.js +1 -1
  55. package/dist/app/lib/routing/hooks/useRouteTransition.d.ts +1 -1
  56. package/dist/app/lib/routing/hooks/useRouteTransition.js +1 -1
  57. package/dist/app/lib/routing/hooks/useRouter.d.ts +1 -1
  58. package/dist/app/lib/routing/hooks/useRouter.js +1 -1
  59. package/dist/app/lib/routing/hooks/useRouterEvents.d.ts +1 -1
  60. package/dist/app/lib/routing/hooks/useRouterEvents.js +1 -1
  61. package/dist/app/lib/routing/hooks/useRouterState.d.ts +1 -1
  62. package/dist/app/lib/routing/hooks/useRouterState.js +1 -1
  63. package/dist/app/lib/routing/hooks/useSearchParams.js +2 -2
  64. package/dist/app/lib/routing/index.d.ts +13 -13
  65. package/dist/app/lib/routing/index.js +13 -13
  66. package/dist/app/lib/routing/loader.d.ts +2 -2
  67. package/dist/app/lib/routing/loader.js +1 -1
  68. package/dist/app/lib/routing/types.d.ts +2 -2
  69. package/dist/app/lib/routing/utils.d.ts +1 -1
  70. package/dist/app/lib/routing/utils.js +1 -1
  71. package/dist/app/lib/views/index.d.ts +1 -1
  72. package/dist/app/lib/views/index.js +1 -1
  73. package/dist/app/server/index.d.ts +3 -3
  74. package/dist/app/server/index.js +3 -3
  75. package/dist/app/server/proxy-wp-admin.d.ts +1 -1
  76. package/dist/node/cli/display/tools/CreateBlock.d.ts +1 -1
  77. package/dist/node/cli/display/tools/cli-tools.d.ts +1 -11
  78. package/dist/node/cli/display/tools/cli-tools.js +9 -9
  79. package/dist/node/cli/version.d.ts +1 -1
  80. package/dist/node/cli/version.js +1 -1
  81. package/dist/node/project/favicons.d.ts +1 -0
  82. package/dist/node/project/favicons.js +1 -1
  83. package/dist/node/types/block-type.d.ts +2 -2
  84. package/package.json +3 -3
  85. package/tsconfig.app.json +2 -2
  86. package/tsconfig.node.json +2 -2
  87. package/types.app.d.ts +2 -2
  88. package/types.app.internal.d.ts +2 -2
  89. package/types.node.d.ts +3 -3
@@ -1,4 +1,4 @@
1
- import { useRouterEvents } from "../hooks/useRouterEvents";
1
+ import { useRouterEvents } from "../hooks/useRouterEvents.js";
2
2
  /**
3
3
  * Enables scroll restoration when navigation backwards, as well as resetting scroll position when navigating forwards.
4
4
  */
@@ -1,5 +1,4 @@
1
- import { Context } from "react";
2
- import { RouterAPI, RouterAPIState } from "./types";
3
- export declare const RouterContext: Context<RouterAPI>;
4
- export declare const RouterStateContext: Context<RouterAPIState>;
5
- export declare const RouteItemContext: Context<import("./types").TypedRouteState<"_unknown", {}>>;
1
+ import { RouterAPI, RouterAPIState } from "./types.js";
2
+ export declare const RouterContext: import("react").Context<RouterAPI>;
3
+ export declare const RouterStateContext: import("react").Context<RouterAPIState>;
4
+ export declare const RouteItemContext: import("react").Context<import("./types.js").TypedRouteState<"_unknown", {}>>;
@@ -1,5 +1,5 @@
1
1
  import { createContext } from "react";
2
- import { RouteLoader } from "./loader";
2
+ import { RouteLoader } from "./loader.js";
3
3
  const NOOP_ROUTE = {
4
4
  component: () => null,
5
5
  id: "initial",
@@ -32,98 +32,3 @@ export const RouterStateContext = createContext({
32
32
  blockers: [],
33
33
  });
34
34
  export const RouteItemContext = createContext(NOOP_ROUTE);
35
- // type StoreHook<State> = <Slice = State>(
36
- // selector?: (state: State) => Slice,
37
- // areEqual?: (a: Slice, b: Slice) => boolean,
38
- // ) => Slice
39
- // type Store<T> = {
40
- // subscribe(sub: (value: T) => void): () => void
41
- // value: T
42
- // update(next: T): void
43
- // }
44
- // function createStore<T>(initial: T): Store<T> {
45
- // let value = initial
46
- // const subscribers = new Set<(value: T) => void>()
47
- // return {
48
- // subscribe(sub: (value: T) => void) {
49
- // subscribers.add(sub)
50
- // return () => {
51
- // subscribers.delete(sub)
52
- // }
53
- // },
54
- // get value() {
55
- // return value
56
- // },
57
- // update(nextValue: T) {
58
- // value = nextValue
59
- // if (subscribers.size) {
60
- // console.log("UPDATE", value)
61
- // startTransition(() => {
62
- // for (let sub of subscribers) {
63
- // sub(value)
64
- // }
65
- // })
66
- // }
67
- // },
68
- // }
69
- // }
70
- // export function createStoreHook<T>(store: Store<T>): StoreHook<T> {
71
- // const hook = (selector: any) => {
72
- // const get = () => (selector ? selector(store.value) : store.value)
73
- // return useSyncExternalStore(store.subscribe, get, get)
74
- // }
75
- // return hook as StoreHook<T>
76
- // }
77
- // export function createStoreContextHook<T>(ctx: Context<Store<T>>): StoreHook<T> {
78
- // const hook = (selector: any) => {
79
- // const store = useContext(ctx)
80
- // const get = () => (selector ? selector(store.value) : store.value)
81
- // return useSyncExternalStore(store.subscribe, get, get)
82
- // }
83
- // return hook as StoreHook<T>
84
- // }
85
- // export const RouterContext = createContext<Store<RouterAPI>>(null!)
86
- // export const RouterStateContext = createContext<Store<RouterAPIState>>(null!)
87
- // export const RouteContext = createContext<Store<RouteState>>(null!)
88
- // const NOOP_ROUTE: RouteState = {
89
- // component: () => null,
90
- // id: "initial",
91
- // hash: "",
92
- // key: "initial",
93
- // pathname: "",
94
- // props: {},
95
- // uri: "",
96
- // view: "_unknown",
97
- // search: "",
98
- // query: {},
99
- // returnState: undefined,
100
- // }
101
- // export const createRouteItemStore = (initial?: RouteState) => {
102
- // return createStore<RouteState>(initial ?? NOOP_ROUTE)
103
- // }
104
- // export function createRouterAPIStore(initial?: RouterAPI) {
105
- // return createStore<RouterAPI>(
106
- // initial ?? {
107
- // loader: new RouteLoader(),
108
- // async navigate(url) {},
109
- // async prefetch(url) {},
110
- // async preload(url) {},
111
- // subscribe(fn) {
112
- // return () => {}
113
- // },
114
- // replaceHash(hash) {},
115
- // replaceQuery(query) {},
116
- // handleClickEvent(e, originalHref) {},
117
- // emitEvent(event) {},
118
- // },
119
- // )
120
- // }
121
- // export function createRouterStateStore(initial?: RouterAPIState) {
122
- // return createStore<RouterAPIState>(
123
- // initial ?? {
124
- // history: [],
125
- // activeRoute: NOOP_ROUTE,
126
- // blockers: [],
127
- // },
128
- // )
129
- // }
@@ -1,5 +1,5 @@
1
1
  import { useState } from "react";
2
- import { useRoute, useRouterEvents } from "..";
2
+ import { useRoute, useRouterEvents } from "../index.js";
3
3
  /**
4
4
  * Works exactly like useState, but allows back and forward navigation to restore the previous state.
5
5
  * You must pass a unique ID as an additional first parameter to ensure the state is restored correctly.
@@ -1,2 +1,2 @@
1
- import { RouteState } from "../types";
1
+ import { RouteState } from "../types.js";
2
2
  export declare function useRoute(): RouteState;
@@ -1,5 +1,5 @@
1
1
  import { useContext } from "react";
2
- import { RouteItemContext } from "../context";
2
+ import { RouteItemContext } from "../context.js";
3
3
  export function useRoute() {
4
4
  return useContext(RouteItemContext);
5
5
  }
@@ -1,4 +1,4 @@
1
- import type { RouteState } from "../types";
1
+ import type { RouteState } from "../types.js";
2
2
  type TransitionFunction = (currentRoute: RouteState, nextRoute: RouteState) => void | Promise<any | void>;
3
3
  export declare function useRouteTransition(func: TransitionFunction): void;
4
4
  export {};
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useRef } from "react";
2
- import { useRouter } from "./useRouter";
2
+ import { useRouter } from "./useRouter.js";
3
3
  export function useRouteTransition(func) {
4
4
  const subscribe = useRouter((r) => r.subscribe);
5
5
  const handler = useRef(func);
@@ -1,2 +1,2 @@
1
- import { RouterAPI } from "../types";
1
+ import { RouterAPI } from "../types.js";
2
2
  export declare function useRouter<T = RouterAPI>(selector?: (r: RouterAPI) => T): T;
@@ -1,5 +1,5 @@
1
1
  import { useContext } from "react";
2
- import { RouterContext } from "../context";
2
+ import { RouterContext } from "../context.js";
3
3
  export function useRouter(selector) {
4
4
  const router = useContext(RouterContext);
5
5
  if (selector) {
@@ -1,2 +1,2 @@
1
- import type { RouterEvent } from "../types";
1
+ import type { RouterEvent } from "../types.js";
2
2
  export declare function useRouterEvents(handler: (event: RouterEvent) => void): void;
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useRef } from "react";
2
- import { useRouter } from "./useRouter";
2
+ import { useRouter } from "./useRouter.js";
3
3
  export function useRouterEvents(handler) {
4
4
  const subscribe = useRouter((r) => r.subscribe);
5
5
  const ref = useRef(handler);
@@ -1,2 +1,2 @@
1
- import { RouterAPIState } from "../types";
1
+ import { RouterAPIState } from "../types.js";
2
2
  export declare function useRouterState<T = RouterAPIState>(selector?: (state: RouterAPIState) => T): T;
@@ -1,5 +1,5 @@
1
1
  import { useContext } from "react";
2
- import { RouterStateContext } from "../context";
2
+ import { RouterStateContext } from "../context.js";
3
3
  export function useRouterState(selector) {
4
4
  const ctx = useContext(RouterStateContext);
5
5
  if (selector)
@@ -1,6 +1,6 @@
1
1
  import { useMemo } from "react";
2
- import { useRoute } from "./useRoute";
3
- import { useRouter } from "./useRouter";
2
+ import { useRoute } from "./useRoute.js";
3
+ import { useRouter } from "./useRouter.js";
4
4
  export function useSearchParams(defaultValue) {
5
5
  const route = useRoute();
6
6
  const replaceQuery = useRouter((r) => r.replaceQuery);
@@ -1,13 +1,13 @@
1
- export * from "./types";
2
- export * from "./components/Link";
3
- export * from "./components/ScrollRestoration";
4
- export * from "./components/RouteRenderer";
5
- export * from "./components/ClientOnly";
6
- export * from "./hooks/useRoute";
7
- export * from "./hooks/useRouteTransition";
8
- export * from "./hooks/useRouter";
9
- export * from "./hooks/useRouterEvents";
10
- export * from "./hooks/useRouterState";
11
- export * from "./hooks/useRestorableState";
12
- export * from "./hooks/useIsSSR";
13
- export * from "./hooks/useSearchParams";
1
+ export * from "./types.js";
2
+ export * from "./components/Link.js";
3
+ export * from "./components/ScrollRestoration.js";
4
+ export * from "./components/RouteRenderer.js";
5
+ export * from "./components/ClientOnly.js";
6
+ export * from "./hooks/useRoute.js";
7
+ export * from "./hooks/useRouteTransition.js";
8
+ export * from "./hooks/useRouter.js";
9
+ export * from "./hooks/useRouterEvents.js";
10
+ export * from "./hooks/useRouterState.js";
11
+ export * from "./hooks/useRestorableState.js";
12
+ export * from "./hooks/useIsSSR.js";
13
+ export * from "./hooks/useSearchParams.js";
@@ -1,13 +1,13 @@
1
- export * from "./types";
2
- export * from "./components/Link";
3
- export * from "./components/ScrollRestoration";
4
- export * from "./components/RouteRenderer";
5
- export * from "./components/ClientOnly";
6
- export * from "./hooks/useRoute";
7
- export * from "./hooks/useRouteTransition";
8
- export * from "./hooks/useRouter";
9
- export * from "./hooks/useRouterEvents";
10
- export * from "./hooks/useRouterState";
11
- export * from "./hooks/useRestorableState";
12
- export * from "./hooks/useIsSSR";
13
- export * from "./hooks/useSearchParams";
1
+ export * from "./types.js";
2
+ export * from "./components/Link.js";
3
+ export * from "./components/ScrollRestoration.js";
4
+ export * from "./components/RouteRenderer.js";
5
+ export * from "./components/ClientOnly.js";
6
+ export * from "./hooks/useRoute.js";
7
+ export * from "./hooks/useRouteTransition.js";
8
+ export * from "./hooks/useRouter.js";
9
+ export * from "./hooks/useRouterEvents.js";
10
+ export * from "./hooks/useRouterState.js";
11
+ export * from "./hooks/useRestorableState.js";
12
+ export * from "./hooks/useIsSSR.js";
13
+ export * from "./hooks/useSearchParams.js";
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponent, PropsWithChildren } from "react";
2
- import { DynamicComponent } from "../dynamic/dynamic";
3
- import { RouteData } from "./types";
2
+ import { DynamicComponent } from "../dynamic/dynamic.js";
3
+ import { RouteData } from "./types.js";
4
4
  export type RouteCacheEntry = {
5
5
  data: RouteData;
6
6
  component: FunctionComponent;
@@ -1,5 +1,5 @@
1
1
  import { parseURL, stringifyParsedURL, stringifyQuery, withTrailingSlash } from "ufo";
2
- import { viewManifestReader } from "../internal";
2
+ import { viewManifestReader } from "../internal/read-view-manifest.js";
3
3
  export class RouteError extends Error {
4
4
  message;
5
5
  statusCode;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponent } from "react";
2
- import type { RouteLoader } from "./loader";
3
- import { LinkHandlerMode, PointerOrMouseEvent } from "./utils";
2
+ import type { RouteLoader } from "./loader.js";
3
+ import { LinkHandlerMode, PointerOrMouseEvent } from "./utils.js";
4
4
  export type ParsedRouteTags = Record<"title" | "meta" | "script" | "style" | "link", {
5
5
  [key: string]: string;
6
6
  }[]>;
@@ -1,5 +1,5 @@
1
1
  import { MouseEvent as ReactMouseEvent, PointerEvent as ReactPointerEvent } from "react";
2
- import { RouteLink, RouteState } from "./types";
2
+ import { RouteLink, RouteState } from "./types.js";
3
3
  export declare function isSameOrigin(url: string): boolean;
4
4
  export type PointerOrMouseEvent = MouseEvent | PointerEvent | ReactMouseEvent | ReactPointerEvent;
5
5
  export type LinkHandlerMode = {
@@ -1,5 +1,5 @@
1
+ import { parse as qsParse, stringify as qsStringify } from "qs";
1
2
  import { parseURL, resolveURL, stringifyParsedURL, withoutTrailingSlash } from "ufo";
2
- import { stringify as qsStringify, parse as qsParse } from "qs";
3
3
  export function isSameOrigin(url) {
4
4
  if (typeof document === "undefined") {
5
5
  return url.startsWith("/");
@@ -1 +1 @@
1
- export * from "./defineView";
1
+ export * from "./defineView.js";
@@ -1 +1 @@
1
- export * from "./defineView";
1
+ export * from "./defineView.js";
@@ -1,3 +1,3 @@
1
- export * from "./render-ssr-page";
2
- export * from "./server-context";
3
- export * from "./proxy-wp-admin";
1
+ export * from "./render-ssr-page.js";
2
+ export * from "./server-context.js";
3
+ export * from "./proxy-wp-admin.js";
@@ -1,3 +1,3 @@
1
- export * from "./render-ssr-page";
2
- export * from "./server-context";
3
- export * from "./proxy-wp-admin";
1
+ export * from "./render-ssr-page.js";
2
+ export * from "./server-context.js";
3
+ export * from "./proxy-wp-admin.js";
@@ -1,3 +1,3 @@
1
1
  import { EventHandlerRequest, H3Event } from "vinxi/http";
2
- import { ServerContext } from "./server-context";
2
+ import { ServerContext } from "./server-context.js";
3
3
  export declare function proxyWpAdmin(event: H3Event<EventHandlerRequest>, serverContext: ServerContext): Promise<Response>;
@@ -1,2 +1,2 @@
1
- import { ToolProps } from "./cli-tools";
1
+ import { ToolProps } from "./cli-tools.js";
2
2
  export declare function CreateBlock(props: ToolProps): import("react/jsx-runtime").JSX.Element;
@@ -12,15 +12,5 @@ export type ToolInfo = {
12
12
  keywords?: string[];
13
13
  component: FunctionComponent<ToolProps>;
14
14
  };
15
- export declare function findTools(term: string): {
16
- tool: {
17
- id: string;
18
- type: ToolType;
19
- keywords?: string[] | undefined;
20
- name: string;
21
- component: FunctionComponent<ToolProps>;
22
- };
23
- score: number;
24
- matches: import("@nozbe/microfuzz").FuzzyMatches;
25
- }[];
15
+ export declare function findTools(term: string): never[];
26
16
  export {};
@@ -1,15 +1,15 @@
1
- import microfuzz from "@nozbe/microfuzz";
2
1
  import { TOOLS } from "./cli-tool-list.js";
3
2
  const toolList = Object.entries(TOOLS).map(([key, value]) => ({ ...value, id: key }));
4
3
  // https://github.com/Nozbe/microfuzz/issues/1
5
4
  // @ts-ignore
6
- const fuzzy = (typeof microfuzz === "function" ? microfuzz : microfuzz.default);
7
- const fuzzyIndex = fuzzy(toolList, {
8
- getText: (tool) => [tool.name, ...(tool.keywords ? tool.keywords : [])],
9
- });
5
+ // const fuzzy = (typeof microfuzz === "function" ? microfuzz : microfuzz.default) as typeof microfuzz
6
+ // const fuzzyIndex = fuzzy(toolList, {
7
+ // getText: (tool) => [tool.name, ...(tool.keywords ? tool.keywords : [])],
8
+ // })
10
9
  export function findTools(term) {
11
- if (!term) {
12
- return toolList.map((tool) => ({ tool, score: 1, matches: [] }));
13
- }
14
- return fuzzyIndex(term).map((result) => ({ tool: result.item, score: result.score, matches: result.matches }));
10
+ return [];
11
+ // if (!term) {
12
+ // return toolList.map((tool) => ({ tool, score: 1, matches: [] }))
13
+ // }
14
+ // return fuzzyIndex(term).map((result) => ({ tool: result.item, score: result.score, matches: result.matches }))
15
15
  }
@@ -1 +1 @@
1
- export declare const VERSION = "2.0.0-beta.12";
1
+ export declare const VERSION = "2.0.0-beta.14";
@@ -1 +1 @@
1
- export const VERSION = "2.0.0-beta.12";
1
+ export const VERSION = "2.0.0-beta.14";
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1 @@
1
- "use strict";
1
+ export {};
@@ -49,7 +49,7 @@ export declare const BlockMetaSchema: z.ZodObject<{
49
49
  ancestors: string[];
50
50
  dynamic: boolean;
51
51
  allowMultiple: boolean;
52
- frontendMode: "hidden" | "childrenOnly" | "default";
52
+ frontendMode: "default" | "hidden" | "childrenOnly";
53
53
  inserter: boolean;
54
54
  description?: string | undefined;
55
55
  icon?: string | undefined;
@@ -83,7 +83,7 @@ export declare const BlockMetaSchema: z.ZodObject<{
83
83
  postMetaBlock?: {
84
84
  fieldName: string;
85
85
  } | undefined;
86
- frontendMode?: "hidden" | "childrenOnly" | "default" | undefined;
86
+ frontendMode?: "default" | "hidden" | "childrenOnly" | undefined;
87
87
  inserter?: boolean | undefined;
88
88
  }>;
89
89
  export type BlockMetadata = z.infer<typeof BlockMetaSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "2.0.0-beta.12",
3
+ "version": "2.0.0-beta.14",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -118,11 +118,11 @@
118
118
  "@types/node": "^20.9.0",
119
119
  "@types/react": "^18.3.3",
120
120
  "@types/react-dom": "^18.3.0",
121
- "typescript": "^5.5.2",
122
121
  "@types/wordpress__blocks": "^12.5.13",
123
122
  "@types/wordpress__components": "^23.0.11",
124
123
  "@types/wordpress__editor": "^13.6.7",
125
- "@types/wordpress__hooks": "^2.11.0"
124
+ "@types/wordpress__hooks": "^2.11.0",
125
+ "typescript": "^5.5.2"
126
126
  },
127
127
  "peerDependencies": {
128
128
  "react": "^18.3.1",
package/tsconfig.app.json CHANGED
@@ -3,9 +3,9 @@
3
3
  "target": "ESNext",
4
4
  "lib": ["DOM", "ESNext"],
5
5
  "jsx": "react-jsx",
6
- "module": "ESNext",
6
+ "module": "NodeNext",
7
7
  "rootDir": "./src/",
8
- "moduleResolution": "Bundler",
8
+ "moduleResolution": "NodeNext",
9
9
  "declaration": true,
10
10
  "outDir": "./dist",
11
11
  "allowJs": true,
@@ -4,8 +4,8 @@
4
4
  "lib": ["ESNext"],
5
5
  "jsx": "react-jsx",
6
6
  "rootDir": "./src/",
7
- "module": "ESNext",
8
- "moduleResolution": "Bundler",
7
+ "module": "NodeNext",
8
+ "moduleResolution": "NodeNext",
9
9
  "resolveJsonModule": true,
10
10
  "declaration": true,
11
11
  "outDir": "./dist",
package/types.app.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="vite/client" />
2
- /// <reference types="./types.meta" />
3
- /// <reference types="./types.env" />
2
+ /// <reference types="./types.meta.d.ts" />
3
+ /// <reference types="./types.env.d.ts" />
4
4
 
5
5
  declare global {
6
6
  interface ViewProps {}
@@ -1,5 +1,5 @@
1
- /// <reference types="./types.manifests" />
2
- /// <reference types="./types.app" />
1
+ /// <reference types="./types.manifests.d.ts" />
2
+ /// <reference types="./types.app.d.ts" />
3
3
 
4
4
  declare global {
5
5
  interface ViewProps {
package/types.node.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- /// <reference types="./types.app" />
2
- /// <reference types="./types.meta" />
3
- /// <reference types="./types.env" />
1
+ /// <reference types="./types.app.d.ts" />
2
+ /// <reference types="./types.meta.d.ts" />
3
+ /// <reference types="./types.env.d.ts" />