eddev 2.0.0-beta.15 → 2.0.0-beta.16
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/app/entry/ssr-root.d.ts +1 -1
- package/dist/app/lib/admin/installFieldTypes.js +1 -1
- package/dist/app/lib/admin/runWidgets.js +1 -1
- package/dist/app/lib/blocks/ContentBlocks.js +4 -4
- package/dist/app/lib/blocks/EditableText.d.ts +1 -1
- package/dist/app/lib/blocks/EditableText.js +2 -2
- package/dist/app/lib/blocks/InnerBlocks.d.ts +2 -2
- package/dist/app/lib/blocks/InnerBlocks.js +4 -4
- package/dist/app/lib/blocks/block-utils.d.ts +1 -1
- package/dist/app/lib/blocks/block-utils.js +1 -1
- package/dist/app/lib/blocks/editor/EditorSupport.js +3 -3
- package/dist/app/lib/blocks/editor/editor-config.d.ts +1 -1
- package/dist/app/lib/blocks/editor/editor-config.js +1 -1
- package/dist/app/lib/blocks/editor/installGutenbergHooks.js +5 -5
- package/dist/app/lib/blocks/editor/usePostEditor.d.ts +1 -1
- package/dist/app/lib/blocks/index.d.ts +9 -9
- package/dist/app/lib/blocks/index.js +9 -9
- package/dist/app/lib/blocks/inline-editing.d.ts +1 -1
- package/dist/app/lib/blocks/inline-editing.js +3 -3
- package/dist/app/lib/devtools/components/DevUI.js +1 -1
- package/dist/app/lib/devtools/hooks/useTailwind.d.ts +958 -958
- package/dist/app/lib/devtools/hooks/useTailwind.js +1 -1
- package/dist/app/lib/devtools/index.d.ts +1 -1
- package/dist/app/lib/devtools/index.js +1 -1
- package/dist/app/lib/devtools/loader.js +4 -4
- package/dist/app/lib/dynamic/index.d.ts +1 -1
- package/dist/app/lib/dynamic/index.js +1 -1
- package/dist/app/lib/hooks/index.d.ts +5 -5
- package/dist/app/lib/hooks/index.js +5 -5
- package/dist/app/lib/hooks/queryUtils.js +2 -2
- package/dist/app/lib/hooks/useAppData.js +1 -1
- package/dist/app/lib/internal/read-admin-manifest.d.ts +1 -1
- package/dist/app/lib/legacy-stitches/createStitches.d.ts +3 -511
- package/dist/app/lib/legacy-stitches/createStitches.js +1 -1
- package/dist/app/lib/legacy-stitches/index.d.ts +1 -1
- package/dist/app/lib/legacy-stitches/index.js +1 -1
- package/dist/app/lib/routing/components/BrowserRouter.js +4 -4
- package/dist/app/lib/routing/components/ClientOnly.js +1 -1
- package/dist/app/lib/routing/components/Link.js +5 -5
- package/dist/app/lib/routing/components/RouteRenderer.d.ts +1 -1
- package/dist/app/lib/routing/components/RouteRenderer.js +3 -3
- package/dist/app/lib/routing/components/SSRRouter.d.ts +2 -2
- package/dist/app/lib/routing/components/SSRRouter.js +4 -4
- package/dist/app/lib/routing/components/ScrollRestoration.js +1 -1
- package/dist/app/lib/routing/context.d.ts +2 -2
- package/dist/app/lib/routing/context.js +1 -1
- package/dist/app/lib/routing/hooks/useRestorableState.js +2 -1
- package/dist/app/lib/routing/hooks/useRoute.d.ts +1 -1
- package/dist/app/lib/routing/hooks/useRoute.js +1 -1
- package/dist/app/lib/routing/hooks/useRouteTransition.d.ts +1 -1
- package/dist/app/lib/routing/hooks/useRouteTransition.js +1 -1
- package/dist/app/lib/routing/hooks/useRouter.d.ts +1 -1
- package/dist/app/lib/routing/hooks/useRouter.js +1 -1
- package/dist/app/lib/routing/hooks/useRouterEvents.d.ts +1 -1
- package/dist/app/lib/routing/hooks/useRouterEvents.js +1 -1
- package/dist/app/lib/routing/hooks/useRouterState.d.ts +1 -1
- package/dist/app/lib/routing/hooks/useRouterState.js +1 -1
- package/dist/app/lib/routing/hooks/useSearchParams.js +2 -2
- package/dist/app/lib/routing/index.d.ts +13 -13
- package/dist/app/lib/routing/index.js +13 -13
- package/dist/app/lib/routing/loader.d.ts +2 -2
- package/dist/app/lib/routing/loader.js +1 -1
- package/dist/app/lib/routing/types.d.ts +2 -2
- package/dist/app/lib/routing/utils.d.ts +1 -1
- package/dist/app/lib/views/index.d.ts +1 -1
- package/dist/app/lib/views/index.js +1 -1
- package/dist/app/server/proxy-wp-admin.d.ts +1 -1
- package/dist/node/cli/display/CLIApp.js +2 -5
- package/dist/node/cli/display/tools/CreateBlock.d.ts +1 -1
- package/dist/node/cli/display/tools/cli-tools.d.ts +1 -11
- package/dist/node/cli/display/tools/cli-tools.js +9 -9
- package/dist/node/cli/version.d.ts +1 -1
- package/dist/node/cli/version.js +1 -1
- package/dist/node/project/favicons.d.ts +1 -0
- package/dist/node/project/favicons.js +1 -1
- package/dist/node/project/manifest/view-manifest.js +1 -1
- package/dist/node/project/project.d.ts +1 -1
- package/dist/node/project/project.js +4 -4
- package/dist/node/types/block-type.d.ts +2 -2
- package/package.json +1 -1
- package/tsconfig.app.json +2 -2
- package/tsconfig.node.json +2 -2
- package/types.app.d.ts +2 -2
- package/types.app.internal.d.ts +2 -2
- package/types.node.d.ts +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo, useRef, useState, useTransition } from "react";
|
|
3
3
|
import { isRelative, parseURL, resolveURL } from "ufo";
|
|
4
|
-
import { RouterContext, RouterStateContext } from "../context";
|
|
5
|
-
import { RouteLoader } from "../loader";
|
|
6
|
-
import { getLinkHandlerMode, normalizeRoute, parseQuery, stringifyRouteLink } from "../utils";
|
|
7
|
-
import { AppRenderer } from "./RouteRenderer";
|
|
4
|
+
import { RouterContext, RouterStateContext } from "../context.js";
|
|
5
|
+
import { RouteLoader } from "../loader.js";
|
|
6
|
+
import { getLinkHandlerMode, normalizeRoute, parseQuery, stringifyRouteLink } from "../utils.js";
|
|
7
|
+
import { AppRenderer } from "./RouteRenderer.js";
|
|
8
8
|
const loader = new RouteLoader();
|
|
9
9
|
let initialRoute;
|
|
10
10
|
let initialRouteHydrated = false;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useMemo } from "react";
|
|
3
3
|
import { parseURL, resolveURL, withoutTrailingSlash } from "ufo";
|
|
4
|
-
import { useIsSSR } from "../hooks/useIsSSR";
|
|
5
|
-
import { useRouter } from "../hooks/useRouter";
|
|
6
|
-
import { isSameOrigin } from "../utils";
|
|
7
|
-
import { useRoute } from "../hooks/useRoute";
|
|
8
|
-
import { useRouterState } from "../hooks/useRouterState";
|
|
4
|
+
import { useIsSSR } from "../hooks/useIsSSR.js";
|
|
5
|
+
import { useRouter } from "../hooks/useRouter.js";
|
|
6
|
+
import { isSameOrigin } from "../utils.js";
|
|
7
|
+
import { useRoute } from "../hooks/useRoute.js";
|
|
8
|
+
import { useRouterState } from "../hooks/useRouterState.js";
|
|
9
9
|
export const Link = forwardRef((props, ref) => {
|
|
10
10
|
const Comp = props.as || "a";
|
|
11
11
|
if (env.admin) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RouteState } from "../types";
|
|
1
|
+
import { RouteState } from "../types.js";
|
|
2
2
|
export declare const AppRenderer: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
|
|
3
3
|
export declare function MainRoute(): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare function RouteDisplay(props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { memo, Suspense, useMemo } from "react";
|
|
3
|
-
import { RouteItemContext } from "../context";
|
|
4
|
-
import { useRouter } from "../hooks/useRouter";
|
|
5
|
-
import { useRouterState } from "../hooks/useRouterState";
|
|
3
|
+
import { RouteItemContext } from "../context.js";
|
|
4
|
+
import { useRouter } from "../hooks/useRouter.js";
|
|
5
|
+
import { useRouterState } from "../hooks/useRouterState.js";
|
|
6
6
|
export const AppRenderer = memo(() => {
|
|
7
7
|
const { appData, appComponent: AppComponent } = useRouter().loader;
|
|
8
8
|
const { activeRoute } = useRouterState();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
|
-
import { RouteLoader } from "../loader";
|
|
3
|
-
import { RouteState } from "../types";
|
|
2
|
+
import { RouteLoader } from "../loader.js";
|
|
3
|
+
import { RouteState } from "../types.js";
|
|
4
4
|
type Props = PropsWithChildren<{
|
|
5
5
|
route: RouteState;
|
|
6
6
|
loader: RouteLoader;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense } from "react";
|
|
3
|
-
import { RouterContext, RouterStateContext } from "../context";
|
|
4
|
-
import { useRouter } from "../hooks/useRouter";
|
|
5
|
-
import { useRouterState } from "../hooks/useRouterState";
|
|
6
|
-
import { AppRenderer } from "./RouteRenderer";
|
|
3
|
+
import { RouterContext, RouterStateContext } from "../context.js";
|
|
4
|
+
import { useRouter } from "../hooks/useRouter.js";
|
|
5
|
+
import { useRouterState } from "../hooks/useRouterState.js";
|
|
6
|
+
import { AppRenderer } from "./RouteRenderer.js";
|
|
7
7
|
export function SSRRouter(props) {
|
|
8
8
|
const router = useRouter();
|
|
9
9
|
const routerState = useRouterState();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context } from "react";
|
|
2
|
-
import { RouterAPI, RouterAPIState } from "./types";
|
|
2
|
+
import { RouterAPI, RouterAPIState } from "./types.js";
|
|
3
3
|
export declare const RouterContext: Context<RouterAPI>;
|
|
4
4
|
export declare const RouterStateContext: Context<RouterAPIState>;
|
|
5
|
-
export declare const RouteItemContext: Context<import("./types").TypedRouteState<"_unknown", {}>>;
|
|
5
|
+
export declare const RouteItemContext: Context<import("./types.js").TypedRouteState<"_unknown", {}>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { useRouterEvents } from "./useRouterEvents.js";
|
|
3
|
+
import { useRoute } from "./useRoute.js";
|
|
3
4
|
/**
|
|
4
5
|
* Works exactly like useState, but allows back and forward navigation to restore the previous state.
|
|
5
6
|
* 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 type { RouteState } from "../types.js";
|
|
2
2
|
export declare function useRoute(): RouteState;
|
|
@@ -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,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,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,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,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 +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
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>;
|
|
@@ -83,17 +83,14 @@ function MainMenu(props) {
|
|
|
83
83
|
else if (key.return) {
|
|
84
84
|
const match = matches[focusIndex];
|
|
85
85
|
if (match) {
|
|
86
|
-
props.onSelect(match.tool.id)
|
|
86
|
+
// props.onSelect(match.tool.id)
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
return (_jsx(Panel, { label: "Main Menu", icon: "\u25C8", color: "yellow", info: "[ESC] to close", children: _jsxs(Box, { width: "100%", flexDirection: "column", paddingX: 1, paddingY: 0, children: [_jsxs(Box, { gap: 1, flexDirection: "row", children: [_jsx(Text, { color: "whiteBright", children: "What would you like to do?" }), _jsx(Text, { color: "gray", children: "[ESC] to close" })] }), _jsxs(Box, { paddingBottom: 1, children: [_jsx(Text, { color: "white", children: "> " }), _jsx(TextInput, { value: search, onChange: (value) => {
|
|
91
91
|
setSearch(value);
|
|
92
92
|
setFocusIndex(0);
|
|
93
|
-
}, showCursor: true, focus: true, placeholder: "Search..." })] }), matches.length === 0 ? _jsx(Text, { color: "redBright", children: "😓 No results" }) : null
|
|
94
|
-
const focused = focusIndex === index;
|
|
95
|
-
return (_jsxs(Box, { children: [_jsx(Box, { width: 3, children: _jsx(Text, { children: focused ? "👉" : "" }) }), _jsxs(Box, { children: [_jsx(Text, { color: focused ? "yellow" : "white", children: item.tool.name }), _jsx(Text, { children: String(item.score) })] })] }, item.tool.id));
|
|
96
|
-
})] }) }));
|
|
93
|
+
}, showCursor: true, focus: true, placeholder: "Search..." })] }), matches.length === 0 ? _jsx(Text, { color: "redBright", children: "😓 No results" }) : null] }) }));
|
|
97
94
|
}
|
|
98
95
|
function MiniLog({ log, border }) {
|
|
99
96
|
const color = statusColor(log.status);
|
|
@@ -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): ToolInfo[];
|
|
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
|
-
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
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.
|
|
1
|
+
export declare const VERSION = "2.0.0-beta.16";
|
package/dist/node/cli/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "2.0.0-beta.
|
|
1
|
+
export const VERSION = "2.0.0-beta.16";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { basename } from "node:path";
|
|
2
2
|
import { cliMode } from "../../cli/cli-mode.js";
|
|
3
3
|
import { ViewMetaSchema } from "../../types/view-type.js";
|
|
4
|
-
import { metaExtractor } from "../../utils/ts-export-extractor.js";
|
|
5
4
|
import { formatZodError } from "../../utils/format-zod-error.js";
|
|
6
5
|
import { fs } from "../../utils/fs.js";
|
|
6
|
+
import { metaExtractor } from "../../utils/ts-export-extractor.js";
|
|
7
7
|
import { createManifestGenerator } from "./manifest.js";
|
|
8
8
|
export function loadViewManifest(project) {
|
|
9
9
|
return createManifestGenerator({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EDConfig } from "./config.js";
|
|
2
2
|
import { BlockManifestGenerator } from "./manifest/block-manifest.js";
|
|
3
|
-
import { ViewManifestGenerator } from "./manifest/view-manifest.js";
|
|
4
3
|
import { FieldManifestGenerator } from "./manifest/field-manifest.js";
|
|
4
|
+
import { ViewManifestGenerator } from "./manifest/view-manifest.js";
|
|
5
5
|
import { WidgetManifestGenerator } from "./manifest/widget-manifest.js";
|
|
6
6
|
export declare const projectLog: import("../utils/stateful-log.js").StatefulLog<Project>;
|
|
7
7
|
type ProjectArgs = {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import { objFormat } from "obj-console";
|
|
1
2
|
import { relative, resolve } from "path";
|
|
2
3
|
import { undent } from "undent";
|
|
3
|
-
import { objFormat } from "obj-console";
|
|
4
4
|
import { getRepoInfo } from "../utils/get-repo-info.js";
|
|
5
5
|
import { isDeploying } from "../utils/is-deploying.js";
|
|
6
6
|
import { createConsole } from "../utils/stateful-log.js";
|
|
7
7
|
import { Configurator } from "./config.js";
|
|
8
|
-
import { loadBlockManifest } from "./manifest/block-manifest.js";
|
|
9
|
-
import { loadViewManifest } from "./manifest/view-manifest.js";
|
|
10
|
-
import { WPInfo } from "./wp-info.js";
|
|
11
8
|
import { ProjectEnvUtils } from "./env.js";
|
|
9
|
+
import { loadBlockManifest } from "./manifest/block-manifest.js";
|
|
12
10
|
import { loadFieldManifest } from "./manifest/field-manifest.js";
|
|
11
|
+
import { loadViewManifest } from "./manifest/view-manifest.js";
|
|
13
12
|
import { loadWidgetManifest } from "./manifest/widget-manifest.js";
|
|
13
|
+
import { WPInfo } from "./wp-info.js";
|
|
14
14
|
const console = createConsole("Project", "project");
|
|
15
15
|
export const projectLog = console;
|
|
16
16
|
/**
|
|
@@ -49,7 +49,7 @@ export declare const BlockMetaSchema: z.ZodObject<{
|
|
|
49
49
|
ancestors: string[];
|
|
50
50
|
dynamic: boolean;
|
|
51
51
|
allowMultiple: boolean;
|
|
52
|
-
frontendMode: "
|
|
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?: "
|
|
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
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": "
|
|
6
|
+
"module": "NodeNext",
|
|
7
7
|
"rootDir": "./src/",
|
|
8
|
-
"moduleResolution": "
|
|
8
|
+
"moduleResolution": "NodeNext",
|
|
9
9
|
"declaration": true,
|
|
10
10
|
"outDir": "./dist",
|
|
11
11
|
"allowJs": true,
|
package/tsconfig.node.json
CHANGED
package/types.app.d.ts
CHANGED
package/types.app.internal.d.ts
CHANGED
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" />
|