@react-stately/flags 3.1.1 → 3.2.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/dist/import.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ import {enableTableNestedRows as $e75b81e73bae9578$re_export$enableTableNestedRows, tableNestedRows as $e75b81e73bae9578$re_export$tableNestedRows, enableShadowDOM as $e75b81e73bae9578$re_export$enableShadowDOM, shadowDOM as $e75b81e73bae9578$re_export$shadowDOM} from "react-stately/private/flags/flags";
2
+
1
3
  /*
2
4
  * Copyright 2023 Adobe. All rights reserved.
3
5
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -8,21 +10,8 @@
8
10
  * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
11
  * OF ANY KIND, either express or implied. See the License for the specific language
10
12
  * governing permissions and limitations under the License.
11
- */ let $f4e2df6bd15f8569$var$_tableNestedRows = false;
12
- let $f4e2df6bd15f8569$var$_shadowDOM = false;
13
- function $f4e2df6bd15f8569$export$d9d8a0f82de49530() {
14
- $f4e2df6bd15f8569$var$_tableNestedRows = true;
15
- }
16
- function $f4e2df6bd15f8569$export$1b00cb14a96194e6() {
17
- return $f4e2df6bd15f8569$var$_tableNestedRows;
18
- }
19
- function $f4e2df6bd15f8569$export$12b151d9882e9985() {
20
- $f4e2df6bd15f8569$var$_shadowDOM = true;
21
- }
22
- function $f4e2df6bd15f8569$export$98658e8c59125e6a() {
23
- return $f4e2df6bd15f8569$var$_shadowDOM;
24
- }
13
+ */
25
14
 
26
15
 
27
- export {$f4e2df6bd15f8569$export$d9d8a0f82de49530 as enableTableNestedRows, $f4e2df6bd15f8569$export$1b00cb14a96194e6 as tableNestedRows, $f4e2df6bd15f8569$export$12b151d9882e9985 as enableShadowDOM, $f4e2df6bd15f8569$export$98658e8c59125e6a as shadowDOM};
16
+ export {$e75b81e73bae9578$re_export$enableTableNestedRows as enableTableNestedRows, $e75b81e73bae9578$re_export$tableNestedRows as tableNestedRows, $e75b81e73bae9578$re_export$enableShadowDOM as enableShadowDOM, $e75b81e73bae9578$re_export$shadowDOM as shadowDOM};
28
17
  //# sourceMappingURL=module.js.map
package/dist/main.js CHANGED
@@ -1,12 +1,14 @@
1
+ var $264no$reactstatelyprivateflagsflags = require("react-stately/private/flags/flags");
2
+
1
3
 
2
4
  function $parcel$export(e, n, v, s) {
3
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
6
  }
5
7
 
6
- $parcel$export(module.exports, "enableTableNestedRows", () => $b8649bdbb43830e8$export$d9d8a0f82de49530);
7
- $parcel$export(module.exports, "tableNestedRows", () => $b8649bdbb43830e8$export$1b00cb14a96194e6);
8
- $parcel$export(module.exports, "enableShadowDOM", () => $b8649bdbb43830e8$export$12b151d9882e9985);
9
- $parcel$export(module.exports, "shadowDOM", () => $b8649bdbb43830e8$export$98658e8c59125e6a);
8
+ $parcel$export(module.exports, "enableTableNestedRows", function () { return $264no$reactstatelyprivateflagsflags.enableTableNestedRows; });
9
+ $parcel$export(module.exports, "tableNestedRows", function () { return $264no$reactstatelyprivateflagsflags.tableNestedRows; });
10
+ $parcel$export(module.exports, "enableShadowDOM", function () { return $264no$reactstatelyprivateflagsflags.enableShadowDOM; });
11
+ $parcel$export(module.exports, "shadowDOM", function () { return $264no$reactstatelyprivateflagsflags.shadowDOM; });
10
12
  /*
11
13
  * Copyright 2023 Adobe. All rights reserved.
12
14
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -17,20 +19,7 @@ $parcel$export(module.exports, "shadowDOM", () => $b8649bdbb43830e8$export$98658
17
19
  * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
18
20
  * OF ANY KIND, either express or implied. See the License for the specific language
19
21
  * governing permissions and limitations under the License.
20
- */ let $b8649bdbb43830e8$var$_tableNestedRows = false;
21
- let $b8649bdbb43830e8$var$_shadowDOM = false;
22
- function $b8649bdbb43830e8$export$d9d8a0f82de49530() {
23
- $b8649bdbb43830e8$var$_tableNestedRows = true;
24
- }
25
- function $b8649bdbb43830e8$export$1b00cb14a96194e6() {
26
- return $b8649bdbb43830e8$var$_tableNestedRows;
27
- }
28
- function $b8649bdbb43830e8$export$12b151d9882e9985() {
29
- $b8649bdbb43830e8$var$_shadowDOM = true;
30
- }
31
- function $b8649bdbb43830e8$export$98658e8c59125e6a() {
32
- return $b8649bdbb43830e8$var$_shadowDOM;
33
- }
22
+ */
34
23
 
