@plasmicpkgs/plasmic-cms 0.0.274 → 0.0.276

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.
@@ -5,6 +5,79 @@ import { usePlasmicQueryData } from '@plasmicapp/query';
5
5
  import dayjs from 'dayjs';
6
6
  import React from 'react';
7
7
 
8
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
9
+ try {
10
+ var i = n[a](c),
11
+ u = i.value;
12
+ } catch (n) {
13
+ return void e(n);
14
+ }
15
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
16
+ }
17
+ function _asyncToGenerator(n) {
18
+ return function () {
19
+ var t = this,
20
+ e = arguments;
21
+ return new Promise(function (r, o) {
22
+ var a = n.apply(t, e);
23
+ function _next(n) {
24
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
25
+ }
26
+ function _throw(n) {
27
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
28
+ }
29
+ _next(void 0);
30
+ });
31
+ };
32
+ }
33
+ function _construct(t, e, r) {
34
+ if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
35
+ var o = [null];
36
+ o.push.apply(o, e);
37
+ var p = new (t.bind.apply(t, o))();
38
+ return r && _setPrototypeOf(p, r.prototype), p;
39
+ }
40
+ function _extends() {
41
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
42
+ for (var e = 1; e < arguments.length; e++) {
43
+ var t = arguments[e];
44
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
45
+ }
46
+ return n;
47
+ }, _extends.apply(null, arguments);
48
+ }
49
+ function _getPrototypeOf(t) {
50
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
51
+ return t.__proto__ || Object.getPrototypeOf(t);
52
+ }, _getPrototypeOf(t);
53
+ }
54
+ function _inheritsLoose(t, o) {
55
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
56
+ }
57
+ function _isNativeFunction(t) {
58
+ try {
59
+ return -1 !== Function.toString.call(t).indexOf("[native code]");
60
+ } catch (n) {
61
+ return "function" == typeof t;
62
+ }
63
+ }
64
+ function _isNativeReflectConstruct() {
65
+ try {
66
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
67
+ } catch (t) {}
68
+ return (_isNativeReflectConstruct = function () {
69
+ return !!t;
70
+ })();
71
+ }
72
+ function _objectWithoutPropertiesLoose(r, e) {
73
+ if (null == r) return {};
74
+ var t = {};
75
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
76
+ if (-1 !== e.indexOf(n)) continue;
77
+ t[n] = r[n];
78
+ }
79
+ return t;
80
+ }
8
81
  function _regeneratorRuntime() {
9
82
  _regeneratorRuntime = function () {
10
83
  return e;
@@ -113,7 +186,7 @@ function _regeneratorRuntime() {
113
186
  function makeInvokeMethod(e, r, n) {
114
187
  var o = h;
115
188
  return function (i, a) {
116
- if (o === f) throw new Error("Generator is already running");
189
+ if (o === f) throw Error("Generator is already running");
117
190
  if (o === s) {
118
191
  if ("throw" === i) throw a;
119
192
  return {
@@ -255,7 +328,7 @@ function _regeneratorRuntime() {
255
328
  } else if (c) {
256
329
  if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
257
330
  } else {
258
- if (!u) throw new Error("try statement without catch or finally");
331
+ if (!u) throw Error("try statement without catch or finally");
259
332
  if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
260
333
  }
261
334
  }
@@ -295,7 +368,7 @@ function _regeneratorRuntime() {
295
368
  return o;
296
369
  }
297
370
  }
298
- throw new Error("illegal catch attempt");
371
+ throw Error("illegal catch attempt");
299
372
  },
300
373
  delegateYield: function (e, r, n) {
301
374
  return this.delegate = {
@@ -306,134 +379,32 @@ function _regeneratorRuntime() {
306
379
  }
307
380
  }, e;
308
381
  }
309
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
310
- try {
311
- var info = gen[key](arg);
312
- var value = info.value;
313
- } catch (error) {
314
- reject(error);
315
- return;
316
- }
317
- if (info.done) {
318
- resolve(value);
319
- } else {
320
- Promise.resolve(value).then(_next, _throw);
321
- }
382
+ function _setPrototypeOf(t, e) {
383
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
384
+ return t.__proto__ = e, t;
385
+ }, _setPrototypeOf(t, e);
322
386
  }
323
- function _asyncToGenerator(fn) {
324
- return function () {
325
- var self = this,
326
- args = arguments;
327
- return new Promise(function (resolve, reject) {
328
- var gen = fn.apply(self, args);
329
- function _next(value) {
330
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
331
- }
332
- function _throw(err) {
333
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
334
- }
335
- _next(undefined);
336
- });
337
- };
338
- }
339
- function _extends() {
340
- _extends = Object.assign ? Object.assign.bind() : function (target) {
341
- for (var i = 1; i < arguments.length; i++) {
342
- var source = arguments[i];
343
- for (var key in source) {
344
- if (Object.prototype.hasOwnProperty.call(source, key)) {
345
- target[key] = source[key];
346
- }
347
- }
348
- }
349
- return target;
350
- };
351
- return _extends.apply(this, arguments);
352
- }
353
- function _inheritsLoose(subClass, superClass) {
354
- subClass.prototype = Object.create(superClass.prototype);
355
- subClass.prototype.constructor = subClass;
356
- _setPrototypeOf(subClass, superClass);
357
- }
358
- function _getPrototypeOf(o) {
359
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
360
- return o.__proto__ || Object.getPrototypeOf(o);
361
- };
362
- return _getPrototypeOf(o);
363
- }
364
- function _setPrototypeOf(o, p) {
365
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
366
- o.__proto__ = p;
367
- return o;
368
- };
369
- return _setPrototypeOf(o, p);
370
- }
371
- function _isNativeReflectConstruct() {
372
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
373
- if (Reflect.construct.sham) return false;
374
- if (typeof Proxy === "function") return true;
375
- try {
376
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
377
- return true;
378
- } catch (e) {
379
- return false;
380
- }
381
- }
382
- function _construct(Parent, args, Class) {
383
- if (_isNativeReflectConstruct()) {
384
- _construct = Reflect.construct.bind();
385
- } else {
386
- _construct = function _construct(Parent, args, Class) {
387
- var a = [null];
388
- a.push.apply(a, args);
389
- var Constructor = Function.bind.apply(Parent, a);
390
- var instance = new Constructor();
391
- if (Class) _setPrototypeOf(instance, Class.prototype);
392
- return instance;
393
- };
394
- }
395
- return _construct.apply(null, arguments);
396
- }
397
- function _isNativeFunction(fn) {
398
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
399
- }
400
- function _wrapNativeSuper(Class) {
401
- var _cache = typeof Map === "function" ? new Map() : undefined;
402
- _wrapNativeSuper = function _wrapNativeSuper(Class) {
403
- if (Class === null || !_isNativeFunction(Class)) return Class;
404
- if (typeof Class !== "function") {
405
- throw new TypeError("Super expression must either be null or a function");
406
- }
407
- if (typeof _cache !== "undefined") {
408
- if (_cache.has(Class)) return _cache.get(Class);
409
- _cache.set(Class, Wrapper);
387
+ function _wrapNativeSuper(t) {
388
+ var r = "function" == typeof Map ? new Map() : void 0;
389
+ return _wrapNativeSuper = function (t) {
390
+ if (null === t || !_isNativeFunction(t)) return t;
391
+ if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
392
+ if (void 0 !== r) {
393
+ if (r.has(t)) return r.get(t);
394
+ r.set(t, Wrapper);
410
395
  }
411
396
  function Wrapper() {
412
- return _construct(Class, arguments, _getPrototypeOf(this).constructor);
397
+ return _construct(t, arguments, _getPrototypeOf(this).constructor);
413
398
  }
414
- Wrapper.prototype = Object.create(Class.prototype, {
399
+ return Wrapper.prototype = Object.create(t.prototype, {
415
400
  constructor: {
416
401
  value: Wrapper,
417
- enumerable: false,
418
- writable: true,
419
- configurable: true
402
+ enumerable: !1,
403
+ writable: !0,
404
+ configurable: !0
420
405
  }
421
- });
422
- return _setPrototypeOf(Wrapper, Class);
423
- };
424
- return _wrapNativeSuper(Class);
425
- }
426
- function _objectWithoutPropertiesLoose(source, excluded) {
427
- if (source == null) return {};
428
- var target = {};
429
- var sourceKeys = Object.keys(source);
430
- var key, i;
431
- for (i = 0; i < sourceKeys.length; i++) {
432
- key = sourceKeys[i];
433
- if (excluded.indexOf(key) >= 0) continue;
434
- target[key] = source[key];
435
- }
436
- return target;
406
+ }), _setPrototypeOf(Wrapper, t);
407
+ }, _wrapNativeSuper(t);
437
408
  }
438
409
 
439
410
  function queryParamsToApi(params) {