@atlaskit/editor-plugin-extension 1.10.2 → 1.11.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.
Files changed (59) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/ui/ConfigPanel/ConfigPanelFieldsLoader.js +33 -5
  3. package/dist/cjs/ui/ConfigPanel/ErrorMessage/ErrorImage.js +4 -1
  4. package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +4 -1
  5. package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +4 -1
  6. package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +4 -1
  7. package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +4 -1
  8. package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +4 -1
  9. package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +4 -1
  10. package/dist/cjs/ui/ConfigPanel/Fields/SelectItem.js +4 -1
  11. package/dist/cjs/ui/ConfigPanel/Fields/TabGroup.js +4 -1
  12. package/dist/cjs/ui/ConfigPanel/Header.js +4 -1
  13. package/dist/cjs/ui/ConfigPanel/LoadingState.js +4 -1
  14. package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +4 -1
  15. package/dist/cjs/ui/SaveIndicator/SaveIndicator.js +4 -1
  16. package/dist/es2019/ui/ConfigPanel/ConfigPanelFieldsLoader.js +28 -1
  17. package/dist/es2019/ui/ConfigPanel/ErrorMessage/ErrorImage.js +4 -1
  18. package/dist/es2019/ui/ConfigPanel/Fields/Boolean.js +4 -1
  19. package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +4 -1
  20. package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +4 -1
  21. package/dist/es2019/ui/ConfigPanel/Fields/DateRange.js +4 -1
  22. package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +4 -1
  23. package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +4 -1
  24. package/dist/es2019/ui/ConfigPanel/Fields/SelectItem.js +4 -1
  25. package/dist/es2019/ui/ConfigPanel/Fields/TabGroup.js +4 -1
  26. package/dist/es2019/ui/ConfigPanel/Header.js +4 -1
  27. package/dist/es2019/ui/ConfigPanel/LoadingState.js +4 -1
  28. package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +4 -1
  29. package/dist/es2019/ui/SaveIndicator/SaveIndicator.js +4 -1
  30. package/dist/esm/ui/ConfigPanel/ConfigPanelFieldsLoader.js +33 -5
  31. package/dist/esm/ui/ConfigPanel/ErrorMessage/ErrorImage.js +4 -1
  32. package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +4 -1
  33. package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +4 -1
  34. package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +4 -1
  35. package/dist/esm/ui/ConfigPanel/Fields/DateRange.js +4 -1
  36. package/dist/esm/ui/ConfigPanel/Fields/Expand.js +4 -1
  37. package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +4 -1
  38. package/dist/esm/ui/ConfigPanel/Fields/SelectItem.js +4 -1
  39. package/dist/esm/ui/ConfigPanel/Fields/TabGroup.js +4 -1
  40. package/dist/esm/ui/ConfigPanel/Header.js +4 -1
  41. package/dist/esm/ui/ConfigPanel/LoadingState.js +4 -1
  42. package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +4 -1
  43. package/dist/esm/ui/SaveIndicator/SaveIndicator.js +4 -1
  44. package/dist/types/ui/ConfigPanel/ErrorMessage/ErrorImage.d.ts +4 -1
  45. package/dist/types/ui/ConfigPanel/Fields/Expand.d.ts +4 -1
  46. package/dist/types/ui/ConfigPanel/Fields/Fieldset.d.ts +4 -1
  47. package/dist/types/ui/ConfigPanel/Fields/SelectItem.d.ts +4 -1
  48. package/dist/types/ui/ConfigPanel/Fields/TabGroup.d.ts +4 -1
  49. package/dist/types/ui/ConfigPanel/LoadingState.d.ts +4 -1
  50. package/dist/types/ui/ConfigPanel/NestedForms/RemovableField.d.ts +4 -1
  51. package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/ErrorImage.d.ts +4 -1
  52. package/dist/types-ts4.5/ui/ConfigPanel/Fields/Expand.d.ts +4 -1
  53. package/dist/types-ts4.5/ui/ConfigPanel/Fields/Fieldset.d.ts +4 -1
  54. package/dist/types-ts4.5/ui/ConfigPanel/Fields/SelectItem.d.ts +4 -1
  55. package/dist/types-ts4.5/ui/ConfigPanel/Fields/TabGroup.d.ts +4 -1
  56. package/dist/types-ts4.5/ui/ConfigPanel/LoadingState.d.ts +4 -1
  57. package/dist/types-ts4.5/ui/ConfigPanel/NestedForms/RemovableField.d.ts +4 -1
  58. package/example-utils/config-panel/ConfigPanelWithExtensionPicker.tsx +4 -1
  59. package/package.json +12 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @atlaskit/editor-plugin-extension
