@tinacms/app 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/appFiles/node_modules/.package-lock.json +27 -27
  2. package/appFiles/node_modules/@babel/generator/lib/buffer.js +1 -16
  3. package/appFiles/node_modules/@babel/generator/lib/buffer.js.map +1 -1
  4. package/appFiles/node_modules/@babel/generator/lib/generators/base.js +0 -2
  5. package/appFiles/node_modules/@babel/generator/lib/generators/base.js.map +1 -1
  6. package/appFiles/node_modules/@babel/generator/lib/generators/classes.js +0 -6
  7. package/appFiles/node_modules/@babel/generator/lib/generators/classes.js.map +1 -1
  8. package/appFiles/node_modules/@babel/generator/lib/generators/expressions.js +1 -6
  9. package/appFiles/node_modules/@babel/generator/lib/generators/expressions.js.map +1 -1
  10. package/appFiles/node_modules/@babel/generator/lib/generators/flow.js +0 -2
  11. package/appFiles/node_modules/@babel/generator/lib/generators/flow.js.map +1 -1
  12. package/appFiles/node_modules/@babel/generator/lib/generators/methods.js +4 -11
  13. package/appFiles/node_modules/@babel/generator/lib/generators/methods.js.map +1 -1
  14. package/appFiles/node_modules/@babel/generator/lib/generators/modules.js +0 -1
  15. package/appFiles/node_modules/@babel/generator/lib/generators/modules.js.map +1 -1
  16. package/appFiles/node_modules/@babel/generator/lib/generators/statements.js +0 -3
  17. package/appFiles/node_modules/@babel/generator/lib/generators/statements.js.map +1 -1
  18. package/appFiles/node_modules/@babel/generator/lib/generators/types.js +1 -5
  19. package/appFiles/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
  20. package/appFiles/node_modules/@babel/generator/lib/generators/typescript.js +2 -4
  21. package/appFiles/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -1
  22. package/appFiles/node_modules/@babel/generator/lib/index.js +0 -6
  23. package/appFiles/node_modules/@babel/generator/lib/index.js.map +1 -1
  24. package/appFiles/node_modules/@babel/generator/lib/node/index.js +0 -1
  25. package/appFiles/node_modules/@babel/generator/lib/node/index.js.map +1 -1
  26. package/appFiles/node_modules/@babel/generator/lib/node/parentheses.js +8 -15
  27. package/appFiles/node_modules/@babel/generator/lib/node/parentheses.js.map +1 -1
  28. package/appFiles/node_modules/@babel/generator/lib/node/whitespace.js +1 -15
  29. package/appFiles/node_modules/@babel/generator/lib/node/whitespace.js.map +1 -1
  30. package/appFiles/node_modules/@babel/generator/lib/printer.js +8 -47
  31. package/appFiles/node_modules/@babel/generator/lib/printer.js.map +1 -1
  32. package/appFiles/node_modules/@babel/generator/lib/source-map.js +0 -4
  33. package/appFiles/node_modules/@babel/generator/lib/source-map.js.map +1 -1
  34. package/appFiles/node_modules/@babel/generator/package.json +3 -3
  35. package/appFiles/node_modules/@babel/parser/lib/index.js +169 -684
  36. package/appFiles/node_modules/@babel/parser/lib/index.js.map +1 -1
  37. package/appFiles/node_modules/@babel/parser/package.json +1 -1
  38. package/appFiles/node_modules/@babel/runtime/helpers/applyDecs.js +3 -9
  39. package/appFiles/node_modules/@babel/runtime/helpers/applyDecs2203.js +169 -172
  40. package/appFiles/node_modules/@babel/runtime/helpers/applyDecs2203R.js +188 -0
  41. package/appFiles/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +1 -3
  42. package/appFiles/node_modules/@babel/runtime/helpers/classNameTDZError.js +1 -1
  43. package/appFiles/node_modules/@babel/runtime/helpers/defineAccessor.js +8 -0
  44. package/appFiles/node_modules/@babel/runtime/helpers/esm/applyDecs.js +3 -9
  45. package/appFiles/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +169 -172
  46. package/appFiles/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +187 -0
  47. package/appFiles/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -3
  48. package/appFiles/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +1 -1
  49. package/appFiles/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +7 -0
  50. package/appFiles/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -3
  51. package/appFiles/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js +1 -3
  52. package/appFiles/node_modules/@babel/runtime/helpers/esm/jsx.js +2 -6
  53. package/appFiles/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +3 -9
  54. package/appFiles/node_modules/@babel/runtime/helpers/esm/set.js +1 -1
  55. package/appFiles/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +1 -3
  56. package/appFiles/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +1 -3
  57. package/appFiles/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js +1 -3
  58. package/appFiles/node_modules/@babel/runtime/helpers/jsx.js +2 -6
  59. package/appFiles/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +3 -9
  60. package/appFiles/node_modules/@babel/runtime/helpers/set.js +1 -1
  61. package/appFiles/node_modules/@babel/runtime/helpers/wrapRegExp.js +1 -3
  62. package/appFiles/node_modules/@babel/runtime/package.json +19 -1
  63. package/appFiles/node_modules/@babel/template/lib/builder.js +3 -15
  64. package/appFiles/node_modules/@babel/template/lib/builder.js.map +1 -0
  65. package/appFiles/node_modules/@babel/template/lib/formatters.js +3 -8
  66. package/appFiles/node_modules/@babel/template/lib/formatters.js.map +1 -0
  67. package/appFiles/node_modules/@babel/template/lib/index.js +2 -5
  68. package/appFiles/node_modules/@babel/template/lib/index.js.map +1 -0
  69. package/appFiles/node_modules/@babel/template/lib/literal.js +3 -13
  70. package/appFiles/node_modules/@babel/template/lib/literal.js.map +1 -0
  71. package/appFiles/node_modules/@babel/template/lib/options.js +10 -19
  72. package/appFiles/node_modules/@babel/template/lib/options.js.map +1 -0
  73. package/appFiles/node_modules/@babel/template/lib/parse.js +3 -23
  74. package/appFiles/node_modules/@babel/template/lib/parse.js.map +1 -0
  75. package/appFiles/node_modules/@babel/template/lib/populate.js +3 -15
  76. package/appFiles/node_modules/@babel/template/lib/populate.js.map +1 -0
  77. package/appFiles/node_modules/@babel/template/lib/string.js +3 -5
  78. package/appFiles/node_modules/@babel/template/lib/string.js.map +1 -0
  79. package/appFiles/node_modules/@babel/template/package.json +3 -3
  80. package/appFiles/node_modules/@babel/traverse/lib/context.js +2 -14
  81. package/appFiles/node_modules/@babel/traverse/lib/context.js.map +1 -1
  82. package/appFiles/node_modules/@babel/traverse/lib/index.js +1 -4
  83. package/appFiles/node_modules/@babel/traverse/lib/index.js.map +1 -1
  84. package/appFiles/node_modules/@babel/traverse/lib/path/ancestry.js +0 -19
  85. package/appFiles/node_modules/@babel/traverse/lib/path/ancestry.js.map +1 -1
  86. package/appFiles/node_modules/@babel/traverse/lib/path/comments.js +0 -2
  87. package/appFiles/node_modules/@babel/traverse/lib/path/comments.js.map +1 -1
  88. package/appFiles/node_modules/@babel/traverse/lib/path/context.js +5 -21
  89. package/appFiles/node_modules/@babel/traverse/lib/path/context.js.map +1 -1
  90. package/appFiles/node_modules/@babel/traverse/lib/path/conversion.js +6 -30
  91. package/appFiles/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -1
  92. package/appFiles/node_modules/@babel/traverse/lib/path/evaluation.js +14 -20
  93. package/appFiles/node_modules/@babel/traverse/lib/path/evaluation.js.map +1 -1
  94. package/appFiles/node_modules/@babel/traverse/lib/path/family.js +3 -9
  95. package/appFiles/node_modules/@babel/traverse/lib/path/family.js.map +1 -1
  96. package/appFiles/node_modules/@babel/traverse/lib/path/index.js +1 -6
  97. package/appFiles/node_modules/@babel/traverse/lib/path/index.js.map +1 -1
  98. package/appFiles/node_modules/@babel/traverse/lib/path/inference/index.js +1 -9
  99. package/appFiles/node_modules/@babel/traverse/lib/path/inference/index.js.map +1 -1
  100. package/appFiles/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js +1 -13
  101. package/appFiles/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js.map +1 -1
  102. package/appFiles/node_modules/@babel/traverse/lib/path/inference/inferers.js +2 -5
  103. package/appFiles/node_modules/@babel/traverse/lib/path/inference/inferers.js.map +1 -1
  104. package/appFiles/node_modules/@babel/traverse/lib/path/introspection.js +21 -62
  105. package/appFiles/node_modules/@babel/traverse/lib/path/introspection.js.map +1 -1
  106. package/appFiles/node_modules/@babel/traverse/lib/path/lib/hoister.js +1 -22
  107. package/appFiles/node_modules/@babel/traverse/lib/path/lib/hoister.js.map +1 -1
  108. package/appFiles/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js +1 -7
  109. package/appFiles/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js.map +1 -1
  110. package/appFiles/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js +0 -2
  111. package/appFiles/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js.map +1 -1
  112. package/appFiles/node_modules/@babel/traverse/lib/path/lib/virtual-types.js +0 -1
  113. package/appFiles/node_modules/@babel/traverse/lib/path/lib/virtual-types.js.map +1 -1
  114. package/appFiles/node_modules/@babel/traverse/lib/path/modification.js +12 -24
  115. package/appFiles/node_modules/@babel/traverse/lib/path/modification.js.map +1 -1
  116. package/appFiles/node_modules/@babel/traverse/lib/path/removal.js +0 -1
  117. package/appFiles/node_modules/@babel/traverse/lib/path/removal.js.map +1 -1
  118. package/appFiles/node_modules/@babel/traverse/lib/path/replacement.js +2 -16
  119. package/appFiles/node_modules/@babel/traverse/lib/path/replacement.js.map +1 -1
  120. package/appFiles/node_modules/@babel/traverse/lib/scope/binding.js +1 -6
  121. package/appFiles/node_modules/@babel/traverse/lib/scope/binding.js.map +1 -1
  122. package/appFiles/node_modules/@babel/traverse/lib/scope/index.js +28 -63
  123. package/appFiles/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
  124. package/appFiles/node_modules/@babel/traverse/lib/scope/lib/renamer.js +8 -14
  125. package/appFiles/node_modules/@babel/traverse/lib/scope/lib/renamer.js.map +1 -1
  126. package/appFiles/node_modules/@babel/traverse/lib/visitors.js +2 -23
  127. package/appFiles/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
  128. package/appFiles/node_modules/@babel/traverse/package.json +4 -4
  129. package/appFiles/node_modules/@babel/types/lib/asserts/assertNode.js.map +1 -1
  130. package/appFiles/node_modules/@babel/types/lib/traverse/traverse.js.map +1 -1
  131. package/appFiles/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +2 -1
  132. package/appFiles/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +1 -1
  133. package/appFiles/node_modules/@babel/types/package.json +3 -3
  134. package/appFiles/node_modules/css-to-react-native/README.md +4 -2
  135. package/appFiles/node_modules/css-to-react-native/index.js +13 -6
  136. package/appFiles/node_modules/css-to-react-native/package.json +2 -1
  137. package/appFiles/node_modules/css-to-react-native/src/__tests__/fontVariant.js +8 -0
  138. package/appFiles/node_modules/css-to-react-native/src/transforms/fontVariant.js +14 -0
  139. package/appFiles/node_modules/css-to-react-native/src/transforms/index.js +5 -7
  140. package/appFiles/src/fields/rich-text/monaco/index.tsx +12 -10
  141. package/appFiles/src/fields/rich-text/monaco/mdx.js +41 -35
  142. package/appFiles/src/lib/machines/document-machine.ts +1 -1
  143. package/dist/index.js +4 -2
  144. package/package.json +5 -4
