@atlaskit/share 4.0.0 → 4.1.1
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 +13 -0
- package/dist/cjs/clients/AtlassianUrlShortenerClient.js +4 -3
- package/dist/cjs/components/CopyLinkButton.js +1 -0
- package/dist/cjs/components/IntegrationButton.js +1 -0
- package/dist/cjs/components/IntegrationForm.js +1 -0
- package/dist/cjs/components/LazyShareForm/lazy.js +1 -1
- package/dist/cjs/components/ShareDialogContainer.js +10 -7
- package/dist/cjs/components/ShareDialogWithTrigger.js +61 -56
- package/dist/cjs/components/ShareForm.js +1 -0
- package/dist/cjs/components/ShareHeader.js +1 -0
- package/dist/cjs/components/SplitButton.js +1 -0
- package/dist/cjs/components/analytics/analytics.js +3 -3
- package/dist/cjs/components/utils.js +3 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/ShareDialogContainer.js +4 -2
- package/dist/es2019/components/ShareDialogWithTrigger.js +7 -3
- package/dist/es2019/components/analytics/analytics.js +2 -2
- package/dist/es2019/components/utils.js +0 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/clients/AtlassianUrlShortenerClient.js +4 -3
- package/dist/esm/components/ShareDialogContainer.js +10 -7
- package/dist/esm/components/ShareDialogWithTrigger.js +59 -56
- package/dist/esm/components/analytics/analytics.js +3 -3
- package/dist/esm/components/utils.js +0 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/ShareDialogContainer.d.ts +1 -1
- package/dist/types/components/analytics/analytics.d.ts +1 -1
- package/dist/types/types/ShareDialogContainer.d.ts +0 -1
- package/dist/types/types/ShareDialogWithTrigger.d.ts +1 -1
- package/package.json +7 -7
- package/report.api.md +0 -2
- package/tmp/api-report-tmp.d.ts +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/share
|
|
2
2
|
|
|
3
|
+
## 4.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 4.1.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`d18dc3069a2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d18dc3069a2) - Removing the share to slack FF attribute as part of FF clean up
|
|
15
|
+
|
|
3
16
|
## 4.0.0
|
|
4
17
|
|
|
5
18
|
### Major Changes
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.AtlassianUrlShortenerClient = void 0;
|
|
8
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
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; }
|
|
12
13
|
var AtlassianUrlShortenerClient = /*#__PURE__*/function () {
|
|
13
14
|
function AtlassianUrlShortenerClient() {
|
|
14
15
|
(0, _classCallCheck2.default)(this, AtlassianUrlShortenerClient);
|
|
@@ -16,9 +17,9 @@ var AtlassianUrlShortenerClient = /*#__PURE__*/function () {
|
|
|
16
17
|
(0, _createClass2.default)(AtlassianUrlShortenerClient, [{
|
|
17
18
|
key: "shorten",
|
|
18
19
|
value: function () {
|
|
19
|
-
var _shorten = (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
20
|
+
var _shorten = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
20
21
|
var response, result;
|
|
21
|
-
return
|
|
22
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22
23
|
while (1) {
|
|
23
24
|
switch (_context.prev = _context.next) {
|
|
24
25
|
case 0:
|
|
@@ -25,6 +25,7 @@ var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
|
25
25
|
var _styled = require("./ShareFormWrapper/styled");
|
|
26
26
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
27
27
|
var _templateObject, _templateObject2;
|
|
28
|
+
/** @jsx jsx */
|
|
28
29
|
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); }; }
|
|
29
30
|
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; } }
|
|
30
31
|
var Z_INDEX = _constants.layers.modal();
|
|
@@ -13,6 +13,7 @@ var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom
|
|
|
13
13
|
var _colors = require("@atlaskit/theme/colors");
|
|
14
14
|
var _excluded = ["text", "textColor", "IntegrationIcon"];
|
|
15
15
|
var _templateObject, _templateObject2;
|
|
16
|
+
/** @jsx jsx */
|
|
16
17
|
var integrationButtonCopyWrapperStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: left;\n"])));
|
|
17
18
|
var integrationIconWrapperStyle = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n margin: 1px 8px 0 0;\n"])));
|
|
18
19
|
var IntegrationButton = function IntegrationButton(props) {
|
|
@@ -10,6 +10,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _typography = require("@atlaskit/theme/typography");
|
|
12
12
|
var _templateObject;
|
|
13
|
+
/** @jsx jsx */
|
|
13
14
|
var formWrapperStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n [class^='FormHeader__FormHeaderWrapper'] {\n h1:first-child {\n ", "\n\n > span {\n /* jira has a class override font settings on h1 > span in gh-custom-field-pickers.css */\n font-size: inherit !important;\n line-height: inherit !important;\n letter-spacing: inherit !important;\n }\n }\n }\n\n [class^='FormSection__FormSectionWrapper'] {\n margin-top: 0px;\n }\n\n [class^='FormFooter__FormFooterWrapper'] {\n justify-content: space-between;\n margin-top: 12px;\n margin-bottom: 24px;\n }\n\n [class^='Field__FieldWrapper']:not(:first-child) {\n margin-top: 12px;\n }\n"])), (0, _typography.h500)());
|
|
14
15
|
exports.formWrapperStyle = formWrapperStyle;
|
|
15
16
|
var IntegrationForm = function IntegrationForm(_ref) {
|
|
@@ -12,7 +12,7 @@ var _reactLooselyLazy = require("react-loosely-lazy");
|
|
|
12
12
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
13
13
|
var _ShareFormWrapper = require("../ShareFormWrapper");
|
|
14
14
|
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); }
|
|
15
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || (0, _typeof2.default)(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; }
|
|
15
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || (0, _typeof2.default)(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; } /** @jsx jsx */
|
|
16
16
|
var LazyShareFormLazy = (0, _reactLooselyLazy.lazyForPaint)(function () {
|
|
17
17
|
return Promise.resolve().then(function () {
|
|
18
18
|
return _interopRequireWildcard(require('./LazyShareForm'));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.defaultConfig = exports.ShareDialogContainerInternal = exports.ShareDialogContainer = void 0;
|
|
8
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
11
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
@@ -31,6 +31,7 @@ var _ErrorBoundary = _interopRequireDefault(require("./ErrorBoundary"));
|
|
|
31
31
|
var _MessagesIntlProvider = _interopRequireDefault(require("./MessagesIntlProvider"));
|
|
32
32
|
var _ShareDialogWithTrigger = require("./ShareDialogWithTrigger");
|
|
33
33
|
var _utils = require("./utils");
|
|
34
|
+
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; }
|
|
34
35
|
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; }
|
|
35
36
|
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) { (0, _defineProperty2.default)(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; }
|
|
36
37
|
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); }; }
|
|
@@ -73,9 +74,9 @@ var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Component) {
|
|
|
73
74
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "fetchConfig", function () {
|
|
74
75
|
_this.setState({
|
|
75
76
|
isFetchingConfig: true
|
|
76
|
-
}, /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
77
|
+
}, /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
77
78
|
var config, errObj;
|
|
78
|
-
return
|
|
79
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
79
80
|
while (1) {
|
|
80
81
|
switch (_context.prev = _context.next) {
|
|
81
82
|
case 0:
|
|
@@ -152,8 +153,8 @@ var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Component) {
|
|
|
152
153
|
});
|
|
153
154
|
});
|
|
154
155
|
});
|
|
155
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleDialogOpen", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
156
|
-
return
|
|
156
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleDialogOpen", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
157
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
157
158
|
while (1) {
|
|
158
159
|
switch (_context2.prev = _context2.next) {
|
|
159
160
|
case 0:
|
|
@@ -243,6 +244,10 @@ var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Component) {
|
|
|
243
244
|
this.updateShortCopyLink();
|
|
244
245
|
}
|
|
245
246
|
}
|
|
247
|
+
|
|
248
|
+
// ensure origin is re-generated if the link or the factory changes
|
|
249
|
+
// separate memoization is needed since copy != form
|
|
250
|
+
// form origin must furthermore be regenerated after each form share
|
|
246
251
|
}, {
|
|
247
252
|
key: "getRawLink",
|
|
248
253
|
value: function getRawLink() {
|
|
@@ -326,7 +331,6 @@ var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Component) {
|
|
|
326
331
|
loadUserOptions = _this$props2.loadUserOptions,
|
|
327
332
|
renderCustomTriggerButton = _this$props2.renderCustomTriggerButton,
|
|
328
333
|
shareContentType = _this$props2.shareContentType,
|
|
329
|
-
isJwmShareToSlackFFEnabled = _this$props2.isJwmShareToSlackFFEnabled,
|
|
330
334
|
shareFormTitle = _this$props2.shareFormTitle,
|
|
331
335
|
shareFormHelperMessage = _this$props2.shareFormHelperMessage,
|
|
332
336
|
shouldCloseOnEscapePress = _this$props2.shouldCloseOnEscapePress,
|
|
@@ -370,7 +374,6 @@ var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Component) {
|
|
|
370
374
|
onShareSubmit: this.handleSubmitShare,
|
|
371
375
|
renderCustomTriggerButton: renderCustomTriggerButton,
|
|
372
376
|
shareContentType: shareContentType,
|
|
373
|
-
isJwmShareToSlackFFEnabled: isJwmShareToSlackFFEnabled,
|
|
374
377
|
shareFormTitle: shareFormTitle,
|
|
375
378
|
shareFormHelperMessage: shareFormHelperMessage,
|
|
376
379
|
copyLinkOrigin: this.getCopyLinkOriginTracing(),
|
|
@@ -33,6 +33,8 @@ var _ShareButton = _interopRequireDefault(require("./ShareButton"));
|
|
|
33
33
|
var _SplitButton = _interopRequireDefault(require("./SplitButton"));
|
|
34
34
|
var _utils = require("./utils");
|
|
35
35
|
var _templateObject;
|
|
36
|
+
/** @jsx jsx */
|
|
37
|
+
// eslint-disable-next-line no-duplicate-imports
|
|
36
38
|
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; }
|
|
37
39
|
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) { (0, _defineProperty2.default)(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; }
|
|
38
40
|
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); }; }
|
|
@@ -103,13 +105,11 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
|
|
|
103
105
|
});
|
|
104
106
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onTabChange", function (index) {
|
|
105
107
|
var subjectId = 'shareTab';
|
|
106
|
-
var
|
|
107
|
-
shareContentType = _this$props3.shareContentType,
|
|
108
|
-
isJwmShareToSlackFFEnabled = _this$props3.isJwmShareToSlackFFEnabled;
|
|
108
|
+
var shareContentType = _this.props.shareContentType;
|
|
109
109
|
if (index === 1) {
|
|
110
110
|
subjectId = 'shareToSlackTab';
|
|
111
111
|
}
|
|
112
|
-
_this.createAndFireEvent((0, _analytics.shareTabClicked)(subjectId, shareContentType
|
|
112
|
+
_this.createAndFireEvent((0, _analytics.shareTabClicked)(subjectId, shareContentType));
|
|
113
113
|
_this.setState({
|
|
114
114
|
tabIndex: index
|
|
115
115
|
});
|
|
@@ -187,9 +187,9 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
|
|
|
187
187
|
selectedIntegration: null
|
|
188
188
|
};
|
|
189
189
|
}, function () {
|
|
190
|
-
var _this$
|
|
191
|
-
onDialogOpen = _this$
|
|
192
|
-
isPublicLink = _this$
|
|
190
|
+
var _this$props3 = _this.props,
|
|
191
|
+
onDialogOpen = _this$props3.onDialogOpen,
|
|
192
|
+
isPublicLink = _this$props3.isPublicLink;
|
|
193
193
|
var isDialogOpen = _this.state.isDialogOpen;
|
|
194
194
|
if (isDialogOpen) {
|
|
195
195
|
_this.start = Date.now();
|
|
@@ -228,12 +228,12 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
|
|
|
228
228
|
});
|
|
229
229
|
});
|
|
230
230
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleShareSubmit", function (data) {
|
|
231
|
-
var _this$
|
|
232
|
-
onShareSubmit = _this$
|
|
233
|
-
shareContentType = _this$
|
|
234
|
-
formShareOrigin = _this$
|
|
235
|
-
showFlags = _this$
|
|
236
|
-
isPublicLink = _this$
|
|
231
|
+
var _this$props4 = _this.props,
|
|
232
|
+
onShareSubmit = _this$props4.onShareSubmit,
|
|
233
|
+
shareContentType = _this$props4.shareContentType,
|
|
234
|
+
formShareOrigin = _this$props4.formShareOrigin,
|
|
235
|
+
showFlags = _this$props4.showFlags,
|
|
236
|
+
isPublicLink = _this$props4.isPublicLink;
|
|
237
237
|
if (!onShareSubmit) {
|
|
238
238
|
return;
|
|
239
239
|
}
|
|
@@ -268,11 +268,11 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
|
|
|
268
268
|
});
|
|
269
269
|
});
|
|
270
270
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleCopyLink", function () {
|
|
271
|
-
var _this$
|
|
272
|
-
copyLinkOrigin = _this$
|
|
273
|
-
shareContentType = _this$
|
|
274
|
-
isPublicLink = _this$
|
|
275
|
-
shareAri = _this$
|
|
271
|
+
var _this$props5 = _this.props,
|
|
272
|
+
copyLinkOrigin = _this$props5.copyLinkOrigin,
|
|
273
|
+
shareContentType = _this$props5.shareContentType,
|
|
274
|
+
isPublicLink = _this$props5.isPublicLink,
|
|
275
|
+
shareAri = _this$props5.shareAri;
|
|
276
276
|
_this.createAndFireEvent((0, _analytics.copyLinkButtonClicked)(_this.start, shareContentType, copyLinkOrigin, isPublicLink, shareAri));
|
|
277
277
|
});
|
|
278
278
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleIntegrationClick", function (integration) {
|
|
@@ -287,19 +287,19 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
|
|
|
287
287
|
var _this$state2 = _this.state,
|
|
288
288
|
isDialogOpen = _this$state2.isDialogOpen,
|
|
289
289
|
isUsingSplitButton = _this$state2.isUsingSplitButton;
|
|
290
|
-
var _this$
|
|
291
|
-
formatMessage = _this$
|
|
292
|
-
isDisabled = _this$
|
|
293
|
-
renderCustomTriggerButton = _this$
|
|
294
|
-
triggerButtonIcon = _this$
|
|
295
|
-
triggerButtonTooltipText = _this$
|
|
296
|
-
triggerButtonTooltipPosition = _this$
|
|
297
|
-
triggerButtonAppearance = _this$
|
|
298
|
-
triggerButtonStyle = _this$
|
|
299
|
-
integrationMode = _this$
|
|
300
|
-
shareIntegrations = _this$
|
|
301
|
-
dialogZIndex = _this$
|
|
302
|
-
dialogPlacement = _this$
|
|
290
|
+
var _this$props6 = _this.props,
|
|
291
|
+
formatMessage = _this$props6.intl.formatMessage,
|
|
292
|
+
isDisabled = _this$props6.isDisabled,
|
|
293
|
+
renderCustomTriggerButton = _this$props6.renderCustomTriggerButton,
|
|
294
|
+
triggerButtonIcon = _this$props6.triggerButtonIcon,
|
|
295
|
+
triggerButtonTooltipText = _this$props6.triggerButtonTooltipText,
|
|
296
|
+
triggerButtonTooltipPosition = _this$props6.triggerButtonTooltipPosition,
|
|
297
|
+
triggerButtonAppearance = _this$props6.triggerButtonAppearance,
|
|
298
|
+
triggerButtonStyle = _this$props6.triggerButtonStyle,
|
|
299
|
+
integrationMode = _this$props6.integrationMode,
|
|
300
|
+
shareIntegrations = _this$props6.shareIntegrations,
|
|
301
|
+
dialogZIndex = _this$props6.dialogZIndex,
|
|
302
|
+
dialogPlacement = _this$props6.dialogPlacement;
|
|
303
303
|
var button;
|
|
304
304
|
var ShareButtonIcon = triggerButtonIcon || _share.default;
|
|
305
305
|
|
|
@@ -367,6 +367,11 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
|
|
|
367
367
|
});
|
|
368
368
|
return _this;
|
|
369
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* Because the PopUp component has a higher zIndex it causes
|
|
372
|
+
* the select to be rendered within it, and add scrollbars.
|
|
373
|
+
* We will render the select options the PopUp outside,
|
|
374
|
+
*/
|
|
370
375
|
(0, _createClass2.default)(ShareDialogWithTriggerInternal, [{
|
|
371
376
|
key: "componentDidMount",
|
|
372
377
|
value: function componentDidMount() {
|
|
@@ -392,31 +397,31 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
|
|
|
392
397
|
defaultValue = _this$state3.defaultValue,
|
|
393
398
|
showIntegrationForm = _this$state3.showIntegrationForm,
|
|
394
399
|
selectedIntegration = _this$state3.selectedIntegration;
|
|
395
|
-
var _this$
|
|
396
|
-
copyLink = _this$
|
|
397
|
-
dialogPlacement = _this$
|
|
398
|
-
config = _this$
|
|
399
|
-
isFetchingConfig = _this$
|
|
400
|
-
loadUserOptions = _this$
|
|
401
|
-
shareFormTitle = _this$
|
|
402
|
-
shareFormHelperMessage = _this$
|
|
403
|
-
bottomMessage = _this$
|
|
404
|
-
submitButtonLabel = _this$
|
|
405
|
-
product = _this$
|
|
406
|
-
customFooter = _this$
|
|
407
|
-
enableSmartUserPicker = _this$
|
|
408
|
-
loggedInAccountId = _this$
|
|
409
|
-
cloudId = _this$
|
|
410
|
-
orgId = _this$
|
|
411
|
-
shareFieldsFooter = _this$
|
|
412
|
-
onUserSelectionChange = _this$
|
|
413
|
-
dialogZIndex = _this$
|
|
414
|
-
isPublicLink = _this$
|
|
415
|
-
tabIndex = _this$
|
|
416
|
-
copyTooltipText = _this$
|
|
417
|
-
integrationMode = _this$
|
|
418
|
-
shareIntegrations = _this$
|
|
419
|
-
isBrowseUsersDisabled = _this$
|
|
400
|
+
var _this$props7 = this.props,
|
|
401
|
+
copyLink = _this$props7.copyLink,
|
|
402
|
+
dialogPlacement = _this$props7.dialogPlacement,
|
|
403
|
+
config = _this$props7.config,
|
|
404
|
+
isFetchingConfig = _this$props7.isFetchingConfig,
|
|
405
|
+
loadUserOptions = _this$props7.loadUserOptions,
|
|
406
|
+
shareFormTitle = _this$props7.shareFormTitle,
|
|
407
|
+
shareFormHelperMessage = _this$props7.shareFormHelperMessage,
|
|
408
|
+
bottomMessage = _this$props7.bottomMessage,
|
|
409
|
+
submitButtonLabel = _this$props7.submitButtonLabel,
|
|
410
|
+
product = _this$props7.product,
|
|
411
|
+
customFooter = _this$props7.customFooter,
|
|
412
|
+
enableSmartUserPicker = _this$props7.enableSmartUserPicker,
|
|
413
|
+
loggedInAccountId = _this$props7.loggedInAccountId,
|
|
414
|
+
cloudId = _this$props7.cloudId,
|
|
415
|
+
orgId = _this$props7.orgId,
|
|
416
|
+
shareFieldsFooter = _this$props7.shareFieldsFooter,
|
|
417
|
+
onUserSelectionChange = _this$props7.onUserSelectionChange,
|
|
418
|
+
dialogZIndex = _this$props7.dialogZIndex,
|
|
419
|
+
isPublicLink = _this$props7.isPublicLink,
|
|
420
|
+
tabIndex = _this$props7.tabIndex,
|
|
421
|
+
copyTooltipText = _this$props7.copyTooltipText,
|
|
422
|
+
integrationMode = _this$props7.integrationMode,
|
|
423
|
+
shareIntegrations = _this$props7.shareIntegrations,
|
|
424
|
+
isBrowseUsersDisabled = _this$props7.isBrowseUsersDisabled;
|
|
420
425
|
var style = typeof tabIndex !== 'undefined' && tabIndex >= 0 ? {
|
|
421
426
|
outline: 'none'
|
|
422
427
|
} : undefined;
|
|
@@ -35,6 +35,7 @@ var _IntegrationForm = require("./IntegrationForm");
|
|
|
35
35
|
var _ShareHeader = require("./ShareHeader");
|
|
36
36
|
var _UserPickerField = require("./UserPickerField");
|
|
37
37
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
38
|
+
/** @jsx jsx */
|
|
38
39
|
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); }
|
|
39
40
|
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; }
|
|
40
41
|
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; }
|
|
@@ -13,6 +13,7 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
13
13
|
var _typography = require("@atlaskit/theme/typography");
|
|
14
14
|
var _i18n = require("../i18n");
|
|
15
15
|
var _templateObject, _templateObject2;
|
|
16
|
+
/** @jsx jsx */
|
|
16
17
|
var headerWrapperStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n"])));
|
|
17
18
|
var getFormHeaderTitleStyles = function getFormHeaderTitleStyles(theme) {
|
|
18
19
|
return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n line-height: ", "px;\n margin-right: ", "px;\n margin-top: ", "px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n > span {\n font-size: initial;\n }\n"])), (0, _typography.h500)(theme), (0, _constants.gridSize)() * 4, (0, _constants.gridSize)() * 4, (0, _constants.gridSize)() * 4);
|
|
@@ -22,6 +22,7 @@ var _analytics = require("./analytics/analytics");
|
|
|
22
22
|
var _IntegrationButton = _interopRequireDefault(require("./IntegrationButton"));
|
|
23
23
|
var _excluded = ["triggerRef"];
|
|
24
24
|
var _templateObject, _templateObject2, _templateObject3;
|
|
25
|
+
/** @jsx jsx */
|
|
25
26
|
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); }
|
|
26
27
|
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; }
|
|
27
28
|
var splitButtonWrapperStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n button {\n border-radius: ", "px 0 0 ", "px;\n }\n button:hover {\n border-radius: ", "px 0 0 ", "px;\n }\n"])), (0, _constants.borderRadius)(), (0, _constants.borderRadius)(), (0, _constants.borderRadius)(), (0, _constants.borderRadius)());
|
|
@@ -13,7 +13,7 @@ var buildAttributes = function buildAttributes() {
|
|
|
13
13
|
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
14
14
|
return _objectSpread({
|
|
15
15
|
packageName: "@atlaskit/share",
|
|
16
|
-
packageVersion: "4.
|
|
16
|
+
packageVersion: "4.1.1"
|
|
17
17
|
}, attributes);
|
|
18
18
|
};
|
|
19
19
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -73,8 +73,8 @@ var shareTriggerButtonClicked = function shareTriggerButtonClicked() {
|
|
|
73
73
|
return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'button', 'share');
|
|
74
74
|
};
|
|
75
75
|
exports.shareTriggerButtonClicked = shareTriggerButtonClicked;
|
|
76
|
-
var shareTabClicked = function shareTabClicked(subjectId, shareContentType
|
|
77
|
-
return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab',
|
|
76
|
+
var shareTabClicked = function shareTabClicked(subjectId, shareContentType) {
|
|
77
|
+
return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab', {
|
|
78
78
|
shareContentType: shareContentType
|
|
79
79
|
});
|
|
80
80
|
};
|
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.zIndexAddition = exports.resolveShareFooter = exports.optionDataToUsers = exports.getMenuPortalTargetCurrentHTML = exports.generateSelectZIndex = exports.allowEmails = void 0;
|
|
7
7
|
var _constants = require("@atlaskit/theme/constants");
|
|
8
|
+
// AFP-2532 TODO: Fix automatic suppressions below
|
|
9
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
10
|
+
|
|
8
11
|
/**
|
|
9
12
|
* We need to generate correct zIndex, for the PopUp and for the Select inside it.
|
|
10
13
|
* The PopUp's defaults to `layers.layer()` from @atlaskit/theme. But if user provides
|
package/dist/cjs/version.json
CHANGED
|
@@ -190,6 +190,10 @@ export class ShareDialogContainerInternal extends React.Component {
|
|
|
190
190
|
this.updateShortCopyLink();
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
+
|
|
194
|
+
// ensure origin is re-generated if the link or the factory changes
|
|
195
|
+
// separate memoization is needed since copy != form
|
|
196
|
+
// form origin must furthermore be regenerated after each form share
|
|
193
197
|
getRawLink() {
|
|
194
198
|
const {
|
|
195
199
|
shareLink
|
|
@@ -268,7 +272,6 @@ export class ShareDialogContainerInternal extends React.Component {
|
|
|
268
272
|
loadUserOptions,
|
|
269
273
|
renderCustomTriggerButton,
|
|
270
274
|
shareContentType,
|
|
271
|
-
isJwmShareToSlackFFEnabled,
|
|
272
275
|
shareFormTitle,
|
|
273
276
|
shareFormHelperMessage,
|
|
274
277
|
shouldCloseOnEscapePress,
|
|
@@ -314,7 +317,6 @@ export class ShareDialogContainerInternal extends React.Component {
|
|
|
314
317
|
onShareSubmit: this.handleSubmitShare,
|
|
315
318
|
renderCustomTriggerButton: renderCustomTriggerButton,
|
|
316
319
|
shareContentType: shareContentType,
|
|
317
|
-
isJwmShareToSlackFFEnabled: isJwmShareToSlackFFEnabled,
|
|
318
320
|
shareFormTitle: shareFormTitle,
|
|
319
321
|
shareFormHelperMessage: shareFormHelperMessage,
|
|
320
322
|
copyLinkOrigin: this.getCopyLinkOriginTracing(),
|
|
@@ -87,13 +87,12 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
87
87
|
_defineProperty(this, "onTabChange", index => {
|
|
88
88
|
let subjectId = 'shareTab';
|
|
89
89
|
const {
|
|
90
|
-
shareContentType
|
|
91
|
-
isJwmShareToSlackFFEnabled
|
|
90
|
+
shareContentType
|
|
92
91
|
} = this.props;
|
|
93
92
|
if (index === 1) {
|
|
94
93
|
subjectId = 'shareToSlackTab';
|
|
95
94
|
}
|
|
96
|
-
this.createAndFireEvent(shareTabClicked(subjectId, shareContentType
|
|
95
|
+
this.createAndFireEvent(shareTabClicked(subjectId, shareContentType));
|
|
97
96
|
this.setState({
|
|
98
97
|
tabIndex: index
|
|
99
98
|
});
|
|
@@ -366,6 +365,11 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
366
365
|
});
|
|
367
366
|
});
|
|
368
367
|
}
|
|
368
|
+
/**
|
|
369
|
+
* Because the PopUp component has a higher zIndex it causes
|
|
370
|
+
* the select to be rendered within it, and add scrollbars.
|
|
371
|
+
* We will render the select options the PopUp outside,
|
|
372
|
+
*/
|
|
369
373
|
componentDidMount() {
|
|
370
374
|
if (this.props.isAutoOpenDialog) {
|
|
371
375
|
this.handleDialogOpen();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isEmail, isTeam, isUser } from '@atlaskit/smart-user-picker';
|
|
2
2
|
const buildAttributes = (attributes = {}) => ({
|
|
3
3
|
packageName: "@atlaskit/share",
|
|
4
|
-
packageVersion: "4.
|
|
4
|
+
packageVersion: "4.1.1",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -36,7 +36,7 @@ export const errorEncountered = (actionSubjectId, attributes = {}) => createEven
|
|
|
36
36
|
|
|
37
37
|
// = share dialog invoked. Not to be confused with "share submitted"
|
|
38
38
|
export const shareTriggerButtonClicked = () => createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'button', 'share');
|
|
39
|
-
export const shareTabClicked = (subjectId, shareContentType
|
|
39
|
+
export const shareTabClicked = (subjectId, shareContentType) => createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab', {
|
|
40
40
|
shareContentType
|
|
41
41
|
});
|
|
42
42
|
export const cancelShare = start => createEvent('ui', ANALYTICS_SOURCE, 'pressed', 'keyboardShortcut', 'cancelShare', {
|
|
@@ -2,7 +2,6 @@ import { layers } from '@atlaskit/theme/constants';
|
|
|
2
2
|
|
|
3
3
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
4
4
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* We need to generate correct zIndex, for the PopUp and for the Select inside it.
|
|
8
7
|
* The PopUp's defaults to `layers.layer()` from @atlaskit/theme. But if user provides
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/typeof";
|
|
1
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
3
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
4
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
|
+
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; }
|
|
5
6
|
export var AtlassianUrlShortenerClient = /*#__PURE__*/function () {
|
|
6
7
|
function AtlassianUrlShortenerClient() {
|
|
7
8
|
_classCallCheck(this, AtlassianUrlShortenerClient);
|
|
@@ -9,9 +10,9 @@ export var AtlassianUrlShortenerClient = /*#__PURE__*/function () {
|
|
|
9
10
|
_createClass(AtlassianUrlShortenerClient, [{
|
|
10
11
|
key: "shorten",
|
|
11
12
|
value: function () {
|
|
12
|
-
var _shorten = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(data) {
|
|
13
|
+
var _shorten = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
13
14
|
var response, result;
|
|
14
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
15
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15
16
|
while (1) {
|
|
16
17
|
switch (_context.prev = _context.next) {
|
|
17
18
|
case 0:
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/typeof";
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
4
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
@@ -7,7 +8,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
7
8
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
8
9
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
9
10
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
11
|
+
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
12
|
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; }
|
|
12
13
|
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; }
|
|
13
14
|
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); }; }
|
|
@@ -65,9 +66,9 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
|
|
|
65
66
|
_defineProperty(_assertThisInitialized(_this), "fetchConfig", function () {
|
|
66
67
|
_this.setState({
|
|
67
68
|
isFetchingConfig: true
|
|
68
|
-
}, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
69
|
+
}, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
69
70
|
var config, errObj;
|
|
70
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
71
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
71
72
|
while (1) {
|
|
72
73
|
switch (_context.prev = _context.next) {
|
|
73
74
|
case 0:
|
|
@@ -144,8 +145,8 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
|
|
|
144
145
|
});
|
|
145
146
|
});
|
|
146
147
|
});
|
|
147
|
-
_defineProperty(_assertThisInitialized(_this), "handleDialogOpen", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
148
|
-
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
148
|
+
_defineProperty(_assertThisInitialized(_this), "handleDialogOpen", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
149
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
149
150
|
while (1) {
|
|
150
151
|
switch (_context2.prev = _context2.next) {
|
|
151
152
|
case 0:
|
|
@@ -235,6 +236,10 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
|
|
|
235
236
|
this.updateShortCopyLink();
|
|
236
237
|
}
|
|
237
238
|
}
|
|
239
|
+
|
|
240
|
+
// ensure origin is re-generated if the link or the factory changes
|
|
241
|
+
// separate memoization is needed since copy != form
|
|
242
|
+
// form origin must furthermore be regenerated after each form share
|
|
238
243
|
}, {
|
|
239
244
|
key: "getRawLink",
|
|
240
245
|
value: function getRawLink() {
|
|
@@ -318,7 +323,6 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
|
|
|
318
323
|
loadUserOptions = _this$props2.loadUserOptions,
|
|
319
324
|
renderCustomTriggerButton = _this$props2.renderCustomTriggerButton,
|
|
320
325
|
shareContentType = _this$props2.shareContentType,
|
|
321
|
-
isJwmShareToSlackFFEnabled = _this$props2.isJwmShareToSlackFFEnabled,
|
|
322
326
|
shareFormTitle = _this$props2.shareFormTitle,
|
|
323
327
|
shareFormHelperMessage = _this$props2.shareFormHelperMessage,
|
|
324
328
|
shouldCloseOnEscapePress = _this$props2.shouldCloseOnEscapePress,
|
|
@@ -362,7 +366,6 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
|
|
|
362
366
|
onShareSubmit: this.handleSubmitShare,
|
|
363
367
|
renderCustomTriggerButton: renderCustomTriggerButton,
|
|
364
368
|
shareContentType: shareContentType,
|
|
365
|
-
isJwmShareToSlackFFEnabled: isJwmShareToSlackFFEnabled,
|
|
366
369
|
shareFormTitle: shareFormTitle,
|
|
367
370
|
shareFormHelperMessage: shareFormHelperMessage,
|
|
368
371
|
copyLinkOrigin: this.getCopyLinkOriginTracing(),
|
|
@@ -100,13 +100,11 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
100
100
|
});
|
|
101
101
|
_defineProperty(_assertThisInitialized(_this), "onTabChange", function (index) {
|
|
102
102
|
var subjectId = 'shareTab';
|
|
103
|
-
var
|
|
104
|
-
shareContentType = _this$props3.shareContentType,
|
|
105
|
-
isJwmShareToSlackFFEnabled = _this$props3.isJwmShareToSlackFFEnabled;
|
|
103
|
+
var shareContentType = _this.props.shareContentType;
|
|
106
104
|
if (index === 1) {
|
|
107
105
|
subjectId = 'shareToSlackTab';
|
|
108
106
|
}
|
|
109
|
-
_this.createAndFireEvent(shareTabClicked(subjectId, shareContentType
|
|
107
|
+
_this.createAndFireEvent(shareTabClicked(subjectId, shareContentType));
|
|
110
108
|
_this.setState({
|
|
111
109
|
tabIndex: index
|
|
112
110
|
});
|
|
@@ -184,9 +182,9 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
184
182
|
selectedIntegration: null
|
|
185
183
|
};
|
|
186
184
|
}, function () {
|
|
187
|
-
var _this$
|
|
188
|
-
onDialogOpen = _this$
|
|
189
|
-
isPublicLink = _this$
|
|
185
|
+
var _this$props3 = _this.props,
|
|
186
|
+
onDialogOpen = _this$props3.onDialogOpen,
|
|
187
|
+
isPublicLink = _this$props3.isPublicLink;
|
|
190
188
|
var isDialogOpen = _this.state.isDialogOpen;
|
|
191
189
|
if (isDialogOpen) {
|
|
192
190
|
_this.start = Date.now();
|
|
@@ -225,12 +223,12 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
225
223
|
});
|
|
226
224
|
});
|
|
227
225
|
_defineProperty(_assertThisInitialized(_this), "handleShareSubmit", function (data) {
|
|
228
|
-
var _this$
|
|
229
|
-
onShareSubmit = _this$
|
|
230
|
-
shareContentType = _this$
|
|
231
|
-
formShareOrigin = _this$
|
|
232
|
-
showFlags = _this$
|
|
233
|
-
isPublicLink = _this$
|
|
226
|
+
var _this$props4 = _this.props,
|
|
227
|
+
onShareSubmit = _this$props4.onShareSubmit,
|
|
228
|
+
shareContentType = _this$props4.shareContentType,
|
|
229
|
+
formShareOrigin = _this$props4.formShareOrigin,
|
|
230
|
+
showFlags = _this$props4.showFlags,
|
|
231
|
+
isPublicLink = _this$props4.isPublicLink;
|
|
234
232
|
if (!onShareSubmit) {
|
|
235
233
|
return;
|
|
236
234
|
}
|
|
@@ -265,11 +263,11 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
265
263
|
});
|
|
266
264
|
});
|
|
267
265
|
_defineProperty(_assertThisInitialized(_this), "handleCopyLink", function () {
|
|
268
|
-
var _this$
|
|
269
|
-
copyLinkOrigin = _this$
|
|
270
|
-
shareContentType = _this$
|
|
271
|
-
isPublicLink = _this$
|
|
272
|
-
shareAri = _this$
|
|
266
|
+
var _this$props5 = _this.props,
|
|
267
|
+
copyLinkOrigin = _this$props5.copyLinkOrigin,
|
|
268
|
+
shareContentType = _this$props5.shareContentType,
|
|
269
|
+
isPublicLink = _this$props5.isPublicLink,
|
|
270
|
+
shareAri = _this$props5.shareAri;
|
|
273
271
|
_this.createAndFireEvent(copyLinkButtonClicked(_this.start, shareContentType, copyLinkOrigin, isPublicLink, shareAri));
|
|
274
272
|
});
|
|
275
273
|
_defineProperty(_assertThisInitialized(_this), "handleIntegrationClick", function (integration) {
|
|
@@ -284,19 +282,19 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
284
282
|
var _this$state2 = _this.state,
|
|
285
283
|
isDialogOpen = _this$state2.isDialogOpen,
|
|
286
284
|
isUsingSplitButton = _this$state2.isUsingSplitButton;
|
|
287
|
-
var _this$
|
|
288
|
-
formatMessage = _this$
|
|
289
|
-
isDisabled = _this$
|
|
290
|
-
renderCustomTriggerButton = _this$
|
|
291
|
-
triggerButtonIcon = _this$
|
|
292
|
-
triggerButtonTooltipText = _this$
|
|
293
|
-
triggerButtonTooltipPosition = _this$
|
|
294
|
-
triggerButtonAppearance = _this$
|
|
295
|
-
triggerButtonStyle = _this$
|
|
296
|
-
integrationMode = _this$
|
|
297
|
-
shareIntegrations = _this$
|
|
298
|
-
dialogZIndex = _this$
|
|
299
|
-
dialogPlacement = _this$
|
|
285
|
+
var _this$props6 = _this.props,
|
|
286
|
+
formatMessage = _this$props6.intl.formatMessage,
|
|
287
|
+
isDisabled = _this$props6.isDisabled,
|
|
288
|
+
renderCustomTriggerButton = _this$props6.renderCustomTriggerButton,
|
|
289
|
+
triggerButtonIcon = _this$props6.triggerButtonIcon,
|
|
290
|
+
triggerButtonTooltipText = _this$props6.triggerButtonTooltipText,
|
|
291
|
+
triggerButtonTooltipPosition = _this$props6.triggerButtonTooltipPosition,
|
|
292
|
+
triggerButtonAppearance = _this$props6.triggerButtonAppearance,
|
|
293
|
+
triggerButtonStyle = _this$props6.triggerButtonStyle,
|
|
294
|
+
integrationMode = _this$props6.integrationMode,
|
|
295
|
+
shareIntegrations = _this$props6.shareIntegrations,
|
|
296
|
+
dialogZIndex = _this$props6.dialogZIndex,
|
|
297
|
+
dialogPlacement = _this$props6.dialogPlacement;
|
|
300
298
|
var button;
|
|
301
299
|
var ShareButtonIcon = triggerButtonIcon || ShareIcon;
|
|
302
300
|
|
|
@@ -364,6 +362,11 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
364
362
|
});
|
|
365
363
|
return _this;
|
|
366
364
|
}
|
|
365
|
+
/**
|
|
366
|
+
* Because the PopUp component has a higher zIndex it causes
|
|
367
|
+
* the select to be rendered within it, and add scrollbars.
|
|
368
|
+
* We will render the select options the PopUp outside,
|
|
369
|
+
*/
|
|
367
370
|
_createClass(ShareDialogWithTriggerInternal, [{
|
|
368
371
|
key: "componentDidMount",
|
|
369
372
|
value: function componentDidMount() {
|
|
@@ -389,31 +392,31 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
389
392
|
defaultValue = _this$state3.defaultValue,
|
|
390
393
|
showIntegrationForm = _this$state3.showIntegrationForm,
|
|
391
394
|
selectedIntegration = _this$state3.selectedIntegration;
|
|
392
|
-
var _this$
|
|
393
|
-
copyLink = _this$
|
|
394
|
-
dialogPlacement = _this$
|
|
395
|
-
config = _this$
|
|
396
|
-
isFetchingConfig = _this$
|
|
397
|
-
loadUserOptions = _this$
|
|
398
|
-
shareFormTitle = _this$
|
|
399
|
-
shareFormHelperMessage = _this$
|
|
400
|
-
bottomMessage = _this$
|
|
401
|
-
submitButtonLabel = _this$
|
|
402
|
-
product = _this$
|
|
403
|
-
customFooter = _this$
|
|
404
|
-
enableSmartUserPicker = _this$
|
|
405
|
-
loggedInAccountId = _this$
|
|
406
|
-
cloudId = _this$
|
|
407
|
-
orgId = _this$
|
|
408
|
-
shareFieldsFooter = _this$
|
|
409
|
-
onUserSelectionChange = _this$
|
|
410
|
-
dialogZIndex = _this$
|
|
411
|
-
isPublicLink = _this$
|
|
412
|
-
tabIndex = _this$
|
|
413
|
-
copyTooltipText = _this$
|
|
414
|
-
integrationMode = _this$
|
|
415
|
-
shareIntegrations = _this$
|
|
416
|
-
isBrowseUsersDisabled = _this$
|
|
395
|
+
var _this$props7 = this.props,
|
|
396
|
+
copyLink = _this$props7.copyLink,
|
|
397
|
+
dialogPlacement = _this$props7.dialogPlacement,
|
|
398
|
+
config = _this$props7.config,
|
|
399
|
+
isFetchingConfig = _this$props7.isFetchingConfig,
|
|
400
|
+
loadUserOptions = _this$props7.loadUserOptions,
|
|
401
|
+
shareFormTitle = _this$props7.shareFormTitle,
|
|
402
|
+
shareFormHelperMessage = _this$props7.shareFormHelperMessage,
|
|
403
|
+
bottomMessage = _this$props7.bottomMessage,
|
|
404
|
+
submitButtonLabel = _this$props7.submitButtonLabel,
|
|
405
|
+
product = _this$props7.product,
|
|
406
|
+
customFooter = _this$props7.customFooter,
|
|
407
|
+
enableSmartUserPicker = _this$props7.enableSmartUserPicker,
|
|
408
|
+
loggedInAccountId = _this$props7.loggedInAccountId,
|
|
409
|
+
cloudId = _this$props7.cloudId,
|
|
410
|
+
orgId = _this$props7.orgId,
|
|
411
|
+
shareFieldsFooter = _this$props7.shareFieldsFooter,
|
|
412
|
+
onUserSelectionChange = _this$props7.onUserSelectionChange,
|
|
413
|
+
dialogZIndex = _this$props7.dialogZIndex,
|
|
414
|
+
isPublicLink = _this$props7.isPublicLink,
|
|
415
|
+
tabIndex = _this$props7.tabIndex,
|
|
416
|
+
copyTooltipText = _this$props7.copyTooltipText,
|
|
417
|
+
integrationMode = _this$props7.integrationMode,
|
|
418
|
+
shareIntegrations = _this$props7.shareIntegrations,
|
|
419
|
+
isBrowseUsersDisabled = _this$props7.isBrowseUsersDisabled;
|
|
417
420
|
var style = typeof tabIndex !== 'undefined' && tabIndex >= 0 ? {
|
|
418
421
|
outline: 'none'
|
|
419
422
|
} : undefined;
|
|
@@ -6,7 +6,7 @@ var buildAttributes = function buildAttributes() {
|
|
|
6
6
|
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7
7
|
return _objectSpread({
|
|
8
8
|
packageName: "@atlaskit/share",
|
|
9
|
-
packageVersion: "4.
|
|
9
|
+
packageVersion: "4.1.1"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -58,8 +58,8 @@ export var errorEncountered = function errorEncountered(actionSubjectId) {
|
|
|
58
58
|
export var shareTriggerButtonClicked = function shareTriggerButtonClicked() {
|
|
59
59
|
return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'button', 'share');
|
|
60
60
|
};
|
|
61
|
-
export var shareTabClicked = function shareTabClicked(subjectId, shareContentType
|
|
62
|
-
return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab',
|
|
61
|
+
export var shareTabClicked = function shareTabClicked(subjectId, shareContentType) {
|
|
62
|
+
return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab', {
|
|
63
63
|
shareContentType: shareContentType
|
|
64
64
|
});
|
|
65
65
|
};
|
|
@@ -2,7 +2,6 @@ import { layers } from '@atlaskit/theme/constants';
|
|
|
2
2
|
|
|
3
3
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
4
4
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* We need to generate correct zIndex, for the PopUp and for the Select inside it.
|
|
8
7
|
* The PopUp's defaults to `layers.layer()` from @atlaskit/theme. But if user provides
|
package/dist/esm/version.json
CHANGED
|
@@ -50,7 +50,7 @@ export declare class ShareDialogContainerInternal extends React.Component<WithAn
|
|
|
50
50
|
getFormShareLink: () => string;
|
|
51
51
|
render(): JSX.Element;
|
|
52
52
|
}
|
|
53
|
-
export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "onTriggerButtonClick" | "isAutoOpenDialog" | "shouldCloseOnEscapePress" | "dialogPlacement" | "loadUserOptions" | "onDialogOpen" | "onDialogClose" | "onUserSelectionChange" | "renderCustomTriggerButton" | "shareContentType" | "
|
|
53
|
+
export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "onTriggerButtonClick" | "isAutoOpenDialog" | "shouldCloseOnEscapePress" | "dialogPlacement" | "loadUserOptions" | "onDialogOpen" | "onDialogClose" | "onUserSelectionChange" | "renderCustomTriggerButton" | "shareContentType" | "shareFormTitle" | "shareFormHelperMessage" | "showFlags" | "loggedInAccountId" | "triggerButtonAppearance" | "triggerButtonIcon" | "triggerButtonStyle" | "triggerButtonTooltipPosition" | "triggerButtonTooltipText" | "cloudId" | "bottomMessage" | "customFooter" | "isCopyDisabled" | "isPublicLink" | "integrationMode" | "shareFieldsFooter" | "shareIntegrations" | "shareAri" | "tabIndex" | "copyTooltipText" | "dialogZIndex" | "orgId" | "isBrowseUsersDisabled" | "shareClient" | "urlShortenerClient" | "shortLinkData" | "formatCopyLink" | "originTracingFactory" | "productId" | "shareLink" | "shareTitle" | "useUrlShortener"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
|
|
54
54
|
enableSmartUserPicker: boolean;
|
|
55
55
|
shareeAction: "view" | "edit";
|
|
56
56
|
product: string;
|
|
@@ -11,7 +11,7 @@ export declare const shareIntegrationButtonEvent: (type?: string) => AnalyticsEv
|
|
|
11
11
|
export declare const errorEncountered: (actionSubjectId: string | undefined, attributes?: any) => AnalyticsEventPayload;
|
|
12
12
|
export declare const shareTriggerButtonClicked: () => AnalyticsEventPayload;
|
|
13
13
|
export declare type TabSubjectIdType = 'shareTab' | 'shareToSlackTab';
|
|
14
|
-
export declare const shareTabClicked: (subjectId: TabSubjectIdType, shareContentType?: string | undefined
|
|
14
|
+
export declare const shareTabClicked: (subjectId: TabSubjectIdType, shareContentType?: string | undefined) => AnalyticsEventPayload;
|
|
15
15
|
export declare const cancelShare: (start: number) => AnalyticsEventPayload;
|
|
16
16
|
export declare const shortUrlRequested: () => AnalyticsEventPayload;
|
|
17
17
|
export declare const shortUrlGenerated: (start: number, tooSlow: boolean) => AnalyticsEventPayload;
|
|
@@ -19,7 +19,7 @@ export declare type DialogPlacement = Placement;
|
|
|
19
19
|
* with the demo page and clearly visible options on that page.
|
|
20
20
|
*/
|
|
21
21
|
export declare type DialogBoundariesElement = 'viewport' | 'window' | 'scrollParent';
|
|
22
|
-
export declare type ShareDialogWithTriggerProps = Pick<ShareDialogContainerProps, 'onTriggerButtonClick' | 'isAutoOpenDialog' | 'shouldCloseOnEscapePress' | 'dialogPlacement' | 'loadUserOptions' | 'onDialogOpen' | 'onDialogClose' | 'onUserSelectionChange' | 'renderCustomTriggerButton' | 'shareContentType' | '
|
|
22
|
+
export declare type ShareDialogWithTriggerProps = Pick<ShareDialogContainerProps, 'onTriggerButtonClick' | 'isAutoOpenDialog' | 'shouldCloseOnEscapePress' | 'dialogPlacement' | 'loadUserOptions' | 'onDialogOpen' | 'onDialogClose' | 'onUserSelectionChange' | 'renderCustomTriggerButton' | 'shareContentType' | 'shareFormTitle' | 'shareFormHelperMessage' | 'showFlags' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'triggerButtonAppearance' | 'triggerButtonIcon' | 'triggerButtonStyle' | 'triggerButtonTooltipPosition' | 'triggerButtonTooltipText' | 'cloudId' | 'bottomMessage' | 'product' | 'customFooter' | 'isCopyDisabled' | 'isPublicLink' | 'integrationMode' | 'shareFieldsFooter' | 'shareIntegrations' | 'shareAri' | 'tabIndex' | 'copyTooltipText' | 'dialogZIndex' | 'orgId' | 'isBrowseUsersDisabled'> & {
|
|
23
23
|
config?: ConfigResponse;
|
|
24
24
|
isFetchingConfig?: boolean;
|
|
25
25
|
children?: RenderCustomTriggerButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/analytics-next": "^9.0.0",
|
|
34
|
-
"@atlaskit/button": "^16.
|
|
34
|
+
"@atlaskit/button": "^16.6.0",
|
|
35
35
|
"@atlaskit/dropdown-menu": "^11.7.0",
|
|
36
|
-
"@atlaskit/form": "^8.
|
|
36
|
+
"@atlaskit/form": "^8.9.0",
|
|
37
37
|
"@atlaskit/icon": "^21.11.0",
|
|
38
38
|
"@atlaskit/popup": "^1.5.0",
|
|
39
39
|
"@atlaskit/portal": "^4.0.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/spinner": "^15.4.0",
|
|
42
42
|
"@atlaskit/tabs": "^13.3.0",
|
|
43
43
|
"@atlaskit/textarea": "^4.5.0",
|
|
44
|
-
"@atlaskit/theme": "^12.
|
|
44
|
+
"@atlaskit/theme": "^12.4.0",
|
|
45
45
|
"@atlaskit/tokens": "^1.2.0",
|
|
46
46
|
"@atlaskit/tooltip": "^17.7.0",
|
|
47
47
|
"@atlaskit/ufo": "^0.1.0",
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@atlaskit/docs": "^9.0.0",
|
|
64
|
-
"@atlaskit/editor-test-helpers": "^18.
|
|
65
|
-
"@atlaskit/flag": "^15.
|
|
64
|
+
"@atlaskit/editor-test-helpers": "^18.2.0",
|
|
65
|
+
"@atlaskit/flag": "^15.1.0",
|
|
66
66
|
"@atlaskit/section-message": "^6.3.0",
|
|
67
67
|
"@atlaskit/select": "^16.1.0",
|
|
68
68
|
"@atlaskit/toggle": "^12.5.0",
|
|
69
|
-
"@atlaskit/util-data-test": "^17.
|
|
69
|
+
"@atlaskit/util-data-test": "^17.7.0",
|
|
70
70
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
71
71
|
"enzyme": "^3.10.0",
|
|
72
72
|
"enzyme-adapter-react-16": "^1.15.1",
|
package/report.api.md
CHANGED
|
@@ -241,7 +241,6 @@ export const ShareDialogContainer: React_2.ForwardRefExoticComponent<
|
|
|
241
241
|
| 'isAutoOpenDialog'
|
|
242
242
|
| 'isBrowseUsersDisabled'
|
|
243
243
|
| 'isCopyDisabled'
|
|
244
|
-
| 'isJwmShareToSlackFFEnabled'
|
|
245
244
|
| 'isPublicLink'
|
|
246
245
|
| 'loadUserOptions'
|
|
247
246
|
| 'loggedInAccountId'
|
|
@@ -343,7 +342,6 @@ export type ShareDialogContainerProps = {
|
|
|
343
342
|
tabIndex?: number;
|
|
344
343
|
copyTooltipText?: string;
|
|
345
344
|
isBrowseUsersDisabled?: boolean;
|
|
346
|
-
isJwmShareToSlackFFEnabled?: boolean;
|
|
347
345
|
};
|
|
348
346
|
|
|
349
347
|
// @public (undocumented)
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -189,7 +189,7 @@ export type ShareContentState = {
|
|
|
189
189
|
};
|
|
190
190
|
|
|
191
191
|
// @public (undocumented)
|
|
192
|
-
export const ShareDialogContainer: React_2.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "bottomMessage" | "cloudId" | "copyTooltipText" | "customFooter" | "dialogPlacement" | "dialogZIndex" | "formatCopyLink" | "integrationMode" | "isAutoOpenDialog" | "isBrowseUsersDisabled" | "isCopyDisabled" | "
|
|
192
|
+
export const ShareDialogContainer: React_2.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "bottomMessage" | "cloudId" | "copyTooltipText" | "customFooter" | "dialogPlacement" | "dialogZIndex" | "formatCopyLink" | "integrationMode" | "isAutoOpenDialog" | "isBrowseUsersDisabled" | "isCopyDisabled" | "isPublicLink" | "loadUserOptions" | "loggedInAccountId" | "onDialogClose" | "onDialogOpen" | "onTriggerButtonClick" | "onUserSelectionChange" | "orgId" | "originTracingFactory" | "productId" | "renderCustomTriggerButton" | "shareAri" | "shareClient" | "shareContentType" | "shareFieldsFooter" | "shareFormHelperMessage" | "shareFormTitle" | "shareIntegrations" | "shareLink" | "shareTitle" | "shortLinkData" | "shouldCloseOnEscapePress" | "showFlags" | "tabIndex" | "triggerButtonAppearance" | "triggerButtonIcon" | "triggerButtonStyle" | "triggerButtonTooltipPosition" | "triggerButtonTooltipText" | "urlShortenerClient" | "useUrlShortener"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
|
|
193
193
|
enableSmartUserPicker: boolean;
|
|
194
194
|
shareeAction: "edit" | "view";
|
|
195
195
|
product: string;
|
|
@@ -242,7 +242,6 @@ export type ShareDialogContainerProps = {
|
|
|
242
242
|
tabIndex?: number;
|
|
243
243
|
copyTooltipText?: string;
|
|
244
244
|
isBrowseUsersDisabled?: boolean;
|
|
245
|
-
isJwmShareToSlackFFEnabled?: boolean;
|
|
246
245
|
};
|
|
247
246
|
|
|
248
247
|
// @public (undocumented)
|