2
2
 
3
+ ## 1.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#123920](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/123920)
8
+ [`dc459fb7e6e6b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dc459fb7e6e6b) -
9
+ Add event listener for updates to Forge app config schema and force re-render of the config panel.
10
+ Async functions in Forge apps lead to a race condition that causes the panel to render stale
11
+ schemas unless the panel is re-rendered.
12
+
13
+ ## 1.11.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#122895](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122895)
18
+ [`49b8c7658f3b5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/49b8c7658f3b5) -
19
+ [ED-24173] bump @atlaskit/adf-schema to 40.3.0 and @atlassian/adf-schema-json to 1.18.0
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+
3
25
  ## 1.10.2
4
26
 
5
27
  ### Patch Changes
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.default = FieldsLoader;
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
+ var _bindEventListener = require("bind-event-listener");
11
12
  var _ConfigPanel = _interopRequireDefault(require("./ConfigPanel"));
12
13
  var _useStateFromPromise3 = require("./use-state-from-promise");
13
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -30,6 +31,33 @@ var FieldDefinitionsPromiseResolver = function FieldDefinitionsPromiseResolver(p
30
31
  fields = _useState2[0],
31
32
  setFields = _useState2[1];
32
33
 
34
+ // Event listener for Forge apps that have macro config.
35
+ // When an app generates a new config schema, we need to force a re-render
36
+ // of the config panel so that the UI reflects the new schema.
37
+ // Otherwise the panel renders a stale schema.
38
+ var _useState3 = (0, _react.useState)(new Date()),
39
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
40
+ forgeAppConfigLastUpdated = _useState4[0],
41
+ setForgeAppConfigLastUpdated = _useState4[1];
42
+ (0, _react.useEffect)(function () {
43
+ if (extensionParameters !== null && extensionParameters !== void 0 && extensionParameters.extensionId && extensionParameters !== null && extensionParameters !== void 0 && extensionParameters.localId) {
44
+ var extensionId = extensionParameters.extensionId,
45
+ localId = extensionParameters.localId;
46
+ var id = "".concat(extensionId, "-").concat(localId);
47
+ var eventName = "forge.bridge.CONFIG_FORGE_DOC_UPDATED_".concat(id);
48
+ var handleForgeConfigUpdated = function handleForgeConfigUpdated() {
49
+ setForgeAppConfigLastUpdated(new Date());
50
+ };
51
+ var unbind = (0, _bindEventListener.bind)(window.document, {
52
+ type: eventName,
53
+ listener: handleForgeConfigUpdated
54
+ });
55
+ return function () {
56
+ unbind();
57
+ };
58
+ }
59
+ }, [extensionParameters]);
60
+
33
61
  // Resolve the promise
34
62
  // useStateFromPromise() has an issue which isn't compatible with
35
63
  // DynamicFieldDefinitions when it returns a function as setState()
@@ -68,7 +96,7 @@ var FieldDefinitionsPromiseResolver = function FieldDefinitionsPromiseResolver(p
68
96
  setFields(undefined);
69
97
  }
70
98
  });
71
- }, [extensionManifest, nodeKey, extensionParameters, setErrorMessage]);
99
+ }, [extensionManifest, nodeKey, extensionParameters, setErrorMessage, forgeAppConfigLastUpdated]);
72
100
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, props.children(fields));
73
101
  };
74
102
  function FieldsLoader(_ref) {
@@ -93,10 +121,10 @@ function FieldsLoader(_ref) {
93
121
  }, [extensionProvider, extensionType, extensionKey]),
94
122
  _useStateFromPromise2 = (0, _slicedToArray2.default)(_useStateFromPromise, 1),
95
123
  extensionManifest = _useStateFromPromise2[0];