@@ -1,189 +1,186 @@
1
1
  import _typeof from "./typeof.js";
2
- function createAddInitializerMethod(initializers, decoratorFinishedRef) {
3
- return function (initializer) {
4
- assertNotFinished(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer);
5
- };
6
- }
7
- function memberDec(dec, name, desc, initializers, kind, isStatic, isPrivate, value) {
8
- var kindStr;
9
- switch (kind) {
10
- case 1:
11
- kindStr = "accessor";
12
- break;
13
- case 2:
14
- kindStr = "method";
15
- break;
16
- case 3:
17
- kindStr = "getter";
18
- break;
19
- case 4:
20
- kindStr = "setter";
21
- break;
22
- default:
23
- kindStr = "field";
24
- }
25
- var get,
26
- set,
27
- ctx = {
28
- kind: kindStr,
29
- name: isPrivate ? "#" + name : name,
30
- "static": isStatic,
31
- "private": isPrivate
32
- },
33
- decoratorFinishedRef = {
34
- v: !1
2
+ function applyDecs2203Factory() {
3
+ function createAddInitializerMethod(initializers, decoratorFinishedRef) {
4
+ return function (initializer) {
5
+ !function (decoratorFinishedRef, fnName) {
6
+ if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished");
7
+ }(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer);
35
8
  };
36
- 0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), 0 === kind ? isPrivate ? (get = desc.get, set = desc.set) : (get = function get() {
37
- return this[name];
38
- }, set = function set(v) {
39
- this[name] = v;
40
- }) : 2 === kind ? get = function get() {
41
- return desc.value;
42
- } : (1 !== kind && 3 !== kind || (get = function get() {
43
- return desc.get.call(this);
44
- }), 1 !== kind && 4 !== kind || (set = function set(v) {
45
- desc.set.call(this, v);
46
- })), ctx.access = get && set ? {
47
- get: get,
48
- set: set
49
- } : get ? {
50
- get: get
51
- } : {
52
- set: set
53
- };
54
- try {
55
- return dec(value, ctx);
56
- } finally {
57
- decoratorFinishedRef.v = !0;
58
9
  }
59
- }
60
- function assertNotFinished(decoratorFinishedRef, fnName) {
61
- if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished");
62
- }
63
- function assertCallable(fn, hint) {
64
- if ("function" != typeof fn) throw new TypeError(hint + " must be a function");
65
- }
66
- function assertValidReturnValue(kind, value) {
67
- var type = _typeof(value);
68
- if (1 === kind) {
69
- if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
70
- void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init");
71
- } else if ("function" !== type) {
72
- var hint;
73
- throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0");
74
- }
75
- }
76
- function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers) {
77
- var desc,
78
- init,
79
- value,
80
- newValue,
81
- get,
82
- set,
83
- decs = decInfo[0];
84
- if (isPrivate ? desc = 0 === kind || 1 === kind ? {
85
- get: decInfo[3],
86
- set: decInfo[4]
87
- } : 3 === kind ? {
88
- get: decInfo[3]
89
- } : 4 === kind ? {
90
- set: decInfo[3]
91
- } : {
92
- value: decInfo[3]
93
- } : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = {
94
- get: desc.get,
95
- set: desc.set
96
- } : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, initializers, kind, isStatic, isPrivate, value)) && (assertValidReturnValue(kind, newValue), 0 === kind ? init = newValue : 1 === kind ? (init = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = {
97
- get: get,
98
- set: set
99
- }) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) {
100
- var newInit;
101
- if (void 0 !== (newValue = memberDec(decs[i], name, desc, initializers, kind, isStatic, isPrivate, value))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = {
10
+ function memberDec(dec, name, desc, initializers, kind, isStatic, isPrivate, value) {
11
+ var kindStr;
12
+ switch (kind) {
13
+ case 1:
14
+ kindStr = "accessor";
15
+ break;
16
+ case 2:
17
+ kindStr = "method";
18
+ break;
19
+ case 3:
20
+ kindStr = "getter";
21
+ break;
22
+ case 4:
23
+ kindStr = "setter";
24
+ break;
25
+ default:
26
+ kindStr = "field";
27
+ }
28
+ var get,
29
+ set,
30
+ ctx = {
31
+ kind: kindStr,
32
+ name: isPrivate ? "#" + name : name,
33
+ "static": isStatic,
34
+ "private": isPrivate
35
+ },
36
+ decoratorFinishedRef = {
37
+ v: !1
38
+ };
39
+ 0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), 0 === kind ? isPrivate ? (get = desc.get, set = desc.set) : (get = function get() {
40
+ return this[name];
41
+ }, set = function set(v) {
42
+ this[name] = v;
43
+ }) : 2 === kind ? get = function get() {
44
+ return desc.value;
45
+ } : (1 !== kind && 3 !== kind || (get = function get() {
46
+ return desc.get.call(this);
47
+ }), 1 !== kind && 4 !== kind || (set = function set(v) {
48
+ desc.set.call(this, v);
49
+ })), ctx.access = get && set ? {
102
50
  get: get,
103
51
  set: set
104
- }) : value = newValue, void 0 !== newInit && (void 0 === init ? init = newInit : "function" == typeof init ? init = [init, newInit] : init.push(newInit));
105
- }
106
- if (0 === kind || 1 === kind) {
107
- if (void 0 === init) init = function init(instance, _init) {
108
- return _init;
109
- };else if ("function" != typeof init) {
110
- var ownInitializers = init;
111
- init = function init(instance, _init2) {
112
- for (var value = _init2, i = 0; i < ownInitializers.length; i++) {
113
- value = ownInitializers[i].call(instance, value);
114
- }
115
- return value;
116
- };
117
- } else {
118
- var originalInitializer = init;
119
- init = function init(instance, _init3) {
120
- return originalInitializer.call(instance, _init3);
121
- };
52
+ } : get ? {
53
+ get: get
54
+ } : {
55
+ set: set
56
+ };
57
+ try {
58
+ return dec(value, ctx);
59
+ } finally {
60
+ decoratorFinishedRef.v = !0;
122
61
  }
123
- ret.push(init);
124
62
  }
125
- 0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) {
126
- return value.get.call(instance, args);
127
- }), ret.push(function (instance, args) {
128
- return value.set.call(instance, args);
129
- })) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) {
130
- return value.call(instance, args);
131
- }) : Object.defineProperty(base, name, desc));
132
- }
133
- function applyMemberDecs(ret, Class, decInfos) {
134
- for (var protoInitializers, staticInitializers, existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) {
135
- var decInfo = decInfos[i];
136
- if (Array.isArray(decInfo)) {
137
- var base,
138
- initializers,
139
- kind = decInfo[1],
140
- name = decInfo[2],
141
- isPrivate = decInfo.length > 3,
142
- isStatic = kind >= 5;
143
- if (isStatic ? (base = Class, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) {
144
- var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields,
145
- existingKind = existingNonFields.get(name) || 0;
146
- if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name);
147
- !existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0);
148
- }
149
- applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers);
63
+ function assertCallable(fn, hint) {
64
+ if ("function" != typeof fn) throw new TypeError(hint + " must be a function");
65
+ }
66
+ function assertValidReturnValue(kind, value) {
67
+ var type = _typeof(value);
68
+ if (1 === kind) {
69
+ if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
70
+ void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init");
71
+ } else if ("function" !== type) {
72
+ var hint;
73
+ throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0");
150
74
  }
151
75
  }
152
- pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers);
153
- }
154
- function pushInitializers(ret, initializers) {
155
- initializers && ret.push(function (instance) {
156
- for (var i = 0; i < initializers.length; i++) {
157
- initializers[i].call(instance);
76
+ function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers) {
77
+ var desc,
78
+ init,
79
+ value,
80
+ newValue,
81
+ get,
82
+ set,
83
+ decs = decInfo[0];
84
+ if (isPrivate ? desc = 0 === kind || 1 === kind ? {
85
+ get: decInfo[3],
86
+ set: decInfo[4]
87
+ } : 3 === kind ? {
88
+ get: decInfo[3]
89
+ } : 4 === kind ? {
90
+ set: decInfo[3]
91
+ } : {
92
+ value: decInfo[3]
93
+ } : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = {
94
+ get: desc.get,
95
+ set: desc.set
96
+ } : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, initializers, kind, isStatic, isPrivate, value)) && (assertValidReturnValue(kind, newValue), 0 === kind ? init = newValue : 1 === kind ? (init = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = {
97
+ get: get,
98
+ set: set
99
+ }) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) {
100
+ var newInit;
101
+ if (void 0 !== (newValue = memberDec(decs[i], name, desc, initializers, kind, isStatic, isPrivate, value))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = {
102
+ get: get,
103
+ set: set
104
+ }) : value = newValue, void 0 !== newInit && (void 0 === init ? init = newInit : "function" == typeof init ? init = [init, newInit] : init.push(newInit));
158
105
  }
159
- return instance;
160
- });
161
- }
162
- function applyClassDecs(ret, targetClass, classDecs) {
163
- if (classDecs.length > 0) {
164
- for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) {
165
- var decoratorFinishedRef = {
166
- v: !1
167
- };
168
- try {
169
- var nextNewClass = classDecs[i](newClass, {
170
- kind: "class",
171
- name: name,
172
- addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef)
173
- });
174
- } finally {
175
- decoratorFinishedRef.v = !0;
106
+ if (0 === kind || 1 === kind) {
107
+ if (void 0 === init) init = function init(instance, _init) {
108
+ return _init;
109
+ };else if ("function" != typeof init) {
110
+ var ownInitializers = init;
111
+ init = function init(instance, _init2) {
112
+ for (var value = _init2, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value);
113
+ return value;
114
+ };
115
+ } else {
116
+ var originalInitializer = init;
117
+ init = function init(instance, _init3) {
118
+ return originalInitializer.call(instance, _init3);
119
+ };
176
120
  }
177
- void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass);
121
+ ret.push(init);
178
122
  }
179
- ret.push(newClass, function () {
180
- for (var i = 0; i < initializers.length; i++) {
181
- initializers[i].call(newClass);
182
- }
123
+ 0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) {
124
+ return value.get.call(instance, args);
125
+ }), ret.push(function (instance, args) {
126
+ return value.set.call(instance, args);
127
+ })) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) {
128
+ return value.call(instance, args);
129
+ }) : Object.defineProperty(base, name, desc));
130
+ }
131
+ function pushInitializers(ret, initializers) {
132
+ initializers && ret.push(function (instance) {
133
+ for (var i = 0; i < initializers.length; i++) initializers[i].call(instance);
134
+ return instance;
183
135
  });
184
136
  }
