@atlaskit/link-create 2.8.2 → 2.9.0
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 +17 -0
- package/dist/cjs/common/constants.js +1 -1
- package/dist/cjs/common/ui/error-boundary-modal/index.js +4 -1
- package/dist/cjs/common/ui/error-boundary-ui/error-svg/index.js +4 -1
- package/dist/cjs/controllers/create-field/main.js +4 -1
- package/dist/cjs/ui/create-form/async-select/main.js +4 -1
- package/dist/cjs/ui/create-form/form-footer/main.js +4 -1
- package/dist/cjs/ui/create-form/form-loader/main.js +4 -1
- package/dist/cjs/ui/create-form/main.js +4 -1
- package/dist/cjs/ui/create-form/select/main.js +23 -16
- package/dist/cjs/ui/create-form/textfield/main.js +4 -1
- package/dist/cjs/ui/create-form/user-picker/main.js +4 -1
- package/dist/cjs/ui/inline-create/index.js +4 -1
- package/dist/cjs/ui/inline-create/main.js +4 -1
- package/dist/cjs/ui/modal-create/index.js +4 -1
- package/dist/cjs/ui/modal-create/main.js +4 -1
- package/dist/es2019/common/constants.js +1 -1
- package/dist/es2019/common/ui/error-boundary-modal/index.js +4 -1
- package/dist/es2019/common/ui/error-boundary-ui/error-svg/index.js +4 -1
- package/dist/es2019/controllers/create-field/main.js +4 -1
- package/dist/es2019/ui/create-form/async-select/main.js +4 -1
- package/dist/es2019/ui/create-form/form-footer/main.js +4 -1
- package/dist/es2019/ui/create-form/form-loader/main.js +4 -1
- package/dist/es2019/ui/create-form/main.js +4 -1
- package/dist/es2019/ui/create-form/select/main.js +19 -13
- package/dist/es2019/ui/create-form/textfield/main.js +4 -1
- package/dist/es2019/ui/create-form/user-picker/main.js +4 -1
- package/dist/es2019/ui/inline-create/index.js +4 -1
- package/dist/es2019/ui/inline-create/main.js +4 -1
- package/dist/es2019/ui/modal-create/index.js +4 -1
- package/dist/es2019/ui/modal-create/main.js +4 -1
- package/dist/esm/common/constants.js +1 -1
- package/dist/esm/common/ui/error-boundary-modal/index.js +4 -1
- package/dist/esm/common/ui/error-boundary-ui/error-svg/index.js +4 -1
- package/dist/esm/controllers/create-field/main.js +4 -1
- package/dist/esm/ui/create-form/async-select/main.js +4 -1
- package/dist/esm/ui/create-form/form-footer/main.js +4 -1
- package/dist/esm/ui/create-form/form-loader/main.js +4 -1
- package/dist/esm/ui/create-form/main.js +4 -1
- package/dist/esm/ui/create-form/select/main.js +23 -16
- package/dist/esm/ui/create-form/textfield/main.js +4 -1
- package/dist/esm/ui/create-form/user-picker/main.js +4 -1
- package/dist/esm/ui/inline-create/index.js +4 -1
- package/dist/esm/ui/inline-create/main.js +4 -1
- package/dist/esm/ui/modal-create/index.js +4 -1
- package/dist/esm/ui/modal-create/main.js +4 -1
- package/dist/types/common/ui/error-boundary-ui/error-svg/index.d.ts +4 -1
- package/dist/types/controllers/create-field/main.d.ts +4 -1
- package/dist/types/ui/create-form/form-footer/main.d.ts +4 -1
- package/dist/types/ui/create-form/form-loader/main.d.ts +4 -1
- package/dist/types/ui/create-form/main.d.ts +4 -1
- package/dist/types/ui/create-form/select/main.d.ts +4 -1
- package/dist/types/ui/create-form/textfield/main.d.ts +4 -1
- package/dist/types/ui/create-form/user-picker/main.d.ts +4 -1
- package/dist/types/ui/inline-create/main.d.ts +4 -1
- package/dist/types-ts4.5/common/ui/error-boundary-ui/error-svg/index.d.ts +4 -1
- package/dist/types-ts4.5/controllers/create-field/main.d.ts +4 -1
- package/dist/types-ts4.5/ui/create-form/form-footer/main.d.ts +4 -1
- package/dist/types-ts4.5/ui/create-form/form-loader/main.d.ts +4 -1
- package/dist/types-ts4.5/ui/create-form/main.d.ts +4 -1
- package/dist/types-ts4.5/ui/create-form/select/main.d.ts +4 -1
- package/dist/types-ts4.5/ui/create-form/textfield/main.d.ts +4 -1
- package/dist/types-ts4.5/ui/create-form/user-picker/main.d.ts +4 -1
- package/dist/types-ts4.5/ui/inline-create/main.d.ts +4 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/link-create
|
|
2
2
|
|
|
3
|
+
## 2.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#122986](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122986)
|
|
8
|
+
[`48a5bb152f63b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/48a5bb152f63b) -
|
|
9
|
+
Update react peer dependency to support react 18
|
|
10
|
+
|
|
11
|
+
## 2.8.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#121784](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/121784)
|
|
16
|
+
[`b729bad421ff9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b729bad421ff9) -
|
|
17
|
+
[ux] Default to first site in site picker, when present. Show icon only when present (previously
|
|
18
|
+
was a grey square).
|
|
19
|
+
|
|
3
20
|
## 2.8.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -13,7 +13,7 @@ var CREATE_FORM_MIN_HEIGHT_IN_PX = exports.CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
13
13
|
var LINK_CREATE_FORM_POST_CREATE_FIELD = exports.LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
14
14
|
var PACKAGE_DATA = exports.PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/link-create" || '',
|
|
16
|
-
packageVersion: "2.
|
|
16
|
+
packageVersion: "2.9.0" || '',
|
|
17
17
|
component: COMPONENT_NAME,
|
|
18
18
|
componentName: COMPONENT_NAME
|
|
19
19
|
};
|
|
@@ -11,7 +11,10 @@ var _constants = require("../../constants");
|
|
|
11
11
|
var _errorBoundaryUi = require("../error-boundary-ui");
|
|
12
12
|
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); }
|
|
13
13
|
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; }
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
* @jsx jsx
|
|
17
|
+
*/
|
|
15
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
19
|
|
|
17
20
|
/**
|
|
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
* @jsx jsx
|
|
12
|
+
*/
|
|
10
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
14
|
|
|
12
15
|
var WIDTH = 82;
|
|
@@ -11,7 +11,10 @@ var _reactFinalForm = require("react-final-form");
|
|
|
11
11
|
var _form = require("@atlaskit/form");
|
|
12
12
|
var _form2 = require("../../common/utils/form");
|
|
13
13
|
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; }
|
|
14
|
-
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; } /**
|
|
14
|
+
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; } /**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
* @jsx jsx
|
|
17
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
18
|
var fieldWrapperStyles = (0, _react.css)({
|
|
16
19
|
marginTop: "var(--ds-space-100, 8px)"
|
|
17
20
|
});
|
|
@@ -23,7 +23,10 @@ var _createField = require("../../../controllers/create-field");
|
|
|
23
23
|
var _formContext = require("../../../controllers/form-context");
|
|
24
24
|
var _excluded = ["id", "name", "label", "isRequired", "validators", "validationHelpText", "testId", "defaultOption", "loadOptions"],
|
|
25
25
|
_excluded2 = ["fieldId"];
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* @jsxRuntime classic
|
|
28
|
+
* @jsx jsx
|
|
29
|
+
*/
|
|
27
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
28
31
|
var TEST_ID = exports.TEST_ID = 'link-create-async-select';
|
|
29
32
|
|
|
@@ -13,7 +13,10 @@ var _Button = require("../../../common/ui/Button");
|
|
|
13
13
|
var _editButton = require("./edit-button");
|
|
14
14
|
var _messages = require("./messages");
|
|
15
15
|
var _submitButton = require("./submit-button");
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* @jsxRuntime classic
|
|
18
|
+
* @jsx jsx
|
|
19
|
+
*/
|
|
17
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
21
|
|
|
19
22
|
var formFooterWrapperStyles = (0, _react.css)({
|
|
@@ -8,7 +8,10 @@ exports.CreateFormLoader = CreateFormLoader;
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
10
10
|
var _constants = require("../../../common/constants");
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* @jsxRuntime classic
|
|
13
|
+
* @jsx jsx
|
|
14
|
+
*/
|
|
12
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
16
|
|
|
14
17
|
var formLoaderStyles = (0, _react.css)({
|
|
@@ -26,7 +26,10 @@ var _formFooter = require("./form-footer");
|
|
|
26
26
|
var _formLoader = require("./form-loader");
|
|
27
27
|
var _excluded = ["submitError"];
|
|
28
28
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
29
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
29
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
30
|
+
* @jsxRuntime classic
|
|
31
|
+
* @jsx jsx
|
|
32
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
30
33
|
var formStyles = (0, _react2.css)({
|
|
31
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
35
|
maxWidth: "".concat(_constants.CREATE_FORM_MAX_WIDTH_IN_PX, "px"),
|
|
@@ -22,7 +22,10 @@ var _excluded = ["id", "name", "label", "isRequired", "validators", "validationH
|
|
|
22
22
|
_excluded2 = ["fieldId"],
|
|
23
23
|
_excluded3 = ["children"],
|
|
24
24
|
_excluded4 = ["children"];
|
|
25
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* @jsxRuntime classic
|
|
27
|
+
* @jsx jsx
|
|
28
|
+
*/
|
|
26
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
27
30
|
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); }
|
|
28
31
|
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; }
|
|
@@ -95,23 +98,27 @@ var SiteSelect = exports.SiteSelect = function SiteSelect(_ref3) {
|
|
|
95
98
|
}
|
|
96
99
|
});
|
|
97
100
|
};
|
|
98
|
-
var
|
|
99
|
-
var
|
|
100
|
-
|
|
101
|
-
return (0, _react.jsx)(
|
|
101
|
+
var SiteRow = function SiteRow(_ref4) {
|
|
102
|
+
var avatarUrl = _ref4.avatarUrl,
|
|
103
|
+
children = _ref4.children;
|
|
104
|
+
return (0, _react.jsx)(_primitives.Inline, {
|
|
102
105
|
space: "space.100",
|
|
103
106
|
alignBlock: "center"
|
|
104
|
-
}, (0, _react.jsx)(_icon.UrlIcon, {
|
|
105
|
-
url:
|
|
106
|
-
}), children)
|
|
107
|
+
}, avatarUrl ? (0, _react.jsx)(_icon.UrlIcon, {
|
|
108
|
+
url: avatarUrl
|
|
109
|
+
}) : null, children);
|
|
107
110
|
};
|
|
108
|
-
var
|
|
111
|
+
var SitePickerOption = exports.SitePickerOption = function SitePickerOption(_ref5) {
|
|
109
112
|
var children = _ref5.children,
|
|
110
|
-
props = (0, _objectWithoutProperties2.default)(_ref5,
|
|
111
|
-
return (0, _react.jsx)(_select.components.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
props = (0, _objectWithoutProperties2.default)(_ref5, _excluded3);
|
|
114
|
+
return (0, _react.jsx)(_select.components.Option, props, (0, _react.jsx)(SiteRow, {
|
|
115
|
+
avatarUrl: props.data.value.avatarUrl
|
|
116
|
+
}, children));
|
|
117
|
+
};
|
|
118
|
+
var SitePickerSingleValue = exports.SitePickerSingleValue = function SitePickerSingleValue(_ref6) {
|
|
119
|
+
var children = _ref6.children,
|
|
120
|
+
props = (0, _objectWithoutProperties2.default)(_ref6, _excluded4);
|
|
121
|
+
return (0, _react.jsx)(_select.components.SingleValue, props, (0, _react.jsx)(SiteRow, {
|
|
122
|
+
avatarUrl: props.data.value.avatarUrl
|
|
123
|
+
}, children));
|
|
117
124
|
};
|
|
@@ -13,7 +13,10 @@ var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
|
13
13
|
var _createField = require("../../../controllers/create-field");
|
|
14
14
|
var _excluded = ["id", "name", "label", "isRequired", "validators", "validationHelpText", "testId"],
|
|
15
15
|
_excluded2 = ["fieldId"];
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* @jsxRuntime classic
|
|
18
|
+
* @jsx jsx
|
|
19
|
+
*/
|
|
17
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
21
|
var TEST_ID = exports.TEST_ID = 'link-create-text-field';
|
|
19
22
|
|
|
@@ -12,7 +12,10 @@ var _react = require("@emotion/react");
|
|
|
12
12
|
var _smartUserPicker = _interopRequireDefault(require("@atlaskit/smart-user-picker"));
|
|
13
13
|
var _createField = require("../../../controllers/create-field");
|
|
14
14
|
var _excluded = ["fieldId"];
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* @jsxRuntime classic
|
|
17
|
+
* @jsx jsx
|
|
18
|
+
*/
|
|
16
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
20
|
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; }
|
|
18
21
|
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; }
|
|
@@ -16,7 +16,10 @@ var _analytics = require("../../common/utils/analytics");
|
|
|
16
16
|
var _fetchMessagesForLocale = require("../../common/utils/locale/fetch-messages-for-locale");
|
|
17
17
|
var _en = _interopRequireDefault(require("../../i18n/en"));
|
|
18
18
|
var _main = _interopRequireDefault(require("./main"));
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* @jsxRuntime classic
|
|
21
|
+
* @jsx jsx
|
|
22
|
+
*/
|
|
20
23
|
|
|
21
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
25
|
|
|
@@ -21,7 +21,10 @@ var _exitWarningModalContext = require("../../controllers/exit-warning-modal-con
|
|
|
21
21
|
var _formContext = require("../../controllers/form-context");
|
|
22
22
|
var _pluginContext = require("../../controllers/plugin-context");
|
|
23
23
|
var _inlineAnalytics = require("./inline-analytics");
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* @jsxRuntime classic
|
|
26
|
+
* @jsx jsx
|
|
27
|
+
*/
|
|
25
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
29
|
|
|
27
30
|
var InlineCreateContent = function InlineCreateContent(_ref) {
|
|
@@ -17,7 +17,10 @@ var _analytics = require("../../common/utils/analytics");
|
|
|
17
17
|
var _fetchMessagesForLocale = require("../../common/utils/locale/fetch-messages-for-locale");
|
|
18
18
|
var _en = _interopRequireDefault(require("../../i18n/en"));
|
|
19
19
|
var _main = _interopRequireDefault(require("./main"));
|
|
20
|
-
/**
|
|
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
|
|
|
@@ -26,7 +26,10 @@ var _exitWarningModalContext = require("../../controllers/exit-warning-modal-con
|
|
|
26
26
|
var _formContext = require("../../controllers/form-context");
|
|
27
27
|
var _pluginContext = require("../../controllers/plugin-context");
|
|
28
28
|
var _messages = require("./messages");
|
|
29
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* @jsxRuntime classic
|
|
31
|
+
* @jsx jsx
|
|
32
|
+
*/
|
|
30
33
|
|
|
31
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
32
35
|
|
|
@@ -7,7 +7,7 @@ export const CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
7
7
|
export const LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
8
8
|
export const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/link-create" || '',
|
|
10
|
-
packageVersion: "2.
|
|
10
|
+
packageVersion: "2.9.0" || '',
|
|
11
11
|
component: COMPONENT_NAME,
|
|
12
12
|
componentName: COMPONENT_NAME
|
|
13
13
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
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 { jsx } from '@emotion/react';
|
|
4
7
|
import Modal, { ModalBody, ModalTransition } from '@atlaskit/modal-dialog';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
7
|
import { css, jsx } from '@emotion/react';
|
|
5
8
|
const WIDTH = 82;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import { 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,5 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
|
|
4
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
8
|
import { jsx } from '@emotion/react';
|
|
@@ -77,21 +80,24 @@ export const SiteSelect = ({
|
|
|
77
80
|
}
|
|
78
81
|
});
|
|
79
82
|
};
|
|
83
|
+
const SiteRow = ({
|
|
84
|
+
avatarUrl,
|
|
85
|
+
children
|
|
86
|
+
}) => jsx(Inline, {
|
|
87
|
+
space: "space.100",
|
|
88
|
+
alignBlock: "center"
|
|
89
|
+
}, avatarUrl ? jsx(UrlIcon, {
|
|
90
|
+
url: avatarUrl
|
|
91
|
+
}) : null, children);
|
|
80
92
|
export const SitePickerOption = ({
|
|
81
93
|
children,
|
|
82
94
|
...props
|
|
83
|
-
}) => jsx(components.Option, props, jsx(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}, jsx(UrlIcon, {
|
|
87
|
-
url: props.data.value.avatarUrl
|
|
88
|
-
}), children));
|
|
95
|
+
}) => jsx(components.Option, props, jsx(SiteRow, {
|
|
96
|
+
avatarUrl: props.data.value.avatarUrl
|
|
97
|
+
}, children));
|
|
89
98
|
export const SitePickerSingleValue = ({
|
|
90
99
|
children,
|
|
91
100
|
...props
|
|
92
|
-
}) => jsx(components.SingleValue, props, jsx(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}, jsx(UrlIcon, {
|
|
96
|
-
url: props.data.value.avatarUrl
|
|
97
|
-
}), children));
|
|
101
|
+
}) => jsx(components.SingleValue, props, jsx(SiteRow, {
|
|
102
|
+
avatarUrl: props.data.value.avatarUrl
|
|
103
|
+
}, children));
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
7
|
import { jsx } from '@emotion/react';
|
|
5
8
|
import AkTextfield from '@atlaskit/textfield';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
7
|
import { jsx } from '@emotion/react';
|
|
5
8
|
import { Box } from '@atlaskit/primitives';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import { useLayoutEffect, useRef } from 'react';
|
|
4
7
|
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -7,7 +7,7 @@ export var CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
7
7
|
export var LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
8
8
|
export var PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/link-create" || '',
|
|
10
|
-
packageVersion: "2.
|
|
10
|
+
packageVersion: "2.9.0" || '',
|
|
11
11
|
component: COMPONENT_NAME,
|
|
12
12
|
componentName: COMPONENT_NAME
|
|
13
13
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
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 { jsx } from '@emotion/react';
|
|
4
7
|
import Modal, { ModalBody, ModalTransition } from '@atlaskit/modal-dialog';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
7
|
import { css, jsx } from '@emotion/react';
|
|
5
8
|
var WIDTH = 82;
|
|
@@ -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
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
7
|
+
*/
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
9
|
import { css, jsx } from '@emotion/react';
|
|
7
10
|
import { Field } from 'react-final-form';
|
|
@@ -5,7 +5,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
5
5
|
var _excluded = ["id", "name", "label", "isRequired", "validators", "validationHelpText", "testId", "defaultOption", "loadOptions"],
|
|
6
6
|
_excluded2 = ["fieldId"];
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* @jsxRuntime classic
|
|
10
|
+
* @jsx jsx
|
|
11
|
+
*/
|
|
9
12
|
import { useEffect, useMemo, useState } from 'react';
|
|
10
13
|
|
|
11
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -6,7 +6,10 @@ var _excluded = ["submitError"];
|
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
8
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
* @jsx jsx
|
|
12
|
+
*/
|
|
10
13
|
import { useCallback } from 'react';
|
|
11
14
|
|
|
12
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -7,7 +7,10 @@ var _excluded = ["id", "name", "label", "isRequired", "validators", "validationH
|
|
|
7
7
|
_excluded4 = ["children"];
|
|
8
8
|
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; }
|
|
9
9
|
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; }
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* @jsxRuntime classic
|
|
12
|
+
* @jsx jsx
|
|
13
|
+
*/
|
|
11
14
|
|
|
12
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
16
|
import { jsx } from '@emotion/react';
|
|
@@ -85,23 +88,27 @@ export var SiteSelect = function SiteSelect(_ref3) {
|
|
|
85
88
|
}
|
|
86
89
|
});
|
|
87
90
|
};
|
|
88
|
-
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
return jsx(
|
|
91
|
+
var SiteRow = function SiteRow(_ref4) {
|
|
92
|
+
var avatarUrl = _ref4.avatarUrl,
|
|
93
|
+
children = _ref4.children;
|
|
94
|
+
return jsx(Inline, {
|
|
92
95
|
space: "space.100",
|
|
93
96
|
alignBlock: "center"
|
|
94
|
-
}, jsx(UrlIcon, {
|
|
95
|
-
url:
|
|
96
|
-
}), children)
|
|
97
|
+
}, avatarUrl ? jsx(UrlIcon, {
|
|
98
|
+
url: avatarUrl
|
|
99
|
+
}) : null, children);
|
|
97
100
|
};
|
|
98
|
-
export var
|
|
101
|
+
export var SitePickerOption = function SitePickerOption(_ref5) {
|
|
99
102
|
var children = _ref5.children,
|
|
100
|
-
props = _objectWithoutProperties(_ref5,
|
|
101
|
-
return jsx(components.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
props = _objectWithoutProperties(_ref5, _excluded3);
|
|
104
|
+
return jsx(components.Option, props, jsx(SiteRow, {
|
|
105
|
+
avatarUrl: props.data.value.avatarUrl
|
|
106
|
+
}, children));
|
|
107
|
+
};
|
|
108
|
+
export var SitePickerSingleValue = function SitePickerSingleValue(_ref6) {
|
|
109
|
+
var children = _ref6.children,
|
|
110
|
+
props = _objectWithoutProperties(_ref6, _excluded4);
|
|
111
|
+
return jsx(components.SingleValue, props, jsx(SiteRow, {
|
|
112
|
+
avatarUrl: props.data.value.avatarUrl
|
|
113
|
+
}, children));
|
|
107
114
|
};
|
|
@@ -2,7 +2,10 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["id", "name", "label", "isRequired", "validators", "validationHelpText", "testId"],
|
|
4
4
|
_excluded2 = ["fieldId"];
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
* @jsx jsx
|
|
8
|
+
*/
|
|
6
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
10
|
import { jsx } from '@emotion/react';
|
|
8
11
|
import AkTextfield from '@atlaskit/textfield';
|
|
@@ -3,7 +3,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["fieldId"];
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
* @jsx jsx
|
|
9
|
+
*/
|
|
7
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
11
|
import { jsx } from '@emotion/react';
|
|
9
12
|
import SmartUserPicker from '@atlaskit/smart-user-picker';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
7
|
+
*/
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
9
|
import { jsx } from '@emotion/react';
|
|
7
10
|
import { Box } from '@atlaskit/primitives';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
7
|
+
*/
|
|
5
8
|
import { useLayoutEffect, useRef } from 'react';
|
|
6
9
|
|
|
7
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
6
|
import { type CreateFieldProps } from './types';
|
|
4
7
|
export declare function CreateField({ id, name, label, isRequired, validators, validationHelpText, testId, children, }: CreateFieldProps): jsx.JSX.Element;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
6
|
import { type CreateFieldProps } from './types';
|
|
4
7
|
export declare function CreateField({ id, name, label, isRequired, validators, validationHelpText, testId, children, }: CreateFieldProps): jsx.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"website": {
|
|
18
18
|
"name": "LinkCreate"
|
|
19
19
|
},
|
|
20
|
-
"i18n": true
|
|
20
|
+
"i18n": true,
|
|
21
|
+
"runReact18": true
|
|
21
22
|
},
|
|
22
23
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
23
24
|
"main": "dist/cjs/index.js",
|
|
@@ -43,14 +44,14 @@
|
|
|
43
44
|
"@atlaskit/button": "^19.0.0",
|
|
44
45
|
"@atlaskit/empty-state": "^7.9.0",
|
|
45
46
|
"@atlaskit/form": "^10.4.0",
|
|
46
|
-
"@atlaskit/icon": "^22.
|
|
47
|
+
"@atlaskit/icon": "^22.7.0",
|
|
47
48
|
"@atlaskit/icon-file-type": "^6.4.0",
|
|
48
49
|
"@atlaskit/intl-messages-provider": "^1.0.2",
|
|
49
50
|
"@atlaskit/linking-common": "^5.7.0",
|
|
50
51
|
"@atlaskit/modal-dialog": "^12.14.0",
|
|
51
52
|
"@atlaskit/primitives": "^11.0.0",
|
|
52
53
|
"@atlaskit/select": "^17.11.0",
|
|
53
|
-
"@atlaskit/smart-user-picker": "^6.
|
|
54
|
+
"@atlaskit/smart-user-picker": "^6.10.0",
|
|
54
55
|
"@atlaskit/spinner": "^16.2.0",
|
|
55
56
|
"@atlaskit/textfield": "^6.4.0",
|
|
56
57
|
"@atlaskit/theme": "^12.10.0",
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
"react-final-form": "^6.5.3"
|
|
64
65
|
},
|
|
65
66
|
"peerDependencies": {
|
|
66
|
-
"react": "^16.8.0",
|
|
67
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0",
|
|
67
68
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|