35
24
 
36
25
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,IAAI,yCAAmB;AACvB,IAAI,mCAAa;AAEV,SAAS;IACd,yCAAmB;AACrB;AAEO,SAAS;IACd,OAAO;AACT;AAEO,SAAS;IACd,mCAAa;AACf;AAEO,SAAS;IACd,OAAO;AACT","sources":["packages/@react-stately/flags/src/index.ts"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nlet _tableNestedRows = false;\nlet _shadowDOM = false;\n\nexport function enableTableNestedRows(): void {\n _tableNestedRows = true;\n}\n\nexport function tableNestedRows(): boolean {\n return _tableNestedRows;\n}\n\nexport function enableShadowDOM(): void {\n _shadowDOM = true;\n}\n\nexport function shadowDOM(): boolean {\n return _shadowDOM;\n}\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-stately/flags/src/index.ts"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {enableTableNestedRows, tableNestedRows, enableShadowDOM, shadowDOM} from 'react-stately/private/flags/flags';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,3 +1,5 @@
1
+ import {enableTableNestedRows as $e75b81e73bae9578$re_export$enableTableNestedRows, tableNestedRows as $e75b81e73bae9578$re_export$tableNestedRows, enableShadowDOM as $e75b81e73bae9578$re_export$enableShadowDOM, shadowDOM as $e75b81e73bae9578$re_export$shadowDOM} from "react-stately/private/flags/flags";
2
+
1
3
  /*
2
4
  * Copyright 2023 Adobe. All rights reserved.
3
5
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -8,21 +10,8 @@
8
10
  * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
11
  * OF ANY KIND, either express or implied. See the License for the specific language
10
12
  * governing permissions and limitations under the License.
11
- */ let $f4e2df6bd15f8569$var$_tableNestedRows = false;
12
- let $f4e2df6bd15f8569$var$_shadowDOM = false;
13
- function $f4e2df6bd15f8569$export$d9d8a0f82de49530() {
14
- $f4e2df6bd15f8569$var$_tableNestedRows = true;
15
- }
16
- function $f4e2df6bd15f8569$export$1b00cb14a96194e6() {
17
- return $f4e2df6bd15f8569$var$_tableNestedRows;
18
- }
19
- function $f4e2df6bd15f8569$export$12b151d9882e9985() {
20
- $f4e2df6bd15f8569$var$_shadowDOM = true;
21
- }
22
- function $f4e2df6bd15f8569$export$98658e8c59125e6a() {
23
- return $f4e2df6bd15f8569$var$_shadowDOM;
24
- }
13
+ */
25
14
 
26
15
 