137
+ return function (targetClass, memberDecs, classDecs) {
138
+ var ret = [];
139
+ return function (ret, Class, decInfos) {
140
+ for (var protoInitializers, staticInitializers, existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) {
141
+ var decInfo = decInfos[i];
142
+ if (Array.isArray(decInfo)) {
143
+ var base,
144
+ initializers,
145
+ kind = decInfo[1],
146
+ name = decInfo[2],
147
+ isPrivate = decInfo.length > 3,
148
+ isStatic = kind >= 5;
149
+ if (isStatic ? (base = Class, 0 != (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) {
150
+ var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields,
151
+ existingKind = existingNonFields.get(name) || 0;
152
+ if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name);
153
+ !existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0);
154
+ }
155
+ applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers);
156
+ }
157
+ }
158
+ pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers);
159
+ }(ret, targetClass, memberDecs), function (ret, targetClass, classDecs) {
160
+ if (classDecs.length > 0) {
161
+ for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) {
162
+ var decoratorFinishedRef = {
163
+ v: !1
164
+ };
165
+ try {
166
+ var nextNewClass = classDecs[i](newClass, {
167
+ kind: "class",
168
+ name: name,
169
+ addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef)
170
+ });
171
+ } finally {
172
+ decoratorFinishedRef.v = !0;
173
+ }
174
+ void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass);
175
+ }
176
+ ret.push(newClass, function () {
177
+ for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass);
178
+ });
179
+ }
180
+ }(ret, targetClass, classDecs), ret;
181
+ };
185
182
  }
