eddev 2.3.9 → 2.3.10
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/lib/blocks/EditableText.js +1 -1
- package/dist/app/utils/trpc-client.d.ts.map +1 -1
- package/dist/app/utils/trpc-client.js +2 -2
- package/dist/node/cli/version.d.ts +1 -1
- package/dist/node/cli/version.d.ts.map +1 -1
- package/dist/node/cli/version.js +1 -1
- package/dist/node/compiler/vinxi-codegen.d.ts.map +1 -1
- package/dist/node/compiler/vinxi-codegen.js +15 -1
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ export function EditableText({ id, as, appendOnEnter, removeOnDelete, plainText,
|
|
|
36
36
|
return el.textContent || undefined;
|
|
37
37
|
}
|
|
38
38
|
return undefined;
|
|
39
|
-
}, []);
|
|
39
|
+
}, [String(props.defaultValue || props.placeholder)]);
|
|
40
40
|
const appendBlocks = useBlockAppender();
|
|
41
41
|
return (_jsx(wp.blockEditor.RichText, { ...props, ref: ref, placeholder: placeholderValue, tagName: as, value: value || "", onChange: setValue, allowedFormats: props.inlineToolbar === false || plainText ? [] : props.allowedFormats, disableLineBreaks: props.disableLineBreaks, "data-allowed-formats": props.allowedFormats?.join(" "), onRemove: (forward) => {
|
|
42
42
|
if (removeOnDelete && !forward) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trpc-client.d.ts","sourceRoot":"","sources":["../../../src/app/utils/trpc-client.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"trpc-client.d.ts","sourceRoot":"","sources":["../../../src/app/utils/trpc-client.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAWpH,wBAAgB,YAAY,IAAI,iBAAiB,CAAC,GAAG,CAAC,CA6BrD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createTRPCUntypedClient, httpLink,
|
|
1
|
+
import { createTRPCUntypedClient, httpLink, httpSubscriptionLink, splitLink } from "@trpc/client";
|
|
2
2
|
import SuperJSON from "superjson";
|
|
3
3
|
import { parseURL, stringifyParsedURL } from "ufo";
|
|
4
4
|
const updatePath = (url) => {
|
|
@@ -16,7 +16,7 @@ export function getRPCClient() {
|
|
|
16
16
|
links: [
|
|
17
17
|
splitLink({
|
|
18
18
|
condition: (op) => op.type === "subscription",
|
|
19
|
-
true:
|
|
19
|
+
true: httpSubscriptionLink({
|
|
20
20
|
url: endpoint,
|
|
21
21
|
transformer: SuperJSON,
|
|
22
22
|
}),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.
|
|
1
|
+
export declare const VERSION = "2.3.10";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/node/cli/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/node/cli/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAA"}
|
package/dist/node/cli/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "2.3.
|
|
1
|
+
export const VERSION = "2.3.10";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vinxi-codegen.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-codegen.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAGlD,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAAC,UAExE;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,OAAO,iBAIlD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"vinxi-codegen.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-codegen.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAGlD,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAAC,UAExE;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,OAAO,iBAIlD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,aAquB/C"}
|
|
@@ -37,6 +37,7 @@ export function createVinxiCodegen(opts) {
|
|
|
37
37
|
cacheConfig: getCacheConfig(project.origin, project.config),
|
|
38
38
|
};
|
|
39
39
|
return code /* tsx */ `
|
|
40
|
+
/** IMPORTANT: This file is auto-generated by eddev. Do not edit. */
|
|
40
41
|
import { ServerContext } from "eddev/server"
|
|
41
42
|
import { getManifest } from "vinxi/manifest"
|
|
42
43
|
import { apiConfig } from 'eddev/hooks'
|
|
@@ -59,6 +60,7 @@ export function createVinxiCodegen(opts) {
|
|
|
59
60
|
codegen.registerFile({
|
|
60
61
|
name: "react-shim.js",
|
|
61
62
|
generate: code /* tsx */ `
|
|
63
|
+
/** IMPORTANT: This file is auto-generated by eddev. Do not edit. */
|
|
62
64
|
import React from "react"
|
|
63
65
|
import ReactDOM from "react-dom/client"
|
|
64
66
|
Object.assign(React, window.React)
|
|
@@ -88,6 +90,7 @@ export function createVinxiCodegen(opts) {
|
|
|
88
90
|
name: "entry.admin.tsx",
|
|
89
91
|
generate: () => {
|
|
90
92
|
return code /* tsx */ `
|
|
93
|
+
/** IMPORTANT: This file is auto-generated by eddev. Do not edit. */
|
|
91
94
|
${opts.serverless ? `import "./react-shim.js"` : ""}
|
|
92
95
|
${opts.serverless ? `import "vinxi/client"` : ""}
|
|
93
96
|
import "../../${project.cssEntryFile}"
|
|
@@ -109,6 +112,7 @@ export function createVinxiCodegen(opts) {
|
|
|
109
112
|
*/
|
|
110
113
|
return code /* tsx */ `
|
|
111
114
|
/// <reference types="vinxi/types/client" />
|
|
115
|
+
/** IMPORTANT: This file is auto-generated by eddev. Do not edit. */
|
|
112
116
|
/**
|
|
113
117
|
* SSR-mode frontend entry.
|
|
114
118
|
* Hydrates the main app, including the html/head/body elements.
|
|
@@ -175,6 +179,7 @@ export function createVinxiCodegen(opts) {
|
|
|
175
179
|
}
|
|
176
180
|
else {
|
|
177
181
|
return code /* tsx */ `
|
|
182
|
+
/** IMPORTANT: This file is auto-generated by eddev. Do not edit. */
|
|
178
183
|
/**
|
|
179
184
|
* SPA-mode frontend entry.
|
|
180
185
|
* Renders the main app into the empty <div id='root'> element, and expects window._PAGE_DATA to be set.
|
|
@@ -199,6 +204,7 @@ export function createVinxiCodegen(opts) {
|
|
|
199
204
|
name: "handler.bypass.ts",
|
|
200
205
|
generate: code /* tsx */ `
|
|
201
206
|
/// <reference types="vinxi/types/server" />
|
|
207
|
+
/** IMPORTANT: This file is auto-generated by eddev. Do not edit. */
|
|
202
208
|
import { createRouter, eventHandler, getCookie, setCookie } from "vinxi/http"
|
|
203
209
|
|
|
204
210
|
const BYPASS_TOKEN = process.env.VERCEL_BYPASS_TOKEN
|
|
@@ -246,6 +252,7 @@ export function createVinxiCodegen(opts) {
|
|
|
246
252
|
name: "handler.ssr-page.ts",
|
|
247
253
|
generate: code /* tsx */ `
|
|
248
254
|
/// <reference types="vinxi/types/server" />
|
|
255
|
+
/** IMPORTANT: This file is auto-generated by eddev. Do not edit. */
|
|
249
256
|
import "../../${project.cssEntryFile}"
|
|
250
257
|
import "./manifest/blocks.js"
|
|
251
258
|
import "./manifest/styles.js"
|
|
@@ -470,6 +477,7 @@ export function createVinxiCodegen(opts) {
|
|
|
470
477
|
}
|
|
471
478
|
}
|
|
472
479
|
return code /* ts */ `
|
|
480
|
+
/** IMPORTANT: This file is auto-generated by eddev. Do not edit. */
|
|
473
481
|
import { blockManifestReader } from 'eddev/_internal'
|
|
474
482
|
import { dynamic } from 'eddev/dynamic'
|
|
475
483
|
import core from '../../../blocks/_core'
|
|
@@ -513,6 +521,7 @@ export function createVinxiCodegen(opts) {
|
|
|
513
521
|
const widgetManifest = await project.widgets.get();
|
|
514
522
|
const blockManifest = await project.blocks.get();
|
|
515
523
|
return code /* ts */ `
|
|
524
|
+
/** IMPORTANT: This file is auto-generated by eddev. Do not edit. */
|
|
516
525
|
import { adminManifestReader } from 'eddev/_internal'
|
|
517
526
|
import editorConfig from '../../../blocks/_editor'
|
|
518
527
|
|
|
@@ -568,6 +577,7 @@ export function createVinxiCodegen(opts) {
|
|
|
568
577
|
generate: async () => {
|
|
569
578
|
const viewManifest = await project.views.get();
|
|
570
579
|
return code /* ts */ `
|
|
580
|
+
/** IMPORTANT: This file is auto-generated by eddev. Do not edit. */
|
|
571
581
|
import { viewManifestReader } from 'eddev/_internal'
|
|
572
582
|
import { dynamic } from 'eddev/dynamic'
|
|
573
583
|
const manifest = {${Object.entries(viewManifest.views).map(([name, view]) => {
|
|
@@ -597,6 +607,7 @@ export function createVinxiCodegen(opts) {
|
|
|
597
607
|
name: "manifest/styles.ts",
|
|
598
608
|
generate: async () => {
|
|
599
609
|
return code /* ts */ `
|
|
610
|
+
/** IMPORTANT: This file is auto-generated by eddev. Do not edit. */
|
|
600
611
|
export const getCssText = undefined
|
|
601
612
|
export const editorGlobalStyles = () => {}
|
|
602
613
|
`;
|
|
@@ -606,6 +617,7 @@ export function createVinxiCodegen(opts) {
|
|
|
606
617
|
name: "manifest/tailwind-config.ts",
|
|
607
618
|
generate: async () => {
|
|
608
619
|
return code /* ts */ `
|
|
620
|
+
/** IMPORTANT: This file is auto-generated by eddev. Do not edit. */
|
|
609
621
|
import tw from "../../../tailwind.config.ts"
|
|
610
622
|
import resolveConfig from 'tailwindcss/resolveConfig'
|
|
611
623
|
import { devToolsStore } from 'eddev/devtools'
|
|
@@ -625,7 +637,8 @@ export function createVinxiCodegen(opts) {
|
|
|
625
637
|
generate: async () => {
|
|
626
638
|
const routeManifest = await project.serverRoutes.get();
|
|
627
639
|
return code /* ts */ `
|
|
628
|
-
|
|
640
|
+
/** IMPORTANT: This file is auto-generated by eddev. Do not edit. */
|
|
641
|
+
import { instantiateRouter } from "eddev/server"
|
|
629
642
|
${routeManifest.contextFileName
|
|
630
643
|
? code /*ts*/ `
|
|
631
644
|
import createContext from "../../../${routeManifest.contextFileName}"
|
|
@@ -649,6 +662,7 @@ export function createVinxiCodegen(opts) {
|
|
|
649
662
|
name: "rpc.ts",
|
|
650
663
|
generate: code /* tsx */ `
|
|
651
664
|
/// <reference types="vinxi/types/server" />
|
|
665
|
+
/** IMPORTANT: This file is auto-generated by eddev. Do not edit. */
|
|
652
666
|
import "./context.js"
|
|
653
667
|
import { fetchRequestHandler } from "@trpc/server/adapters/fetch"
|
|
654
668
|
import { parseURL, stringifyParsedURL } from "ufo"
|