@atlaskit/react-compiler-gating 0.2.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 ADDED
@@ -0,0 +1,34 @@
1
+ # @atlaskit/react-compiler-gating
2
+
3
+ ## 0.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`780f3cf64aa2a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/780f3cf64aa2a) -
8
+ Add license file to the package
9
+ - [`6a852c693020a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6a852c693020a) -
10
+ Rename `@atlassian/react-compiler-gating` to `@atlaskit/react-compiler-gating` and make it
11
+ publishable to the public npm registry. This is a mechanical scope rename with no runtime
12
+ behaviour change; all consumers and the parcel React Compiler registry are updated to the new
13
+ package name.
14
+
15
+ ## 0.2.2
16
+
17
+ ### Patch Changes
18
+
19
+ - [`ee28cf33718b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee28cf33718b0) -
20
+ Add @atlaskit/react-compiler-gating as a runtime dependency to enable React Compiler platform
21
+ gating.
22
+
23
+ ## 0.2.1
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
29
+ ## 0.2.0
30
+
31
+ ### Minor Changes
32
+
33
+ - [`53d4cf2641b7a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/53d4cf2641b7a) -
34
+ Add gated logic to provide react-compiler support for platform packages
package/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2026 Atlassian Pty Ltd
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -0,0 +1,25 @@
1
+ {
2
+ "extends": "../../../../tsconfig.local-consumption.json",
3
+ "include": [
4
+ "../src/**/*.ts",
5
+ "../src/**/*.tsx"
6
+ ],
7
+ "exclude": [
8
+ "../src/**/__tests__/*",
9
+ "../src/**/*.test.*",
10
+ "../src/**/test.*",
11
+ "../src/**/mocks/*",
12
+ "../src/**/examples.*"
13
+ ],
14
+ "compilerOptions": {
15
+ "outDir": "../../../../../confluence/tsDist/@atlaskit__react-compiler-gating",
16
+ "rootDir": "../",
17
+ "composite": true,
18
+ "noCheck": true
19
+ },
20
+ "references": [
21
+ {
22
+ "path": "../../../measurement/feature-gate-js-client/afm-cc/tsconfig.json"
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "extends": "../../../../tsconfig.local-consumption.json",
3
+ "include": [
4
+ "../src/**/*.ts",
5
+ "../src/**/*.tsx"
6
+ ],
7
+ "exclude": [
8
+ "../src/**/__tests__/*",
9
+ "../src/**/*.test.*",
10
+ "../src/**/test.*",
11
+ "../src/**/mocks/*",
12
+ "../src/**/examples.*"
13
+ ],
14
+ "compilerOptions": {
15
+ "outDir": "../../../../../tsDist/@atlaskit__react-compiler-gating/app",
16
+ "rootDir": "../",
17
+ "composite": true,
18
+ "noCheck": true
19
+ },
20
+ "references": [
21
+ {
22
+ "path": "../../../measurement/feature-gate-js-client/afm-products/tsconfig.json"
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "isReactCompilerActivePlatform", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _isReactCompilerActivePlatform.isReactCompilerActivePlatform;
10
+ }
11
+ });
12
+ var _isReactCompilerActivePlatform = require("./isReactCompilerActivePlatform");
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.isReactCompilerActivePlatform = isReactCompilerActivePlatform;
8
+ var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
9
+ /**
10
+ * Returns true if the React Compiler runtime is active for platform packages.
11
+ *
12
+ * Controlled by the 'confluence_enable_react-compiler-runtime-platform' experiment in Switcheroo.
13
+ */
14
+ function isReactCompilerActivePlatform() {
15
+ if (_featureGateJsClient.default.getExperimentValue('confluence_enable_react-compiler-runtime-platform', 'isEnabled', false)) {
16
+ return true;
17
+ }
18
+ return false;
19
+ }
@@ -0,0 +1 @@
1
+ export { isReactCompilerActivePlatform } from './isReactCompilerActivePlatform';
@@ -0,0 +1,13 @@
1
+ import FeatureGates from '@atlaskit/feature-gate-js-client';
2
+
3
+ /**
4
+ * Returns true if the React Compiler runtime is active for platform packages.
5
+ *
6
+ * Controlled by the 'confluence_enable_react-compiler-runtime-platform' experiment in Switcheroo.
7
+ */
8
+ export function isReactCompilerActivePlatform() {
9
+ if (FeatureGates.getExperimentValue('confluence_enable_react-compiler-runtime-platform', 'isEnabled', false)) {
10
+ return true;
11
+ }
12
+ return false;
13
+ }
@@ -0,0 +1 @@
1
+ export { isReactCompilerActivePlatform } from './isReactCompilerActivePlatform';
@@ -0,0 +1,13 @@
1
+ import FeatureGates from '@atlaskit/feature-gate-js-client';
2
+
3
+ /**
4
+ * Returns true if the React Compiler runtime is active for platform packages.
5
+ *
6
+ * Controlled by the 'confluence_enable_react-compiler-runtime-platform' experiment in Switcheroo.
7
+ */
8
+ export function isReactCompilerActivePlatform() {
9
+ if (FeatureGates.getExperimentValue('confluence_enable_react-compiler-runtime-platform', 'isEnabled', false)) {
10
+ return true;
11
+ }
12
+ return false;
13
+ }
@@ -0,0 +1 @@
1
+ export { isReactCompilerActivePlatform } from './isReactCompilerActivePlatform';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns true if the React Compiler runtime is active for platform packages.
3
+ *
4
+ * Controlled by the 'confluence_enable_react-compiler-runtime-platform' experiment in Switcheroo.
5
+ */
6
+ export declare function isReactCompilerActivePlatform(): boolean;
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@atlaskit/react-compiler-gating",
3
+ "version": "0.2.3",
4
+ "description": "Runtime gating for enabling the React Compiler in Atlassian platform packages.",
5
+ "author": "Atlassian Pty Ltd",
6
+ "license": "Apache-2.0",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "atlassian": {
11
+ "team": "DST - A11Y Tooling"
12
+ },
13
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
14
+ "main": "dist/cjs/index.js",
15
+ "module": "dist/esm/index.js",
16
+ "module:es2019": "dist/es2019/index.js",
17
+ "types": "dist/types/index.d.ts",
18
+ "atlaskit:src": "src/index.ts",
19
+ "dependencies": {
20
+ "@atlaskit/feature-gate-js-client": "^6.0.0",
21
+ "@babel/runtime": "^7.0.0"
22
+ }
23
+ }
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export { isReactCompilerActivePlatform } from './isReactCompilerActivePlatform';
@@ -0,0 +1,19 @@
1
+ import FeatureGates from '@atlaskit/feature-gate-js-client';
2
+
3
+ /**
4
+ * Returns true if the React Compiler runtime is active for platform packages.
5
+ *
6
+ * Controlled by the 'confluence_enable_react-compiler-runtime-platform' experiment in Switcheroo.
7
+ */
8
+ export function isReactCompilerActivePlatform(): boolean {
9
+ if (
10
+ FeatureGates.getExperimentValue(
11
+ 'confluence_enable_react-compiler-runtime-platform',
12
+ 'isEnabled',
13
+ false,
14
+ )
15
+ ) {
16
+ return true;
17
+ }
18
+ return false;
19
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "extends": "../../../tsconfig.base.json",
3
+ "include": ["./src/**/*.ts", "./src/**/*.tsx"],
4
+ "exclude": [
5
+ "**/docs/**/*",
6
+ "**/__tests__/**/*",
7
+ "**/vr-tests/**/*",
8
+ "**/__perf__/**/*",
9
+ "**/*.test.*",
10
+ "**/test.*",
11
+ "**/test-*",
12
+ "**/examples.ts",
13
+ "**/examples.tsx",
14
+ "**/examples/*.ts",
15
+ "**/examples/*.tsx",
16
+ "**/examples/**/*.ts",
17
+ "**/examples/**/*.tsx",
18
+ "**/storybook/**/*",
19
+ "**/constellation/**/*",
20
+ "../src/**/*.stories.*",
21
+ "../src/**/stories/*",
22
+ "../src/**/stories/**/*",
23
+ ".storybook/*",
24
+ "./__fixtures__/**/*",
25
+ "./__generated__/**/*",
26
+ "./mocks/**/*",
27
+ "./__mocks__/**/*",
28
+ "**/mock.*",
29
+ "**/codemods/**/*.ts",
30
+ "**/codemods/**/*.tsx"
31
+ ],
32
+ "compilerOptions": {
33
+ "composite": true,
34
+ "outDir": "../../../tsDist/@atlaskit__react-compiler-gating/app",
35
+ "isolatedDeclarations": true
36
+ },
37
+ "references": [
38
+ {
39
+ "path": "../../measurement/feature-gate-js-client/tsconfig.app.json"
40
+ }
41
+ ]
42
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "extends": "../../../tsconfig.base.json",
3
+ "include": [
4
+ "**/docs/**/*",
5
+ "**/__tests__/**/*",
6
+ "**/vr-tests/**/*",
7
+ "**/__perf__/**/*",
8
+ "**/*.test.*",
9
+ "**/test.*",
10
+ "**/test-*",
11
+ "**/examples.ts",
12
+ "**/examples.tsx",
13
+ "**/examples/*.ts",
14
+ "**/examples/*.tsx",
15
+ "**/examples/**/*.ts",
16
+ "**/examples/**/*.tsx",
17
+ "**/storybook/**/*",
18
+ "**/constellation/**/*",
19
+ "../src/**/*.stories.*",
20
+ "../src/**/stories/*",
21
+ "../src/**/stories/**/*",
22
+ ".storybook/*",
23
+ "./__fixtures__/**/*",
24
+ "./__generated__/**/*",
25
+ "./mocks/**/*",
26
+ "./__mocks__/**/*",
27
+ "**/mock.*",
28
+ "**/codemods/**/*.ts",
29
+ "**/codemods/**/*.tsx"
30
+ ],
31
+ "exclude": ["./dist/**/*", "./build/**/*", "./node_modules/**/*"],
32
+ "compilerOptions": {
33
+ "composite": true,
34
+ "outDir": "../../../tsDist/@atlaskit__react-compiler-gating/dev",
35
+ "isolatedDeclarations": true
36
+ },
37
+ "references": [
38
+ {
39
+ "path": "./tsconfig.app.json"
40
+ }
41
+ ]
42
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "include": [
4
+ "src/**/*.ts",
5
+ "src/**/*.tsx"
6
+ ]
7
+ }