183
+ var applyDecs2203Impl;
186
184
  export default function applyDecs2203(targetClass, memberDecs, classDecs) {
187
- var ret = [];
188
- return applyMemberDecs(ret, targetClass, memberDecs), applyClassDecs(ret, targetClass, classDecs), ret;
185
+ return (applyDecs2203Impl = applyDecs2203Impl || applyDecs2203Factory())(targetClass, memberDecs, classDecs);
189
186
  }
@@ -0,0 +1,187 @@
1
+ import _typeof from "./typeof.js";
2
+ function createAddInitializerMethod(initializers, decoratorFinishedRef) {
3
+ return function (initializer) {
4
+ assertNotFinished(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer);
5
+ };
6
+ }
7
+ function memberDec(dec, name, desc, initializers, kind, isStatic, isPrivate, value) {
8
+ var kindStr;
9
+ switch (kind) {
10
+ case 1:
11
+ kindStr = "accessor";
12
+ break;
13
+ case 2:
14
+ kindStr = "method";
15
+ break;
16
+ case 3:
17
+ kindStr = "getter";
18
+ break;
19
+ case 4:
20
+ kindStr = "setter";
21
+ break;
22
+ default:
23
+ kindStr = "field";
24
+ }
25
+ var get,
26
+ set,
27
+ ctx = {
28
+ kind: kindStr,
29
+ name: isPrivate ? "#" + name : name,
30
+ "static": isStatic,
31
+ "private": isPrivate
32
+ },
33
+ decoratorFinishedRef = {
34
+ v: !1
35
+ };
36
+ 0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), 0 === kind ? isPrivate ? (get = desc.get, set = desc.set) : (get = function get() {
37
+ return this[name];
38
+ }, set = function set(v) {
39
+ this[name] = v;
40
+ }) : 2 === kind ? get = function get() {
41
+ return desc.value;
42
+ } : (1 !== kind && 3 !== kind || (get = function get() {
43
+ return desc.get.call(this);
44
+ }), 1 !== kind && 4 !== kind || (set = function set(v) {
45
+ desc.set.call(this, v);
46
+ })), ctx.access = get && set ? {
47
+ get: get,
48
+ set: set
49
+ } : get ? {
50
+ get: get
51
+ } : {
52
+ set: set
53
+ };
54
+ try {
55
+ return dec(value, ctx);
56
+ } finally {
57
+ decoratorFinishedRef.v = !0;
58
+ }
59
+ }
60
+ function assertNotFinished(decoratorFinishedRef, fnName) {
61
+ if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished");
62
+ }
63
+ function assertCallable(fn, hint) {
64
+ if ("function" != typeof fn) throw new TypeError(hint + " must be a function");
65
+ }
66
+ function assertValidReturnValue(kind, value) {
67
+ var type = _typeof(value);
68
+ if (1 === kind) {
69
+ if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
70
+ void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init");
71
+ } else if ("function" !== type) {
72
+ var hint;
73
+ throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0");
74
+ }
75
+ }
76
+ function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers) {
77
+ var desc,
78
+ init,
79
+ value,
80
+ newValue,
81
+ get,
82
+ set,
83
+ decs = decInfo[0];
84
+ if (isPrivate ? desc = 0 === kind || 1 === kind ? {
85
+ get: decInfo[3],
86
+ set: decInfo[4]
87
+ } : 3 === kind ? {
88
+ get: decInfo[3]
89
+ } : 4 === kind ? {
90
+ set: decInfo[3]
91
+ } : {
92
+ value: decInfo[3]
93
+ } : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = {
94
+ get: desc.get,
95
+ set: desc.set
96
+ } : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, initializers, kind, isStatic, isPrivate, value)) && (assertValidReturnValue(kind, newValue), 0 === kind ? init = newValue : 1 === kind ? (init = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = {
97
+ get: get,
98
+ set: set
99
+ }) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) {
100
+ var newInit;
101
+ if (void 0 !== (newValue = memberDec(decs[i], name, desc, initializers, kind, isStatic, isPrivate, value))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = {
102
+ get: get,
103
+ set: set
104
+ }) : value = newValue, void 0 !== newInit && (void 0 === init ? init = newInit : "function" == typeof init ? init = [init, newInit] : init.push(newInit));
105
+ }
106
+ if (0 === kind || 1 === kind) {
107
+ if (void 0 === init) init = function init(instance, _init) {
108
+ return _init;
109
+ };else if ("function" != typeof init) {
110
+ var ownInitializers = init;
111
+ init = function init(instance, _init2) {
112
+ for (var value = _init2, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value);
113
+ return value;
114
+ };
115
+ } else {
116
+ var originalInitializer = init;
117
+ init = function init(instance, _init3) {
118
+ return originalInitializer.call(instance, _init3);
119
+ };
120
+ }
121
+ ret.push(init);
122
+ }
123
+ 0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) {
124
+ return value.get.call(instance, args);
125
+ }), ret.push(function (instance, args) {
126
+ return value.set.call(instance, args);
127
+ })) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) {
128
+ return value.call(instance, args);
129
+ }) : Object.defineProperty(base, name, desc));
130
+ }
131
+ function applyMemberDecs(Class, decInfos) {
132
+ for (var protoInitializers, staticInitializers, ret = [], existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) {
133
+ var decInfo = decInfos[i];
134
+ if (Array.isArray(decInfo)) {
135
+ var base,
136
+ initializers,
137
+ kind = decInfo[1],
138
+ name = decInfo[2],
139
+ isPrivate = decInfo.length > 3,
140
+ isStatic = kind >= 5;
141
+ if (isStatic ? (base = Class, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) {
142
+ var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields,
143
+ existingKind = existingNonFields.get(name) || 0;
144
+ if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name);
145
+ !existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0);
146
+ }
147
+ applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers);
148
+ }
149
+ }
150
+ return pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers), ret;
151
+ }
152
+ function pushInitializers(ret, initializers) {
153
+ initializers && ret.push(function (instance) {
154
+ for (var i = 0; i < initializers.length; i++) initializers[i].call(instance);
155
+ return instance;
156
+ });
157
+ }
158
+ function applyClassDecs(targetClass, classDecs) {
159
+ if (classDecs.length > 0) {
160
+ for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) {
161
+ var decoratorFinishedRef = {
162
+ v: !1
163
+ };
164
+ try {
165
+ var nextNewClass = classDecs[i](newClass, {
166
+ kind: "class",
167
+ name: name,
168
+ addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef)
169
+ });
170
+ } finally {
171
+ decoratorFinishedRef.v = !0;
172
+ }
173
+ void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass);
174
+ }
175
+ return [newClass, function () {
176
+ for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass);
177
+ }];
178
+ }
179
+ }
180
+ export default function applyDecs2203R(targetClass, memberDecs, classDecs) {
181
+ return {
182
+ e: applyMemberDecs(targetClass, memberDecs),
183
+ get c() {
184
+ return applyClassDecs(targetClass, classDecs);
185
+ }
186
+ };
187
+ }
@@ -1,7 +1,5 @@
1
1
  export default function _arrayLikeToArray(arr, len) {
2
2
  if (len == null || len > arr.length) len = arr.length;
3
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
4
- arr2[i] = arr[i];
5
- }
3
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
6
4
  return arr2;
