@atlaskit/renderer 107.3.2 → 107.3.4
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/CHANGELOG.md +16 -0
- package/dist/cjs/actions/index.js +3 -4
- package/dist/cjs/analytics/enums.js +16 -16
- package/dist/cjs/analytics/events.js +12 -12
- package/dist/cjs/i18n/cs.js +1 -0
- package/dist/cjs/i18n/da.js +1 -0
- package/dist/cjs/i18n/de.js +1 -0
- package/dist/cjs/i18n/en.js +1 -0
- package/dist/cjs/i18n/en_GB.js +1 -0
- package/dist/cjs/i18n/en_ZZ.js +5 -4
- package/dist/cjs/i18n/es.js +1 -0
- package/dist/cjs/i18n/fi.js +1 -0
- package/dist/cjs/i18n/fr.js +1 -0
- package/dist/cjs/i18n/hu.js +1 -0
- package/dist/cjs/i18n/it.js +1 -0
- package/dist/cjs/i18n/ja.js +1 -0
- package/dist/cjs/i18n/ko.js +1 -0
- package/dist/cjs/i18n/nb.js +1 -0
- package/dist/cjs/i18n/nl.js +1 -0
- package/dist/cjs/i18n/pl.js +1 -0
- package/dist/cjs/i18n/pt_BR.js +1 -0
- package/dist/cjs/i18n/ru.js +1 -0
- package/dist/cjs/i18n/sv.js +1 -0
- package/dist/cjs/i18n/th.js +1 -0
- package/dist/cjs/i18n/tr.js +1 -0
- package/dist/cjs/i18n/uk.js +1 -0
- package/dist/cjs/i18n/vi.js +1 -0
- package/dist/cjs/i18n/zh.js +1 -0
- package/dist/cjs/i18n/zh_TW.js +1 -0
- package/dist/cjs/react/hooks/use-in-viewport.js +1 -1
- package/dist/cjs/react/hooks/use-observed-width.js +1 -1
- package/dist/cjs/react/index.js +8 -9
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +12 -13
- package/dist/cjs/react/nodes/heading-anchor.js +21 -24
- package/dist/cjs/react/nodes/index.js +38 -19
- package/dist/cjs/react/nodes/mediaInline.js +17 -19
- package/dist/cjs/react/nodes/table/sticky.js +1 -1
- package/dist/cjs/react/nodes/table.js +3 -3
- package/dist/cjs/react/nodes/task-item-with-providers.js +34 -36
- package/dist/cjs/ui/MediaCard.js +82 -87
- package/dist/cjs/ui/Renderer/index.js +5 -6
- package/dist/cjs/ui/Renderer/style.js +7 -4
- package/dist/cjs/ui/SortingIcon.js +4 -4
- package/dist/cjs/ui/annotations/types.js +4 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/actions/index.js +3 -4
- package/dist/es2019/analytics/enums.js +12 -12
- package/dist/es2019/analytics/events.js +9 -9
- package/dist/es2019/i18n/cs.js +1 -0
- package/dist/es2019/i18n/da.js +1 -0
- package/dist/es2019/i18n/de.js +1 -0
- package/dist/es2019/i18n/en.js +1 -0
- package/dist/es2019/i18n/en_GB.js +1 -0
- package/dist/es2019/i18n/en_ZZ.js +5 -4
- package/dist/es2019/i18n/es.js +1 -0
- package/dist/es2019/i18n/fi.js +1 -0
- package/dist/es2019/i18n/fr.js +1 -0
- package/dist/es2019/i18n/hu.js +1 -0
- package/dist/es2019/i18n/it.js +1 -0
- package/dist/es2019/i18n/ja.js +1 -0
- package/dist/es2019/i18n/ko.js +1 -0
- package/dist/es2019/i18n/nb.js +1 -0
- package/dist/es2019/i18n/nl.js +1 -0
- package/dist/es2019/i18n/pl.js +1 -0
- package/dist/es2019/i18n/pt_BR.js +1 -0
- package/dist/es2019/i18n/ru.js +1 -0
- package/dist/es2019/i18n/sv.js +1 -0
- package/dist/es2019/i18n/th.js +1 -0
- package/dist/es2019/i18n/tr.js +1 -0
- package/dist/es2019/i18n/uk.js +1 -0
- package/dist/es2019/i18n/vi.js +1 -0
- package/dist/es2019/i18n/zh.js +1 -0
- package/dist/es2019/i18n/zh_TW.js +1 -0
- package/dist/es2019/react/index.js +8 -9
- package/dist/es2019/react/nodes/table/sticky.js +3 -0
- package/dist/es2019/react/nodes/table.js +3 -4
- package/dist/es2019/ui/MediaCard.js +6 -8
- package/dist/es2019/ui/Renderer/index.js +5 -6
- package/dist/es2019/ui/Renderer/style.js +7 -4
- package/dist/es2019/ui/SortingIcon.js +3 -3
- package/dist/es2019/ui/annotations/types.js +3 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/actions/index.js +3 -4
- package/dist/esm/analytics/enums.js +12 -12
- package/dist/esm/analytics/events.js +9 -9
- package/dist/esm/i18n/cs.js +1 -0
- package/dist/esm/i18n/da.js +1 -0
- package/dist/esm/i18n/de.js +1 -0
- package/dist/esm/i18n/en.js +1 -0
- package/dist/esm/i18n/en_GB.js +1 -0
- package/dist/esm/i18n/en_ZZ.js +5 -4
- package/dist/esm/i18n/es.js +1 -0
- package/dist/esm/i18n/fi.js +1 -0
- package/dist/esm/i18n/fr.js +1 -0
- package/dist/esm/i18n/hu.js +1 -0
- package/dist/esm/i18n/it.js +1 -0
- package/dist/esm/i18n/ja.js +1 -0
- package/dist/esm/i18n/ko.js +1 -0
- package/dist/esm/i18n/nb.js +1 -0
- package/dist/esm/i18n/nl.js +1 -0
- package/dist/esm/i18n/pl.js +1 -0
- package/dist/esm/i18n/pt_BR.js +1 -0
- package/dist/esm/i18n/ru.js +1 -0
- package/dist/esm/i18n/sv.js +1 -0
- package/dist/esm/i18n/th.js +1 -0
- package/dist/esm/i18n/tr.js +1 -0
- package/dist/esm/i18n/uk.js +1 -0
- package/dist/esm/i18n/vi.js +1 -0
- package/dist/esm/i18n/zh.js +1 -0
- package/dist/esm/i18n/zh_TW.js +1 -0
- package/dist/esm/react/hooks/use-in-viewport.js +1 -1
- package/dist/esm/react/hooks/use-observed-width.js +1 -1
- package/dist/esm/react/index.js +8 -9
- package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +10 -13
- package/dist/esm/react/nodes/heading-anchor.js +21 -24
- package/dist/esm/react/nodes/mediaInline.js +17 -20
- package/dist/esm/react/nodes/table/sticky.js +1 -1
- package/dist/esm/react/nodes/table.js +3 -3
- package/dist/esm/react/nodes/task-item-with-providers.js +34 -37
- package/dist/esm/ui/MediaCard.js +82 -88
- package/dist/esm/ui/Renderer/index.js +5 -6
- package/dist/esm/ui/Renderer/style.js +8 -5
- package/dist/esm/ui/SortingIcon.js +3 -3
- package/dist/esm/ui/annotations/types.js +3 -3
- package/dist/esm/version.json +1 -1
- package/dist/types/i18n/en_ZZ.d.ts +2 -2
- package/package.json +12 -12
- package/report.api.md +1 -1
|
@@ -172,7 +172,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
172
172
|
var WindowedCodeBlock = (0, _reactLoadable.default)({
|
|
173
173
|
loader: function loader() {
|
|
174
174
|
return Promise.resolve().then(function () {
|
|
175
|
-
return _interopRequireWildcard(require(
|
|
175
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_WindowedCodeBlock" */
|
|
176
|
+
'./codeBlock/windowedCodeBlock'));
|
|
176
177
|
}).then(function (mod) {
|
|
177
178
|
return mod.default;
|
|
178
179
|
});
|
|
@@ -185,7 +186,8 @@ exports.WindowedCodeBlock = WindowedCodeBlock;
|
|
|
185
186
|
var CodeBlock = (0, _reactLoadable.default)({
|
|
186
187
|
loader: function loader() {
|
|
187
188
|
return Promise.resolve().then(function () {
|
|
188
|
-
return _interopRequireWildcard(require(
|
|
189
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_CodeBlock" */
|
|
190
|
+
'./codeBlock/codeBlock'));
|
|
189
191
|
}).then(function (mod) {
|
|
190
192
|
return mod.default;
|
|
191
193
|
});
|
|
@@ -198,7 +200,8 @@ exports.CodeBlock = CodeBlock;
|
|
|
198
200
|
var TaskList = (0, _reactLoadable.default)({
|
|
199
201
|
loader: function loader() {
|
|
200
202
|
return Promise.resolve().then(function () {
|
|
201
|
-
return _interopRequireWildcard(require(
|
|
203
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_TaskList" */
|
|
204
|
+
'./taskList'));
|
|
202
205
|
}).then(function (mod) {
|
|
203
206
|
return mod.default;
|
|
204
207
|
});
|
|
@@ -211,7 +214,8 @@ exports.TaskList = TaskList;
|
|
|
211
214
|
var TaskItem = (0, _reactLoadable.default)({
|
|
212
215
|
loader: function loader() {
|
|
213
216
|
return Promise.resolve().then(function () {
|
|
214
|
-
return _interopRequireWildcard(require(
|
|
217
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_TaskItem" */
|
|
218
|
+
'./taskItem'));
|
|
215
219
|
}).then(function (mod) {
|
|
216
220
|
return mod.default;
|
|
217
221
|
});
|
|
@@ -224,7 +228,8 @@ exports.TaskItem = TaskItem;
|
|
|
224
228
|
var DecisionList = (0, _reactLoadable.default)({
|
|
225
229
|
loader: function loader() {
|
|
226
230
|
return Promise.resolve().then(function () {
|
|
227
|
-
return _interopRequireWildcard(require(
|
|
231
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_DecisionList" */
|
|
232
|
+
'./decisionList'));
|
|
228
233
|
}).then(function (mod) {
|
|
229
234
|
return mod.default;
|
|
230
235
|
});
|
|
@@ -237,7 +242,8 @@ exports.DecisionList = DecisionList;
|
|
|
237
242
|
var DecisionItem = (0, _reactLoadable.default)({
|
|
238
243
|
loader: function loader() {
|
|
239
244
|
return Promise.resolve().then(function () {
|
|
240
|
-
return _interopRequireWildcard(require(
|
|
245
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_DecisionItem" */
|
|
246
|
+
'./decisionItem'));
|
|
241
247
|
}).then(function (mod) {
|
|
242
248
|
return mod.default;
|
|
243
249
|
});
|
|
@@ -250,7 +256,8 @@ exports.DecisionItem = DecisionItem;
|
|
|
250
256
|
var Date = (0, _reactLoadable.default)({
|
|
251
257
|
loader: function loader() {
|
|
252
258
|
return Promise.resolve().then(function () {
|
|
253
|
-
return _interopRequireWildcard(require(
|
|
259
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_Date" */
|
|
260
|
+
'./date'));
|
|
254
261
|
}).then(function (mod) {
|
|
255
262
|
return mod.default;
|
|
256
263
|
});
|
|
@@ -263,7 +270,8 @@ exports.Date = Date;
|
|
|
263
270
|
var Status = (0, _reactLoadable.default)({
|
|
264
271
|
loader: function loader() {
|
|
265
272
|
return Promise.resolve().then(function () {
|
|
266
|
-
return _interopRequireWildcard(require(
|
|
273
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_Status" */
|
|
274
|
+
'./status'));
|
|
267
275
|
}).then(function (mod) {
|
|
268
276
|
return mod.default;
|
|
269
277
|
});
|
|
@@ -276,7 +284,8 @@ exports.Status = Status;
|
|
|
276
284
|
var Emoji = (0, _reactLoadable.default)({
|
|
277
285
|
loader: function loader() {
|
|
278
286
|
return Promise.resolve().then(function () {
|
|
279
|
-
return _interopRequireWildcard(require(
|
|
287
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_Emoji" */
|
|
288
|
+
'./emoji'));
|
|
280
289
|
}).then(function (mod) {
|
|
281
290
|
return mod.default;
|
|
282
291
|
});
|
|
@@ -289,7 +298,8 @@ exports.Emoji = Emoji;
|
|
|
289
298
|
var Panel = (0, _reactLoadable.default)({
|
|
290
299
|
loader: function loader() {
|
|
291
300
|
return Promise.resolve().then(function () {
|
|
292
|
-
return _interopRequireWildcard(require(
|
|
301
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_Panel" */
|
|
302
|
+
'./panel'));
|
|
293
303
|
}).then(function (mod) {
|
|
294
304
|
return mod.default;
|
|
295
305
|
});
|
|
@@ -302,7 +312,8 @@ exports.Panel = Panel;
|
|
|
302
312
|
var EmbedCard = (0, _reactLoadable.default)({
|
|
303
313
|
loader: function loader() {
|
|
304
314
|
return Promise.resolve().then(function () {
|
|
305
|
-
return _interopRequireWildcard(require(
|
|
315
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_EmbedCard" */
|
|
316
|
+
'./embedCard'));
|
|
306
317
|
}).then(function (mod) {
|
|
307
318
|
return mod.default;
|
|
308
319
|
});
|
|
@@ -315,7 +326,8 @@ exports.EmbedCard = EmbedCard;
|
|
|
315
326
|
var InlineCard = (0, _reactLoadable.default)({
|
|
316
327
|
loader: function loader() {
|
|
317
328
|
return Promise.resolve().then(function () {
|
|
318
|
-
return _interopRequireWildcard(require(
|
|
329
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_InlineCard" */
|
|
330
|
+
'./inlineCard'));
|
|
319
331
|
}).then(function (mod) {
|
|
320
332
|
return mod.default;
|
|
321
333
|
});
|
|
@@ -328,7 +340,8 @@ exports.InlineCard = InlineCard;
|
|
|
328
340
|
var BlockCard = (0, _reactLoadable.default)({
|
|
329
341
|
loader: function loader() {
|
|
330
342
|
return Promise.resolve().then(function () {
|
|
331
|
-
return _interopRequireWildcard(require(
|
|
343
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_BlockCard" */
|
|
344
|
+
'./blockCard'));
|
|
332
345
|
}).then(function (mod) {
|
|
333
346
|
return mod.default;
|
|
334
347
|
});
|
|
@@ -341,7 +354,8 @@ exports.BlockCard = BlockCard;
|
|
|
341
354
|
var Media = (0, _reactLoadable.default)({
|
|
342
355
|
loader: function loader() {
|
|
343
356
|
return Promise.resolve().then(function () {
|
|
344
|
-
return _interopRequireWildcard(require(
|
|
357
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_Media" */
|
|
358
|
+
'./media'));
|
|
345
359
|
}).then(function (mod) {
|
|
346
360
|
return mod.default;
|
|
347
361
|
});
|
|
@@ -354,7 +368,8 @@ exports.Media = Media;
|
|
|
354
368
|
var MediaGroup = (0, _reactLoadable.default)({
|
|
355
369
|
loader: function loader() {
|
|
356
370
|
return Promise.resolve().then(function () {
|
|
357
|
-
return _interopRequireWildcard(require(
|
|
371
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_MediaGroup" */
|
|
372
|
+
'./mediaGroup'));
|
|
358
373
|
}).then(function (mod) {
|
|
359
374
|
return mod.default;
|
|
360
375
|
});
|
|
@@ -367,7 +382,8 @@ exports.MediaGroup = MediaGroup;
|
|
|
367
382
|
var MediaInline = (0, _reactLoadable.default)({
|
|
368
383
|
loader: function loader() {
|
|
369
384
|
return Promise.resolve().then(function () {
|
|
370
|
-
return _interopRequireWildcard(require(
|
|
385
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_MediaInline" */
|
|
386
|
+
'./mediaInline'));
|
|
371
387
|
}).then(function (mod) {
|
|
372
388
|
return mod.default;
|
|
373
389
|
});
|
|
@@ -380,7 +396,8 @@ exports.MediaInline = MediaInline;
|
|
|
380
396
|
var MediaSingle = (0, _reactLoadable.default)({
|
|
381
397
|
loader: function loader() {
|
|
382
398
|
return Promise.resolve().then(function () {
|
|
383
|
-
return _interopRequireWildcard(require(
|
|
399
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_MediaSingle" */
|
|
400
|
+
'./mediaSingle'));
|
|
384
401
|
}).then(function (mod) {
|
|
385
402
|
return mod.default;
|
|
386
403
|
});
|
|
@@ -393,7 +410,8 @@ exports.MediaSingle = MediaSingle;
|
|
|
393
410
|
var Mention = (0, _reactLoadable.default)({
|
|
394
411
|
loader: function loader() {
|
|
395
412
|
return Promise.resolve().then(function () {
|
|
396
|
-
return _interopRequireWildcard(require(
|
|
413
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_Mention" */
|
|
414
|
+
'./mention'));
|
|
397
415
|
}).then(function (mod) {
|
|
398
416
|
return mod.default;
|
|
399
417
|
});
|
|
@@ -406,7 +424,8 @@ exports.Mention = Mention;
|
|
|
406
424
|
var Expand = (0, _reactLoadable.default)({
|
|
407
425
|
loader: function loader() {
|
|
408
426
|
return Promise.resolve().then(function () {
|
|
409
|
-
return _interopRequireWildcard(require(
|
|
427
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_Expand" */
|
|
428
|
+
'../../ui/Expand'));
|
|
410
429
|
}).then(function (mod) {
|
|
411
430
|
return mod.default;
|
|
412
431
|
});
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.RenderMediaInline = void 0;
|
|
9
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
@@ -17,7 +18,6 @@ var _MediaCard = require("../../ui/MediaCard");
|
|
|
17
18
|
var _reactIntlNext = require("react-intl-next");
|
|
18
19
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
20
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { 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); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
21
21
|
var RenderMediaInline = function RenderMediaInline(props) {
|
|
22
22
|
var mediaProvider = props.mediaProvider,
|
|
23
23
|
rendererAppearance = props.rendererAppearance;
|
|
@@ -29,25 +29,23 @@ var RenderMediaInline = function RenderMediaInline(props) {
|
|
|
29
29
|
updateViewMediaClientConfigState(mediaProvider);
|
|
30
30
|
}, [mediaProvider]);
|
|
31
31
|
var updateViewMediaClientConfigState = /*#__PURE__*/function () {
|
|
32
|
-
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
32
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(mediaProvider) {
|
|
33
33
|
var mediaClientConfig;
|
|
34
|
-
return
|
|
35
|
-
while (1) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return _context.stop();
|
|
50
|
-
}
|
|
34
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
35
|
+
while (1) switch (_context.prev = _context.next) {
|
|
36
|
+
case 0:
|
|
37
|
+
if (!mediaProvider) {
|
|
38
|
+
_context.next = 5;
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
_context.next = 3;
|
|
42
|
+
return mediaProvider;
|
|
43
|
+
case 3:
|
|
44
|
+
mediaClientConfig = _context.sent;
|
|
45
|
+
setViewMediaClientConfigState(mediaClientConfig.viewMediaClientConfig);
|
|
46
|
+
case 5:
|
|
47
|
+
case "end":
|
|
48
|
+
return _context.stop();
|
|
51
49
|
}
|
|
52
50
|
}, _callee);
|
|
53
51
|
}));
|
|
@@ -28,7 +28,7 @@ var modeSpecficStyles = {
|
|
|
28
28
|
|
|
29
29
|
// TODO: Quality ticket: https://product-fabric.atlassian.net/browse/DSP-4123
|
|
30
30
|
var fixedTableDivStaticStyles = function fixedTableDivStaticStyles(top, width) {
|
|
31
|
-
return (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n width: ", "px;\n z-index: ", ";\n &\n .", ",\n &\n .", "\n > table {\n margin-top: 0;\n margin-bottom: 0;\n }\n\n border-top: ", "px solid\n ", ";\n background: ", ";\n box-shadow: ", ";\n\n div[data-expanded='false'] & {\n display: none;\n }\n\n &\n .", ".right-shadow::after,\n &\n .", ".left-shadow::before {\n top: 0px;\n height: 100%;\n }\n"])), typeof top === 'number' && "top: ".concat(top, "px;"), width, _editorSharedStyles.akEditorStickyHeaderZIndex, _styles.TableSharedCssClassName.TABLE_CONTAINER, _styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableStickyPadding, "var(--ds-surface, white)", "var(--ds-surface-overlay, white)", "var(--ds-shadow-overflow, ".concat("0 6px 4px -4px ".concat(_colors.N40A), ")"), _styles.TableSharedCssClassName.TABLE_CONTAINER, _styles.TableSharedCssClassName.TABLE_CONTAINER);
|
|
31
|
+
return (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n width: ", "px;\n z-index: ", ";\n &\n .", ",\n &\n .", "\n > table {\n margin-top: 0;\n margin-bottom: 0;\n tr {\n background: ", ";\n }\n }\n\n border-top: ", "px solid\n ", ";\n background: ", ";\n box-shadow: ", ";\n\n div[data-expanded='false'] & {\n display: none;\n }\n\n &\n .", ".right-shadow::after,\n &\n .", ".left-shadow::before {\n top: 0px;\n height: 100%;\n }\n"])), typeof top === 'number' && "top: ".concat(top, "px;"), width, _editorSharedStyles.akEditorStickyHeaderZIndex, _styles.TableSharedCssClassName.TABLE_CONTAINER, _styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-surface, white)", tableStickyPadding, "var(--ds-surface, white)", "var(--ds-surface-overlay, white)", "var(--ds-shadow-overflow, ".concat("0 6px 4px -4px ".concat(_colors.N40A), ")"), _styles.TableSharedCssClassName.TABLE_CONTAINER, _styles.TableSharedCssClassName.TABLE_CONTAINER);
|
|
32
32
|
};
|
|
33
33
|
var FixedTableDiv = function FixedTableDiv(props) {
|
|
34
34
|
var top = props.top,
|
|
@@ -123,6 +123,7 @@ var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
123
123
|
});
|
|
124
124
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "tableRef", /*#__PURE__*/_react.default.createRef());
|
|
125
125
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "stickyHeaderRef", /*#__PURE__*/_react.default.createRef());
|
|
126
|
+
// used for sync scroll + copying wrapper width to sticky header
|
|
126
127
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "stickyWrapperRef", /*#__PURE__*/_react.default.createRef());
|
|
127
128
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "wrapperRef", /*#__PURE__*/_react.default.createRef());
|
|
128
129
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "overflowParent", null);
|
|
@@ -185,7 +186,7 @@ var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
185
186
|
});
|
|
186
187
|
});
|
|
187
188
|
return _this;
|
|
188
|
-
}
|
|
189
|
+
}
|
|
189
190
|
(0, _createClass2.default)(TableContainer, [{
|
|
190
191
|
key: "componentDidMount",
|
|
191
192
|
value: function componentDidMount() {
|
|
@@ -311,6 +312,7 @@ var TableProcessor = /*#__PURE__*/function (_React$Component2) {
|
|
|
311
312
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "state", {
|
|
312
313
|
tableOrderStatus: undefined
|
|
313
314
|
});
|
|
315
|
+
// adds sortable + re-orders children
|
|
314
316
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "addSortableColumn", function (childrenArray) {
|
|
315
317
|
var _this2$props = _this2.props,
|
|
316
318
|
tableNode = _this2$props.tableNode,
|
|
@@ -353,8 +355,6 @@ var TableProcessor = /*#__PURE__*/function (_React$Component2) {
|
|
|
353
355
|
var orderedChildren = (0, _utils.compose)(this.addNumberColumnIndexes, this.addSortableColumn)(childrenArray);
|
|
354
356
|
return /*#__PURE__*/_react.default.createElement(TableContainer, this.props, orderedChildren);
|
|
355
357
|
}
|
|
356
|
-
|
|
357
|
-
// adds sortable + re-orders children
|
|
358
358
|
}]);
|
|
359
359
|
return TableProcessor;
|
|
360
360
|
}(_react.default.Component);
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
13
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
14
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
@@ -21,7 +22,6 @@ var _taskDecision = require("@atlaskit/task-decision");
|
|
|
21
22
|
var _excluded = ["contextIdentifierProvider", "objectAri", "isRenderer"];
|
|
22
23
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
24
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { 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); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
25
25
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
26
26
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
27
27
|
var TaskItemWithProviders = /*#__PURE__*/function (_Component) {
|
|
@@ -54,43 +54,41 @@ var TaskItemWithProviders = /*#__PURE__*/function (_Component) {
|
|
|
54
54
|
}, {
|
|
55
55
|
key: "updateContextIdentifierProvider",
|
|
56
56
|
value: function () {
|
|
57
|
-
var _updateContextIdentifierProvider = (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
57
|
+
var _updateContextIdentifierProvider = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(props) {
|
|
58
58
|
var resolvedContextProvider;
|
|
59
|
-
return
|
|
60
|
-
while (1) {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
_context.next = 13;
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
_context.prev = 1;
|
|
68
|
-
_context.next = 4;
|
|
69
|
-
return props.contextIdentifierProvider;
|
|
70
|
-
case 4:
|
|
71
|
-
resolvedContextProvider = _context.sent;
|
|
72
|
-
this.setState({
|
|
73
|
-
resolvedContextProvider: resolvedContextProvider
|
|
74
|
-
});
|
|
75
|
-
_context.next = 11;
|
|
59
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
60
|
+
while (1) switch (_context.prev = _context.next) {
|
|
61
|
+
case 0:
|
|
62
|
+
if (!props.contextIdentifierProvider) {
|
|
63
|
+
_context.next = 13;
|
|
76
64
|
break;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
65
|
+
}
|
|
66
|
+
_context.prev = 1;
|
|
67
|
+
_context.next = 4;
|
|
68
|
+
return props.contextIdentifierProvider;
|
|
69
|
+
case 4:
|
|
70
|
+
resolvedContextProvider = _context.sent;
|
|
71
|
+
this.setState({
|
|
72
|
+
resolvedContextProvider: resolvedContextProvider
|
|
73
|
+
});
|
|
74
|
+
_context.next = 11;
|
|
75
|
+
break;
|
|
76
|
+
case 8:
|
|
77
|
+
_context.prev = 8;
|
|
78
|
+
_context.t0 = _context["catch"](1);
|
|
79
|
+
this.setState({
|
|
80
|
+
resolvedContextProvider: undefined
|
|
81
|
+
});
|
|
82
|
+
case 11:
|
|
83
|
+
_context.next = 14;
|
|
84
|
+
break;
|
|
85
|
+
case 13:
|
|
86
|
+
this.setState({
|
|
87
|
+
resolvedContextProvider: undefined
|
|
88
|
+
});
|
|
89
|
+
case 14:
|
|
90
|
+
case "end":
|
|
91
|
+
return _context.stop();
|
|
94
92
|
}
|
|
95
93
|
}, _callee, this, [[1, 8]]);
|
|
96
94
|
}));
|