@atlaskit/renderer 113.0.1 → 113.0.3

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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 113.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 113.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#120533](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120533)
14
+ [`f1bec731e278f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1bec731e278f) -
15
+ Adds a `sideEffects` field to ensure this package does not have Compiled styles tree-shaken in the
16
+ future to avoid an accidental regression.
17
+
18
+ This is related to
19
+ https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953
20
+
3
21
  ## 113.0.1
4
22
 
5
23
  ### Patch Changes
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/actions.js",
4
4
  "module": "../dist/esm/actions.js",
5
5
  "module:es2019": "../dist/es2019/actions.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/actions.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/consts.js",
4
4
  "module": "../dist/esm/consts.js",
5
5
  "module:es2019": "../dist/es2019/consts.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/consts.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/custom-nodes.js",
4
4
  "module": "../dist/esm/custom-nodes.js",
5
5
  "module:es2019": "../dist/es2019/custom-nodes.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/custom-nodes.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -5,5 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.ValidationContextProvider = exports.ValidationContext = void 0;
7
7
  var _react = require("react");
8
+ /**
9
+ * The ValidationContext is used to pass down the `skipValidation` flag from the NBMRenderer
10
+ * to any ReactRenderer nested inside a Legacy Content Macro. This allows the nested ReactRenderer
11
+ * to bypass the ADF schema validation when necessary.
12
+ */
8
13
  var ValidationContext = exports.ValidationContext = /*#__PURE__*/(0, _react.createContext)(null);
9
14
  var ValidationContextProvider = exports.ValidationContextProvider = ValidationContext.Provider;
@@ -65,7 +65,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
65
65
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
66
66
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
67
67
  var packageName = "@atlaskit/renderer";
68
- var packageVersion = "113.0.1";
68
+ var packageVersion = "113.0.3";
69
69
  var setAsQueryContainerStyles = (0, _react2.css)({
70
70
  containerName: 'ak-renderer-wrapper',
71
71
  containerType: 'inline-size',
@@ -1,3 +1,8 @@
1
1
  import { createContext } from 'react';
2
+ /**
3
+ * The ValidationContext is used to pass down the `skipValidation` flag from the NBMRenderer
4
+ * to any ReactRenderer nested inside a Legacy Content Macro. This allows the nested ReactRenderer
5
+ * to bypass the ADF schema validation when necessary.
6
+ */
2
7
  export const ValidationContext = /*#__PURE__*/createContext(null);
3
8
  export const ValidationContextProvider = ValidationContext.Provider;
@@ -46,7 +46,7 @@ import { ValidationContext } from './ValidationContext';
46
46
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
47
47
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
48
48
  const packageName = "@atlaskit/renderer";
49
- const packageVersion = "113.0.1";
49
+ const packageVersion = "113.0.3";
50
50
  const setAsQueryContainerStyles = css({
51
51
  containerName: 'ak-renderer-wrapper',
52
52
  containerType: 'inline-size',
@@ -1,3 +1,8 @@
1
1
  import { createContext } from 'react';
2
+ /**
3
+ * The ValidationContext is used to pass down the `skipValidation` flag from the NBMRenderer
4
+ * to any ReactRenderer nested inside a Legacy Content Macro. This allows the nested ReactRenderer
5
+ * to bypass the ADF schema validation when necessary.
6
+ */
2
7
  export var ValidationContext = /*#__PURE__*/createContext(null);
3
8
  export var ValidationContextProvider = ValidationContext.Provider;
@@ -55,7 +55,7 @@ import { ValidationContext } from './ValidationContext';
55
55
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
56
56
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
57
57
  var packageName = "@atlaskit/renderer";
58
- var packageVersion = "113.0.1";
58
+ var packageVersion = "113.0.3";
59
59
  var setAsQueryContainerStyles = css({
60
60
  containerName: 'ak-renderer-wrapper',
61
61
  containerType: 'inline-size',
@@ -2,6 +2,11 @@
2
2
  type ValidationContextType = {
3
3
  skipValidation: boolean;
4
4
  } | null;
5
+ /**
6
+ * The ValidationContext is used to pass down the `skipValidation` flag from the NBMRenderer
7
+ * to any ReactRenderer nested inside a Legacy Content Macro. This allows the nested ReactRenderer
8
+ * to bypass the ADF schema validation when necessary.
9
+ */
5
10
  export declare const ValidationContext: import("react").Context<ValidationContextType>;
6
11
  export declare const ValidationContextProvider: import("react").Provider<ValidationContextType>;
7
12
  export {};
@@ -2,6 +2,11 @@
2
2
  type ValidationContextType = {
3
3
  skipValidation: boolean;
4
4
  } | null;
5
+ /**
6
+ * The ValidationContext is used to pass down the `skipValidation` flag from the NBMRenderer
7
+ * to any ReactRenderer nested inside a Legacy Content Macro. This allows the nested ReactRenderer
8
+ * to bypass the ADF schema validation when necessary.
9
+ */
5
10
  export declare const ValidationContext: import("react").Context<ValidationContextType>;
6
11
  export declare const ValidationContextProvider: import("react").Provider<ValidationContextType>;
7
12
  export {};
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/messages.js",
4
4
  "module": "../dist/esm/messages.js",
5
5
  "module:es2019": "../dist/es2019/messages.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/messages.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "113.0.1",
3
+ "version": "113.0.3",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,7 +12,9 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "sideEffects": false,
15
+ "sideEffects": [
16
+ "*.compiled.css"
17
+ ],
16
18
  "atlaskit:src": "src/index.ts",
17
19
  "atlassian": {
18
20
  "team": "Editor",
@@ -29,7 +31,7 @@
29
31
  "@atlaskit/analytics-next": "^11.0.0",
30
32
  "@atlaskit/button": "^21.1.0",
31
33
  "@atlaskit/code": "^16.0.0",
32
- "@atlaskit/editor-common": "^100.2.0",
34
+ "@atlaskit/editor-common": "^100.4.0",
33
35
  "@atlaskit/editor-json-transformer": "^8.23.0",
34
36
  "@atlaskit/editor-palette": "2.0.0",
35
37
  "@atlaskit/editor-prosemirror": "7.0.0",
@@ -44,13 +46,13 @@
44
46
  "@atlaskit/media-common": "^12.0.0",
45
47
  "@atlaskit/media-filmstrip": "^49.0.0",
46
48
  "@atlaskit/media-ui": "^28.0.0",
47
- "@atlaskit/media-viewer": "^51.0.0",
49
+ "@atlaskit/media-viewer": "^52.0.0",
48
50
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
51
  "@atlaskit/smart-card": "^35.1.0",
50
52
  "@atlaskit/status": "^3.0.0",
51
53
  "@atlaskit/task-decision": "^19.0.0",
52
54
  "@atlaskit/theme": "^17.0.0",
53
- "@atlaskit/tmp-editor-statsig": "^3.2.0",
55
+ "@atlaskit/tmp-editor-statsig": "^3.3.0",
54
56
  "@atlaskit/tokens": "^4.2.0",
55
57
  "@atlaskit/tooltip": "^20.0.0",
56
58
  "@atlaskit/visually-hidden": "^2.0.0",
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/render-document.js",
4
4
  "module": "../dist/esm/render-document.js",
5
5
  "module:es2019": "../dist/es2019/render-document.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/render-document.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/renderer-context.js",
4
4
  "module": "../dist/esm/renderer-context.js",
5
5
  "module:es2019": "../dist/es2019/renderer-context.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/renderer-context.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/serializer.js",
4
4
  "module": "../dist/esm/serializer.js",
5
5
  "module:es2019": "../dist/es2019/serializer.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/serializer.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/text-serializer.js",
4
4
  "module": "../dist/esm/text-serializer.js",
5
5
  "module:es2019": "../dist/es2019/text-serializer.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/text-serializer.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/use-feature-flags.js",
4
4
  "module": "../dist/esm/use-feature-flags.js",
5
5
  "module:es2019": "../dist/es2019/use-feature-flags.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/use-feature-flags.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/utils.js",
4
4
  "module": "../dist/esm/utils.js",
5
5
  "module:es2019": "../dist/es2019/utils.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/utils.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {