@measured/puck 0.14.3-canary.9a1cc7c → 0.14.3-canary.9df6633

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -29314,7 +29314,7 @@ var defaultViewports = [
29314
29314
  var import_ua_parser_js = require("ua-parser-js");
29315
29315
  var import_jsx_runtime2 = require("react/jsx-runtime");
29316
29316
  var defaultAppState = {
29317
- data: { content: [], root: { props: {} } },
29317
+ data: { content: [], root: { props: { title: "" } } },
29318
29318
  ui: {
29319
29319
  leftSideBarVisible: true,
29320
29320
  rightSideBarVisible: true,
@@ -31309,7 +31309,7 @@ var import_jsx_runtime13 = require("react/jsx-runtime");
31309
31309
  var getClassName9 = get_class_name_factory_default("MenuBar", styles_module_default7);
31310
31310
  var MenuBar = ({
31311
31311
  appState,
31312
- data = { content: [], root: {} },
31312
+ data = { content: [], root: { props: { title: "" } } },
31313
31313
  dispatch,
31314
31314
  menuOpen = false,
31315
31315
  onPublish,
@@ -33433,7 +33433,7 @@ var getClassName25 = get_class_name_factory_default("Puck", styles_module_defaul
33433
33433
  function Puck({
33434
33434
  children,
33435
33435
  config,
33436
- data: initialData = { content: [], root: {} },
33436
+ data: initialData = { content: [], root: { props: { title: "" } } },
33437
33437
  ui: initialUi,
33438
33438
  onChange,
33439
33439
  onPublish,
@@ -33455,7 +33455,7 @@ function Puck({
33455
33455
  () => createReducer({ config, record: historyStore.record })
33456
33456
  );
33457
33457
  const [initialAppState] = (0, import_react28.useState)(() => {
33458
- var _a2, _b, _c, _d, _e;
33458
+ var _a2, _b, _c, _d;
33459
33459
  const initial = __spreadValues(__spreadValues({}, defaultAppState.ui), initialUi);
33460
33460
  let clientUiState = {};
33461
33461
  if (typeof window !== "undefined") {
@@ -33482,12 +33482,8 @@ function Puck({
33482
33482
  };
33483
33483
  }
33484
33484
  }
33485
- const rootProps2 = initialData.root.props || initialData.root;
33486
- const defaultedRootProps = __spreadValues(__spreadValues({}, (_e = config.root) == null ? void 0 : _e.defaultProps), rootProps2);
33487
33485
  return __spreadProps(__spreadValues({}, defaultAppState), {
33488
- data: __spreadProps(__spreadValues({}, initialData), {
33489
- root: defaultedRootProps
33490
- }),
33486
+ data: initialData,
33491
33487
  ui: __spreadProps(__spreadValues(__spreadValues({}, initial), clientUiState), {
33492
33488
  // Store categories under componentList on state to allow render functions and plugins to modify
33493
33489
  componentList: config.categories ? Object.entries(config.categories).reduce(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.14.3-canary.9a1cc7c",
3
+ "version": "0.14.3-canary.9df6633",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",