eddev 0.3.25 → 0.3.26

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.
@@ -13,6 +13,8 @@ declare type PropTypes<T extends ElementType> = {
13
13
  defaultValue?: string;
14
14
  /** Append a new block when the user hits 'Enter' */
15
15
  appendOnEnter?: boolean;
16
+ /** Placeholder text, shown in the editor only */
17
+ placeholder?: string;
16
18
  } & ComponentPropsWithoutRef<T>;
17
19
  export declare function EditableText<T extends ElementType>({ id, as, appendOnEnter, ...props }: PropTypes<T>): import("react/jsx-runtime").JSX.Element | null;
18
20
  declare type AppenderConfig = {
@@ -167,7 +167,7 @@ function beginWork(opts) {
167
167
  });
168
168
  }); };
169
169
  // Create RPC/API types
170
- (0, promises_1.writeFile)(Path.join(opts.baseDirectory, "types.api.ts"), "\n import type { router, createContext } from \"./apis/_rpc\"\n import { createReactQueryHooks } from \"@trpc/react\"\n export {}\n \n const createQueryHooks = process.rpcEnabled ? () => createReactQueryHooks<typeof router>() : null\n \n declare global {\n type RPCUse = ReturnType<typeof createQueryHooks>\n type RPCRouter = typeof router\n type RPCContextType = Awaited<ReturnType<typeof createContext>>\n type RPCClient = ReturnType<RPCUse[\"createClient\"]>\n type RPCUseQuery = RPCUse[\"useQuery\"]\n type RPCUseMutation = RPCUse[\"useMutation\"]\n type RPCUseInfiniteQuery = RPCUse[\"useInfiniteQuery\"]\n }\n\n declare global {\n namespace NodeJS {\n interface Process {\n // @ts-ignore\n browser: boolean\n dev: boolean\n admin: boolean\n serverless: boolean\n }\n }\n }\n \n ");
170
+ (0, promises_1.writeFile)(Path.join(opts.baseDirectory, "types.api.ts"), "\n import type { router, createContext } from \"./apis/_rpc\"\n import { createReactQueryHooks } from \"@trpc/react\"\n export {}\n \n const createQueryHooks = process.rpcEnabled ? () => createReactQueryHooks<typeof router>() : null\n \n declare global {\n type RPCUse = ReturnType<Exclude<typeof createQueryHooks, null>>\n type RPCRouter = typeof router\n type RPCContextType = Awaited<ReturnType<typeof createContext>>\n type RPCClient = ReturnType<RPCUse[\"createClient\"]>\n type RPCUseQuery = RPCUse[\"useQuery\"]\n type RPCUseMutation = RPCUse[\"useMutation\"]\n type RPCUseInfiniteQuery = RPCUse[\"useInfiniteQuery\"]\n }\n\n declare global {\n namespace NodeJS {\n interface Process {\n // @ts-ignore\n browser: boolean\n dev: boolean\n admin: boolean\n serverless: boolean\n rpcEnabled: boolean\n }\n }\n }\n \n ");
171
171
  regenerate = debounce(100, function () { return __awaiter(_this, void 0, void 0, function () {
172
172
  var startTime, hasChanged, err_1, documentSets, parseErrors, _loop_1, _a, _b, _i, key, generates, errors, _c, _d, _e, file, base, config, output, err_2;
173
173
  var _this = this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "0.3.25",
3
+ "version": "0.3.26",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "bin": {