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.
- package/dist/app/entry/ssr-root.d.ts +1 -1
- package/dist/app/lib/admin/index.d.ts +2 -2
- package/dist/app/lib/admin/index.js +2 -2
- 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 +974 -974
- 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.d.ts +1 -1
- package/dist/app/lib/hooks/queryUtils.js +4 -4
- package/dist/app/lib/hooks/useAppData.js +1 -1
- package/dist/app/lib/internal/index.d.ts +4 -4
- package/dist/app/lib/internal/index.js +4 -4
- 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 +4 -5
- package/dist/app/lib/routing/context.js +1 -96
- package/dist/app/lib/routing/hooks/useRestorableState.js +1 -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/routing/utils.js +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/index.d.ts +3 -3
- package/dist/app/server/index.js +3 -3
- package/dist/app/server/proxy-wp-admin.d.ts +1 -1
- 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/types/block-type.d.ts +2 -2
- package/package.json +3 -3
- 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,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
import type { RouteData } from "../lib/routing";
|
|
2
|
+
import type { RouteData } from "../lib/routing/types.js";
|
|
3
3
|
import type { RouteLoader } from "../lib/routing/loader.js";
|
|
4
4
|
export declare function SSRRoot(args: {
|
|
5
5
|
pathname: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./defineField";
|
|
2
|
-
export * from "./defineWidget";
|
|
1
|
+
export * from "./defineField.js";
|
|
2
|
+
export * from "./defineWidget.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./defineField";
|
|
2
|
-
export * from "./defineWidget";
|
|
1
|
+
export * from "./defineField.js";
|
|
2
|
+
export * from "./defineWidget.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
3
|
import * as ReactDOM from "react-dom/client";
|
|
4
|
-
import { adminManifestReader } from "../internal";
|
|
4
|
+
import { adminManifestReader } from "../internal/read-admin-manifest.js";
|
|
5
5
|
export function installFieldTypes() {
|
|
6
6
|
// @ts-ignore
|
|
7
7
|
const acf = window.acf;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
3
|
import * as ReactDOM from "react-dom/client";
|
|
4
|
-
import { adminManifestReader } from "../internal";
|
|
4
|
+
import { adminManifestReader } from "../internal/read-admin-manifest.js";
|
|
5
5
|
export function runWidgets() {
|
|
6
6
|
const elements = document.querySelectorAll("[data-widget]");
|
|
7
7
|
setTimeout(() => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment, createContext, memo, useContext, useMemo } from "react";
|
|
3
|
-
import { blockManifestReader } from "../internal/read-block-manifest";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { blockManifestReader } from "../internal/read-block-manifest.js";
|
|
4
|
+
import { addBlockMetadata } from "./block-utils.js";
|
|
5
|
+
import { ErrorBoundaryFrontend } from "./ErrorBoundaryFrontend.js";
|
|
6
|
+
import { InlineEditingContextProvider, ReadonlyInlineEditingProvider } from "./inline-editing.js";
|
|
7
7
|
export const BlocksContext = createContext(undefined);
|
|
8
8
|
/**
|
|
9
9
|
* Render a set of Gutenberg blocks
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementType } from "react";
|
|
2
|
-
import { InlineValueStore } from "./inline-editing";
|
|
2
|
+
import { InlineValueStore } from "./inline-editing.js";
|
|
3
3
|
export type InlineTextValueStore = InlineValueStore<string>;
|
|
4
4
|
type Props<T extends ElementType> = {
|
|
5
5
|
/** Specify a tag name or React component */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useRouter } from "../routing";
|
|
3
|
-
import { useBlockAppender, useBlockContext, useValueStore } from "./inline-editing";
|
|
2
|
+
import { useRouter } from "../routing/index.js";
|
|
3
|
+
import { useBlockAppender, useBlockContext, useValueStore } from "./inline-editing.js";
|
|
4
4
|
export function EditableText({ id, as, appendOnEnter, store, ...props }) {
|
|
5
5
|
if (env.admin) {
|
|
6
6
|
const readOnly = useBlockContext()?.readonly;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent } from "react";
|
|
2
|
-
import { ContentBlockLayoutProps } from "./ContentBlocks";
|
|
3
|
-
import { BlockTemplate } from "./editor/block-templates";
|
|
2
|
+
import { ContentBlockLayoutProps } from "./ContentBlocks.js";
|
|
3
|
+
import { BlockTemplate } from "./editor/block-templates.js";
|
|
4
4
|
type AppenderConfig = {
|
|
5
5
|
type: "default" | "button" | FunctionComponent<any>;
|
|
6
6
|
className?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ContentBlocks } from "./ContentBlocks";
|
|
3
|
-
import { transformBlockTemplate } from "./editor/block-templates";
|
|
4
|
-
import { blocksByTag } from "./editor/blocks-by-tag";
|
|
5
|
-
import { useBlockContext, useInnerBlocks } from "./inline-editing";
|
|
2
|
+
import { ContentBlocks } from "./ContentBlocks.js";
|
|
3
|
+
import { transformBlockTemplate } from "./editor/block-templates.js";
|
|
4
|
+
import { blocksByTag } from "./editor/blocks-by-tag.js";
|
|
5
|
+
import { useBlockContext, useInnerBlocks } from "./inline-editing.js";
|
|
6
6
|
const Appender = (props) => {
|
|
7
7
|
const clientId = useBlockContext()?.block[1].clientId;
|
|
8
8
|
if (props.type === "button") {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { QueryClientProvider } from "@tanstack/react-query";
|
|
3
3
|
import { createContext, Suspense, useContext } from "react";
|
|
4
|
-
import { getQueryClient } from "../../../utils/query-client";
|
|
5
|
-
import { blockManifestReader } from "../../internal";
|
|
6
|
-
import { ErrorBoundaryEditor } from "./ErrorBoundaryEditor";
|
|
4
|
+
import { getQueryClient } from "../../../utils/query-client.js";
|
|
5
|
+
import { blockManifestReader } from "../../internal/read-block-manifest.js";
|
|
6
|
+
import { ErrorBoundaryEditor } from "./ErrorBoundaryEditor.js";
|
|
7
7
|
export const BlockContext = createContext(undefined);
|
|
8
8
|
export function EditableBlock({ payload }) {
|
|
9
9
|
const block = useContext(BlockContext);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockTemplate } from "./block-templates";
|
|
1
|
+
import { BlockTemplate } from "./block-templates.js";
|
|
2
2
|
export type EditorConfigItem = {
|
|
3
3
|
/** Optionally indicate that the post title field should be hidden. Use then when your header template includes a post title editor already. */
|
|
4
4
|
hideTitle?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxy } from "valtio";
|
|
2
|
-
import { resolveAcfBlockName, transformBlockTemplate } from "./block-templates";
|
|
2
|
+
import { resolveAcfBlockName, transformBlockTemplate } from "./block-templates.js";
|
|
3
3
|
export const editorConfigStore = proxy({
|
|
4
4
|
config: null,
|
|
5
5
|
currentBlocksConfig: null,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
|
-
import { InlineEditingContextProvider } from "../inline-editing";
|
|
4
|
-
import { BlockContext, EditableBlock } from "./EditorSupport";
|
|
5
|
-
import { blocksByTag } from "./blocks-by-tag";
|
|
6
|
-
import { editorConfigStore, getEditingPostInfo, watchEditorTemplate } from "./editor-config";
|
|
3
|
+
import { InlineEditingContextProvider } from "../inline-editing.js";
|
|
4
|
+
import { BlockContext, EditableBlock } from "./EditorSupport.js";
|
|
5
|
+
import { blocksByTag } from "./blocks-by-tag.js";
|
|
6
|
+
import { editorConfigStore, getEditingPostInfo, watchEditorTemplate } from "./editor-config.js";
|
|
7
7
|
import { useSnapshot } from "valtio";
|
|
8
|
-
import { getBlockMetadata } from "../block-utils";
|
|
8
|
+
import { getBlockMetadata } from "../block-utils.js";
|
|
9
9
|
function listenForHandleResize() {
|
|
10
10
|
let interval = setInterval(() => {
|
|
11
11
|
let viewportTarget = document.querySelector(".interface-interface-skeleton__content");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "./ContentBlocks";
|
|
2
|
-
export * from "./EditableText";
|
|
3
|
-
export * from "./InnerBlocks";
|
|
4
|
-
export * from "./defineBlock";
|
|
5
|
-
export * from "./editor/controls";
|
|
6
|
-
export * from "./editor/usePostEditor";
|
|
7
|
-
export * from "./block-utils";
|
|
8
|
-
export { defineEditorConfig } from "./editor/editor-config";
|
|
9
|
-
export { useBlockContext, useInlineEditableValue, useInnerBlocks, useTemplate } from "./inline-editing";
|
|
1
|
+
export * from "./ContentBlocks.js";
|
|
2
|
+
export * from "./EditableText.js";
|
|
3
|
+
export * from "./InnerBlocks.js";
|
|
4
|
+
export * from "./defineBlock.js";
|
|
5
|
+
export * from "./editor/controls.js";
|
|
6
|
+
export * from "./editor/usePostEditor.js";
|
|
7
|
+
export * from "./block-utils.js";
|
|
8
|
+
export { defineEditorConfig } from "./editor/editor-config.js";
|
|
9
|
+
export { useBlockContext, useInlineEditableValue, useInnerBlocks, useTemplate } from "./inline-editing.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "./ContentBlocks";
|
|
2
|
-
export * from "./EditableText";
|
|
3
|
-
export * from "./InnerBlocks";
|
|
4
|
-
export * from "./defineBlock";
|
|
5
|
-
export * from "./editor/controls";
|
|
6
|
-
export * from "./editor/usePostEditor";
|
|
7
|
-
export * from "./block-utils";
|
|
8
|
-
export { defineEditorConfig } from "./editor/editor-config";
|
|
9
|
-
export { useBlockContext, useInlineEditableValue, useInnerBlocks, useTemplate } from "./inline-editing";
|
|
1
|
+
export * from "./ContentBlocks.js";
|
|
2
|
+
export * from "./EditableText.js";
|
|
3
|
+
export * from "./InnerBlocks.js";
|
|
4
|
+
export * from "./defineBlock.js";
|
|
5
|
+
export * from "./editor/controls.js";
|
|
6
|
+
export * from "./editor/usePostEditor.js";
|
|
7
|
+
export * from "./block-utils.js";
|
|
8
|
+
export { defineEditorConfig } from "./editor/editor-config.js";
|
|
9
|
+
export { useBlockContext, useInlineEditableValue, useInnerBlocks, useTemplate } from "./inline-editing.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useContext } from "react";
|
|
3
|
-
import { usePostEditor } from "./editor/usePostEditor";
|
|
4
|
-
import { useRoute } from "../routing";
|
|
5
|
-
import { addBlockMetadata } from "./block-utils";
|
|
3
|
+
import { usePostEditor } from "./editor/usePostEditor.js";
|
|
4
|
+
import { useRoute } from "../routing/hooks/useRoute.js";
|
|
5
|
+
import { addBlockMetadata } from "./block-utils.js";
|
|
6
6
|
const InlineEditingContext = createContext(undefined);
|
|
7
7
|
export function InlineEditingContextProvider(props) {
|
|
8
8
|
const parentContext = useContext(InlineEditingContext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "../../../../../css/devtools.css";
|
|
3
|
-
import { BreakpointIndicator } from "./BreakpointIndicator";
|
|
3
|
+
import { BreakpointIndicator } from "./BreakpointIndicator.js";
|
|
4
4
|
export default function DevUI() {
|
|
5
5
|
return (_jsx("div", { className: "eddev-ui", children: _jsx(BreakpointIndicator, {}) }));
|
|
6
6
|
}
|