@plasmicpkgs/plasmic-cms 0.0.137 → 0.0.139
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/plasmic-cms.cjs.development.js +142 -399
- package/dist/plasmic-cms.cjs.development.js.map +1 -1
- package/dist/plasmic-cms.cjs.production.min.js +1 -1
- package/dist/plasmic-cms.cjs.production.min.js.map +1 -1
- package/dist/plasmic-cms.esm.js +142 -399
- package/dist/plasmic-cms.esm.js.map +1 -1
- package/package.json +3 -3
|
@@ -20,80 +20,64 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
20
20
|
reject(error);
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
|
-
|
|
24
23
|
if (info.done) {
|
|
25
24
|
resolve(value);
|
|
26
25
|
} else {
|
|
27
26
|
Promise.resolve(value).then(_next, _throw);
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
|
-
|
|
31
29
|
function _asyncToGenerator(fn) {
|
|
32
30
|
return function () {
|
|
33
31
|
var self = this,
|
|
34
|
-
|
|
32
|
+
args = arguments;
|
|
35
33
|
return new Promise(function (resolve, reject) {
|
|
36
34
|
var gen = fn.apply(self, args);
|
|
37
|
-
|
|
38
35
|
function _next(value) {
|
|
39
36
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
40
37
|
}
|
|
41
|
-
|
|
42
38
|
function _throw(err) {
|
|
43
39
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
44
40
|
}
|
|
45
|
-
|
|
46
41
|
_next(undefined);
|
|
47
42
|
});
|
|
48
43
|
};
|
|
49
44
|
}
|
|
50
|
-
|
|
51
45
|
function _extends() {
|
|
52
|
-
_extends = Object.assign
|
|
46
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
53
47
|
for (var i = 1; i < arguments.length; i++) {
|
|
54
48
|
var source = arguments[i];
|
|
55
|
-
|
|
56
49
|
for (var key in source) {
|
|
57
50
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
58
51
|
target[key] = source[key];
|
|
59
52
|
}
|
|
60
53
|
}
|
|
61
54
|
}
|
|
62
|
-
|
|
63
55
|
return target;
|
|
64
56
|
};
|
|
65
|
-
|
|
66
57
|
return _extends.apply(this, arguments);
|
|
67
58
|
}
|
|
68
|
-
|
|
69
59
|
function _inheritsLoose(subClass, superClass) {
|
|
70
60
|
subClass.prototype = Object.create(superClass.prototype);
|
|
71
61
|
subClass.prototype.constructor = subClass;
|
|
72
|
-
|
|
73
62
|
_setPrototypeOf(subClass, superClass);
|
|
74
63
|
}
|
|
75
|
-
|
|
76
64
|
function _getPrototypeOf(o) {
|
|
77
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
65
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
78
66
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
79
67
|
};
|
|
80
68
|
return _getPrototypeOf(o);
|
|
81
69
|
}
|
|
82
|
-
|
|
83
70
|
function _setPrototypeOf(o, p) {
|
|
84
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
71
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
85
72
|
o.__proto__ = p;
|
|
86
73
|
return o;
|
|
87
74
|
};
|
|
88
|
-
|
|
89
75
|
return _setPrototypeOf(o, p);
|
|
90
76
|
}
|
|
91
|
-
|
|
92
77
|
function _isNativeReflectConstruct() {
|
|
93
78
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
94
79
|
if (Reflect.construct.sham) return false;
|
|
95
80
|
if (typeof Proxy === "function") return true;
|
|
96
|
-
|
|
97
81
|
try {
|
|
98
82
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
99
83
|
return true;
|
|
@@ -101,10 +85,9 @@ function _isNativeReflectConstruct() {
|
|
|
101
85
|
return false;
|
|
102
86
|
}
|
|
103
87
|
}
|
|
104
|
-
|
|
105
88
|
function _construct(Parent, args, Class) {
|
|
106
89
|
if (_isNativeReflectConstruct()) {
|
|
107
|
-
_construct = Reflect.construct;
|
|
90
|
+
_construct = Reflect.construct.bind();
|
|
108
91
|
} else {
|
|
109
92
|
_construct = function _construct(Parent, args, Class) {
|
|
110
93
|
var a = [null];
|
|
@@ -115,34 +98,25 @@ function _construct(Parent, args, Class) {
|
|
|
115
98
|
return instance;
|
|
116
99
|
};
|
|
117
100
|
}
|
|
118
|
-
|
|
119
101
|
return _construct.apply(null, arguments);
|
|
120
102
|
}
|
|
121
|
-
|
|
122
103
|
function _isNativeFunction(fn) {
|
|
123
104
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
124
105
|
}
|
|
125
|
-
|
|
126
106
|
function _wrapNativeSuper(Class) {
|
|
127
107
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
128
|
-
|
|
129
108
|
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
130
109
|
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
131
|
-
|
|
132
110
|
if (typeof Class !== "function") {
|
|
133
111
|
throw new TypeError("Super expression must either be null or a function");
|
|
134
112
|
}
|
|
135
|
-
|
|
136
113
|
if (typeof _cache !== "undefined") {
|
|
137
114
|
if (_cache.has(Class)) return _cache.get(Class);
|
|
138
|
-
|
|
139
115
|
_cache.set(Class, Wrapper);
|
|
140
116
|
}
|
|
141
|
-
|
|
142
117
|
function Wrapper() {
|
|
143
118
|
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
144
119
|
}
|
|
145
|
-
|
|
146
120
|
Wrapper.prototype = Object.create(Class.prototype, {
|
|
147
121
|
constructor: {
|
|
148
122
|
value: Wrapper,
|
|
@@ -153,22 +127,18 @@ function _wrapNativeSuper(Class) {
|
|
|
153
127
|
});
|
|
154
128
|
return _setPrototypeOf(Wrapper, Class);
|
|
155
129
|
};
|
|
156
|
-
|
|
157
130
|
return _wrapNativeSuper(Class);
|
|
158
131
|
}
|
|
159
|
-
|
|
160
132
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
161
133
|
if (source == null) return {};
|
|
162
134
|
var target = {};
|
|
163
135
|
var sourceKeys = Object.keys(source);
|
|
164
136
|
var key, i;
|
|
165
|
-
|
|
166
137
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
167
138
|
key = sourceKeys[i];
|
|
168
139
|
if (excluded.indexOf(key) >= 0) continue;
|
|
169
140
|
target[key] = source[key];
|
|
170
141
|
}
|
|
171
|
-
|
|
172
142
|
return target;
|
|
173
143
|
}
|
|
174
144
|
|
|
@@ -183,17 +153,16 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
183
153
|
* This source code is licensed under the MIT license found in the
|
|
184
154
|
* LICENSE file in the root directory of this source tree.
|
|
185
155
|
*/
|
|
156
|
+
|
|
186
157
|
var runtime = function (exports) {
|
|
187
158
|
|
|
188
159
|
var Op = Object.prototype;
|
|
189
160
|
var hasOwn = Op.hasOwnProperty;
|
|
190
161
|
var undefined$1; // More compressible than void 0.
|
|
191
|
-
|
|
192
162
|
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
193
163
|
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
194
164
|
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
195
165
|
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
196
|
-
|
|
197
166
|
function define(obj, key, value) {
|
|
198
167
|
Object.defineProperty(obj, key, {
|
|
199
168
|
value: value,
|
|
@@ -203,7 +172,6 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
203
172
|
});
|
|
204
173
|
return obj[key];
|
|
205
174
|
}
|
|
206
|
-
|
|
207
175
|
try {
|
|
208
176
|
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
209
177
|
define({}, "");
|
|
@@ -212,19 +180,20 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
212
180
|
return obj[key] = value;
|
|
213
181
|
};
|
|
214
182
|
}
|
|
215
|
-
|
|
216
183
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
217
184
|
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
218
185
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
219
186
|
var generator = Object.create(protoGenerator.prototype);
|
|
220
|
-
var context = new Context(tryLocsList || []);
|
|
221
|
-
// .throw, and .return methods.
|
|
187
|
+
var context = new Context(tryLocsList || []);
|
|
222
188
|
|
|
189
|
+
// The ._invoke method unifies the implementations of the .next,
|
|
190
|
+
// .throw, and .return methods.
|
|
223
191
|
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
224
192
|
return generator;
|
|
225
193
|
}
|
|
194
|
+
exports.wrap = wrap;
|
|
226
195
|
|
|
227
|
-
|
|
196
|
+
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
228
197
|
// record like context.tryEntries[i].completion. This interface could
|
|
229
198
|
// have been (and was previously) designed to take a closure to be
|
|
230
199
|
// invoked without arguments, but in all the cases we care about we
|
|
@@ -234,7 +203,6 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
234
203
|
// in every case, so we don't have to touch the arguments object. The
|
|
235
204
|
// only additional allocation required is the completion record, which
|
|
236
205
|
// has a stable shape and so hopefully should be cheap to allocate.
|
|
237
|
-
|
|
238
206
|
function tryCatch(fn, obj, arg) {
|
|
239
207
|
try {
|
|
240
208
|
return {
|
|
@@ -248,46 +216,44 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
248
216
|
};
|
|
249
217
|
}
|
|
250
218
|
}
|
|
251
|
-
|
|
252
219
|
var GenStateSuspendedStart = "suspendedStart";
|
|
253
220
|
var GenStateSuspendedYield = "suspendedYield";
|
|
254
221
|
var GenStateExecuting = "executing";
|
|
255
|
-
var GenStateCompleted = "completed";
|
|
222
|
+
var GenStateCompleted = "completed";
|
|
223
|
+
|
|
224
|
+
// Returning this object from the innerFn has the same effect as
|
|
256
225
|
// breaking out of the dispatch switch statement.
|
|
226
|
+
var ContinueSentinel = {};
|
|
257
227
|
|
|
258
|
-
|
|
228
|
+
// Dummy constructor functions that we use as the .constructor and
|
|
259
229
|
// .constructor.prototype properties for functions that return Generator
|
|
260
230
|
// objects. For full spec compliance, you may wish to configure your
|
|
261
231
|
// minifier not to mangle the names of these two functions.
|
|
262
|
-
|
|
263
232
|
function Generator() {}
|
|
264
|
-
|
|
265
233
|
function GeneratorFunction() {}
|
|
234
|
+
function GeneratorFunctionPrototype() {}
|
|
266
235
|
|
|
267
|
-
|
|
236
|
+
// This is a polyfill for %IteratorPrototype% for environments that
|
|
268
237
|
// don't natively support it.
|
|
269
|
-
|
|
270
|
-
|
|
271
238
|
var IteratorPrototype = {};
|
|
272
239
|
define(IteratorPrototype, iteratorSymbol, function () {
|
|
273
240
|
return this;
|
|
274
241
|
});
|
|
275
242
|
var getProto = Object.getPrototypeOf;
|
|
276
243
|
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
277
|
-
|
|
278
244
|
if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
279
245
|
// This environment has a native %IteratorPrototype%; use it instead
|
|
280
246
|
// of the polyfill.
|
|
281
247
|
IteratorPrototype = NativeIteratorPrototype;
|
|
282
248
|
}
|
|
283
|
-
|
|
284
249
|
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
285
250
|
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
286
251
|
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
287
252
|
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
288
|
-
GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction");
|
|
289
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
253
|
+
GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction");
|
|
290
254
|
|
|
255
|
+
// Helper for defining the .next, .throw, and .return methods of the
|
|
256
|
+
// Iterator interface in terms of a single ._invoke method.
|
|
291
257
|
function defineIteratorMethods(prototype) {
|
|
292
258
|
["next", "throw", "return"].forEach(function (method) {
|
|
293
259
|
define(prototype, method, function (arg) {
|
|
@@ -295,14 +261,13 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
295
261
|
});
|
|
296
262
|
});
|
|
297
263
|
}
|
|
298
|
-
|
|
299
264
|
exports.isGeneratorFunction = function (genFun) {
|
|
300
265
|
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
301
|
-
return ctor ? ctor === GeneratorFunction ||
|
|
266
|
+
return ctor ? ctor === GeneratorFunction ||
|
|
267
|
+
// For the native GeneratorFunction constructor, the best we can
|
|
302
268
|
// do is to check its .name property.
|
|
303
269
|
(ctor.displayName || ctor.name) === "GeneratorFunction" : false;
|
|
304
270
|
};
|
|
305
|
-
|
|
306
271
|
exports.mark = function (genFun) {
|
|
307
272
|
if (Object.setPrototypeOf) {
|
|
308
273
|
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
@@ -310,31 +275,27 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
310
275
|
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
311
276
|
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
312
277
|
}
|
|
313
|
-
|
|
314
278
|
genFun.prototype = Object.create(Gp);
|
|
315
279
|
return genFun;
|
|
316
|
-
};
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
// Within the body of any async function, `await x` is transformed to
|
|
317
283
|
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
318
284
|
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
319
285
|
// meant to be awaited.
|
|
320
|
-
|
|
321
|
-
|
|
322
286
|
exports.awrap = function (arg) {
|
|
323
287
|
return {
|
|
324
288
|
__await: arg
|
|
325
289
|
};
|
|
326
290
|
};
|
|
327
|
-
|
|
328
291
|
function AsyncIterator(generator, PromiseImpl) {
|
|
329
292
|
function invoke(method, arg, resolve, reject) {
|
|
330
293
|
var record = tryCatch(generator[method], generator, arg);
|
|
331
|
-
|
|
332
294
|
if (record.type === "throw") {
|
|
333
295
|
reject(record.arg);
|
|
334
296
|
} else {
|
|
335
297
|
var result = record.arg;
|
|
336
298
|
var value = result.value;
|
|
337
|
-
|
|
338
299
|
if (value && typeof value === "object" && hasOwn.call(value, "__await")) {
|
|
339
300
|
return PromiseImpl.resolve(value.__await).then(function (value) {
|
|
340
301
|
invoke("next", value, resolve, reject);
|
|
@@ -342,7 +303,6 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
342
303
|
invoke("throw", err, resolve, reject);
|
|
343
304
|
});
|
|
344
305
|
}
|
|
345
|
-
|
|
346
306
|
return PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
347
307
|
// When a yielded Promise is resolved, its final value becomes
|
|
348
308
|
// the .value of the Promise<{value,done}> result for the
|
|
@@ -356,17 +316,15 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
356
316
|
});
|
|
357
317
|
}
|
|
358
318
|
}
|
|
359
|
-
|
|
360
319
|
var previousPromise;
|
|
361
|
-
|
|
362
320
|
function enqueue(method, arg) {
|
|
363
321
|
function callInvokeWithMethodAndArg() {
|
|
364
322
|
return new PromiseImpl(function (resolve, reject) {
|
|
365
323
|
invoke(method, arg, resolve, reject);
|
|
366
324
|
});
|
|
367
325
|
}
|
|
368
|
-
|
|
369
|
-
|
|
326
|
+
return previousPromise =
|
|
327
|
+
// If enqueue has been called before, then we want to wait until
|
|
370
328
|
// all previous Promises have been resolved before calling invoke,
|
|
371
329
|
// so that results are always delivered in the correct order. If
|
|
372
330
|
// enqueue has not been called before, then it is important to
|
|
@@ -378,24 +336,25 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
378
336
|
// execute code before the first await. Since we implement simple
|
|
379
337
|
// async functions in terms of async generators, it is especially
|
|
380
338
|
// important to get this right, even though it requires care.
|
|
381
|
-
previousPromise ? previousPromise.then(callInvokeWithMethodAndArg,
|
|
339
|
+
previousPromise ? previousPromise.then(callInvokeWithMethodAndArg,
|
|
340
|
+
// Avoid propagating failures to Promises returned by later
|
|
382
341
|
// invocations of the iterator.
|
|
383
342
|
callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
384
|
-
}
|
|
385
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
386
|
-
|
|
343
|
+
}
|
|
387
344
|
|
|
345
|
+
// Define the unified helper method that is used to implement .next,
|
|
346
|
+
// .throw, and .return (see defineIteratorMethods).
|
|
388
347
|
this._invoke = enqueue;
|
|
389
348
|
}
|
|
390
|
-
|
|
391
349
|
defineIteratorMethods(AsyncIterator.prototype);
|
|
392
350
|
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
393
351
|
return this;
|
|
394
352
|
});
|
|
395
|
-
exports.AsyncIterator = AsyncIterator;
|
|
353
|
+
exports.AsyncIterator = AsyncIterator;
|
|
354
|
+
|
|
355
|
+
// Note that simple async functions are implemented on top of
|
|
396
356
|
// AsyncIterator objects; they just return a Promise for the value of
|
|
397
357
|
// the final result produced by the iterator.
|
|
398
|
-
|
|
399
358
|
exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
400
359
|
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
401
360
|
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
@@ -404,39 +363,32 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
404
363
|
return result.done ? result.value : iter.next();
|
|
405
364
|
});
|
|
406
365
|
};
|
|
407
|
-
|
|
408
366
|
function makeInvokeMethod(innerFn, self, context) {
|
|
409
367
|
var state = GenStateSuspendedStart;
|
|
410
368
|
return function invoke(method, arg) {
|
|
411
369
|
if (state === GenStateExecuting) {
|
|
412
370
|
throw new Error("Generator is already running");
|
|
413
371
|
}
|
|
414
|
-
|
|
415
372
|
if (state === GenStateCompleted) {
|
|
416
373
|
if (method === "throw") {
|
|
417
374
|
throw arg;
|
|
418
|
-
}
|
|
419
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
420
|
-
|
|
375
|
+
}
|
|
421
376
|
|
|
377
|
+
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
378
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
422
379
|
return doneResult();
|
|
423
380
|
}
|
|
424
|
-
|
|
425
381
|
context.method = method;
|
|
426
382
|
context.arg = arg;
|
|
427
|
-
|
|
428
383
|
while (true) {
|
|
429
384
|
var delegate = context.delegate;
|
|
430
|
-
|
|
431
385
|
if (delegate) {
|
|
432
386
|
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
433
|
-
|
|
434
387
|
if (delegateResult) {
|
|
435
388
|
if (delegateResult === ContinueSentinel) continue;
|
|
436
389
|
return delegateResult;
|
|
437
390
|
}
|
|
438
391
|
}
|
|
439
|
-
|
|
440
392
|
if (context.method === "next") {
|
|
441
393
|
// Setting context._sent for legacy support of Babel's
|
|
442
394
|
// function.sent implementation.
|
|
@@ -446,51 +398,44 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
446
398
|
state = GenStateCompleted;
|
|
447
399
|
throw context.arg;
|
|
448
400
|
}
|
|
449
|
-
|
|
450
401
|
context.dispatchException(context.arg);
|
|
451
402
|
} else if (context.method === "return") {
|
|
452
403
|
context.abrupt("return", context.arg);
|
|
453
404
|
}
|
|
454
|
-
|
|
455
405
|
state = GenStateExecuting;
|
|
456
406
|
var record = tryCatch(innerFn, self, context);
|
|
457
|
-
|
|
458
407
|
if (record.type === "normal") {
|
|
459
408
|
// If an exception is thrown from innerFn, we leave state ===
|
|
460
409
|
// GenStateExecuting and loop back for another invocation.
|
|
461
410
|
state = context.done ? GenStateCompleted : GenStateSuspendedYield;
|
|
462
|
-
|
|
463
411
|
if (record.arg === ContinueSentinel) {
|
|
464
412
|
continue;
|
|
465
413
|
}
|
|
466
|
-
|
|
467
414
|
return {
|
|
468
415
|
value: record.arg,
|
|
469
416
|
done: context.done
|
|
470
417
|
};
|
|
471
418
|
} else if (record.type === "throw") {
|
|
472
|
-
state = GenStateCompleted;
|
|
419
|
+
state = GenStateCompleted;
|
|
420
|
+
// Dispatch the exception by looping back around to the
|
|
473
421
|
// context.dispatchException(context.arg) call above.
|
|
474
|
-
|
|
475
422
|
context.method = "throw";
|
|
476
423
|
context.arg = record.arg;
|
|
477
424
|
}
|
|
478
425
|
}
|
|
479
426
|
};
|
|
480
|
-
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
481
430
|
// result, either by returning a { value, done } result from the
|
|
482
431
|
// delegate iterator, or by modifying context.method and context.arg,
|
|
483
432
|
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
484
|
-
|
|
485
|
-
|
|
486
433
|
function maybeInvokeDelegate(delegate, context) {
|
|
487
434
|
var method = delegate.iterator[context.method];
|
|
488
|
-
|
|
489
435
|
if (method === undefined$1) {
|
|
490
436
|
// A .throw or .return when the delegate iterator has no .throw
|
|
491
437
|
// method always terminates the yield* loop.
|
|
492
438
|
context.delegate = null;
|
|
493
|
-
|
|
494
439
|
if (context.method === "throw") {
|
|
495
440
|
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
496
441
|
if (delegate.iterator["return"]) {
|
|
@@ -499,51 +444,45 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
499
444
|
context.method = "return";
|
|
500
445
|
context.arg = undefined$1;
|
|
501
446
|
maybeInvokeDelegate(delegate, context);
|
|
502
|
-
|
|
503
447
|
if (context.method === "throw") {
|
|
504
448
|
// If maybeInvokeDelegate(context) changed context.method from
|
|
505
449
|
// "return" to "throw", let that override the TypeError below.
|
|
506
450
|
return ContinueSentinel;
|
|
507
451
|
}
|
|
508
452
|
}
|
|
509
|
-
|
|
510
453
|
context.method = "throw";
|
|
511
454
|
context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
512
455
|
}
|
|
513
|
-
|
|
514
456
|
return ContinueSentinel;
|
|
515
457
|
}
|
|
516
|
-
|
|
517
458
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
518
|
-
|
|
519
459
|
if (record.type === "throw") {
|
|
520
460
|
context.method = "throw";
|
|
521
461
|
context.arg = record.arg;
|
|
522
462
|
context.delegate = null;
|
|
523
463
|
return ContinueSentinel;
|
|
524
464
|
}
|
|
525
|
-
|
|
526
465
|
var info = record.arg;
|
|
527
|
-
|
|
528
466
|
if (!info) {
|
|
529
467
|
context.method = "throw";
|
|
530
468
|
context.arg = new TypeError("iterator result is not an object");
|
|
531
469
|
context.delegate = null;
|
|
532
470
|
return ContinueSentinel;
|
|
533
471
|
}
|
|
534
|
-
|
|
535
472
|
if (info.done) {
|
|
536
473
|
// Assign the result of the finished delegate to the temporary
|
|
537
474
|
// variable specified by delegate.resultName (see delegateYield).
|
|
538
|
-
context[delegate.resultName] = info.value;
|
|
475
|
+
context[delegate.resultName] = info.value;
|
|
539
476
|
|
|
540
|
-
|
|
477
|
+
// Resume execution at the desired location (see delegateYield).
|
|
478
|
+
context.next = delegate.nextLoc;
|
|
479
|
+
|
|
480
|
+
// If context.method was "throw" but the delegate handled the
|
|
541
481
|
// exception, let the outer generator proceed normally. If
|
|
542
482
|
// context.method was "next", forget context.arg since it has been
|
|
543
483
|
// "consumed" by the delegate iterator. If context.method was
|
|
544
484
|
// "return", allow the original .return call to continue in the
|
|
545
485
|
// outer generator.
|
|
546
|
-
|
|
547
486
|
if (context.method !== "return") {
|
|
548
487
|
context.method = "next";
|
|
549
488
|
context.arg = undefined$1;
|
|
@@ -551,54 +490,49 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
551
490
|
} else {
|
|
552
491
|
// Re-yield the result returned by the delegate method.
|
|
553
492
|
return info;
|
|
554
|
-
}
|
|
555
|
-
// the outer generator.
|
|
556
|
-
|
|
493
|
+
}
|
|
557
494
|
|
|
495
|
+
// The delegate iterator is finished, so forget it and continue with
|
|
496
|
+
// the outer generator.
|
|
558
497
|
context.delegate = null;
|
|
559
498
|
return ContinueSentinel;
|
|
560
|
-
}
|
|
561
|
-
// unified ._invoke helper method.
|
|
562
|
-
|
|
499
|
+
}
|
|
563
500
|
|
|
501
|
+
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
502
|
+
// unified ._invoke helper method.
|
|
564
503
|
defineIteratorMethods(Gp);
|
|
565
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
504
|
+
define(Gp, toStringTagSymbol, "Generator");
|
|
505
|
+
|
|
506
|
+
// A Generator should always return itself as the iterator object when the
|
|
566
507
|
// @@iterator function is called on it. Some browsers' implementations of the
|
|
567
508
|
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
568
509
|
// object to not be returned from this call. This ensures that doesn't happen.
|
|
569
510
|
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
570
|
-
|
|
571
511
|
define(Gp, iteratorSymbol, function () {
|
|
572
512
|
return this;
|
|
573
513
|
});
|
|
574
514
|
define(Gp, "toString", function () {
|
|
575
515
|
return "[object Generator]";
|
|
576
516
|
});
|
|
577
|
-
|
|
578
517
|
function pushTryEntry(locs) {
|
|
579
518
|
var entry = {
|
|
580
519
|
tryLoc: locs[0]
|
|
581
520
|
};
|
|
582
|
-
|
|
583
521
|
if (1 in locs) {
|
|
584
522
|
entry.catchLoc = locs[1];
|
|
585
523
|
}
|
|
586
|
-
|
|
587
524
|
if (2 in locs) {
|
|
588
525
|
entry.finallyLoc = locs[2];
|
|
589
526
|
entry.afterLoc = locs[3];
|
|
590
527
|
}
|
|
591
|
-
|
|
592
528
|
this.tryEntries.push(entry);
|
|
593
529
|
}
|
|
594
|
-
|
|
595
530
|
function resetTryEntry(entry) {
|
|
596
531
|
var record = entry.completion || {};
|
|
597
532
|
record.type = "normal";
|
|
598
533
|
delete record.arg;
|
|
599
534
|
entry.completion = record;
|
|
600
535
|
}
|
|
601
|
-
|
|
602
536
|
function Context(tryLocsList) {
|
|
603
537
|
// The root entry object (effectively a try statement without a catch
|
|
604
538
|
// or a finally block) gives us a place to store values thrown from
|
|
@@ -609,97 +543,84 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
609
543
|
tryLocsList.forEach(pushTryEntry, this);
|
|
610
544
|
this.reset(true);
|
|
611
545
|
}
|
|
612
|
-
|
|
613
546
|
exports.keys = function (object) {
|
|
614
547
|
var keys = [];
|
|
615
|
-
|
|
616
548
|
for (var key in object) {
|
|
617
549
|
keys.push(key);
|
|
618
550
|
}
|
|
551
|
+
keys.reverse();
|
|
619
552
|
|
|
620
|
-
|
|
553
|
+
// Rather than returning an object with a next method, we keep
|
|
621
554
|
// things simple and return the next function itself.
|
|
622
|
-
|
|
623
555
|
return function next() {
|
|
624
556
|
while (keys.length) {
|
|
625
557
|
var key = keys.pop();
|
|
626
|
-
|
|
627
558
|
if (key in object) {
|
|
628
559
|
next.value = key;
|
|
629
560
|
next.done = false;
|
|
630
561
|
return next;
|
|
631
562
|
}
|
|
632
|
-
}
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
// To avoid creating an additional object, we just hang the .value
|
|
633
566
|
// and .done properties off the next function object itself. This
|
|
634
567
|
// also ensures that the minifier will not anonymize the function.
|
|
635
|
-
|
|
636
|
-
|
|
637
568
|
next.done = true;
|
|
638
569
|
return next;
|
|
639
570
|
};
|
|
640
571
|
};
|
|
641
|
-
|
|
642
572
|
function values(iterable) {
|
|
643
573
|
if (iterable) {
|
|
644
574
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
645
|
-
|
|
646
575
|
if (iteratorMethod) {
|
|
647
576
|
return iteratorMethod.call(iterable);
|
|
648
577
|
}
|
|
649
|
-
|
|
650
578
|
if (typeof iterable.next === "function") {
|
|
651
579
|
return iterable;
|
|
652
580
|
}
|
|
653
|
-
|
|
654
581
|
if (!isNaN(iterable.length)) {
|
|
655
582
|
var i = -1,
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
583
|
+
next = function next() {
|
|
584
|
+
while (++i < iterable.length) {
|
|
585
|
+
if (hasOwn.call(iterable, i)) {
|
|
586
|
+
next.value = iterable[i];
|
|
587
|
+
next.done = false;
|
|
588
|
+
return next;
|
|
589
|
+
}
|
|
662
590
|
}
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
return next;
|
|
668
|
-
};
|
|
669
|
-
|
|
591
|
+
next.value = undefined$1;
|
|
592
|
+
next.done = true;
|
|
593
|
+
return next;
|
|
594
|
+
};
|
|
670
595
|
return next.next = next;
|
|
671
596
|
}
|
|
672
|
-
}
|
|
673
|
-
|
|
597
|
+
}
|
|
674
598
|
|
|
599
|
+
// Return an iterator with no values.
|
|
675
600
|
return {
|
|
676
601
|
next: doneResult
|
|
677
602
|
};
|
|
678
603
|
}
|
|
679
|
-
|
|
680
604
|
exports.values = values;
|
|
681
|
-
|
|
682
605
|
function doneResult() {
|
|
683
606
|
return {
|
|
684
607
|
value: undefined$1,
|
|
685
608
|
done: true
|
|
686
609
|
};
|
|
687
610
|
}
|
|
688
|
-
|
|
689
611
|
Context.prototype = {
|
|
690
612
|
constructor: Context,
|
|
691
613
|
reset: function reset(skipTempReset) {
|
|
692
614
|
this.prev = 0;
|
|
693
|
-
this.next = 0;
|
|
615
|
+
this.next = 0;
|
|
616
|
+
// Resetting context._sent for legacy support of Babel's
|
|
694
617
|
// function.sent implementation.
|
|
695
|
-
|
|
696
618
|
this.sent = this._sent = undefined$1;
|
|
697
619
|
this.done = false;
|
|
698
620
|
this.delegate = null;
|
|
699
621
|
this.method = "next";
|
|
700
622
|
this.arg = undefined$1;
|
|
701
623
|
this.tryEntries.forEach(resetTryEntry);
|
|
702
|
-
|
|
703
624
|
if (!skipTempReset) {
|
|
704
625
|
for (var name in this) {
|
|
705
626
|
// Not sure about the optimal order of these conditions:
|
|
@@ -713,50 +634,40 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
713
634
|
this.done = true;
|
|
714
635
|
var rootEntry = this.tryEntries[0];
|
|
715
636
|
var rootRecord = rootEntry.completion;
|
|
716
|
-
|
|
717
637
|
if (rootRecord.type === "throw") {
|
|
718
638
|
throw rootRecord.arg;
|
|
719
639
|
}
|
|
720
|
-
|
|
721
640
|
return this.rval;
|
|
722
641
|
},
|
|
723
642
|
dispatchException: function dispatchException(exception) {
|
|
724
643
|
if (this.done) {
|
|
725
644
|
throw exception;
|
|
726
645
|
}
|
|
727
|
-
|
|
728
646
|
var context = this;
|
|
729
|
-
|
|
730
647
|
function handle(loc, caught) {
|
|
731
648
|
record.type = "throw";
|
|
732
649
|
record.arg = exception;
|
|
733
650
|
context.next = loc;
|
|
734
|
-
|
|
735
651
|
if (caught) {
|
|
736
652
|
// If the dispatched exception was caught by a catch block,
|
|
737
653
|
// then let that catch block handle the exception normally.
|
|
738
654
|
context.method = "next";
|
|
739
655
|
context.arg = undefined$1;
|
|
740
656
|
}
|
|
741
|
-
|
|
742
657
|
return !!caught;
|
|
743
658
|
}
|
|
744
|
-
|
|
745
659
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
746
660
|
var entry = this.tryEntries[i];
|
|
747
661
|
var record = entry.completion;
|
|
748
|
-
|
|
749
662
|
if (entry.tryLoc === "root") {
|
|
750
663
|
// Exception thrown outside of any try block that could handle
|
|
751
664
|
// it, so set the completion value of the entire function to
|
|
752
665
|
// throw the exception.
|
|
753
666
|
return handle("end");
|
|
754
667
|
}
|
|
755
|
-
|
|
756
668
|
if (entry.tryLoc <= this.prev) {
|
|
757
669
|
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
758
670
|
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
759
|
-
|
|
760
671
|
if (hasCatch && hasFinally) {
|
|
761
672
|
if (this.prev < entry.catchLoc) {
|
|
762
673
|
return handle(entry.catchLoc, true);
|
|
@@ -780,36 +691,30 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
780
691
|
abrupt: function abrupt(type, arg) {
|
|
781
692
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
782
693
|
var entry = this.tryEntries[i];
|
|
783
|
-
|
|
784
694
|
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
785
695
|
var finallyEntry = entry;
|
|
786
696
|
break;
|
|
787
697
|
}
|
|
788
698
|
}
|
|
789
|
-
|
|
790
699
|
if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {
|
|
791
700
|
// Ignore the finally entry if control is not jumping to a
|
|
792
701
|
// location outside the try/catch block.
|
|
793
702
|
finallyEntry = null;
|
|
794
703
|
}
|
|
795
|
-
|
|
796
704
|
var record = finallyEntry ? finallyEntry.completion : {};
|
|
797
705
|
record.type = type;
|
|
798
706
|
record.arg = arg;
|
|
799
|
-
|
|
800
707
|
if (finallyEntry) {
|
|
801
708
|
this.method = "next";
|
|
802
709
|
this.next = finallyEntry.finallyLoc;
|
|
803
710
|
return ContinueSentinel;
|
|
804
711
|
}
|
|
805
|
-
|
|
806
712
|
return this.complete(record);
|
|
807
713
|
},
|
|
808
714
|
complete: function complete(record, afterLoc) {
|
|
809
715
|
if (record.type === "throw") {
|
|
810
716
|
throw record.arg;
|
|
811
717
|
}
|
|
812
|
-
|
|
813
718
|
if (record.type === "break" || record.type === "continue") {
|
|
814
719
|
this.next = record.arg;
|
|
815
720
|
} else if (record.type === "return") {
|
|
@@ -819,13 +724,11 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
819
724
|
} else if (record.type === "normal" && afterLoc) {
|
|
820
725
|
this.next = afterLoc;
|
|
821
726
|
}
|
|
822
|
-
|
|
823
727
|
return ContinueSentinel;
|
|
824
728
|
},
|
|
825
729
|
finish: function finish(finallyLoc) {
|
|
826
730
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
827
731
|
var entry = this.tryEntries[i];
|
|
828
|
-
|
|
829
732
|
if (entry.finallyLoc === finallyLoc) {
|
|
830
733
|
this.complete(entry.completion, entry.afterLoc);
|
|
831
734
|
resetTryEntry(entry);
|
|
@@ -836,21 +739,18 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
836
739
|
"catch": function _catch(tryLoc) {
|
|
837
740
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
838
741
|
var entry = this.tryEntries[i];
|
|
839
|
-
|
|
840
742
|
if (entry.tryLoc === tryLoc) {
|
|
841
743
|
var record = entry.completion;
|
|
842
|
-
|
|
843
744
|
if (record.type === "throw") {
|
|
844
745
|
var thrown = record.arg;
|
|
845
746
|
resetTryEntry(entry);
|
|
846
747
|
}
|
|
847
|
-
|
|
848
748
|
return thrown;
|
|
849
749
|
}
|
|
850
|
-
}
|
|
851
|
-
// argument that corresponds to a known catch block.
|
|
852
|
-
|
|
750
|
+
}
|
|
853
751
|
|
|
752
|
+
// The context.catch method must only be called with a location
|
|
753
|
+
// argument that corresponds to a known catch block.
|
|
854
754
|
throw new Error("illegal catch attempt");
|
|
855
755
|
},
|
|
856
756
|
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
@@ -859,27 +759,26 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
859
759
|
resultName: resultName,
|
|
860
760
|
nextLoc: nextLoc
|
|
861
761
|
};
|
|
862
|
-
|
|
863
762
|
if (this.method === "next") {
|
|
864
763
|
// Deliberately forget the last sent value so that we don't
|
|
865
764
|
// accidentally pass it on to the delegate.
|
|
866
765
|
this.arg = undefined$1;
|
|
867
766
|
}
|
|
868
|
-
|
|
869
767
|
return ContinueSentinel;
|
|
870
768
|
}
|
|
871
|
-
};
|
|
769
|
+
};
|
|
770
|
+
|
|
771
|
+
// Regardless of whether this script is executing as a CommonJS module
|
|
872
772
|
// or not, return the runtime object so that we can declare the variable
|
|
873
773
|
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
874
774
|
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
875
|
-
|
|
876
775
|
return exports;
|
|
877
|
-
}(
|
|
776
|
+
}(
|
|
777
|
+
// If this script is executing as a CommonJS module, use module.exports
|
|
878
778
|
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
879
779
|
// object. Either way, the resulting object will be used to initialize
|
|
880
780
|
// the regeneratorRuntime variable at the top of this file.
|
|
881
781
|
module.exports );
|
|
882
|
-
|
|
883
782
|
try {
|
|
884
783
|
regeneratorRuntime = runtime;
|
|
885
784
|
} catch (accidentalStrictMode) {
|
|
@@ -911,31 +810,24 @@ function queryParamsToApi(params) {
|
|
|
911
810
|
}] : undefined
|
|
912
811
|
};
|
|
913
812
|
}
|
|
914
|
-
|
|
915
813
|
var HttpError = /*#__PURE__*/function (_Error) {
|
|
916
814
|
_inheritsLoose(HttpError, _Error);
|
|
917
|
-
|
|
918
815
|
function HttpError(status, message) {
|
|
919
816
|
var _this;
|
|
920
|
-
|
|
921
817
|
_this = _Error.call(this, message) || this;
|
|
922
818
|
_this.status = status;
|
|
923
819
|
return _this;
|
|
924
820
|
}
|
|
925
|
-
|
|
926
821
|
return HttpError;
|
|
927
822
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
928
823
|
var API = /*#__PURE__*/function () {
|
|
929
824
|
function API(config) {
|
|
930
825
|
this.config = config;
|
|
931
826
|
}
|
|
932
|
-
|
|
933
827
|
var _proto = API.prototype;
|
|
934
|
-
|
|
935
828
|
_proto.get = /*#__PURE__*/function () {
|
|
936
829
|
var _get = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(endpoint, params) {
|
|
937
830
|
var url, response, message, _json$error, json;
|
|
938
|
-
|
|
939
831
|
return runtime_1.wrap(function _callee$(_context) {
|
|
940
832
|
while (1) {
|
|
941
833
|
switch (_context.prev = _context.next) {
|
|
@@ -943,7 +835,6 @@ var API = /*#__PURE__*/function () {
|
|
|
943
835
|
if (params === void 0) {
|
|
944
836
|
params = {};
|
|
945
837
|
}
|
|
946
|
-
|
|
947
838
|
url = new URL(this.config.host + "/api/v1/cms/databases/" + this.config.databaseId + endpoint);
|
|
948
839
|
url.search = new URLSearchParams(params).toString();
|
|
949
840
|
_context.next = 5;
|
|
@@ -955,38 +846,28 @@ var API = /*#__PURE__*/function () {
|
|
|
955
846
|
},
|
|
956
847
|
mode: "cors"
|
|
957
848
|
});
|
|
958
|
-
|
|
959
849
|
case 5:
|
|
960
850
|
response = _context.sent;
|
|
961
|
-
|
|
962
851
|
if (!(response.status !== 200)) {
|
|
963
852
|
_context.next = 12;
|
|
964
853
|
break;
|
|
965
854
|
}
|
|
966
|
-
|
|
967
855
|
_context.next = 9;
|
|
968
856
|
return response.text();
|
|
969
|
-
|
|
970
857
|
case 9:
|
|
971
858
|
message = _context.sent;
|
|
972
|
-
|
|
973
859
|
try {
|
|
974
860
|
json = JSON.parse(message);
|
|
975
|
-
|
|
976
861
|
if ((_json$error = json.error) != null && _json$error.message) {
|
|
977
862
|
message = json.error.message;
|
|
978
863
|
}
|
|
979
864
|
} catch (_unused) {}
|
|
980
|
-
|
|
981
865
|
throw new HttpError(response.status, message);
|
|
982
|
-
|
|
983
866
|
case 12:
|
|
984
867
|
_context.next = 14;
|
|
985
868
|
return response.json();
|
|
986
|
-
|
|
987
869
|
case 14:
|
|
988
870
|
return _context.abrupt("return", _context.sent);
|
|
989
|
-
|
|
990
871
|
case 15:
|
|
991
872
|
case "end":
|
|
992
873
|
return _context.stop();
|
|
@@ -994,14 +875,11 @@ var API = /*#__PURE__*/function () {
|
|
|
994
875
|
}
|
|
995
876
|
}, _callee, this);
|
|
996
877
|
}));
|
|
997
|
-
|
|
998
878
|
function get(_x, _x2) {
|
|
999
879
|
return _get.apply(this, arguments);
|
|
1000
880
|
}
|
|
1001
|
-
|
|
1002
881
|
return get;
|
|
1003
882
|
}();
|
|
1004
|
-
|
|
1005
883
|
_proto.fetchTables = /*#__PURE__*/function () {
|
|
1006
884
|
var _fetchTables = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2() {
|
|
1007
885
|
var response;
|
|
@@ -1012,17 +890,14 @@ var API = /*#__PURE__*/function () {
|
|
|
1012
890
|
_context2.prev = 0;
|
|
1013
891
|
_context2.next = 3;
|
|
1014
892
|
return this.get("");
|
|
1015
|
-
|
|
1016
893
|
case 3:
|
|
1017
894
|
response = _context2.sent;
|
|
1018
895
|
return _context2.abrupt("return", response.tables);
|
|
1019
|
-
|
|
1020
896
|
case 7:
|
|
1021
897
|
_context2.prev = 7;
|
|
1022
898
|
_context2.t0 = _context2["catch"](0);
|
|
1023
899
|
console.error(_context2.t0);
|
|
1024
900
|
throw _context2.t0;
|
|
1025
|
-
|
|
1026
901
|
case 11:
|
|
1027
902
|
case "end":
|
|
1028
903
|
return _context2.stop();
|
|
@@ -1030,14 +905,11 @@ var API = /*#__PURE__*/function () {
|
|
|
1030
905
|
}
|
|
1031
906
|
}, _callee2, this, [[0, 7]]);
|
|
1032
907
|
}));
|
|
1033
|
-
|
|
1034
908
|
function fetchTables() {
|
|
1035
909
|
return _fetchTables.apply(this, arguments);
|
|
1036
910
|
}
|
|
1037
|
-
|
|
1038
911
|
return fetchTables;
|
|
1039
912
|
}();
|
|
1040
|
-
|
|
1041
913
|
_proto.query = /*#__PURE__*/function () {
|
|
1042
914
|
var _query = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(table, params) {
|
|
1043
915
|
var response;
|
|
@@ -1048,7 +920,6 @@ var API = /*#__PURE__*/function () {
|
|
|
1048
920
|
if (params === void 0) {
|
|
1049
921
|
params = {};
|
|
1050
922
|
}
|
|
1051
|
-
|
|
1052
923
|
_context3.prev = 1;
|
|
1053
924
|
_context3.next = 4;
|
|
1054
925
|
return this.get("/tables/" + table + "/query", {
|
|
@@ -1056,17 +927,14 @@ var API = /*#__PURE__*/function () {
|
|
|
1056
927
|
draft: Number(params.useDraft),
|
|
1057
928
|
locale: this.config.locale
|
|
1058
929
|
});
|
|
1059
|
-
|
|
1060
930
|
case 4:
|
|
1061
931
|
response = _context3.sent;
|
|
1062
932
|
return _context3.abrupt("return", response.rows);
|
|
1063
|
-
|
|
1064
933
|
case 8:
|
|
1065
934
|
_context3.prev = 8;
|
|
1066
935
|
_context3.t0 = _context3["catch"](1);
|
|
1067
936
|
console.error(_context3.t0);
|
|
1068
937
|
throw _context3.t0;
|
|
1069
|
-
|
|
1070
938
|
case 12:
|
|
1071
939
|
case "end":
|
|
1072
940
|
return _context3.stop();
|
|
@@ -1074,21 +942,17 @@ var API = /*#__PURE__*/function () {
|
|
|
1074
942
|
}
|
|
1075
943
|
}, _callee3, this, [[1, 8]]);
|
|
1076
944
|
}));
|
|
1077
|
-
|
|
1078
945
|
function query(_x3, _x4) {
|
|
1079
946
|
return _query.apply(this, arguments);
|
|
1080
947
|
}
|
|
1081
|
-
|
|
1082
948
|
return query;
|
|
1083
949
|
}();
|
|
1084
|
-
|
|
1085
950
|
return API;
|
|
1086
951
|
}();
|
|
1087
952
|
function mkApi(config) {
|
|
1088
953
|
if (!config) {
|
|
1089
954
|
throw new Error("Component must be wrapped in 'CMS Data Provider'.");
|
|
1090
955
|
}
|
|
1091
|
-
|
|
1092
956
|
return new API(config);
|
|
1093
957
|
}
|
|
1094
958
|
|
|
@@ -1100,23 +964,19 @@ var mkQueryContextKey = function mkQueryContextKey(table) {
|
|
|
1100
964
|
return "" + contextPrefix + capitalizeFirst(table) + collectionResultSuffix;
|
|
1101
965
|
};
|
|
1102
966
|
var itemContextSuffix = "Item";
|
|
1103
|
-
|
|
1104
967
|
var mkRowContextKey = function mkRowContextKey(table) {
|
|
1105
968
|
return "" + contextPrefix + capitalizeFirst(table) + itemContextSuffix;
|
|
1106
969
|
};
|
|
1107
|
-
|
|
1108
970
|
function capitalizeFirst(str) {
|
|
1109
971
|
var _str$;
|
|
1110
|
-
|
|
1111
972
|
return ((_str$ = str[0]) == null ? void 0 : _str$.toUpperCase()) + str.slice(1);
|
|
1112
973
|
}
|
|
1113
|
-
|
|
1114
974
|
function useDatabase() {
|
|
1115
975
|
return host.useSelector(databaseContextKey);
|
|
1116
976
|
}
|
|
1117
977
|
function DatabaseProvider(_ref) {
|
|
1118
978
|
var config = _ref.config,
|
|
1119
|
-
|
|
979
|
+
children = _ref.children;
|
|
1120
980
|
return React__default.createElement(host.DataProvider, {
|
|
1121
981
|
name: databaseContextKey,
|
|
1122
982
|
data: config,
|
|
@@ -1128,25 +988,23 @@ function useTables() {
|
|
|
1128
988
|
}
|
|
1129
989
|
function TablesProvider(_ref2) {
|
|
1130
990
|
var children = _ref2.children,
|
|
1131
|
-
|
|
991
|
+
tables = _ref2.tables;
|
|
1132
992
|
return React__default.createElement(host.DataProvider, {
|
|
1133
993
|
name: tablesContextKey,
|
|
1134
994
|
data: tables,
|
|
1135
995
|
hidden: true
|
|
1136
996
|
}, children);
|
|
1137
997
|
}
|
|
1138
|
-
|
|
1139
998
|
function getClosestMatchingKeys(env, suffix) {
|
|
1140
999
|
return [].concat(Object.keys(env).reverse()).filter(function (k) {
|
|
1141
1000
|
return k.endsWith(suffix);
|
|
1142
1001
|
});
|
|
1143
1002
|
}
|
|
1144
|
-
|
|
1145
1003
|
function QueryResultProvider(_ref3) {
|
|
1146
1004
|
var children = _ref3.children,
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1005
|
+
table = _ref3.table,
|
|
1006
|
+
rows = _ref3.rows,
|
|
1007
|
+
hidden = _ref3.hidden;
|
|
1150
1008
|
return React__default.createElement(host.DataProvider, {
|
|
1151
1009
|
name: mkQueryContextKey(table),
|
|
1152
1010
|
data: rows,
|
|
@@ -1156,15 +1014,12 @@ function QueryResultProvider(_ref3) {
|
|
|
1156
1014
|
function useTablesWithDataLoaded() {
|
|
1157
1015
|
var env = host.useDataEnv();
|
|
1158
1016
|
var tables = useTables();
|
|
1159
|
-
|
|
1160
1017
|
if (!env) {
|
|
1161
1018
|
return undefined;
|
|
1162
1019
|
}
|
|
1163
|
-
|
|
1164
1020
|
if (!tables) {
|
|
1165
1021
|
return undefined;
|
|
1166
1022
|
}
|
|
1167
|
-
|
|
1168
1023
|
var matchingKeys = getClosestMatchingKeys(env, itemContextSuffix);
|
|
1169
1024
|
return tables.filter(function (table) {
|
|
1170
1025
|
return matchingKeys.some(function (key) {
|
|
@@ -1174,28 +1029,24 @@ function useTablesWithDataLoaded() {
|
|
|
1174
1029
|
}
|
|
1175
1030
|
function useRow(tables, table) {
|
|
1176
1031
|
var env = host.useDataEnv();
|
|
1177
|
-
|
|
1178
1032
|
if (!env) {
|
|
1179
1033
|
return undefined;
|
|
1180
1034
|
}
|
|
1181
|
-
|
|
1182
1035
|
if (!table && tables && tables.length > 0) {
|
|
1183
1036
|
table = tables[0].identifier;
|
|
1184
1037
|
}
|
|
1185
|
-
|
|
1186
1038
|
if (table) {
|
|
1187
1039
|
return {
|
|
1188
1040
|
table: table,
|
|
1189
1041
|
row: env[mkRowContextKey(table)]
|
|
1190
1042
|
};
|
|
1191
1043
|
}
|
|
1192
|
-
|
|
1193
1044
|
return undefined;
|
|
1194
1045
|
}
|
|
1195
1046
|
function RowProvider(_ref4) {
|
|
1196
1047
|
var children = _ref4.children,
|
|
1197
|
-
|
|
1198
|
-
|
|
1048
|
+
table = _ref4.table,
|
|
1049
|
+
row = _ref4.row;
|
|
1199
1050
|
return React__default.createElement(host.DataProvider, {
|
|
1200
1051
|
name: mkRowContextKey(table),
|
|
1201
1052
|
data: row
|
|
@@ -1206,7 +1057,6 @@ function mkTableOptions(tables) {
|
|
|
1206
1057
|
if (!tables) {
|
|
1207
1058
|
return [];
|
|
1208
1059
|
}
|
|
1209
|
-
|
|
1210
1060
|
return tables.map(function (table) {
|
|
1211
1061
|
return {
|
|
1212
1062
|
value: table.identifier,
|
|
@@ -1218,23 +1068,18 @@ function mkFieldOptions(tables, tableIdentifier, types) {
|
|
|
1218
1068
|
if (!tables) {
|
|
1219
1069
|
return [];
|
|
1220
1070
|
}
|
|
1221
|
-
|
|
1222
1071
|
var table = tables.find(function (t) {
|
|
1223
1072
|
return t.identifier === tableIdentifier;
|
|
1224
1073
|
});
|
|
1225
|
-
|
|
1226
1074
|
if (!table) {
|
|
1227
1075
|
return [];
|
|
1228
1076
|
}
|
|
1229
|
-
|
|
1230
1077
|
var fields = table.schema.fields;
|
|
1231
|
-
|
|
1232
1078
|
if (types) {
|
|
1233
1079
|
fields = fields.filter(function (f) {
|
|
1234
1080
|
return types.includes(f.type);
|
|
1235
1081
|
});
|
|
1236
1082
|
}
|
|
1237
|
-
|
|
1238
1083
|
return fields.map(function (f) {
|
|
1239
1084
|
return {
|
|
1240
1085
|
value: f.identifier,
|
|
@@ -1244,18 +1089,15 @@ function mkFieldOptions(tables, tableIdentifier, types) {
|
|
|
1244
1089
|
}
|
|
1245
1090
|
|
|
1246
1091
|
var _excluded = ["className", "table", "field", "dateFormat", "setControlContextData"],
|
|
1247
|
-
|
|
1092
|
+
_excluded2 = ["table", "field", "valueProp", "children", "setControlContextData"];
|
|
1248
1093
|
var modulePath = "@plasmicpkgs/plasmic-cms";
|
|
1249
1094
|
var componentPrefix = "hostless-plasmic-cms";
|
|
1250
|
-
|
|
1251
1095
|
function renderMaybeData(maybeData, renderFn, loaderProps, inEditor, loadingMessage, forceLoadingState) {
|
|
1252
1096
|
if ("error" in maybeData) {
|
|
1253
1097
|
var error = maybeData.error;
|
|
1254
|
-
|
|
1255
1098
|
if (!inEditor) {
|
|
1256
1099
|
return React__default.createElement(React__default.Fragment, null, loadingMessage != null ? loadingMessage : React__default.createElement("div", null, "Loading..."));
|
|
1257
1100
|
}
|
|
1258
|
-
|
|
1259
1101
|
if (error && error instanceof HttpError && error.status === 404) {
|
|
1260
1102
|
if (loaderProps.hideIfNotFound) {
|
|
1261
1103
|
return null;
|
|
@@ -1266,14 +1108,11 @@ function renderMaybeData(maybeData, renderFn, loaderProps, inEditor, loadingMess
|
|
|
1266
1108
|
return React__default.createElement("div", null, "Error: ", error == null ? void 0 : error.message);
|
|
1267
1109
|
}
|
|
1268
1110
|
}
|
|
1269
|
-
|
|
1270
1111
|
if (!("data" in maybeData) || forceLoadingState) {
|
|
1271
1112
|
return React__default.createElement(React__default.Fragment, null, loadingMessage != null ? loadingMessage : React__default.createElement("div", null, "Loading..."));
|
|
1272
1113
|
}
|
|
1273
|
-
|
|
1274
1114
|
return renderFn(maybeData.data);
|
|
1275
1115
|
}
|
|
1276
|
-
|
|
1277
1116
|
var defaultHost = "https://studio.plasmic.app";
|
|
1278
1117
|
var cmsCredentialsProviderMeta = {
|
|
1279
1118
|
name: componentPrefix + "-credentials-provider",
|
|
@@ -1309,10 +1148,10 @@ var cmsCredentialsProviderMeta = {
|
|
|
1309
1148
|
};
|
|
1310
1149
|
function CmsCredentialsProvider(_ref) {
|
|
1311
1150
|
var children = _ref.children,
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1151
|
+
databaseId = _ref.databaseId,
|
|
1152
|
+
databaseToken = _ref.databaseToken,
|
|
1153
|
+
host = _ref.host,
|
|
1154
|
+
locale = _ref.locale;
|
|
1316
1155
|
var config = {
|
|
1317
1156
|
databaseId: databaseId,
|
|
1318
1157
|
databaseToken: databaseToken,
|
|
@@ -1323,7 +1162,6 @@ function CmsCredentialsProvider(_ref) {
|
|
|
1323
1162
|
config: config
|
|
1324
1163
|
}, React__default.createElement(TablesFetcher, null, children));
|
|
1325
1164
|
}
|
|
1326
|
-
|
|
1327
1165
|
function TablesFetcher(_ref2) {
|
|
1328
1166
|
var children = _ref2.children;
|
|
1329
1167
|
var databaseConfig = useDatabase();
|
|
@@ -1340,16 +1178,12 @@ function TablesFetcher(_ref2) {
|
|
|
1340
1178
|
_context.next = 2;
|
|
1341
1179
|
break;
|
|
1342
1180
|
}
|
|
1343
|
-
|
|
1344
1181
|
return _context.abrupt("return", []);
|
|
1345
|
-
|
|
1346
1182
|
case 2:
|
|
1347
1183
|
_context.next = 4;
|
|
1348
1184
|
return mkApi(databaseConfig).fetchTables();
|
|
1349
|
-
|
|
1350
1185
|
case 4:
|
|
1351
1186
|
return _context.abrupt("return", _context.sent);
|
|
1352
|
-
|
|
1353
1187
|
case 5:
|
|
1354
1188
|
case "end":
|
|
1355
1189
|
return _context.stop();
|
|
@@ -1362,11 +1196,9 @@ function TablesFetcher(_ref2) {
|
|
|
1362
1196
|
tables: maybeData.data
|
|
1363
1197
|
}, inEditor && maybeData.error ? React__default.createElement("div", null, "CMS Error: ", maybeData.error.message) : children);
|
|
1364
1198
|
}
|
|
1365
|
-
|
|
1366
1199
|
function isDatabaseConfigured(config) {
|
|
1367
1200
|
return (config == null ? void 0 : config.databaseId) && (config == null ? void 0 : config.databaseToken);
|
|
1368
1201
|
}
|
|
1369
|
-
|
|
1370
1202
|
var cmsQueryRepeaterMeta = {
|
|
1371
1203
|
name: componentPrefix + "-query-repeater",
|
|
1372
1204
|
displayName: "CMS Data Loader",
|
|
@@ -1426,7 +1258,6 @@ var cmsQueryRepeaterMeta = {
|
|
|
1426
1258
|
description: "Field (from model schema) to filter by",
|
|
1427
1259
|
options: function options(_ref4, ctx) {
|
|
1428
1260
|
var _ctx$table;
|
|
1429
|
-
|
|
1430
1261
|
var table = _ref4.table;
|
|
1431
1262
|
return mkFieldOptions(ctx == null ? void 0 : ctx.tables, (_ctx$table = ctx == null ? void 0 : ctx.table) != null ? _ctx$table : table, ["number", "boolean", "text", "long-text"]);
|
|
1432
1263
|
}
|
|
@@ -1498,31 +1329,28 @@ var cmsQueryRepeaterMeta = {
|
|
|
1498
1329
|
};
|
|
1499
1330
|
function CmsQueryRepeater(_ref5) {
|
|
1500
1331
|
var table = _ref5.table,
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1332
|
+
children = _ref5.children,
|
|
1333
|
+
setControlContextData = _ref5.setControlContextData,
|
|
1334
|
+
where = _ref5.where,
|
|
1335
|
+
useDraft = _ref5.useDraft,
|
|
1336
|
+
orderBy = _ref5.orderBy,
|
|
1337
|
+
desc = _ref5.desc,
|
|
1338
|
+
limit = _ref5.limit,
|
|
1339
|
+
emptyMessage = _ref5.emptyMessage,
|
|
1340
|
+
forceEmptyState = _ref5.forceEmptyState,
|
|
1341
|
+
loadingMessage = _ref5.loadingMessage,
|
|
1342
|
+
forceLoadingState = _ref5.forceLoadingState,
|
|
1343
|
+
noLayout = _ref5.noLayout,
|
|
1344
|
+
noAutoRepeat = _ref5.noAutoRepeat,
|
|
1345
|
+
className = _ref5.className,
|
|
1346
|
+
filterField = _ref5.filterField,
|
|
1347
|
+
filterValue = _ref5.filterValue;
|
|
1517
1348
|
var databaseConfig = useDatabase();
|
|
1518
1349
|
var tables = useTables();
|
|
1519
|
-
|
|
1520
1350
|
if (filterField && filterValue) {
|
|
1521
1351
|
var _where;
|
|
1522
|
-
|
|
1523
1352
|
where = (_where = {}, _where[filterField] = filterValue, _where);
|
|
1524
1353
|
}
|
|
1525
|
-
|
|
1526
1354
|
var params = {
|
|
1527
1355
|
where: where,
|
|
1528
1356
|
useDraft: useDraft,
|
|
@@ -1530,18 +1358,15 @@ function CmsQueryRepeater(_ref5) {
|
|
|
1530
1358
|
desc: desc,
|
|
1531
1359
|
limit: limit
|
|
1532
1360
|
};
|
|
1533
|
-
|
|
1534
1361
|
if (!table && tables && tables.length > 0) {
|
|
1535
1362
|
table = tables[0].identifier;
|
|
1536
1363
|
}
|
|
1537
|
-
|
|
1538
1364
|
var cacheKey = JSON.stringify({
|
|
1539
1365
|
component: "CmsQueryLoader",
|
|
1540
1366
|
table: table,
|
|
1541
1367
|
databaseConfig: databaseConfig,
|
|
1542
1368
|
params: params
|
|
1543
1369
|
});
|
|
1544
|
-
|
|
1545
1370
|
if (tables) {
|
|
1546
1371
|
// TODO: Only include table if __plasmic_cms_row_{table} exists.
|
|
1547
1372
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
@@ -1549,7 +1374,6 @@ function CmsQueryRepeater(_ref5) {
|
|
|
1549
1374
|
table: table
|
|
1550
1375
|
});
|
|
1551
1376
|
}
|
|
1552
|
-
|
|
1553
1377
|
var maybeData = query.usePlasmicQueryData(cacheKey, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2() {
|
|
1554
1378
|
return runtime_1.wrap(function _callee2$(_context2) {
|
|
1555
1379
|
while (1) {
|
|
@@ -1559,17 +1383,13 @@ function CmsQueryRepeater(_ref5) {
|
|
|
1559
1383
|
_context2.next = 2;
|
|
1560
1384
|
break;
|
|
1561
1385
|
}
|
|
1562
|
-
|
|
1563
1386
|
throw new Error("You must specify a CMS ID and API key");
|
|
1564
|
-
|
|
1565
1387
|
case 2:
|
|
1566
1388
|
if (table) {
|
|
1567
1389
|
_context2.next = 6;
|
|
1568
1390
|
break;
|
|
1569
1391
|
}
|
|
1570
|
-
|
|
1571
1392
|
throw new Error("You must select a model to query");
|
|
1572
|
-
|
|
1573
1393
|
case 6:
|
|
1574
1394
|
if (!(tables && !tables.find(function (t) {
|
|
1575
1395
|
return t.identifier === table;
|
|
@@ -1577,12 +1397,9 @@ function CmsQueryRepeater(_ref5) {
|
|
|
1577
1397
|
_context2.next = 10;
|
|
1578
1398
|
break;
|
|
1579
1399
|
}
|
|
1580
|
-
|
|
1581
1400
|
throw new Error("There is no model called \"" + table + "\"");
|
|
1582
|
-
|
|
1583
1401
|
case 10:
|
|
1584
1402
|
return _context2.abrupt("return", mkApi(databaseConfig).query(table, params));
|
|
1585
|
-
|
|
1586
1403
|
case 11:
|
|
1587
1404
|
case "end":
|
|
1588
1405
|
return _context2.stop();
|
|
@@ -1598,7 +1415,6 @@ function CmsQueryRepeater(_ref5) {
|
|
|
1598
1415
|
rows: rows
|
|
1599
1416
|
}, emptyMessage);
|
|
1600
1417
|
}
|
|
1601
|
-
|
|
1602
1418
|
return noAutoRepeat ? children : React__default.createElement(QueryResultProvider, {
|
|
1603
1419
|
table: table,
|
|
1604
1420
|
rows: rows
|
|
@@ -1642,13 +1458,11 @@ var cmsRowFieldMeta = {
|
|
|
1642
1458
|
description: "Field (from model schema) to use.",
|
|
1643
1459
|
options: function options(_ref7, ctx) {
|
|
1644
1460
|
var _ctx$table2;
|
|
1645
|
-
|
|
1646
1461
|
var table = _ref7.table;
|
|
1647
1462
|
return mkFieldOptions(ctx == null ? void 0 : ctx.tables, (_ctx$table2 = ctx == null ? void 0 : ctx.table) != null ? _ctx$table2 : table, ["number", "boolean", "text", "long-text", "date-time", "rich-text", "image", "file"]);
|
|
1648
1463
|
},
|
|
1649
1464
|
defaultValueHint: function defaultValueHint(_, ctx) {
|
|
1650
1465
|
var _ctx$fieldMeta, _ctx$fieldMeta2;
|
|
1651
|
-
|
|
1652
1466
|
return (ctx == null ? void 0 : (_ctx$fieldMeta = ctx.fieldMeta) == null ? void 0 : _ctx$fieldMeta.name) || (ctx == null ? void 0 : (_ctx$fieldMeta2 = ctx.fieldMeta) == null ? void 0 : _ctx$fieldMeta2.identifier);
|
|
1653
1467
|
}
|
|
1654
1468
|
},
|
|
@@ -1657,29 +1471,23 @@ var cmsRowFieldMeta = {
|
|
|
1657
1471
|
displayName: "Date Format",
|
|
1658
1472
|
hidden: function hidden(_ref8, ctx) {
|
|
1659
1473
|
var field = _ref8.field;
|
|
1660
|
-
|
|
1661
1474
|
if (!ctx) {
|
|
1662
1475
|
return true;
|
|
1663
1476
|
}
|
|
1664
|
-
|
|
1665
1477
|
var tableIdentifier = ctx.table,
|
|
1666
|
-
|
|
1478
|
+
tables = ctx.tables;
|
|
1667
1479
|
var table = tables == null ? void 0 : tables.find(function (t) {
|
|
1668
1480
|
return t.identifier === tableIdentifier;
|
|
1669
1481
|
});
|
|
1670
|
-
|
|
1671
1482
|
if (!table) {
|
|
1672
1483
|
return true;
|
|
1673
1484
|
}
|
|
1674
|
-
|
|
1675
1485
|
var fieldMeta = table.schema.fields.find(function (f) {
|
|
1676
1486
|
return f.identifier === field;
|
|
1677
1487
|
});
|
|
1678
|
-
|
|
1679
1488
|
if (!fieldMeta) {
|
|
1680
1489
|
return true;
|
|
1681
1490
|
}
|
|
1682
|
-
|
|
1683
1491
|
return fieldMeta.type !== "date-time";
|
|
1684
1492
|
},
|
|
1685
1493
|
options: [{
|
|
@@ -1723,41 +1531,38 @@ var cmsRowFieldMeta = {
|
|
|
1723
1531
|
value: "D/M/YY h:mm A"
|
|
1724
1532
|
}]
|
|
1725
1533
|
}
|
|
1534
|
+
},
|
|
1535
|
+
defaultStyles: {
|
|
1536
|
+
objectFit: "cover"
|
|
1726
1537
|
}
|
|
1727
1538
|
};
|
|
1728
1539
|
function CmsRowField(_ref9) {
|
|
1729
1540
|
var _res$row$data;
|
|
1730
|
-
|
|
1731
1541
|
var className = _ref9.className,
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1542
|
+
table = _ref9.table,
|
|
1543
|
+
field = _ref9.field,
|
|
1544
|
+
dateFormat = _ref9.dateFormat,
|
|
1545
|
+
setControlContextData = _ref9.setControlContextData,
|
|
1546
|
+
rest = _objectWithoutPropertiesLoose(_ref9, _excluded);
|
|
1738
1547
|
var tables = useTablesWithDataLoaded();
|
|
1739
1548
|
var res = useRow(tables, table);
|
|
1740
1549
|
var unknown = React__default.createElement("div", Object.assign({
|
|
1741
1550
|
className: className
|
|
1742
1551
|
}, rest), "Field ", table != null ? table : "Unknown Model", ".", field != null ? field : "Unknown Field");
|
|
1743
|
-
|
|
1744
1552
|
if (!res) {
|
|
1745
1553
|
return unknown;
|
|
1746
1554
|
}
|
|
1747
|
-
|
|
1748
1555
|
if (!res.row) {
|
|
1749
1556
|
return React__default.createElement("div", {
|
|
1750
1557
|
className: className
|
|
1751
1558
|
}, "Error: No CMS Entry found");
|
|
1752
1559
|
}
|
|
1753
|
-
|
|
1754
1560
|
var fieldMeta = deriveInferredTableField({
|
|
1755
1561
|
table: res.table,
|
|
1756
1562
|
tables: tables,
|
|
1757
1563
|
field: field,
|
|
1758
1564
|
typeFilters: ["text", "long-text", "rich-text"]
|
|
1759
1565
|
});
|
|
1760
|
-
|
|
1761
1566
|
if (tables) {
|
|
1762
1567
|
// TODO: Only include table if __plasmic_cms_row_{table} exists.
|
|
1763
1568
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
@@ -1767,34 +1572,27 @@ function CmsRowField(_ref9) {
|
|
|
1767
1572
|
fieldMeta: fieldMeta
|
|
1768
1573
|
});
|
|
1769
1574
|
}
|
|
1770
|
-
|
|
1771
1575
|
if (!fieldMeta) {
|
|
1772
1576
|
return unknown;
|
|
1773
1577
|
}
|
|
1774
|
-
|
|
1775
1578
|
var data = (_res$row$data = res.row.data) == null ? void 0 : _res$row$data[fieldMeta.identifier];
|
|
1776
|
-
|
|
1777
1579
|
if (!data) {
|
|
1778
1580
|
return null;
|
|
1779
1581
|
}
|
|
1780
|
-
|
|
1781
1582
|
if (fieldMeta.type === "date-time" && dateFormat) {
|
|
1782
1583
|
data = dayjs(data).format(dateFormat);
|
|
1783
1584
|
}
|
|
1784
|
-
|
|
1785
1585
|
return data ? renderValue(data, fieldMeta.type, _extends({
|
|
1786
1586
|
className: className
|
|
1787
1587
|
}, rest)) : null;
|
|
1788
1588
|
}
|
|
1789
1589
|
var DEFAULT_TYPE_FILTERS = ["text"];
|
|
1790
|
-
|
|
1791
1590
|
function deriveInferredTableField(opts) {
|
|
1792
1591
|
var _tables$find;
|
|
1793
|
-
|
|
1794
1592
|
var table = opts.table,
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1593
|
+
tables = opts.tables,
|
|
1594
|
+
field = opts.field,
|
|
1595
|
+
typeFilters = opts.typeFilters;
|
|
1798
1596
|
if (!table) return undefined;
|
|
1799
1597
|
var schema = tables == null ? void 0 : (_tables$find = tables.find(function (t) {
|
|
1800
1598
|
return t.identifier === table;
|
|
@@ -1806,11 +1604,9 @@ function deriveInferredTableField(opts) {
|
|
|
1806
1604
|
});
|
|
1807
1605
|
return fieldMeta;
|
|
1808
1606
|
}
|
|
1809
|
-
|
|
1810
1607
|
function assertNever(_) {
|
|
1811
1608
|
throw new Error("unexpected branch taken");
|
|
1812
1609
|
}
|
|
1813
|
-
|
|
1814
1610
|
function renderValue(value, type, props) {
|
|
1815
1611
|
switch (type) {
|
|
1816
1612
|
case "number":
|
|
@@ -1819,7 +1615,6 @@ function renderValue(value, type, props) {
|
|
|
1819
1615
|
case "long-text":
|
|
1820
1616
|
case "date-time":
|
|
1821
1617
|
return React__default.createElement("div", Object.assign({}, props), value);
|
|
1822
|
-
|
|
1823
1618
|
case "rich-text":
|
|
1824
1619
|
return React__default.createElement("div", Object.assign({
|
|
1825
1620
|
dangerouslySetInnerHTML: {
|
|
@@ -1829,21 +1624,15 @@ function renderValue(value, type, props) {
|
|
|
1829
1624
|
whiteSpace: "normal"
|
|
1830
1625
|
}
|
|
1831
1626
|
}, props));
|
|
1832
|
-
|
|
1833
1627
|
case "image":
|
|
1834
1628
|
if (value && typeof value === "object" && value.url && value.imageMeta) {
|
|
1835
1629
|
return React__default.createElement("img", Object.assign({
|
|
1836
1630
|
src: value.url,
|
|
1837
1631
|
width: value.imageMeta.width,
|
|
1838
|
-
height: value.imageMeta.height
|
|
1839
|
-
style: {
|
|
1840
|
-
objectFit: "cover"
|
|
1841
|
-
}
|
|
1632
|
+
height: value.imageMeta.height
|
|
1842
1633
|
}, props));
|
|
1843
1634
|
}
|
|
1844
|
-
|
|
1845
1635
|
return null;
|
|
1846
|
-
|
|
1847
1636
|
case "file":
|
|
1848
1637
|
if (value && typeof value === "object" && value.url && value.name) {
|
|
1849
1638
|
return React__default.createElement("a", Object.assign({
|
|
@@ -1851,14 +1640,11 @@ function renderValue(value, type, props) {
|
|
|
1851
1640
|
target: "_blank"
|
|
1852
1641
|
}, props), value.name);
|
|
1853
1642
|
}
|
|
1854
|
-
|
|
1855
1643
|
return null;
|
|
1856
|
-
|
|
1857
1644
|
default:
|
|
1858
1645
|
assertNever();
|
|
1859
1646
|
}
|
|
1860
1647
|
}
|
|
1861
|
-
|
|
1862
1648
|
var cmsRowLinkMeta = {
|
|
1863
1649
|
name: componentPrefix + "-row-link",
|
|
1864
1650
|
displayName: "CMS Entry Link",
|
|
@@ -1890,13 +1676,11 @@ var cmsRowLinkMeta = {
|
|
|
1890
1676
|
description: "Field (from model schema) to use.",
|
|
1891
1677
|
options: function options(_ref10, ctx) {
|
|
1892
1678
|
var _ctx$table3;
|
|
1893
|
-
|
|
1894
1679
|
var table = _ref10.table;
|
|
1895
1680
|
return mkFieldOptions(ctx == null ? void 0 : ctx.tables, (_ctx$table3 = ctx == null ? void 0 : ctx.table) != null ? _ctx$table3 : table);
|
|
1896
1681
|
},
|
|
1897
1682
|
defaultValueHint: function defaultValueHint(_, ctx) {
|
|
1898
1683
|
var _ctx$fieldMeta3, _ctx$fieldMeta4;
|
|
1899
|
-
|
|
1900
1684
|
return (ctx == null ? void 0 : (_ctx$fieldMeta3 = ctx.fieldMeta) == null ? void 0 : _ctx$fieldMeta3.name) || (ctx == null ? void 0 : (_ctx$fieldMeta4 = ctx.fieldMeta) == null ? void 0 : _ctx$fieldMeta4.identifier);
|
|
1901
1685
|
}
|
|
1902
1686
|
},
|
|
@@ -1912,7 +1696,6 @@ var cmsRowLinkMeta = {
|
|
|
1912
1696
|
description: "Prefix to prepend to prop value.",
|
|
1913
1697
|
hidden: function hidden(_, ctx) {
|
|
1914
1698
|
var _ctx$fieldMeta5;
|
|
1915
|
-
|
|
1916
1699
|
return (ctx == null ? void 0 : (_ctx$fieldMeta5 = ctx.fieldMeta) == null ? void 0 : _ctx$fieldMeta5.type) === "file";
|
|
1917
1700
|
}
|
|
1918
1701
|
},
|
|
@@ -1922,7 +1705,6 @@ var cmsRowLinkMeta = {
|
|
|
1922
1705
|
description: "Suffix to append to prop value.",
|
|
1923
1706
|
hidden: function hidden(_, ctx) {
|
|
1924
1707
|
var _ctx$fieldMeta6;
|
|
1925
|
-
|
|
1926
1708
|
return (ctx == null ? void 0 : (_ctx$fieldMeta6 = ctx.fieldMeta) == null ? void 0 : _ctx$fieldMeta6.type) === "file";
|
|
1927
1709
|
}
|
|
1928
1710
|
}
|
|
@@ -1930,28 +1712,24 @@ var cmsRowLinkMeta = {
|
|
|
1930
1712
|
};
|
|
1931
1713
|
function CmsRowLink(_ref11) {
|
|
1932
1714
|
var _res$row$data2;
|
|
1933
|
-
|
|
1934
1715
|
var table = _ref11.table,
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1716
|
+
field = _ref11.field,
|
|
1717
|
+
hrefProp = _ref11.hrefProp,
|
|
1718
|
+
children = _ref11.children,
|
|
1719
|
+
setControlContextData = _ref11.setControlContextData,
|
|
1720
|
+
prefix = _ref11.prefix,
|
|
1721
|
+
suffix = _ref11.suffix;
|
|
1941
1722
|
var tables = useTablesWithDataLoaded();
|
|
1942
1723
|
var res = useRow(tables, table);
|
|
1943
|
-
|
|
1944
1724
|
if (!res || !res.row) {
|
|
1945
1725
|
return React__default.createElement(React__default.Fragment, null, children);
|
|
1946
1726
|
}
|
|
1947
|
-
|
|
1948
1727
|
var fieldMeta = deriveInferredTableField({
|
|
1949
1728
|
table: res.table,
|
|
1950
1729
|
tables: tables,
|
|
1951
1730
|
field: field,
|
|
1952
1731
|
typeFilters: ["file", "text"]
|
|
1953
1732
|
});
|
|
1954
|
-
|
|
1955
1733
|
if (tables) {
|
|
1956
1734
|
// TODO: Only include table if __plasmic_cms_row_{table} exists.
|
|
1957
1735
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
@@ -1961,23 +1739,18 @@ function CmsRowLink(_ref11) {
|
|
|
1961
1739
|
fieldMeta: fieldMeta
|
|
1962
1740
|
});
|
|
1963
1741
|
}
|
|
1964
|
-
|
|
1965
1742
|
if (!fieldMeta) {
|
|
1966
1743
|
return React__default.createElement(React__default.Fragment, null, children);
|
|
1967
1744
|
}
|
|
1968
|
-
|
|
1969
1745
|
if (!children) {
|
|
1970
1746
|
return null;
|
|
1971
1747
|
}
|
|
1972
|
-
|
|
1973
1748
|
var value = ((_res$row$data2 = res.row.data) == null ? void 0 : _res$row$data2[fieldMeta.identifier]) || "";
|
|
1974
1749
|
var childrenWithProps = React__default.Children.map(children, function (child) {
|
|
1975
1750
|
if (React__default.isValidElement(child)) {
|
|
1976
1751
|
var _React$cloneElement;
|
|
1977
|
-
|
|
1978
1752
|
return React__default.cloneElement(child, (_React$cloneElement = {}, _React$cloneElement[hrefProp] = fieldMeta.type === "file" ? value.url : prefix || suffix ? "" + (prefix || "") + value + (suffix || "") : value, _React$cloneElement));
|
|
1979
1753
|
}
|
|
1980
|
-
|
|
1981
1754
|
return child;
|
|
1982
1755
|
});
|
|
1983
1756
|
return React__default.createElement(React__default.Fragment, null, childrenWithProps != null ? childrenWithProps : null);
|
|
@@ -2012,13 +1785,11 @@ var cmsRowImageMeta = {
|
|
|
2012
1785
|
description: "Field (from model schema) to use.",
|
|
2013
1786
|
options: function options(_ref12, ctx) {
|
|
2014
1787
|
var _ctx$table4;
|
|
2015
|
-
|
|
2016
1788
|
var table = _ref12.table;
|
|
2017
1789
|
return mkFieldOptions(ctx == null ? void 0 : ctx.tables, (_ctx$table4 = ctx == null ? void 0 : ctx.table) != null ? _ctx$table4 : table, ["image"]);
|
|
2018
1790
|
},
|
|
2019
1791
|
defaultValueHint: function defaultValueHint(_, ctx) {
|
|
2020
1792
|
var _ctx$fieldMeta7, _ctx$fieldMeta8;
|
|
2021
|
-
|
|
2022
1793
|
return (ctx == null ? void 0 : (_ctx$fieldMeta7 = ctx.fieldMeta) == null ? void 0 : _ctx$fieldMeta7.name) || (ctx == null ? void 0 : (_ctx$fieldMeta8 = ctx.fieldMeta) == null ? void 0 : _ctx$fieldMeta8.identifier);
|
|
2023
1794
|
}
|
|
2024
1795
|
},
|
|
@@ -2032,26 +1803,22 @@ var cmsRowImageMeta = {
|
|
|
2032
1803
|
};
|
|
2033
1804
|
function CmsRowImage(_ref13) {
|
|
2034
1805
|
var _res$row$data3;
|
|
2035
|
-
|
|
2036
1806
|
var table = _ref13.table,
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
1807
|
+
field = _ref13.field,
|
|
1808
|
+
srcProp = _ref13.srcProp,
|
|
1809
|
+
children = _ref13.children,
|
|
1810
|
+
setControlContextData = _ref13.setControlContextData;
|
|
2041
1811
|
var tables = useTablesWithDataLoaded();
|
|
2042
1812
|
var res = useRow(tables, table);
|
|
2043
|
-
|
|
2044
1813
|
if (!res || !res.row) {
|
|
2045
1814
|
return React__default.createElement(React__default.Fragment, null, children);
|
|
2046
1815
|
}
|
|
2047
|
-
|
|
2048
1816
|
var fieldMeta = deriveInferredTableField({
|
|
2049
1817
|
table: res.table,
|
|
2050
1818
|
tables: tables,
|
|
2051
1819
|
field: field,
|
|
2052
1820
|
typeFilters: ["image"]
|
|
2053
1821
|
});
|
|
2054
|
-
|
|
2055
1822
|
if (tables) {
|
|
2056
1823
|
// TODO: Only include table if __plasmic_cms_row_{table} exists.
|
|
2057
1824
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
@@ -2061,29 +1828,23 @@ function CmsRowImage(_ref13) {
|
|
|
2061
1828
|
fieldMeta: fieldMeta
|
|
2062
1829
|
});
|
|
2063
1830
|
}
|
|
2064
|
-
|
|
2065
1831
|
if (!fieldMeta) {
|
|
2066
1832
|
return React__default.createElement(React__default.Fragment, null, children);
|
|
2067
1833
|
}
|
|
2068
|
-
|
|
2069
1834
|
var value = ((_res$row$data3 = res.row.data) == null ? void 0 : _res$row$data3[fieldMeta.identifier]) || "";
|
|
2070
1835
|
var childrenWithProps = React__default.Children.map(children, function (child) {
|
|
2071
1836
|
if (React__default.isValidElement(child) && value) {
|
|
2072
1837
|
var _React$cloneElement3;
|
|
2073
|
-
|
|
2074
1838
|
if (typeof value === "object" && value.url && value.imageMeta) {
|
|
2075
1839
|
var _React$cloneElement2;
|
|
2076
|
-
|
|
2077
1840
|
return React__default.cloneElement(child, (_React$cloneElement2 = {}, _React$cloneElement2[srcProp] = {
|
|
2078
1841
|
src: value.url,
|
|
2079
1842
|
fullHeight: value.imageMeta.height,
|
|
2080
1843
|
fullWidth: value.imageMeta.width
|
|
2081
1844
|
}, _React$cloneElement2));
|
|
2082
1845
|
}
|
|
2083
|
-
|
|
2084
1846
|
return React__default.cloneElement(child, (_React$cloneElement3 = {}, _React$cloneElement3[srcProp] = value, _React$cloneElement3));
|
|
2085
1847
|
}
|
|
2086
|
-
|
|
2087
1848
|
return child;
|
|
2088
1849
|
});
|
|
2089
1850
|
return React__default.createElement(React__default.Fragment, null, childrenWithProps);
|
|
@@ -2114,13 +1875,11 @@ var cmsRowFieldValueMeta = {
|
|
|
2114
1875
|
description: "Field (from model schema) to use.",
|
|
2115
1876
|
options: function options(_ref14, ctx) {
|
|
2116
1877
|
var _ctx$table5;
|
|
2117
|
-
|
|
2118
1878
|
var table = _ref14.table;
|
|
2119
1879
|
return mkFieldOptions(ctx == null ? void 0 : ctx.tables, (_ctx$table5 = ctx == null ? void 0 : ctx.table) != null ? _ctx$table5 : table);
|
|
2120
1880
|
},
|
|
2121
1881
|
defaultValueHint: function defaultValueHint(_, ctx) {
|
|
2122
1882
|
var _ctx$fieldMeta9, _ctx$fieldMeta10;
|
|
2123
|
-
|
|
2124
1883
|
return (ctx == null ? void 0 : (_ctx$fieldMeta9 = ctx.fieldMeta) == null ? void 0 : _ctx$fieldMeta9.name) || (ctx == null ? void 0 : (_ctx$fieldMeta10 = ctx.fieldMeta) == null ? void 0 : _ctx$fieldMeta10.identifier);
|
|
2125
1884
|
}
|
|
2126
1885
|
},
|
|
@@ -2134,28 +1893,23 @@ var cmsRowFieldValueMeta = {
|
|
|
2134
1893
|
};
|
|
2135
1894
|
function CmsRowFieldValue(_ref15) {
|
|
2136
1895
|
var _res$row$data4;
|
|
2137
|
-
|
|
2138
1896
|
var table = _ref15.table,
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
1897
|
+
field = _ref15.field,
|
|
1898
|
+
valueProp = _ref15.valueProp,
|
|
1899
|
+
children = _ref15.children,
|
|
1900
|
+
setControlContextData = _ref15.setControlContextData,
|
|
1901
|
+
rest = _objectWithoutPropertiesLoose(_ref15, _excluded2);
|
|
2145
1902
|
var tables = useTablesWithDataLoaded();
|
|
2146
1903
|
var res = useRow(tables, table);
|
|
2147
|
-
|
|
2148
1904
|
if (!res || !res.row) {
|
|
2149
1905
|
return React__default.createElement(React__default.Fragment, null, children);
|
|
2150
1906
|
}
|
|
2151
|
-
|
|
2152
1907
|
var fieldMeta = deriveInferredTableField({
|
|
2153
1908
|
table: res.table,
|
|
2154
1909
|
tables: tables,
|
|
2155
1910
|
field: field,
|
|
2156
1911
|
typeFilters: ["text"]
|
|
2157
1912
|
});
|
|
2158
|
-
|
|
2159
1913
|
if (tables) {
|
|
2160
1914
|
// TODO: Only include table if __plasmic_cms_row_{table} exists.
|
|
2161
1915
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
@@ -2165,19 +1919,15 @@ function CmsRowFieldValue(_ref15) {
|
|
|
2165
1919
|
fieldMeta: fieldMeta
|
|
2166
1920
|
});
|
|
2167
1921
|
}
|
|
2168
|
-
|
|
2169
1922
|
if (!fieldMeta) {
|
|
2170
1923
|
return React__default.createElement(React__default.Fragment, null, children);
|
|
2171
1924
|
}
|
|
2172
|
-
|
|
2173
1925
|
var value = ((_res$row$data4 = res.row.data) == null ? void 0 : _res$row$data4[fieldMeta.identifier]) || "";
|
|
2174
1926
|
var childrenWithProps = React__default.Children.map(children, function (child) {
|
|
2175
1927
|
if (React__default.isValidElement(child)) {
|
|
2176
1928
|
var _extends2;
|
|
2177
|
-
|
|
2178
1929
|
return React__default.cloneElement(child, _extends({}, rest, (_extends2 = {}, _extends2[valueProp] = value, _extends2)));
|
|
2179
1930
|
}
|
|
2180
|
-
|
|
2181
1931
|
return child;
|
|
2182
1932
|
});
|
|
2183
1933
|
return React__default.createElement(React__default.Fragment, null, childrenWithProps);
|
|
@@ -2193,7 +1943,6 @@ function registerAll(loader) {
|
|
|
2193
1943
|
registerComponent(Component, defaultMeta);
|
|
2194
1944
|
}
|
|
2195
1945
|
};
|
|
2196
|
-
|
|
2197
1946
|
var _registerGlobalContext = function _registerGlobalContext(Component, defaultMeta) {
|
|
2198
1947
|
if (loader) {
|
|
2199
1948
|
loader.registerGlobalContext(Component, defaultMeta);
|
|
@@ -2201,17 +1950,11 @@ function registerAll(loader) {
|
|
|
2201
1950
|
registerGlobalContext(Component, defaultMeta);
|
|
2202
1951
|
}
|
|
2203
1952
|
};
|
|
2204
|
-
|
|
2205
1953
|
_registerGlobalContext(CmsCredentialsProvider, cmsCredentialsProviderMeta);
|
|
2206
|
-
|
|
2207
1954
|
_registerComponent(CmsQueryRepeater, cmsQueryRepeaterMeta);
|
|
2208
|
-
|
|
2209
1955
|
_registerComponent(CmsRowField, cmsRowFieldMeta);
|
|
2210
|
-
|
|
2211
1956
|
_registerComponent(CmsRowLink, cmsRowLinkMeta);
|
|
2212
|
-
|
|
2213
1957
|
_registerComponent(CmsRowImage, cmsRowImageMeta);
|
|
2214
|
-
|
|
2215
1958
|
_registerComponent(CmsRowFieldValue, cmsRowFieldValueMeta);
|
|
2216
1959
|
}
|
|
2217
1960
|
|