@atlaskit/form 8.8.7 → 8.8.8
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 +6 -0
- package/dist/cjs/field.js +2 -2
- package/dist/cjs/messages.js +8 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/field.js +1 -1
- package/dist/es2019/messages.js +9 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/field.js +1 -1
- package/dist/esm/messages.js +9 -0
- package/dist/esm/version.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/cjs/field.js
CHANGED
|
@@ -18,7 +18,7 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
18
18
|
var _form = require("./form");
|
|
19
19
|
var _label = _interopRequireDefault(require("./label"));
|
|
20
20
|
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; }
|
|
21
|
-
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; }
|
|
21
|
+
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; } /** @jsx jsx */
|
|
22
22
|
var gridSize = (0, _constants.gridSize)();
|
|
23
23
|
var fontFamily = (0, _constants.fontFamily)();
|
|
24
24
|
var fieldWrapperStyles = (0, _react2.css)({
|
|
@@ -122,7 +122,7 @@ function Field(props) {
|
|
|
122
122
|
setState = _useState2[1];
|
|
123
123
|
var latestStateRef = usePreviousRef(state);
|
|
124
124
|
(0, _react.useEffect)(function () {
|
|
125
|
-
if (process.env.NODE_ENV !== 'production' && !process.env.CI) {
|
|
125
|
+
if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && !process.env.CI) {
|
|
126
126
|
(0, _tinyInvariant.default)(latestPropsRef.current.name, '@atlaskit/form: Field components have a required name prop');
|
|
127
127
|
}
|
|
128
128
|
function fieldStateToMeta() {
|
package/dist/cjs/messages.js
CHANGED
|
@@ -16,6 +16,14 @@ var _typography = require("@atlaskit/theme/typography");
|
|
|
16
16
|
var _field = require("./field");
|
|
17
17
|
/** @jsx jsx */
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
* API for the internal `<Message />` component. This is not public API.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Public API of the various message components.
|
|
25
|
+
*/
|
|
26
|
+
|
|
19
27
|
var gridSize = (0, _constants.gridSize)();
|
|
20
28
|
var fontFamily = (0, _constants.fontFamily)();
|
|
21
29
|
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/field.js
CHANGED
|
@@ -107,7 +107,7 @@ export default function Field(props) {
|
|
|
107
107
|
});
|
|
108
108
|
const latestStateRef = usePreviousRef(state);
|
|
109
109
|
useEffect(() => {
|
|
110
|
-
if (process.env.NODE_ENV !== 'production' && !process.env.CI) {
|
|
110
|
+
if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && !process.env.CI) {
|
|
111
111
|
invariant(latestPropsRef.current.name, '@atlaskit/form: Field components have a required name prop');
|
|
112
112
|
}
|
|
113
113
|
function fieldStateToMeta(value = {}) {
|
package/dist/es2019/messages.js
CHANGED
|
@@ -9,6 +9,15 @@ import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
|
9
9
|
import { fontFamily as getFontFamily, gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
10
10
|
import { h200 } from '@atlaskit/theme/typography';
|
|
11
11
|
import { FieldId } from './field';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* API for the internal `<Message />` component. This is not public API.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Public API of the various message components.
|
|
19
|
+
*/
|
|
20
|
+
|
|
12
21
|
const gridSize = getGridSize();
|
|
13
22
|
const fontFamily = getFontFamily();
|
|
14
23
|
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/field.js
CHANGED
|
@@ -114,7 +114,7 @@ export default function Field(props) {
|
|
|
114
114
|
setState = _useState2[1];
|
|
115
115
|
var latestStateRef = usePreviousRef(state);
|
|
116
116
|
useEffect(function () {
|
|
117
|
-
if (process.env.NODE_ENV !== 'production' && !process.env.CI) {
|
|
117
|
+
if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && !process.env.CI) {
|
|
118
118
|
invariant(latestPropsRef.current.name, '@atlaskit/form: Field components have a required name prop');
|
|
119
119
|
}
|
|
120
120
|
function fieldStateToMeta() {
|
package/dist/esm/messages.js
CHANGED
|
@@ -9,6 +9,15 @@ import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
|
9
9
|
import { fontFamily as getFontFamily, gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
10
10
|
import { h200 } from '@atlaskit/theme/typography';
|
|
11
11
|
import { FieldId } from './field';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* API for the internal `<Message />` component. This is not public API.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Public API of the various message components.
|
|
19
|
+
*/
|
|
20
|
+
|
|
12
21
|
var gridSize = getGridSize();
|
|
13
22
|
var fontFamily = getFontFamily();
|
|
14
23
|
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/form",
|
|
3
|
-
"version": "8.8.
|
|
3
|
+
"version": "8.8.8",
|
|
4
4
|
"description": "A form allows users to input information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"homepage": "https://atlassian.design/components/form/",
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@atlaskit/icon": "^21.11.0",
|
|
42
|
-
"@atlaskit/theme": "^12.
|
|
42
|
+
"@atlaskit/theme": "^12.4.0",
|
|
43
43
|
"@atlaskit/tokens": "^1.2.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@emotion/react": "^11.7.1",
|