@measured/puck 0.21.0-canary.15fe8d60 → 0.21.0-canary.1d823fd9

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.
@@ -11,21 +11,25 @@ import {
11
11
  Label,
12
12
  Puck,
13
13
  Render,
14
+ blocksPlugin,
14
15
  createUsePuck,
16
+ fieldsPlugin,
17
+ outlinePlugin,
15
18
  overrideKeys,
16
19
  registerOverlayPortal,
17
20
  renderContext,
18
21
  setDeep,
19
22
  useGetPuck,
20
23
  usePuck
21
- } from "./chunk-JB4ZAK5S.mjs";
24
+ } from "./chunk-SWIW6GHU.mjs";
22
25
  import {
26
+ createReducer,
23
27
  init_react_import,
24
28
  migrate,
25
29
  resolveAllData,
26
30
  transformProps,
27
31
  walkTree
28
- } from "./chunk-TC25DCTQ.mjs";
32
+ } from "./chunk-MHKBV5D3.mjs";
29
33
 
30
34
  // bundle/no-external.ts
31
35
  init_react_import();
@@ -42,8 +46,12 @@ export {
42
46
  Label,
43
47
  Puck,
44
48
  Render,
49
+ blocksPlugin,
50
+ createReducer,
45
51
  createUsePuck,
52
+ fieldsPlugin,
46
53
  migrate,
54
+ outlinePlugin,
47
55
  overrideKeys,
48
56
  registerOverlayPortal,
49
57
  renderContext,
package/dist/rsc.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-BMbIeiqs.mjs';
3
- export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-BMbIeiqs.mjs';
2
+ import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-CegGHme5.mjs';
3
+ export { c as createReducer, m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CegGHme5.mjs';
4
4
  import 'react';
5
5
 
6
6
  declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
package/dist/rsc.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-BMbIeiqs.js';
3
- export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-BMbIeiqs.js';
2
+ import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-CegGHme5.js';
3
+ export { c as createReducer, m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CegGHme5.js';
4
4
  import 'react';
5
5
 
6
6
  declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
package/dist/rsc.js CHANGED
@@ -80,6 +80,7 @@ var __async = (__this, __arguments, generator) => {
80
80
  var rsc_exports = {};
81
81
  __export(rsc_exports, {
82
82
  Render: () => Render,
83
+ createReducer: () => createReducer,
83
84
  migrate: () => migrate,
84
85
  resolveAllData: () => resolveAllData,
85
86
  transformProps: () => transformProps,
@@ -671,7 +672,8 @@ function transformProps(data, propTransforms, config = { components: {} }) {
671
672
  var defaultViewports = [
672
673
  { width: 360, height: "auto", icon: "Smartphone", label: "Small" },
673
674
  { width: 768, height: "auto", icon: "Tablet", label: "Medium" },
674
- { width: 1280, height: "auto", icon: "Monitor", label: "Large" }
675
+ { width: 1280, height: "auto", icon: "Monitor", label: "Large" },
676
+ { width: "100%", height: "auto", icon: "FullWidth", label: "Full-width" }
675
677
  ];
676
678
 
677
679
  // store/default-app-state.ts
@@ -693,7 +695,8 @@ var defaultAppState = {
693
695
  options: [],
694
696
  controlsVisible: true
695
697
  },
696
- field: { focus: null }
698
+ field: { focus: null },
699
+ plugin: { current: null }
697
700
  },
698
701
  indexes: {
699
702
  nodes: {},
@@ -985,9 +988,483 @@ function migrate(data, config, migrationOptions) {
985
988
  data
986
989
  );
987
990
  }
991
+
992
+ // reducer/actions/set.ts
993
+ var setAction = (state, action, appStore) => {
994
+ if (typeof action.state === "object") {
995
+ const newState = __spreadValues(__spreadValues({}, state), action.state);
996
+ if (action.state.indexes) {
997
+ return newState;
998
+ }
999
+ console.warn(
1000
+ "`set` is expensive and may cause unnecessary re-renders. Consider using a more atomic action instead."
1001
+ );
1002
+ return walkAppState(newState, appStore.config);
1003
+ }
1004
+ return __spreadValues(__spreadValues({}, state), action.state(state));
1005
+ };
1006
+
1007
+ // lib/data/insert.ts
1008
+ var insert = (list, index, item) => {
1009
+ const result = Array.from(list || []);
1010
+ result.splice(index, 0, item);
1011
+ return result;
1012
+ };
1013
+
1014
+ // lib/generate-id.ts
1015
+ var import_uuid = require("uuid");
1016
+ var generateId = (type) => type ? `${type}-${(0, import_uuid.v4)()}` : (0, import_uuid.v4)();
1017
+
1018
+ // lib/data/get-ids-for-parent.ts
1019
+ var getIdsForParent = (zoneCompound, state) => {
1020
+ const [parentId] = zoneCompound.split(":");
1021
+ const node = state.indexes.nodes[parentId];
1022
+ return ((node == null ? void 0 : node.path) || []).map((p) => p.split(":")[0]);
1023
+ };
1024
+
1025
+ // lib/data/populate-ids.ts
1026
+ var populateIds = (data, config, override = false) => {
1027
+ const id = generateId(data.type);
1028
+ return walkTree(
1029
+ __spreadProps(__spreadValues({}, data), {
1030
+ props: override ? __spreadProps(__spreadValues({}, data.props), { id }) : __spreadValues({}, data.props)
1031
+ }),
1032
+ config,
1033
+ (contents) => contents.map((item) => {
1034
+ const id2 = generateId(item.type);
1035
+ return __spreadProps(__spreadValues({}, item), {
1036
+ props: override ? __spreadProps(__spreadValues({}, item.props), { id: id2 }) : __spreadValues({ id: id2 }, item.props)
1037
+ });
1038
+ })
1039
+ );
1040
+ };
1041
+
1042
+ // reducer/actions/insert.ts
1043
+ function insertAction(state, action, appStore) {
1044
+ const id = action.id || generateId(action.componentType);
1045
+ const emptyComponentData = populateIds(
1046
+ {
1047
+ type: action.componentType,
1048
+ props: __spreadProps(__spreadValues({}, appStore.config.components[action.componentType].defaultProps || {}), {
1049
+ id
1050
+ })
1051
+ },
1052
+ appStore.config
1053
+ );
1054
+ const [parentId] = action.destinationZone.split(":");
1055
+ const idsInPath = getIdsForParent(action.destinationZone, state);
1056
+ return walkAppState(
1057
+ state,
1058
+ appStore.config,
1059
+ (content, zoneCompound) => {
1060
+ if (zoneCompound === action.destinationZone) {
1061
+ return insert(
1062
+ content || [],
1063
+ action.destinationIndex,
1064
+ emptyComponentData
1065
+ );
1066
+ }
1067
+ return content;
1068
+ },
1069
+ (childItem, path) => {
1070
+ if (childItem.props.id === id || childItem.props.id === parentId) {
1071
+ return childItem;
1072
+ } else if (idsInPath.includes(childItem.props.id)) {
1073
+ return childItem;
1074
+ } else if (path.includes(action.destinationZone)) {
1075
+ return childItem;
1076
+ }
1077
+ return null;
1078
+ }
1079
+ );
1080
+ }
1081
+
1082
+ // reducer/actions/replace.ts
1083
+ var replaceAction = (state, action, appStore) => {
1084
+ const [parentId] = action.destinationZone.split(":");
1085
+ const idsInPath = getIdsForParent(action.destinationZone, state);
1086
+ const originalId = state.indexes.zones[action.destinationZone].contentIds[action.destinationIndex];
1087
+ const idChanged = originalId !== action.data.props.id;
1088
+ if (idChanged) {
1089
+ throw new Error(
1090
+ `Can't change the id during a replace action. Please us "remove" and "insert" to define a new node.`
1091
+ );
1092
+ }
1093
+ const newSlotIds = [];
1094
+ const data = walkTree(action.data, appStore.config, (contents, opts) => {
1095
+ newSlotIds.push(`${opts.parentId}:${opts.propName}`);
1096
+ return contents.map((item) => {
1097
+ const id = generateId(item.type);
1098
+ return __spreadProps(__spreadValues({}, item), {
1099
+ props: __spreadValues({ id }, item.props)
1100
+ });
1101
+ });
1102
+ });
1103
+ const stateWithDeepSlotsRemoved = __spreadValues({}, state);
1104
+ Object.keys(state.indexes.zones).forEach((zoneCompound) => {
1105
+ const id = zoneCompound.split(":")[0];
1106
+ if (id === originalId) {
1107
+ if (!newSlotIds.includes(zoneCompound)) {
1108
+ delete stateWithDeepSlotsRemoved.indexes.zones[zoneCompound];
1109
+ }
1110
+ }
1111
+ });
1112
+ return walkAppState(
1113
+ stateWithDeepSlotsRemoved,
1114
+ appStore.config,
1115
+ (content, zoneCompound) => {
1116
+ const newContent = [...content];
1117
+ if (zoneCompound === action.destinationZone) {
1118
+ newContent[action.destinationIndex] = data;
1119
+ }
1120
+ return newContent;
1121
+ },
1122
+ (childItem, path) => {
1123
+ const pathIds = path.map((p) => p.split(":")[0]);
1124
+ if (childItem.props.id === data.props.id) {
1125
+ return data;
1126
+ } else if (childItem.props.id === parentId) {
1127
+ return childItem;
1128
+ } else if (idsInPath.indexOf(childItem.props.id) > -1) {
1129
+ return childItem;
1130
+ } else if (pathIds.indexOf(data.props.id) > -1) {
1131
+ return childItem;
1132
+ }
1133
+ return null;
1134
+ }
1135
+ );
1136
+ };
1137
+
1138
+ // reducer/actions/replace-root.ts
1139
+ var replaceRootAction = (state, action, appStore) => {
1140
+ return walkAppState(
1141
+ state,
1142
+ appStore.config,
1143
+ (content) => content,
1144
+ (childItem) => {
1145
+ if (childItem.props.id === "root") {
1146
+ return __spreadProps(__spreadValues({}, childItem), {
1147
+ props: __spreadValues(__spreadValues({}, childItem.props), action.root.props),
1148
+ readOnly: action.root.readOnly
1149
+ });
1150
+ }
1151
+ return childItem;
1152
+ }
1153
+ );
1154
+ };
1155
+
1156
+ // lib/data/get-item.ts
1157
+ function getItem(selector, state) {
1158
+ var _a, _b;
1159
+ const zone = (_a = state.indexes.zones) == null ? void 0 : _a[selector.zone || rootDroppableId];
1160
+ return zone ? (_b = state.indexes.nodes[zone.contentIds[selector.index]]) == null ? void 0 : _b.data : void 0;
1161
+ }
1162
+
1163
+ // reducer/actions/duplicate.ts
1164
+ function duplicateAction(state, action, appStore) {
1165
+ const item = getItem(
1166
+ { index: action.sourceIndex, zone: action.sourceZone },
1167
+ state
1168
+ );
1169
+ const idsInPath = getIdsForParent(action.sourceZone, state);
1170
+ const newItem = __spreadProps(__spreadValues({}, item), {
1171
+ props: __spreadProps(__spreadValues({}, item.props), {
1172
+ id: generateId(item.type)
1173
+ })
1174
+ });
1175
+ const modified = walkAppState(
1176
+ state,
1177
+ appStore.config,
1178
+ (content, zoneCompound) => {
1179
+ if (zoneCompound === action.sourceZone) {
1180
+ return insert(content, action.sourceIndex + 1, item);
1181
+ }
1182
+ return content;
1183
+ },
1184
+ (childItem, path, index) => {
1185
+ const zoneCompound = path[path.length - 1];
1186
+ const parents = path.map((p) => p.split(":")[0]);
1187
+ if (parents.indexOf(newItem.props.id) > -1) {
1188
+ return __spreadProps(__spreadValues({}, childItem), {
1189
+ props: __spreadProps(__spreadValues({}, childItem.props), {
1190
+ id: generateId(childItem.type)
1191
+ })
1192
+ });
1193
+ }
1194
+ if (zoneCompound === action.sourceZone && index === action.sourceIndex + 1) {
1195
+ return newItem;
1196
+ }
1197
+ const [sourceZoneParent] = action.sourceZone.split(":");
1198
+ if (sourceZoneParent === childItem.props.id || idsInPath.indexOf(childItem.props.id) > -1) {
1199
+ return childItem;
1200
+ }
1201
+ return null;
1202
+ }
1203
+ );
1204
+ return __spreadProps(__spreadValues({}, modified), {
1205
+ ui: __spreadProps(__spreadValues({}, modified.ui), {
1206
+ itemSelector: {
1207
+ index: action.sourceIndex + 1,
1208
+ zone: action.sourceZone
1209
+ }
1210
+ })
1211
+ });
1212
+ }
1213
+
1214
+ // lib/data/remove.ts
1215
+ var remove = (list, index) => {
1216
+ const result = Array.from(list);
1217
+ result.splice(index, 1);
1218
+ return result;
1219
+ };
1220
+
1221
+ // reducer/actions/move.ts
1222
+ var moveAction = (state, action, appStore) => {
1223
+ if (action.sourceZone === action.destinationZone && action.sourceIndex === action.destinationIndex) {
1224
+ return state;
1225
+ }
1226
+ const item = getItem(
1227
+ { zone: action.sourceZone, index: action.sourceIndex },
1228
+ state
1229
+ );
1230
+ if (!item) return state;
1231
+ const idsInSourcePath = getIdsForParent(action.sourceZone, state);
1232
+ const idsInDestinationPath = getIdsForParent(action.destinationZone, state);
1233
+ return walkAppState(
1234
+ state,
1235
+ appStore.config,
1236
+ (content, zoneCompound) => {
1237
+ if (zoneCompound === action.sourceZone && zoneCompound === action.destinationZone) {
1238
+ return insert(
1239
+ remove(content, action.sourceIndex),
1240
+ action.destinationIndex,
1241
+ item
1242
+ );
1243
+ } else if (zoneCompound === action.sourceZone) {
1244
+ return remove(content, action.sourceIndex);
1245
+ } else if (zoneCompound === action.destinationZone) {
1246
+ return insert(content, action.destinationIndex, item);
1247
+ }
1248
+ return content;
1249
+ },
1250
+ (childItem, path) => {
1251
+ const [sourceZoneParent] = action.sourceZone.split(":");
1252
+ const [destinationZoneParent] = action.destinationZone.split(":");
1253
+ const childId = childItem.props.id;
1254
+ if (sourceZoneParent === childId || destinationZoneParent === childId || item.props.id === childId || idsInSourcePath.indexOf(childId) > -1 || idsInDestinationPath.indexOf(childId) > -1 || path.includes(action.destinationZone)) {
1255
+ return childItem;
1256
+ }
1257
+ return null;
1258
+ }
1259
+ );
1260
+ };
1261
+
1262
+ // reducer/actions/reorder.ts
1263
+ var reorderAction = (state, action, appStore) => {
1264
+ return moveAction(
1265
+ state,
1266
+ {
1267
+ type: "move",
1268
+ sourceIndex: action.sourceIndex,
1269
+ sourceZone: action.destinationZone,
1270
+ destinationIndex: action.destinationIndex,
1271
+ destinationZone: action.destinationZone
1272
+ },
1273
+ appStore
1274
+ );
1275
+ };
1276
+
1277
+ // reducer/actions/remove.ts
1278
+ var removeAction = (state, action, appStore) => {
1279
+ const item = getItem({ index: action.index, zone: action.zone }, state);
1280
+ const nodesToDelete = Object.entries(state.indexes.nodes).reduce(
1281
+ (acc, [nodeId, nodeData]) => {
1282
+ const pathIds = nodeData.path.map((p) => p.split(":")[0]);
1283
+ if (pathIds.includes(item.props.id)) {
1284
+ return [...acc, nodeId];
1285
+ }
1286
+ return acc;
1287
+ },
1288
+ [item.props.id]
1289
+ );
1290
+ const newState = walkAppState(
1291
+ state,
1292
+ appStore.config,
1293
+ (content, zoneCompound) => {
1294
+ if (zoneCompound === action.zone) {
1295
+ return remove(content, action.index);
1296
+ }
1297
+ return content;
1298
+ }
1299
+ );
1300
+ Object.keys(newState.data.zones || {}).forEach((zoneCompound) => {
1301
+ const parentId = zoneCompound.split(":")[0];
1302
+ if (nodesToDelete.includes(parentId) && newState.data.zones) {
1303
+ delete newState.data.zones[zoneCompound];
1304
+ }
1305
+ });
1306
+ Object.keys(newState.indexes.zones).forEach((zoneCompound) => {
1307
+ const parentId = zoneCompound.split(":")[0];
1308
+ if (nodesToDelete.includes(parentId)) {
1309
+ delete newState.indexes.zones[zoneCompound];
1310
+ }
1311
+ });
1312
+ nodesToDelete.forEach((id) => {
1313
+ delete newState.indexes.nodes[id];
1314
+ });
1315
+ return newState;
1316
+ };
1317
+
1318
+ // reducer/actions/register-zone.ts
1319
+ var zoneCache = {};
1320
+ function registerZoneAction(state, action) {
1321
+ if (zoneCache[action.zone]) {
1322
+ return __spreadProps(__spreadValues({}, state), {
1323
+ data: __spreadProps(__spreadValues({}, state.data), {
1324
+ zones: __spreadProps(__spreadValues({}, state.data.zones), {
1325
+ [action.zone]: zoneCache[action.zone]
1326
+ })
1327
+ }),
1328
+ indexes: __spreadProps(__spreadValues({}, state.indexes), {
1329
+ zones: __spreadProps(__spreadValues({}, state.indexes.zones), {
1330
+ [action.zone]: __spreadProps(__spreadValues({}, state.indexes.zones[action.zone]), {
1331
+ contentIds: zoneCache[action.zone].map((item) => item.props.id),
1332
+ type: "dropzone"
1333
+ })
1334
+ })
1335
+ })
1336
+ });
1337
+ }
1338
+ return __spreadProps(__spreadValues({}, state), { data: setupZone(state.data, action.zone) });
1339
+ }
1340
+ function unregisterZoneAction(state, action) {
1341
+ const _zones = __spreadValues({}, state.data.zones || {});
1342
+ const zoneIndex = __spreadValues({}, state.indexes.zones || {});
1343
+ if (_zones[action.zone]) {
1344
+ zoneCache[action.zone] = _zones[action.zone];
1345
+ delete _zones[action.zone];
1346
+ }
1347
+ delete zoneIndex[action.zone];
1348
+ return __spreadProps(__spreadValues({}, state), {
1349
+ data: __spreadProps(__spreadValues({}, state.data), {
1350
+ zones: _zones
1351
+ }),
1352
+ indexes: __spreadProps(__spreadValues({}, state.indexes), {
1353
+ zones: zoneIndex
1354
+ })
1355
+ });
1356
+ }
1357
+
1358
+ // reducer/actions/set-data.ts
1359
+ var setDataAction = (state, action, appStore) => {
1360
+ if (typeof action.data === "object") {
1361
+ console.warn(
1362
+ "`setData` is expensive and may cause unnecessary re-renders. Consider using a more atomic action instead."
1363
+ );
1364
+ return walkAppState(
1365
+ __spreadProps(__spreadValues({}, state), {
1366
+ data: __spreadValues(__spreadValues({}, state.data), action.data)
1367
+ }),
1368
+ appStore.config
1369
+ );
1370
+ }
1371
+ return walkAppState(
1372
+ __spreadProps(__spreadValues({}, state), {
1373
+ data: __spreadValues(__spreadValues({}, state.data), action.data(state.data))
1374
+ }),
1375
+ appStore.config
1376
+ );
1377
+ };
1378
+
1379
+ // reducer/actions/set-ui.ts
1380
+ var setUiAction = (state, action) => {
1381
+ if (typeof action.ui === "object") {
1382
+ return __spreadProps(__spreadValues({}, state), {
1383
+ ui: __spreadValues(__spreadValues({}, state.ui), action.ui)
1384
+ });
1385
+ }
1386
+ return __spreadProps(__spreadValues({}, state), {
1387
+ ui: __spreadValues(__spreadValues({}, state.ui), action.ui(state.ui))
1388
+ });
1389
+ };
1390
+
1391
+ // lib/data/make-state-public.ts
1392
+ var makeStatePublic = (state) => {
1393
+ const { data, ui } = state;
1394
+ return { data, ui };
1395
+ };
1396
+
1397
+ // reducer/index.ts
1398
+ function storeInterceptor(reducer, record, onAction) {
1399
+ return (state, action) => {
1400
+ const newAppState = reducer(state, action);
1401
+ const isValidType = ![
1402
+ "registerZone",
1403
+ "unregisterZone",
1404
+ "setData",
1405
+ "setUi",
1406
+ "set"
1407
+ ].includes(action.type);
1408
+ if (typeof action.recordHistory !== "undefined" ? action.recordHistory : isValidType) {
1409
+ if (record) record(newAppState);
1410
+ }
1411
+ onAction == null ? void 0 : onAction(action, makeStatePublic(newAppState), makeStatePublic(state));
1412
+ return newAppState;
1413
+ };
1414
+ }
1415
+ function createReducer({
1416
+ record,
1417
+ onAction,
1418
+ appStore
1419
+ }) {
1420
+ return storeInterceptor(
1421
+ (state, action) => {
1422
+ if (action.type === "set") {
1423
+ return setAction(state, action, appStore);
1424
+ }
1425
+ if (action.type === "insert") {
1426
+ return insertAction(state, action, appStore);
1427
+ }
1428
+ if (action.type === "replace") {
1429
+ return replaceAction(state, action, appStore);
1430
+ }
1431
+ if (action.type === "replaceRoot") {
1432
+ return replaceRootAction(state, action, appStore);
1433
+ }
1434
+ if (action.type === "duplicate") {
1435
+ return duplicateAction(state, action, appStore);
1436
+ }
1437
+ if (action.type === "reorder") {
1438
+ return reorderAction(state, action, appStore);
1439
+ }
1440
+ if (action.type === "move") {
1441
+ return moveAction(state, action, appStore);
1442
+ }
1443
+ if (action.type === "remove") {
1444
+ return removeAction(state, action, appStore);
1445
+ }
1446
+ if (action.type === "registerZone") {
1447
+ return registerZoneAction(state, action);
1448
+ }
1449
+ if (action.type === "unregisterZone") {
1450
+ return unregisterZoneAction(state, action);
1451
+ }
1452
+ if (action.type === "setData") {
1453
+ return setDataAction(state, action, appStore);
1454
+ }
1455
+ if (action.type === "setUi") {
1456
+ return setUiAction(state, action);
1457
+ }
1458
+ return state;
1459
+ },
1460
+ record,
1461
+ onAction
1462
+ );
1463
+ }
988
1464
  // Annotate the CommonJS export names for ESM import in node:
989
1465
  0 && (module.exports = {
990
1466
  Render,
1467
+ createReducer,
991
1468
  migrate,
992
1469
  resolveAllData,
993
1470
  transformProps,
package/dist/rsc.mjs CHANGED
@@ -2,6 +2,7 @@ import {
2
2
  SlotRenderPure,
3
3
  __spreadProps,
4
4
  __spreadValues,
5
+ createReducer,
5
6
  init_react_import,
6
7
  migrate,
7
8
  resolveAllData,
@@ -12,7 +13,7 @@ import {
12
13
  transformProps,
13
14
  useSlots,
14
15
  walkTree
15
- } from "./chunk-TC25DCTQ.mjs";
16
+ } from "./chunk-MHKBV5D3.mjs";
16
17
 
17
18
  // bundle/rsc.tsx
18
19
  init_react_import();
@@ -114,6 +115,7 @@ function Render({
114
115
  }
115
116
  export {
116
117
  Render,
118
+ createReducer,
117
119
  migrate,
118
120
  resolveAllData,
119
121
  transformProps,