@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
package/dist/esm/ui/MediaCard.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
4
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
@@ -9,7 +8,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
9
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
9
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
10
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
|
-
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; }
|
|
11
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
13
12
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
14
13
|
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; } }
|
|
15
14
|
import React, { Component } from 'react';
|
|
@@ -58,34 +57,32 @@ export var MediaCardInternal = /*#__PURE__*/function (_Component) {
|
|
|
58
57
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
59
58
|
_defineProperty(_assertThisInitialized(_this), "state", {});
|
|
60
59
|
_defineProperty(_assertThisInitialized(_this), "saveFileState", /*#__PURE__*/function () {
|
|
61
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
60
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(id, mediaClientConfig) {
|
|
62
61
|
var _this$props, collectionName, featureFlags, mediaClient, options, fileState;
|
|
63
|
-
return _regeneratorRuntime
|
|
64
|
-
while (1) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return _context.stop();
|
|
88
|
-
}
|
|
62
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
63
|
+
while (1) switch (_context.prev = _context.next) {
|
|
64
|
+
case 0:
|
|
65
|
+
_this$props = _this.props, collectionName = _this$props.collection, featureFlags = _this$props.featureFlags;
|
|
66
|
+
mediaClient = getMediaClient(mediaClientConfig, featureFlags);
|
|
67
|
+
options = {
|
|
68
|
+
collectionName: collectionName
|
|
69
|
+
};
|
|
70
|
+
_context.prev = 3;
|
|
71
|
+
_context.next = 6;
|
|
72
|
+
return mediaClient.file.getCurrentState(id, options);
|
|
73
|
+
case 6:
|
|
74
|
+
fileState = _context.sent;
|
|
75
|
+
_this.setState({
|
|
76
|
+
fileState: fileState
|
|
77
|
+
});
|
|
78
|
+
_context.next = 12;
|
|
79
|
+
break;
|
|
80
|
+
case 10:
|
|
81
|
+
_context.prev = 10;
|
|
82
|
+
_context.t0 = _context["catch"](3);
|
|
83
|
+
case 12:
|
|
84
|
+
case "end":
|
|
85
|
+
return _context.stop();
|
|
89
86
|
}
|
|
90
87
|
}, _callee, null, [[3, 10]]);
|
|
91
88
|
}));
|
|
@@ -99,6 +96,12 @@ export var MediaCardInternal = /*#__PURE__*/function (_Component) {
|
|
|
99
96
|
dimensions: cardDimensions
|
|
100
97
|
});
|
|
101
98
|
});
|
|
99
|
+
/**
|
|
100
|
+
* We want to call provided `eventHandlers.media.onClick` when it's provided,
|
|
101
|
+
* but we also don't want to call it when it's a video and inline video player is enabled.
|
|
102
|
+
* This is due to consumers normally process this onClick call by opening media viewer and
|
|
103
|
+
* we don't want that to happened described above text.
|
|
104
|
+
*/
|
|
102
105
|
_defineProperty(_assertThisInitialized(_this), "getOnCardClickCallback", function (isInlinePlayer) {
|
|
103
106
|
var eventHandlers = _this.props.eventHandlers;
|
|
104
107
|
if (eventHandlers && eventHandlers.media && eventHandlers.media.onClick) {
|
|
@@ -117,60 +120,58 @@ export var MediaCardInternal = /*#__PURE__*/function (_Component) {
|
|
|
117
120
|
_createClass(MediaCardInternal, [{
|
|
118
121
|
key: "componentDidMount",
|
|
119
122
|
value: function () {
|
|
120
|
-
var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
123
|
+
var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
121
124
|
var _this$props2, rendererContext, mediaProvider, contextIdentifierProvider, id, url, collectionName, mediaProviderObject, mediaClientConfig, nodeIsInCache;
|
|
122
|
-
return _regeneratorRuntime
|
|
123
|
-
while (1) {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
_context2.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
this.setState({
|
|
165
|
-
mediaClientConfig: mediaClientConfig
|
|
125
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
126
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
127
|
+
case 0:
|
|
128
|
+
_this$props2 = this.props, rendererContext = _this$props2.rendererContext, mediaProvider = _this$props2.mediaProvider, contextIdentifierProvider = _this$props2.contextIdentifierProvider, id = _this$props2.id, url = _this$props2.url, collectionName = _this$props2.collection;
|
|
129
|
+
if (mediaProvider) {
|
|
130
|
+
_context2.next = 3;
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
return _context2.abrupt("return");
|
|
134
|
+
case 3:
|
|
135
|
+
if (!contextIdentifierProvider) {
|
|
136
|
+
_context2.next = 10;
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
_context2.t0 = this;
|
|
140
|
+
_context2.next = 7;
|
|
141
|
+
return contextIdentifierProvider;
|
|
142
|
+
case 7:
|
|
143
|
+
_context2.t1 = _context2.sent;
|
|
144
|
+
_context2.t2 = {
|
|
145
|
+
contextIdentifierProvider: _context2.t1
|
|
146
|
+
};
|
|
147
|
+
_context2.t0.setState.call(_context2.t0, _context2.t2);
|
|
148
|
+
case 10:
|
|
149
|
+
_context2.next = 12;
|
|
150
|
+
return mediaProvider;
|
|
151
|
+
case 12:
|
|
152
|
+
mediaProviderObject = _context2.sent;
|
|
153
|
+
mediaClientConfig = mediaProviderObject.viewMediaClientConfig;
|
|
154
|
+
nodeIsInCache = id && mediaIdentifierMap.has(id) || url && mediaIdentifierMap.has(url);
|
|
155
|
+
if (rendererContext && rendererContext.adDoc && !nodeIsInCache) {
|
|
156
|
+
getListOfIdentifiersFromDoc(rendererContext.adDoc).forEach(function (identifier) {
|
|
157
|
+
if (identifier.mediaItemType === 'file' && identifier.id === id) {
|
|
158
|
+
mediaIdentifierMap.set(identifier.id, _objectSpread(_objectSpread({}, identifier), {}, {
|
|
159
|
+
collectionName: collectionName
|
|
160
|
+
}));
|
|
161
|
+
} else if (identifier.mediaItemType === 'external-image') {
|
|
162
|
+
mediaIdentifierMap.set(identifier.dataURI, identifier);
|
|
163
|
+
}
|
|
166
164
|
});
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
165
|
+
}
|
|
166
|
+
this.setState({
|
|
167
|
+
mediaClientConfig: mediaClientConfig
|
|
168
|
+
});
|
|
169
|
+
if (id) {
|
|
170
|
+
this.saveFileState(id, mediaClientConfig);
|
|
171
|
+
}
|
|
172
|
+
case 18:
|
|
173
|
+
case "end":
|
|
174
|
+
return _context2.stop();
|
|
174
175
|
}
|
|
175
176
|
}, _callee2, this);
|
|
176
177
|
}));
|
|
@@ -239,13 +240,6 @@ export var MediaCardInternal = /*#__PURE__*/function (_Component) {
|
|
|
239
240
|
ssr: ssr === null || ssr === void 0 ? void 0 : ssr.mode
|
|
240
241
|
});
|
|
241
242
|
}
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* We want to call provided `eventHandlers.media.onClick` when it's provided,
|
|
245
|
-
* but we also don't want to call it when it's a video and inline video player is enabled.
|
|
246
|
-
* This is due to consumers normally process this onClick call by opening media viewer and
|
|
247
|
-
* we don't want that to happened described above text.
|
|
248
|
-
*/
|
|
249
243
|
}, {
|
|
250
244
|
key: "render",
|
|
251
245
|
value: function render() {
|
|
@@ -45,19 +45,18 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
|
|
|
45
45
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
46
46
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
47
47
|
var packageName = "@atlaskit/renderer";
|
|
48
|
-
var packageVersion = "107.3.
|
|
48
|
+
var packageVersion = "107.3.4";
|
|
49
49
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
50
50
|
_inherits(Renderer, _PureComponent);
|
|
51
51
|
var _super = _createSuper(Renderer);
|
|
52
|
-
/**
|
|
53
|
-
* This is used in measuring the Renderer Mount time and is then
|
|
54
|
-
* deleted once that measurement occurs.
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
52
|
function Renderer(props) {
|
|
58
53
|
var _this;
|
|
59
54
|
_classCallCheck(this, Renderer);
|
|
60
55
|
_this = _super.call(this, props);
|
|
56
|
+
/**
|
|
57
|
+
* This is used in measuring the Renderer Mount time and is then
|
|
58
|
+
* deleted once that measurement occurs.
|
|
59
|
+
*/
|
|
61
60
|
_defineProperty(_assertThisInitialized(_this), "renderedMeasurementDistortedDurationMonitor", getDistortedDurationMonitor());
|
|
62
61
|
_defineProperty(_assertThisInitialized(_this), "featureFlags", memoizeOne(function (featureFlags) {
|
|
63
62
|
var normalizedFeatureFlags = normalizeFeatureFlags(featureFlags, {
|
|
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { themed } from '@atlaskit/theme/components';
|
|
5
|
-
import { gridSize, fontFamily, fontSize
|
|
5
|
+
import { gridSize, fontFamily, fontSize } from '@atlaskit/theme/constants';
|
|
6
6
|
import * as colors from '@atlaskit/theme/colors';
|
|
7
7
|
import { headingSizes as headingSizesImport } from '@atlaskit/theme/typography';
|
|
8
8
|
import { tableSharedStyle, columnLayoutSharedStyle, blockquoteSharedStyles, headingsSharedStyles, ruleSharedStyles, whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, mediaSingleSharedStyle, TableSharedCssClassName, tableMarginTop, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, richMediaClassName, tasksAndDecisionsStyles, smartCardSharedStyles, tableCellPadding, textColorStyles, codeBlockInListSafariFix } from '@atlaskit/editor-common/styles';
|
|
@@ -86,13 +86,16 @@ export var rendererStyles = function rendererStyles(wrapperProps) {
|
|
|
86
86
|
var themeProps = {
|
|
87
87
|
theme: theme
|
|
88
88
|
};
|
|
89
|
-
return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n font-size: ", "px;\n line-height: 1.5rem;\n color: ", ";\n\n .", "::after {\n // we add a clearfix after ak-renderer-document in order to\n // contain internal floats (such as media images that are \"wrap-left\")\n // to just the renderer (and not spill outside of it)\n content: '';\n visibility: hidden;\n display: block;\n height: 0;\n clear: both;\n }\n\n ", "\n ", "\n\n & h1 {\n ", "\n }\n\n & h2 {\n ", "\n }\n\n & h3 {\n ", "\n }\n\n & h4 {\n ", "\n }\n\n & h5 {\n ", "\n }\n\n & h6 {\n ", "\n }\n\n & span.akActionMark {\n color: ", ";\n text-decoration: none;\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n\n &:active {\n color: ", ";\n }\n }\n\n & span.akActionMark {\n cursor: pointer;\n }\n\n & span[data-placeholder] {\n color: ", ";\n }\n\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n\n & .UnknownBlock {\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n white-space: pre-wrap;\n word-wrap: break-word;\n }\n\n & span.date-node {\n background: ", ";\n border-radius: ", "
|
|
89
|
+
return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n font-size: ", "px;\n line-height: 1.5rem;\n color: ", ";\n\n .", "::after {\n // we add a clearfix after ak-renderer-document in order to\n // contain internal floats (such as media images that are \"wrap-left\")\n // to just the renderer (and not spill outside of it)\n content: '';\n visibility: hidden;\n display: block;\n height: 0;\n clear: both;\n }\n\n ", "\n ", "\n\n & h1 {\n ", "\n }\n\n & h2 {\n ", "\n }\n\n & h3 {\n ", "\n }\n\n & h4 {\n ", "\n }\n\n & h5 {\n ", "\n }\n\n & h6 {\n ", "\n }\n\n & span.akActionMark {\n color: ", ";\n text-decoration: none;\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n\n &:active {\n color: ", ";\n }\n }\n\n & span.akActionMark {\n cursor: pointer;\n }\n\n & span[data-placeholder] {\n color: ", ";\n }\n\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n\n & .UnknownBlock {\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n white-space: pre-wrap;\n word-wrap: break-word;\n }\n\n & span.date-node {\n background: ", ";\n border-radius: ", ";\n color: ", ";\n padding: 2px 4px;\n margin: 0 1px;\n transition: background 0.3s;\n }\n\n & span.date-node-highlighted {\n background: ", ";\n color: ", ";\n }\n\n & .renderer-image {\n max-width: 100%;\n display: block;\n margin: ", "px 0;\n }\n\n .", ".rich-media-wrapped\n + .", ":not(.rich-media-wrapped) {\n clear: both;\n }\n\n & .code-block,\n & blockquote,\n & hr,\n & > div > div:not(.rich-media-wrapped),\n .", ".rich-media-wrapped\n + .rich-media-wrapped\n + *:not(.rich-media-wrapped),\n .", ".rich-media-wrapped + div:not(.rich-media-wrapped),\n .", ".image-align-start,\n .", ".image-center,\n .", ".image-align-end {\n clear: both;\n }\n\n & .rich-media-wrapped {\n & + h1,\n & + h2,\n & + h3,\n & + h4,\n & + h5,\n & + h6 {\n margin-top: 8px;\n }\n }\n\n ", "\n /* plugin styles */\n ", " &\n div[class^='image-wrap-'] + div[class^='image-wrap-'] {\n margin-left: 0;\n margin-right: 0;\n }\n\n /* Breakout for tables and extensions */\n .", " > {\n ", "\n\n * .", " {\n overflow-x: auto;\n }\n\n & .", ":first-child {\n margin-top: 0;\n }\n }\n\n .", " {\n .", " {\n margin-top: ", ";\n }\n\n .", " {\n margin-left: 50%;\n transform: translateX(-50%);\n }\n\n .", " {\n overflow-x: auto;\n }\n\n .", "\n .", " {\n display: flex;\n }\n }\n\n ", "\n\n .", " .", " {\n z-index: 0;\n transition: all 0.1s linear;\n display: flex; /* needed to avoid position: fixed jumpiness in Chrome */\n\n /** Shadow overrides */\n &.", "::after,\n &.", "::before {\n top: ", "px;\n height: calc(100% - ", "px);\n z-index: ", ";\n }\n\n &\n .", ",\n &\n .", " {\n height: calc(100% - ", "px);\n }\n\n /**\n * A hack for making all the <th /> heights equal in case some have shorter\n * content than others.\n *\n * This is done to make sort buttons fill entire <th />.\n */\n table {\n height: 1px; /* will be ignored */\n ", ";\n margin-left: 0;\n margin-right: 0;\n }\n\n table tr:first-of-type {\n height: 100%;\n\n td,\n th {\n position: relative;\n }\n }\n\n table[data-number-column='true'] {\n .", " {\n background-color: ", ";\n border-right: 1px solid\n ", ";\n width: ", "px;\n text-align: center;\n color: ", ";\n font-size: ", ";\n }\n\n .fixed .", " {\n border-right: 0px none;\n }\n }\n }\n\n tr[data-header-row].fixed {\n position: fixed !important;\n display: flex;\n overflow: hidden;\n z-index: ", ";\n\n border-right: 1px solid\n ", ";\n border-bottom: 1px solid\n ", ";\n\n /* this is to compensate for the table border */\n transform: translateX(-1px);\n }\n\n .sticky > th {\n z-index: ", ";\n position: sticky !important;\n top: 0;\n }\n\n /* Make the number column header sticky */\n .sticky > td {\n position: sticky !important;\n top: 0;\n }\n\n /* add border for position: sticky\n and work around background-clip: padding-box\n bug for FF causing box-shadow bug in Chrome */\n .sticky th,\n .sticky td {\n box-shadow: 0px 1px\n ", ",\n 0px -0.5px ", ",\n inset -1px 0px ", ",\n 0px -1px ", ";\n }\n\n /* this will remove jumpiness caused in Chrome for sticky headers */\n .fixed + tr {\n min-height: 0px;\n }\n\n /*\n * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.\n * See ED-4159.\n */\n & .code-block {\n max-width: 100%;\n /* -ms- properties are necessary until MS supports the latest version of the grid spec */\n /* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: auto 1fr;\n /* stylelint-enable */\n\n grid-template-columns: minmax(0, 1fr);\n position: relative;\n border-radius: ", ";\n\n /*\n * The overall renderer has word-wrap: break; which causes issues with\n * code block line numbers in Safari / iOS.\n */\n word-wrap: normal;\n\n & > span {\n /* stylelint-disable value-no-vendor-prefix */\n -ms-grid-row: 1;\n -ms-grid-column: 2;\n /* stylelint-enable */\n grid-column: 1;\n }\n }\n\n & .MediaGroup,\n & .code-block {\n margin-top: ", ";\n\n &:first-child {\n margin-top: 0;\n }\n }\n\n ", "\n\n ", ";\n & [data-layout-section] {\n margin-top: ", "px;\n & > div + div {\n margin-left: ", "px;\n }\n\n @media screen and (max-width: ", "px) {\n & > div + div {\n margin-left: 0;\n }\n }\n\n & .MediaGroup,\n & .code-block {\n margin-top: ", ";\n\n &:first-child {\n margin-top: 0;\n }\n }\n }\n\n & li {\n > .code-block {\n margin: ", " 0 0 0;\n }\n > .code-block:first-child {\n margin-top: 0;\n }\n\n > div:last-of-type.code-block {\n margin-bottom: ", ";\n }\n }\n\n & :not([data-node-type='decisionList']) > li {\n ", "\n }\n "])), editorFontSize(themeProps), themed({
|
|
90
90
|
light: "var(--ds-text, ".concat(colors.N800, ")"),
|
|
91
91
|
dark: "var(--ds-text, #B8C7E0)"
|
|
92
|
-
})(themeProps), RendererCssClassName.DOCUMENT, fullPageStyles(wrapperProps, themeProps), fullWidthStyles(wrapperProps), headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), "var(--ds-link, ".concat(colors.B400, ")"), "var(--ds-link, ".concat(colors.B300, ")"), "var(--ds-link-pressed, ".concat(colors.B500, ")"),
|
|
92
|
+
})(themeProps), RendererCssClassName.DOCUMENT, fullPageStyles(wrapperProps, themeProps), fullWidthStyles(wrapperProps), headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), "var(--ds-link, ".concat(colors.B400, ")"), "var(--ds-link, ".concat(colors.B300, ")"), "var(--ds-link-pressed, ".concat(colors.B500, ")"), themed({
|
|
93
|
+
light: "var(--ds-text-subtlest, ".concat(colors.N200, ")"),
|
|
94
|
+
dark: "var(--ds-text-subtlest, ".concat(colors.DN200, ")")
|
|
95
|
+
})(themeProps), whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles(themeProps), ruleSharedStyles(themeProps), paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, codeMarkSharedStyles(themeProps), shadowSharedStyle, dateSharedStyle, textColorStyles, tasksAndDecisionsStyles, smartCardSharedStyles, fontFamily(), relativeFontSizeToBase16(fontSize()), themed({
|
|
93
96
|
light: "var(--ds-background-neutral, ".concat(colors.N30A, ")"),
|
|
94
97
|
dark: "var(--ds-background-neutral, ".concat(colors.DN70, ")")
|
|
95
|
-
})(themeProps),
|
|
98
|
+
})(themeProps), "var(--ds-radius-100, 3px)", themed({
|
|
96
99
|
light: "var(--ds-text, ".concat(colors.N800, ")"),
|
|
97
100
|
dark: "var(--ds-text, ".concat(colors.DN600, ")")
|
|
98
101
|
})(themeProps), "var(--ds-background-danger, ".concat(colors.R50, ")"), "var(--ds-text-danger, ".concat(colors.R500, ")"), gridSize() * 3, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, alignedHeadingAnchorStyle(wrapperProps), mediaSingleSharedStyle, RendererCssClassName.DOCUMENT, breakoutWidthStyle(wrapperProps.useFragmentMarkBreakoutWidthStylingFix), RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER, RendererCssClassName.EXTENSION, RendererCssClassName.DOCUMENT, RendererCssClassName.EXTENSION, blockNodesVerticalMargin, RendererCssClassName.EXTENSION_CENTER_ALIGN, TableSharedCssClassName.TABLE_NODE_WRAPPER, shadowObserverClassNames.SHADOW_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, tableSharedStyle(themeProps), RendererCssClassName.DOCUMENT, TableSharedCssClassName.TABLE_CONTAINER, shadowClassNames.RIGHT_SHADOW, shadowClassNames.LEFT_SHADOW, tableMarginTop - 1, tableMarginTop, akEditorStickyHeaderZIndex, shadowObserverClassNames.SENTINEL_LEFT, shadowObserverClassNames.SENTINEL_RIGHT, tableMarginTop, tableSortableColumnStyle(wrapperProps), RendererCssClassName.NUMBER_COLUMN, themed({
|
|
@@ -122,6 +125,6 @@ export var rendererStyles = function rendererStyles(wrapperProps) {
|
|
|
122
125
|
})(themeProps), themed({
|
|
123
126
|
light: "var(--ds-border, ".concat(akEditorTableToolbar, ")"),
|
|
124
127
|
dark: "var(--ds-border, ".concat(akEditorTableToolbarDark, ")")
|
|
125
|
-
})(themeProps),
|
|
128
|
+
})(themeProps), "var(--ds-radius-100, 3px)", blockNodesVerticalMargin, getLightWeightCodeBlockStylesForRootRendererStyleSheet(), columnLayoutSharedStyle, gridSize() * 2.5, gridSize() * 4, gridMediumMaxWidth, blockNodesVerticalMargin, blockNodesVerticalMargin, blockNodesVerticalMargin, browser.safari ? codeBlockInListSafariFix : '');
|
|
126
129
|
};
|
|
127
130
|
};
|
|
@@ -9,13 +9,13 @@ import { SortOrder } from '@atlaskit/editor-common/types';
|
|
|
9
9
|
import { sortingIconMessages } from '../messages';
|
|
10
10
|
import { injectIntl } from 'react-intl-next';
|
|
11
11
|
import { RendererCssClassName } from '../consts';
|
|
12
|
-
export var StatusClassNames
|
|
13
|
-
(function (StatusClassNames) {
|
|
12
|
+
export var StatusClassNames = /*#__PURE__*/function (StatusClassNames) {
|
|
14
13
|
StatusClassNames["ASC"] = "sorting-icon-svg__asc";
|
|
15
14
|
StatusClassNames["DESC"] = "sorting-icon-svg__desc";
|
|
16
15
|
StatusClassNames["NO_ORDER"] = "sorting-icon-svg__no_order";
|
|
17
16
|
StatusClassNames["SORTING_NOT_ALLOWED"] = "sorting-icon-svg__not-allowed";
|
|
18
|
-
|
|
17
|
+
return StatusClassNames;
|
|
18
|
+
}({});
|
|
19
19
|
var buttonStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n display: flex;\n height: 28px;\n width: 28px;\n margin: 6px;\n right: 0;\n top: 0;\n border: 2px solid ", ";\n border-radius: ", "px;\n background-color: ", ";\n justify-content: center;\n align-items: center;\n cursor: pointer;\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n\n &.", "__not-allowed {\n cursor: not-allowed;\n }\n"])), "var(--ds-border, #fff)", gridSize() / 2, "var(--ds-surface-overlay, ".concat(N20, ")"), "var(--ds-surface-overlay-hovered, ".concat(N30, ")"), "var(--ds-surface-overlay-pressed, rgba(179, 212, 255, 0.6))", RendererCssClassName.SORTABLE_COLUMN_ICON);
|
|
20
20
|
var iconWrapperStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 8px;\n height: 12px;\n transition: transform 0.3s cubic-bezier(0.15, 1, 0.3, 1);\n transform-origin: 50% 50%;\n display: flex;\n justify-content: center;\n\n &.", " {\n transform: rotate(-180deg);\n }\n\n &.", "-inactive {\n opacity: 0.7;\n }\n"])), StatusClassNames.DESC, RendererCssClassName.SORTABLE_COLUMN_ICON);
|
|
21
21
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export var InsertDraftPosition
|
|
2
|
-
(function (InsertDraftPosition) {
|
|
1
|
+
export var InsertDraftPosition = /*#__PURE__*/function (InsertDraftPosition) {
|
|
3
2
|
InsertDraftPosition["AROUND_TEXT"] = "AROUND_TEXT";
|
|
4
3
|
InsertDraftPosition["START"] = "START";
|
|
5
4
|
InsertDraftPosition["END"] = "END";
|
|
6
5
|
InsertDraftPosition["INSIDE"] = "INSIDE";
|
|
7
|
-
|
|
6
|
+
return InsertDraftPosition;
|
|
7
|
+
}({});
|
package/dist/esm/version.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
3
|
-
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
4
2
|
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
5
3
|
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
6
4
|
'fabric.editor.headingLink.copied': string;
|
|
7
5
|
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
8
6
|
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
9
7
|
'fabric.editor.headingLink.descOrderLabel': string;
|
|
8
|
+
'fabric.editor.headingLink.descSortingLabel': string;
|
|
10
9
|
'fabric.editor.headingLink.failedToCopy': string;
|
|
10
|
+
'fabric.editor.headingLink.invalidLabel': string;
|
|
11
11
|
'fabric.editor.headingLink.noOrderLabel': string;
|
|
12
12
|
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "107.3.
|
|
3
|
+
"version": "107.3.4",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,29 +24,29 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/adf-schema": "^25.
|
|
27
|
+
"@atlaskit/adf-schema": "^25.5.0",
|
|
28
28
|
"@atlaskit/adf-utils": "^18.1.0",
|
|
29
29
|
"@atlaskit/analytics-listeners": "^8.6.0",
|
|
30
30
|
"@atlaskit/analytics-namespaced-context": "^6.6.0",
|
|
31
31
|
"@atlaskit/analytics-next": "^9.0.0",
|
|
32
32
|
"@atlaskit/button": "^16.6.0",
|
|
33
33
|
"@atlaskit/code": "^14.5.3",
|
|
34
|
-
"@atlaskit/editor-common": "^
|
|
34
|
+
"@atlaskit/editor-common": "^73.0.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.8.0",
|
|
36
|
-
"@atlaskit/editor-palette": "1.
|
|
36
|
+
"@atlaskit/editor-palette": "1.3.0",
|
|
37
37
|
"@atlaskit/editor-shared-styles": "^2.3.0",
|
|
38
38
|
"@atlaskit/emoji": "^67.3.0",
|
|
39
39
|
"@atlaskit/icon": "^21.11.0",
|
|
40
40
|
"@atlaskit/media-card": "^74.7.0",
|
|
41
|
-
"@atlaskit/media-client": "^
|
|
41
|
+
"@atlaskit/media-client": "^21.1.0",
|
|
42
42
|
"@atlaskit/media-common": "^4.0.0",
|
|
43
43
|
"@atlaskit/media-filmstrip": "^46.1.0",
|
|
44
44
|
"@atlaskit/media-ui": "^22.3.0",
|
|
45
45
|
"@atlaskit/media-viewer": "^47.5.0",
|
|
46
|
-
"@atlaskit/smart-card": "^25.
|
|
46
|
+
"@atlaskit/smart-card": "^25.9.0",
|
|
47
47
|
"@atlaskit/status": "^1.2.0",
|
|
48
48
|
"@atlaskit/task-decision": "^17.5.0",
|
|
49
|
-
"@atlaskit/theme": "^12.
|
|
49
|
+
"@atlaskit/theme": "^12.4.0",
|
|
50
50
|
"@atlaskit/tokens": "^1.2.0",
|
|
51
51
|
"@atlaskit/tooltip": "^17.7.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"uuid": "^3.1.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@atlaskit/link-provider": "^1.5.
|
|
64
|
+
"@atlaskit/link-provider": "^1.5.3",
|
|
65
65
|
"@atlaskit/media-core": "^34.0.2",
|
|
66
66
|
"react": "^16.8.0",
|
|
67
67
|
"react-dom": "^16.8.0"
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@atlaskit/analytics-gas-types": "^5.0.5",
|
|
71
71
|
"@atlaskit/avatar": "^21.2.0",
|
|
72
|
-
"@atlaskit/css-reset": "^6.
|
|
72
|
+
"@atlaskit/css-reset": "^6.4.0",
|
|
73
73
|
"@atlaskit/docs": "*",
|
|
74
|
-
"@atlaskit/editor-core": "^182.
|
|
74
|
+
"@atlaskit/editor-core": "^182.2.0",
|
|
75
75
|
"@atlaskit/editor-test-helpers": "^18.2.0",
|
|
76
76
|
"@atlaskit/link-provider": "^1.5.0",
|
|
77
|
-
"@atlaskit/logo": "^13.
|
|
77
|
+
"@atlaskit/logo": "^13.13.0",
|
|
78
78
|
"@atlaskit/media-core": "^34.0.0",
|
|
79
79
|
"@atlaskit/media-integration-test-helpers": "^2.6.0",
|
|
80
|
-
"@atlaskit/media-test-helpers": "^
|
|
80
|
+
"@atlaskit/media-test-helpers": "^32.1.0",
|
|
81
81
|
"@atlaskit/mention": "^22.0.0",
|
|
82
82
|
"@atlaskit/navigation-next": "^9.0.0",
|
|
83
83
|
"@atlaskit/profilecard": "^19.2.0",
|
package/report.api.md
CHANGED