7
5
  }
@@ -1,3 +1,3 @@
1
1
  export default function _classNameTDZError(name) {
2
- throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
2
+ throw new ReferenceError("Class \"" + name + "\" cannot be referenced in computed property keys.");
3
3
  }
@@ -0,0 +1,7 @@
1
+ export default function _defineAccessor(type, obj, key, fn) {
2
+ var desc = {
3
+ configurable: !0,
4
+ enumerable: !0
5
+ };
6
+ return desc[type] = fn, Object.defineProperty(obj, key, desc);
7
+ }
@@ -12,9 +12,7 @@ export default function _iterableToArrayLimit(arr, i) {
12
12
  if (_x = (_i = _i.call(arr)).next, 0 === i) {
13
13
  if (Object(_i) !== _i) return;
14
14
  _n = !1;
15
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
16
- ;
17
- }
15
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
18
16
  } catch (err) {
19
17
  _d = !0, _e = err;
20
18
  } finally {
@@ -3,9 +3,7 @@ export default function _iterableToArrayLimitLoose(arr, i) {
3
3
  if (null != _i) {
4
4
  var _s,
5
5
  _arr = [];
6
- for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done;) {
7
- _arr.push(_s.value);
8
- }
6
+ for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done;) _arr.push(_s.value);
9
7
  return _arr;
10
8
  }
