@atlaskit/anonymous-assets 0.0.19 → 1.0.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 +21 -0
- package/dist/cjs/common/utils/intl.js +3 -3
- package/dist/cjs/messages.js +2 -2
- package/dist/es2019/common/utils/intl.js +1 -1
- package/dist/es2019/messages.js +1 -1
- package/dist/esm/common/utils/intl.js +1 -1
- package/dist/esm/messages.js +1 -1
- package/dist/types/common/utils/anonymous-assets.d.ts +1 -1
- package/dist/types/common/utils/intl.d.ts +1 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/anonymous-assets.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/intl.d.ts +1 -1
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlassian/anonymous-assets
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`deb3d6a6498e8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/deb3d6a6498e8) -
|
|
8
|
+
Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
|
|
9
|
+
|
|
10
|
+
What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
|
|
11
|
+
removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
|
|
12
|
+
to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
|
|
13
|
+
|
|
14
|
+
How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
|
|
15
|
+
`^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
|
|
16
|
+
can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
|
|
17
|
+
|
|
18
|
+
## 0.0.20
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 0.0.19
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.getIntl = void 0;
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
|
-
var
|
|
10
|
+
var _reactIntl = require("react-intl");
|
|
11
11
|
var _browserApis = require("@atlaskit/browser-apis");
|
|
12
12
|
var _i18n = require("../../i18n");
|
|
13
13
|
var _en = _interopRequireDefault(require("../../i18n/en"));
|
|
@@ -33,8 +33,8 @@ var getIntl = exports.getIntl = /*#__PURE__*/function () {
|
|
|
33
33
|
return fetchMessages(key);
|
|
34
34
|
case 4:
|
|
35
35
|
messages = _context.sent;
|
|
36
|
-
cache = (0,
|
|
37
|
-
intl = (0,
|
|
36
|
+
cache = (0, _reactIntl.createIntlCache)();
|
|
37
|
+
intl = (0, _reactIntl.createIntl)({
|
|
38
38
|
locale: key,
|
|
39
39
|
messages: messages
|
|
40
40
|
}, cache);
|
package/dist/cjs/messages.js
CHANGED
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
|
-
var
|
|
8
|
-
var messages = exports.messages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
alligator: {
|
|
10
10
|
id: 'platform.anonymous-asset-name.alligator',
|
|
11
11
|
defaultMessage: 'Anonymous Alligator',
|
package/dist/es2019/messages.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import { createIntl, createIntlCache } from 'react-intl
|
|
3
|
+
import { createIntl, createIntlCache } from 'react-intl';
|
|
4
4
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
5
5
|
import { locales } from '../../i18n';
|
|
6
6
|
import enMessages from '../../i18n/en';
|
package/dist/esm/messages.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type IntlShape } from 'react-intl
|
|
1
|
+
import { type IntlShape } from 'react-intl';
|
|
2
2
|
export declare const getIntl: () => Promise<IntlShape>;
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type IntlShape } from 'react-intl
|
|
1
|
+
import { type IntlShape } from 'react-intl';
|
|
2
2
|
export declare const getIntl: () => Promise<IntlShape>;
|
package/package.json
CHANGED
|
@@ -24,21 +24,22 @@
|
|
|
24
24
|
"@atlaskit/afm-i18n-platform-elements-anonymous-assets": "2.7.0",
|
|
25
25
|
"@atlaskit/browser-apis": "^0.0.1",
|
|
26
26
|
"@atlaskit/css": "^0.19.0",
|
|
27
|
-
"@atlaskit/primitives": "^
|
|
28
|
-
"@atlaskit/tokens": "^
|
|
27
|
+
"@atlaskit/primitives": "^19.0.0",
|
|
28
|
+
"@atlaskit/tokens": "^13.0.0",
|
|
29
29
|
"@babel/runtime": "^7.0.0",
|
|
30
|
-
"@compiled/react": "^0.20.0"
|
|
31
|
-
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
30
|
+
"@compiled/react": "^0.20.0"
|
|
32
31
|
},
|
|
33
32
|
"peerDependencies": {
|
|
34
|
-
"react": "^18.2.0"
|
|
33
|
+
"react": "^18.2.0",
|
|
34
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@af/integration-testing": "workspace:^",
|
|
38
38
|
"@af/visual-regression": "workspace:^",
|
|
39
39
|
"@atlaskit/ssr": "workspace:^",
|
|
40
40
|
"@testing-library/react": "^16.3.0",
|
|
41
|
-
"react-dom": "^18.2.0"
|
|
41
|
+
"react-dom": "^18.2.0",
|
|
42
|
+
"react-intl": "^6.6.2"
|
|
42
43
|
},
|
|
43
44
|
"techstack": {
|
|
44
45
|
"@atlassian/frontend": {
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
}
|
|
80
81
|
},
|
|
81
82
|
"name": "@atlaskit/anonymous-assets",
|
|
82
|
-
"version": "0.0
|
|
83
|
+
"version": "1.0.0",
|
|
83
84
|
"description": "Assets for anonymous users",
|
|
84
85
|
"author": "Atlassian Pty Ltd",
|
|
85
86
|
"publishConfig": {
|