eddev 0.1.32 → 0.1.33-beta-1

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.
@@ -57,6 +57,9 @@ function ContentBlocks(props) {
57
57
  return [ctx, block, blockNode];
58
58
  });
59
59
  }, [props.blocks]);
60
+ (0, react_1.useEffect)(function () {
61
+ console.log("RESTART CONTENT BLOCKS");
62
+ }, []);
60
63
  var layout = (0, react_1.useMemo)(function () {
61
64
  return blocks.filter(Boolean).map(function (_a, index) {
62
65
  var ctx = _a[0], block = _a[1], blockNode = _a[2];
@@ -373,7 +373,8 @@ function getWebpackConfig(opts) {
373
373
  },
374
374
  output: {
375
375
  filename: "[name].".concat(opts.isAdmin ? "admin" : "frontend", ".js"),
376
- publicPath: isDev ? "//127.0.0.1:".concat(opts.hotPort, "/") : "/wp-content/themes/".concat(opts.themeName, "/dist/").concat(distSuffix, "/"),
376
+ // publicPath: isDev ? `//127.0.0.1:${opts.hotPort}/` : `/wp-content/themes/${opts.themeName}/dist/${distSuffix}/`,
377
+ publicPath: "/wp-content/themes/".concat(opts.themeName, "/dist/").concat(distSuffix, "/"),
377
378
  path: outputFolder,
378
379
  globalObject: isSSR ? "this" : "self",
379
380
  clean: true,
@@ -289,6 +289,8 @@ function beginWork(opts) {
289
289
  // exportFragmentSpreadSubTypes: true,
290
290
  inlineFragmentTypes: "combine",
291
291
  onlyOperationTypes: true,
292
+ skipTypename: true,
293
+ preResolveTypes: true,
292
294
  },
293
295
  },
294
296
  "types.views.ts": {
@@ -333,7 +335,7 @@ function beginWork(opts) {
333
335
  var item = _d[_i];
334
336
  if (item.name.value === "block") {
335
337
  var blockField = (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.selectionSet) === null || _a === void 0 ? void 0 : _a.selections[0]) === null || _b === void 0 ? void 0 : _b.name) === null || _c === void 0 ? void 0 : _c.value;
336
- blockSelection = "Exclude<".concat(importedName, "[\"block\"][").concat(JSON.stringify(blockField), "], null>");
338
+ blockSelection = "Exclude<".concat(importedName, "[\"block\"][").concat(JSON.stringify(blockField), "], null | undefined>");
337
339
  }
338
340
  else {
339
341
  queryKeyVals.push([JSON.stringify(item.name.value), "".concat(importedName, "[").concat(JSON.stringify(item.name.value), "]")].join(": "));
@@ -460,9 +462,11 @@ function beginWork(opts) {
460
462
  });
461
463
  }); };
462
464
  watchGlob(Path.resolve(opts.baseDirectory, "./acf-json/*.json"), function (path) {
465
+ needsSchemaFetch = true;
463
466
  maybeRegenerate_1(path);
464
467
  });
465
468
  watchGlob(Path.resolve(opts.baseDirectory, "./backend/**/*.php"), function (path) {
469
+ needsSchemaFetch = true;
466
470
  maybeRegenerate_1(path);
467
471
  });
468
472
  watchGlob(envFile, function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "0.1.32",
3
+ "version": "0.1.33-beta-1",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "bin": {