27
- export {$f4e2df6bd15f8569$export$d9d8a0f82de49530 as enableTableNestedRows, $f4e2df6bd15f8569$export$1b00cb14a96194e6 as tableNestedRows, $f4e2df6bd15f8569$export$12b151d9882e9985 as enableShadowDOM, $f4e2df6bd15f8569$export$98658e8c59125e6a as shadowDOM};
16
+ export {$e75b81e73bae9578$re_export$enableTableNestedRows as enableTableNestedRows, $e75b81e73bae9578$re_export$tableNestedRows as tableNestedRows, $e75b81e73bae9578$re_export$enableShadowDOM as enableShadowDOM, $e75b81e73bae9578$re_export$shadowDOM as shadowDOM};
28
17
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"mappings":"AAAA;;;;;;;;;;CAUC,GAED,IAAI,yCAAmB;AACvB,IAAI,mCAAa;AAEV,SAAS;IACd,yCAAmB;AACrB;AAEO,SAAS;IACd,OAAO;AACT;AAEO,SAAS;IACd,mCAAa;AACf;AAEO,SAAS;IACd,OAAO;AACT","sources":["packages/@react-stately/flags/src/index.ts"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nlet _tableNestedRows = false;\nlet _shadowDOM = false;\n\nexport function enableTableNestedRows(): void {\n _tableNestedRows = true;\n}\n\nexport function tableNestedRows(): boolean {\n return _tableNestedRows;\n}\n\nexport function enableShadowDOM(): void {\n _shadowDOM = true;\n}\n\nexport function shadowDOM(): boolean {\n return _shadowDOM;\n}\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-stately/flags/src/index.ts"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {enableTableNestedRows, tableNestedRows, enableShadowDOM, shadowDOM} from 'react-stately/private/flags/flags';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1 @@
1
+ export { enableTableNestedRows, tableNestedRows, enableShadowDOM, shadowDOM } from 'react-stately/private/flags/flags';
package/package.json CHANGED
@@ -1,15 +1,19 @@
1
1
  {
2
2
  "name": "@react-stately/flags",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/module.js",
8
- "types": "dist/types.d.ts",
8
+ "types": "dist/types/src/index.d.ts",
9
9
  "exports": {
10
- "types": "./dist/types.d.ts",
11
- "import": "./dist/import.mjs",
12
- "require": "./dist/main.js"
10
+ ".": {
11
+ "source": "./src/index.ts",
12
+ "types": "./dist/types/src/index.d.ts",
13
+ "import": "./dist/import.mjs",
14
+ "require": "./dist/main.js"
15
+ },
16
+ "./package.json": "./package.json"
13
17
  },
14
18
  "source": "src/index.ts",
15
19
  "files": [
@@ -22,10 +26,18 @@
22
26
  "url": "https://github.com/adobe/react-spectrum"
23
27
  },
24
28
  "dependencies": {
25
- "@swc/helpers": "^0.5.0"
29
+ "@swc/helpers": "^0.5.0",
30
+ "react-stately": "3.46.0"
26
31
  },
27
32
  "publishConfig": {
28
33
  "access": "public"
29
34
  },
30
- "gitHead": "9b66d270572f482948afee95622a85cdf68ed408"
35
+ "targets": {
36
+ "types": false
37
+ },
38
+ "peerDependencies": {
39
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
40
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
41
+ },
42
+ "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
31
43
  }
package/src/index.ts CHANGED
@@ -10,21 +10,4 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- let _tableNestedRows = false;
14
- let _shadowDOM = false;
15
-
16
- export function enableTableNestedRows(): void {
17
- _tableNestedRows = true;
18
- }
19
-
20
- export function tableNestedRows(): boolean {
21
- return _tableNestedRows;
22
- }
23
-
24
- export function enableShadowDOM(): void {
25
- _shadowDOM = true;
26
- }
27
-
28
- export function shadowDOM(): boolean {
29
- return _shadowDOM;
30
- }
13
+ export {enableTableNestedRows, tableNestedRows, enableShadowDOM, shadowDOM} from 'react-stately/private/flags/flags';
package/dist/types.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export function enableTableNestedRows(): void;
2
- export function tableNestedRows(): boolean;
3
- export function enableShadowDOM(): void;
4
- export function shadowDOM(): boolean;
5
-
6
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"mappings":"AAeA,yCAAyC,IAAI,CAE5C;AAED,mCAAmC,OAAO,CAEzC;AAED,mCAAmC,IAAI,CAEtC;AAED,6BAA6B,OAAO,CAEnC","sources":["packages/@react-stately/flags/src/packages/@react-stately/flags/src/index.ts","packages/@react-stately/flags/src/index.ts"],"sourcesContent":[null,"/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nlet _tableNestedRows = false;\nlet _shadowDOM = false;\n\nexport function enableTableNestedRows(): void {\n _tableNestedRows = true;\n}\n\nexport function tableNestedRows(): boolean {\n return _tableNestedRows;\n}\n\nexport function enableShadowDOM(): void {\n _shadowDOM = true;\n}\n\nexport function shadowDOM(): boolean {\n return _shadowDOM;\n}\n"],"names":[],"version":3,"file":"types.d.ts.map"}