96
- var _useState3 = (0, _react.useState)(null),
97
- _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
98
- errorMessage = _useState4[0],
99
- setErrorMessage = _useState4[1];
124
+ var _useState5 = (0, _react.useState)(null),
125
+ _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
126
+ errorMessage = _useState6[0],
127
+ setErrorMessage = _useState6[1];
100
128
  return /*#__PURE__*/_react.default.createElement(FieldDefinitionsPromiseResolver, {
101
129
  setErrorMessage: setErrorMessage,
102
130
  extensionManifest: extensionManifest,
@@ -7,7 +7,10 @@ exports.default = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
9
9
  // Quality Ticket: https://product-fabric.atlassian.net/browse/DSP-4249
10
- /** @jsx jsx */
10
+ /**
11
+ * @jsxRuntime classic
12
+ * @jsx jsx
13
+ */
11
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
15
 
13
16
  var imageContainerStyles = (0, _react.css)({
@@ -18,7 +18,10 @@ var _types = require("../types");
18
18
  var _RequiredIndicator = require("./common/RequiredIndicator");
19
19
  var _excluded = ["value"],
20
20
  _excluded2 = ["id", "value"];
21
- /** @jsx jsx */
21
+ /**
22
+ * @jsxRuntime classic
23
+ * @jsx jsx
24
+ */
22
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
23
26
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
24
27
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -15,7 +15,10 @@ var _form = require("@atlaskit/form");
15
15
  var _FieldMessages = _interopRequireDefault(require("../FieldMessages"));
16
16
  var _types = require("../types");
17
17
  var _excluded = ["onChange", "value"];
18
- /** @jsx jsx */
18
+ /**
19
+ * @jsxRuntime classic
20
+ * @jsx jsx
21
+ */
19
22
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
23
  function _validate(value, isRequired) {
21
24
  if (isRequired && !(value !== null && value !== void 0 && value.length)) {
@@ -16,7 +16,10 @@ var _FieldMessages = _interopRequireDefault(require("../FieldMessages"));
16
16
  var _utils = require("../utils");
17
17
  var _RequiredIndicator = require("./common/RequiredIndicator");
18
18
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
20
+ * @jsxRuntime classic
21
+ * @jsx jsx
22
+ */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
23
  /*
21
24
  NOTE: color used here are not yet in atlaskit code
22
25
  this is part of extended color pack from ADG, which is yet to be release
@@ -20,7 +20,10 @@ var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
20
20
  var _FieldMessages = _interopRequireDefault(require("../FieldMessages"));
21
21
  var _utils = require("../utils");
22
22
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
23
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
23
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
24
+ * @jsxRuntime classic
25
+ * @jsx jsx
26
+ */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
24
27
  var horizontalFieldsStyles = (0, _react2.css)({
25
28
  display: 'flex',
26
29
  flexDirection: 'row',
@@ -17,7 +17,10 @@ var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron
17
17
  var _colors = require("@atlaskit/theme/colors");
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
- /** @jsx jsx */
20
+ /**
21
+ * @jsxRuntime classic
22
+ * @jsx jsx
23
+ */
21
24
 
22
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
23
26
 
@@ -32,7 +32,10 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
32
32
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
33
33
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
34
34
  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); }; }
35
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
35
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
36
+ * @jsxRuntime classic
37
+ * @jsx jsx
38
+ */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
36
39
  var actionsWrapperStyles = (0, _react2.css)({
37
40
  borderTop: "1px solid ".concat("var(--ds-border, ".concat(_colors.N40A, ")")),
38
41
  marginTop: "var(--ds-space-200, 16px)",
@@ -7,7 +7,10 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.formatOptionLabel = void 0;
8
8
  var _react = require("@emotion/react");
9
9
  var _avatar = _interopRequireDefault(require("@atlaskit/avatar"));
10
- /** @jsx jsx */
10
+ /**
11
+ * @jsxRuntime classic
12
+ * @jsx jsx
13
+ */
11
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
15
 
13
16
  var itemWrapperStyles = (0, _react.css)({
@@ -13,7 +13,10 @@ var _reactIntlNext = require("react-intl-next");
13
13
  var _tabs = _interopRequireWildcard(require("@atlaskit/tabs"));
14
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
15
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
- /** @jsx jsx */
16
+ /**
17
+ * @jsxRuntime classic
18
+ * @jsx jsx
19
+ */
17
20
 
18
21
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
22
 
@@ -15,7 +15,10 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
15
15
  var _cross = _interopRequireDefault(require("@atlaskit/icon/glyph/cross"));
16
16
  var _colors = require("@atlaskit/theme/colors");
17
17
  var _constants = require("@atlaskit/theme/constants");
18
- /** @jsx jsx */
18
+ /**
19
+ * @jsxRuntime classic
20
+ * @jsx jsx
21
+ */
19
22
 
20
23
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
21
24
 
@@ -7,7 +7,10 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = require("@emotion/react");
9
9
  var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
10
- /** @jsx jsx */
10
+ /**
11
+ * @jsxRuntime classic
12
+ * @jsx jsx
13
+ */
11
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
15
 
13
16
  var spinnerWrapperStyles = (0, _react.css)({
@@ -12,7 +12,10 @@ var _extensions = require("@atlaskit/editor-common/extensions");
12
12
  var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/cross-circle"));
13
13
  var _colors = require("@atlaskit/theme/colors");
14
14
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
15
- /** @jsx jsx */
15
+ /**
16
+ * @jsxRuntime classic
17
+ * @jsx jsx
18
+ */
16
19
 
17
20
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
21
 
@@ -12,7 +12,10 @@ var _reactIntlNext = require("react-intl-next");
12
12
  var _extensions = require("@atlaskit/editor-common/extensions");
13
13
  var _checkCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/check-circle"));
14
14
  var _colors = require("@atlaskit/theme/colors");
15
- /** @jsx jsx */
15
+ /**
16
+ * @jsxRuntime classic
17
+ * @jsx jsx
18
+ */
16
19
 
17
20
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
21
 
@@ -1,4 +1,5 @@
1
1
  import React, { useEffect, useState } from 'react';
2
+ import { bind } from 'bind-event-listener';
2
3
  import ConfigPanel from './ConfigPanel';
3
4
  import { useStateFromPromise } from './use-state-from-promise';
4
5
  const getFieldsDefinitionFn = (extensionManifest, nodeKey) => {
@@ -18,6 +19,32 @@ const FieldDefinitionsPromiseResolver = props => {
18
19
  } = props;
19
20
  const [fields, setFields] = useState(undefined);
20
21
 
22
+ // Event listener for Forge apps that have macro config.
23
+ // When an app generates a new config schema, we need to force a re-render
24
+ // of the config panel so that the UI reflects the new schema.
25
+ // Otherwise the panel renders a stale schema.
26
+ const [forgeAppConfigLastUpdated, setForgeAppConfigLastUpdated] = useState(new Date());
27
+ useEffect(() => {
28
+ if (extensionParameters !== null && extensionParameters !== void 0 && extensionParameters.extensionId && extensionParameters !== null && extensionParameters !== void 0 && extensionParameters.localId) {
29
+ const {
30
+ extensionId,
31
+ localId
32
+ } = extensionParameters;
33
+ const id = `${extensionId}-${localId}`;
34
+ const eventName = `forge.bridge.CONFIG_FORGE_DOC_UPDATED_${id}`;
35
+ const handleForgeConfigUpdated = () => {
36
+ setForgeAppConfigLastUpdated(new Date());
37
+ };
38
+ const unbind = bind(window.document, {
39
+ type: eventName,
40
+ listener: handleForgeConfigUpdated
41
+ });
42
+ return () => {
43
+ unbind();
44
+ };
45
+ }
46
+ }, [extensionParameters]);
47
+
21
48
  // Resolve the promise
22
49
  // useStateFromPromise() has an issue which isn't compatible with
23
50
  // DynamicFieldDefinitions when it returns a function as setState()
@@ -56,7 +83,7 @@ const FieldDefinitionsPromiseResolver = props => {
56
83
  setFields(undefined);
57
84
  }
58
85
  });
59
- }, [extensionManifest, nodeKey, extensionParameters, setErrorMessage]);
86
+ }, [extensionManifest, nodeKey, extensionParameters, setErrorMessage, forgeAppConfigLastUpdated]);
60
87
  return /*#__PURE__*/React.createElement(React.Fragment, null, props.children(fields));
61
88
  };
62
89
  export default function FieldsLoader({
@@ -1,6 +1,9 @@
1
1
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
2
  // Quality Ticket: https://product-fabric.atlassian.net/browse/DSP-4249
3
- /** @jsx jsx */
3
+ /**
4
+ * @jsxRuntime classic
5
+ * @jsx jsx
6
+ */
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
8
  import { css, jsx } from '@emotion/react';
6
9
  const imageContainerStyles = css({
@@ -1,5 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import React, { Fragment } from 'react';
4
7
 
5
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,5 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
 
4
7
  import { Fragment, useCallback } from 'react';
5
8
 
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { Fragment } from 'react';
3
6
 
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,5 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import { Fragment, useEffect, useMemo, useState } from 'react';
4
7
 
5
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React, { useState } from 'react';
3
6
 
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,6 +1,9 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- /** @jsx jsx */
3
+ /**
4
+ * @jsxRuntime classic
5
+ * @jsx jsx
6
+ */
4
7
  import React, { Fragment } from 'react';
5
8
 
6
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { css, jsx } from '@emotion/react';
4
7
  import Avatar from '@atlaskit/avatar';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React, { useState } from 'react';
3
6
 
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { Fragment } from 'react';
3
6
 
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { css, jsx } from '@emotion/react';
4
7
  import Spinner from '@atlaskit/spinner';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
 
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { Fragment, useCallback, useEffect, useRef, useState } from 'react';
3
6
 
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,5 +1,6 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useEffect, useState } from 'react';
3
+ import { bind } from 'bind-event-listener';
3
4
  import ConfigPanel from './ConfigPanel';
4
5
  import { useStateFromPromise } from './use-state-from-promise';
5
6
  var getFieldsDefinitionFn = function getFieldsDefinitionFn(extensionManifest, nodeKey) {
@@ -20,6 +21,33 @@ var FieldDefinitionsPromiseResolver = function FieldDefinitionsPromiseResolver(p
20
21
  fields = _useState2[0],
21
22
  setFields = _useState2[1];
22
23
 
24
+ // Event listener for Forge apps that have macro config.
25
+ // When an app generates a new config schema, we need to force a re-render
26
+ // of the config panel so that the UI reflects the new schema.
27
+ // Otherwise the panel renders a stale schema.
28
+ var _useState3 = useState(new Date()),
29
+ _useState4 = _slicedToArray(_useState3, 2),
30
+ forgeAppConfigLastUpdated = _useState4[0],
31
+ setForgeAppConfigLastUpdated = _useState4[1];
32
+ useEffect(function () {
33
+ if (extensionParameters !== null && extensionParameters !== void 0 && extensionParameters.extensionId && extensionParameters !== null && extensionParameters !== void 0 && extensionParameters.localId) {
34
+ var extensionId = extensionParameters.extensionId,
35
+ localId = extensionParameters.localId;
36
+ var id = "".concat(extensionId, "-").concat(localId);
37
+ var eventName = "forge.bridge.CONFIG_FORGE_DOC_UPDATED_".concat(id);
38
+ var handleForgeConfigUpdated = function handleForgeConfigUpdated() {
39
+ setForgeAppConfigLastUpdated(new Date());
40
+ };
41
+ var unbind = bind(window.document, {
42
+ type: eventName,
43
+ listener: handleForgeConfigUpdated
44
+ });
45
+ return function () {
46
+ unbind();
47
+ };
48
+ }
49
+ }, [extensionParameters]);
50
+
23
51
  // Resolve the promise
24
52
  // useStateFromPromise() has an issue which isn't compatible with
25
53
  // DynamicFieldDefinitions when it returns a function as setState()
@@ -58,7 +86,7 @@ var FieldDefinitionsPromiseResolver = function FieldDefinitionsPromiseResolver(p
58
86
  setFields(undefined);
59
87
  }
60
88
  });
61
- }, [extensionManifest, nodeKey, extensionParameters, setErrorMessage]);
89
+ }, [extensionManifest, nodeKey, extensionParameters, setErrorMessage, forgeAppConfigLastUpdated]);
62
90
  return /*#__PURE__*/React.createElement(React.Fragment, null, props.children(fields));
63
91
  };
64
92
  export default function FieldsLoader(_ref) {
@@ -83,10 +111,10 @@ export default function FieldsLoader(_ref) {
83
111
  }, [extensionProvider, extensionType, extensionKey]),
84
112
  _useStateFromPromise2 = _slicedToArray(_useStateFromPromise, 1),
85
113
  extensionManifest = _useStateFromPromise2[0];
86
- var _useState3 = useState(null),
87
- _useState4 = _slicedToArray(_useState3, 2),
88
- errorMessage = _useState4[0],
89
- setErrorMessage = _useState4[1];
114
+ var _useState5 = useState(null),
115
+ _useState6 = _slicedToArray(_useState5, 2),
116
+ errorMessage = _useState6[0],
117
+ setErrorMessage = _useState6[1];
90
118
  return /*#__PURE__*/React.createElement(FieldDefinitionsPromiseResolver, {
91
119
  setErrorMessage: setErrorMessage,
92
120
  extensionManifest: extensionManifest,
@@ -1,6 +1,9 @@
1
1
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
2
  // Quality Ticket: https://product-fabric.atlassian.net/browse/DSP-4249
3
- /** @jsx jsx */
3
+ /**
4
+ * @jsxRuntime classic
5
+ * @jsx jsx
6
+ */
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
8
  import { css, jsx } from '@emotion/react';
6
9
  var imageContainerStyles = css({
@@ -2,7 +2,10 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["value"],
4
4
  _excluded2 = ["id", "value"];
5
- /** @jsx jsx */
5
+ /**
6
+ * @jsxRuntime classic
7
+ * @jsx jsx
8
+ */
6
9
  import React, { Fragment } from 'react';
7
10
 
8
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -2,7 +2,10 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["onChange", "value"];
5
- /** @jsx jsx */
5
+ /**
6
+ * @jsxRuntime classic
7
+ * @jsx jsx
8
+ */
6
9
 
7
10
  import { Fragment, useCallback } from 'react';
8
11
 
@@ -1,7 +1,10 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- /** @jsx jsx */
4
+ /**
5
+ * @jsxRuntime classic
6
+ * @jsx jsx
7
+ */
5
8
  import { Fragment } from 'react';
6
9
 
7
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -4,7 +4,10 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
4
4
  import _extends from "@babel/runtime/helpers/extends";
5
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
- /** @jsx jsx */
7
+ /**
8
+ * @jsxRuntime classic
9
+ * @jsx jsx
10
+ */
8
11
  import { Fragment, useEffect, useMemo, useState } from 'react';
9
12
 
10
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,5 +1,8 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import React, { useState } from 'react';
4
7
 
5
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -12,7 +12,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
12
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
13
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
14
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
15
- /** @jsx jsx */
15
+ /**
16
+ * @jsxRuntime classic
17
+ * @jsx jsx
18
+ */
16
19
  import React, { Fragment } from 'react';
17
20
 
18
21
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { css, jsx } from '@emotion/react';
4
7
  import Avatar from '@atlaskit/avatar';
@@ -1,5 +1,8 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import React, { useState } from 'react';
4
7
 
5
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { Fragment } from 'react';
3
6
 
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { css, jsx } from '@emotion/react';
4
7
  import Spinner from '@atlaskit/spinner';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
 
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,5 +1,8 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import { Fragment, useCallback, useEffect, useRef, useState } from 'react';
4
7
 
5
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  declare const ErrorImage: () => jsx.JSX.Element;
4
7
  export default ErrorImage;
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { WrappedComponentProps } from 'react-intl-next';
4
7
  import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { WrappedComponentProps } from 'react-intl-next';
4
7
  import type { ExtensionManifest, Fieldset, Parameters } from '@atlaskit/editor-common/extensions';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { Option } from '@atlaskit/editor-common/extensions';
4
7
  import type { FormatOptionLabelMeta } from '@atlaskit/select';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { WrappedComponentProps } from 'react-intl-next';
4
7
  import type { TabField, TabGroupField } from '@atlaskit/editor-common/extensions';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  declare const LoadingState: () => jsx.JSX.Element;
4
7
  export default LoadingState;
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { WrappedComponentProps } from 'react-intl-next';
4
7
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  declare const ErrorImage: () => jsx.JSX.Element;
4
7
  export default ErrorImage;
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { WrappedComponentProps } from 'react-intl-next';
4
7
  import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { WrappedComponentProps } from 'react-intl-next';
4
7
  import type { ExtensionManifest, Fieldset, Parameters } from '@atlaskit/editor-common/extensions';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { Option } from '@atlaskit/editor-common/extensions';
4
7
  import type { FormatOptionLabelMeta } from '@atlaskit/select';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { WrappedComponentProps } from 'react-intl-next';
4
7
  import type { TabField, TabGroupField } from '@atlaskit/editor-common/extensions';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  declare const LoadingState: () => jsx.JSX.Element;
4
7
  export default LoadingState;
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { WrappedComponentProps } from 'react-intl-next';
4
7
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
@@ -1,5 +1,8 @@
1
1
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import { useEffect, useState } from 'react';
4
7
 
5
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "1.10.2",
3
+ "version": "1.11.1",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -24,16 +24,16 @@
24
24
  ".": "./src/index.ts"
25
25
  },
26
26
  "dependencies": {
27
- "@atlaskit/adf-schema": "^39.0.3",
28
- "@atlaskit/adf-utils": "^19.4.0",
27
+ "@atlaskit/adf-schema": "^40.3.0",
28
+ "@atlaskit/adf-utils": "^19.5.0",
29
29
  "@atlaskit/analytics-next": "^9.3.0",
30
30
  "@atlaskit/avatar": "^21.11.0",
31
- "@atlaskit/button": "^19.0.0",
31
+ "@atlaskit/button": "^19.1.0",
32
32
  "@atlaskit/checkbox": "^13.5.0",
33
33
  "@atlaskit/datetime-picker": "^13.7.0",
34
- "@atlaskit/editor-common": "^86.2.0",
35
- "@atlaskit/editor-json-transformer": "^8.15.0",
36
- "@atlaskit/editor-plugin-analytics": "^1.4.0",
34
+ "@atlaskit/editor-common": "^86.7.0",
35
+ "@atlaskit/editor-json-transformer": "^8.16.0",
36
+ "@atlaskit/editor-plugin-analytics": "^1.5.0",
37
37
  "@atlaskit/editor-plugin-context-identifier": "^1.1.0",
38
38
  "@atlaskit/editor-plugin-context-panel": "^1.1.0",
39
39
  "@atlaskit/editor-plugin-decorations": "^1.1.0",
@@ -44,13 +44,13 @@
44
44
  "@atlaskit/editor-tables": "^2.7.0",
45
45
  "@atlaskit/empty-state": "^7.9.0",
46
46
  "@atlaskit/form": "^10.4.0",
47
- "@atlaskit/icon": "^22.6.0",
47
+ "@atlaskit/icon": "^22.7.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.3.0",
49
- "@atlaskit/primitives": "^11.0.0",
49
+ "@atlaskit/primitives": "^11.1.0",
50
50
  "@atlaskit/radio": "^6.4.0",
51
51
  "@atlaskit/section-message": "^6.5.0",
52
52
  "@atlaskit/select": "^17.11.0",
53
- "@atlaskit/smart-user-picker": "^6.9.0",
53
+ "@atlaskit/smart-user-picker": "^6.10.0",
54
54
  "@atlaskit/spinner": "^16.2.0",
55
55
  "@atlaskit/tabs": "^16.3.0",
56
56
  "@atlaskit/textarea": "^5.5.0",
@@ -61,6 +61,7 @@
61
61
  "@atlaskit/tooltip": "^18.5.0",
62
62
  "@babel/runtime": "^7.0.0",
63
63
  "@emotion/react": "^11.7.1",
64
+ "bind-event-listener": "^3.0.0",
64
65
  "is-number": "^7.0.0",
65
66
  "lodash": "^4.17.21",
66
67
  "memoize-one": "^6.0.0",
@@ -71,7 +72,7 @@
71
72
  "react-intl-next": "npm:react-intl@^5.18.1"
72
73
  },
73
74
  "devDependencies": {
74
- "@atlaskit/editor-test-helpers": "^18.26.0",
75
+ "@atlaskit/editor-test-helpers": "^18.27.0",
75
76
  "react-select": "^5.4.0",
76
77
  "typescript": "~5.4.2"
77
78
  },