11
9
  }
@@ -6,14 +6,10 @@ export default function _createRawReactElement(type, props, key, children) {
6
6
  if (props || 0 === childrenLength || (props = {
7
7
  children: void 0
8
8
  }), 1 === childrenLength) props.children = children;else if (childrenLength > 1) {
9
- for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) {
10
- childArray[i] = arguments[i + 3];
11
- }
9
+ for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 3];
12
10
  props.children = childArray;
13
11
  }
14
- if (props && defaultProps) for (var propName in defaultProps) {
15
- void 0 === props[propName] && (props[propName] = defaultProps[propName]);
16
- } else props || (props = defaultProps || {});
12
+ if (props && defaultProps) for (var propName in defaultProps) void 0 === props[propName] && (props[propName] = defaultProps[propName]);else props || (props = defaultProps || {});
17
13
  return {
18
14
  $$typeof: REACT_ELEMENT_TYPE,
19
15
  type: type,
@@ -166,9 +166,7 @@ export default function _regeneratorRuntime() {
166
166
  if (!isNaN(iterable.length)) {
167
167
  var i = -1,
168
168
  next = function next() {
169
- for (; ++i < iterable.length;) {
170
- if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
171
- }
169
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
172
170
  return next.value = undefined, next.done = !0, next;
173
171
  };
174
172
  return next.next = next;
@@ -214,9 +212,7 @@ export default function _regeneratorRuntime() {
214
212
  }), exports.keys = function (val) {
215
213
  var object = Object(val),
216
214
  keys = [];
217
- for (var key in object) {
218
- keys.push(key);
219
- }
215
+ for (var key in object) keys.push(key);
220
216
  return keys.reverse(), function next() {
221
217
  for (; keys.length;) {
222
218
  var key = keys.pop();
@@ -227,9 +223,7 @@ export default function _regeneratorRuntime() {
227
223
  }, exports.values = values, Context.prototype = {
228
224
  constructor: Context,
229
225
  reset: function reset(skipTempReset) {
230
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
231
- "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
232
- }
226
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
233
227
  },
234
228
  stop: function stop() {
235
229
  this.done = !0;
@@ -34,7 +34,7 @@ function set(target, property, value, receiver) {
34
34
  export default function _set(target, property, value, receiver, isStrict) {
35
35
  var s = set(target, property, value, receiver || target);
36
36
  if (!s && isStrict) {
37
- throw new Error('failed to set property');
37
+ throw new TypeError('failed to set property');
38
38
  }
39
39
  return value;
40
40
  }