@deque/cauldron-react 7.1.0-canary.d4fda8b7 → 7.1.0-canary.d6d44789

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.
Files changed (106) hide show
  1. package/lib/add-user.js +1 -1
  2. package/lib/arrow-circle.js +1 -1
  3. package/lib/arrow.js +1 -1
  4. package/lib/arrows-alt.js +1 -1
  5. package/lib/bolt.js +1 -1
  6. package/lib/broken-image.js +1 -1
  7. package/lib/caution.js +1 -1
  8. package/lib/check-circle.js +1 -1
  9. package/lib/check-shield.js +1 -1
  10. package/lib/check-solid.js +1 -1
  11. package/lib/check.js +1 -1
  12. package/lib/checkbox-checked.js +1 -1
  13. package/lib/checkbox-unchecked.js +1 -1
  14. package/lib/chevron-double.js +1 -1
  15. package/lib/chevron.js +1 -1
  16. package/lib/clipboard.js +1 -1
  17. package/lib/clock.js +1 -1
  18. package/lib/close.js +1 -1
  19. package/lib/code.js +1 -1
  20. package/lib/components/Accordion/Accordion.d.ts +1 -1
  21. package/lib/components/ActionList/ActionList.d.ts +1 -1
  22. package/lib/components/ActionMenu/ActionMenu.d.ts +14 -8
  23. package/lib/components/AnchoredOverlay/index.d.ts +2 -2
  24. package/lib/components/ClickOutsideListener/index.d.ts +1 -1
  25. package/lib/components/Combobox/Combobox.d.ts +1 -1
  26. package/lib/components/Dialog/DialogContext.d.ts +1 -1
  27. package/lib/components/Dialog/index.d.ts +1 -1
  28. package/lib/components/Drawer/index.d.ts +1 -1
  29. package/lib/components/ExpandCollapsePanel/ExpandCollapsePanel.d.ts +1 -1
  30. package/lib/components/Listbox/Listbox.d.ts +7 -2
  31. package/lib/components/Popover/index.d.ts +2 -2
  32. package/lib/components/Table/TableContext.d.ts +1 -1
  33. package/lib/components/Tabs/Tab.d.ts +1 -1
  34. package/lib/components/Tooltip/index.d.ts +2 -2
  35. package/lib/components/TreeView/helpers.d.ts +33 -0
  36. package/lib/components/TreeView/index.d.ts +6 -0
  37. package/lib/components/TreeView/types.d.ts +3 -0
  38. package/lib/copy.js +1 -1
  39. package/lib/download.js +1 -1
  40. package/lib/dropper.js +1 -1
  41. package/lib/exchange.js +1 -1
  42. package/lib/export-solid.js +1 -1
  43. package/lib/external-link.js +1 -1
  44. package/lib/eye.js +1 -1
  45. package/lib/filter.js +1 -1
  46. package/lib/flag.js +1 -1
  47. package/lib/gears.js +1 -1
  48. package/lib/github.js +1 -1
  49. package/lib/grid.js +1 -1
  50. package/lib/hamburger-menu.js +1 -1
  51. package/lib/hashtag.js +1 -1
  52. package/lib/highlight.js +1 -1
  53. package/lib/images.js +1 -1
  54. package/lib/index.js +252 -97
  55. package/lib/info-circle-alt.js +1 -1
  56. package/lib/info-circle.js +1 -1
  57. package/lib/info-square.js +1 -1
  58. package/lib/kabob.js +1 -1
  59. package/lib/link.js +1 -1
  60. package/lib/linkedin.js +1 -1
  61. package/lib/list.js +1 -1
  62. package/lib/lock.js +1 -1
  63. package/lib/magnifying-glass.js +1 -1
  64. package/lib/menu.js +1 -1
  65. package/lib/minus.js +1 -1
  66. package/lib/new-releases.js +1 -1
  67. package/lib/new.js +1 -1
  68. package/lib/no.js +1 -1
  69. package/lib/pause.js +1 -1
  70. package/lib/pencil.js +1 -1
  71. package/lib/person-running.js +1 -1
  72. package/lib/play.js +1 -1
  73. package/lib/plus.js +1 -1
  74. package/lib/question-circle-alt.js +1 -1
  75. package/lib/question-circle.js +1 -1
  76. package/lib/radio-checked.js +1 -1
  77. package/lib/radio-unchecked.js +1 -1
  78. package/lib/recycle-square.js +1 -1
  79. package/lib/recycle.js +1 -1
  80. package/lib/resend.js +1 -1
  81. package/lib/robot.js +1 -1
  82. package/lib/run-again.js +1 -1
  83. package/lib/save.js +1 -1
  84. package/lib/share-nodes.js +1 -1
  85. package/lib/share.js +1 -1
  86. package/lib/sort-triangle.js +1 -1
  87. package/lib/sort.js +1 -1
  88. package/lib/star.js +1 -1
  89. package/lib/step-back.js +1 -1
  90. package/lib/step-forward.js +1 -1
  91. package/lib/sun.js +1 -1
  92. package/lib/table-sort-ascending.js +1 -1
  93. package/lib/table-sort-descending.js +1 -1
  94. package/lib/tag.js +1 -1
  95. package/lib/target.js +1 -1
  96. package/lib/trash.js +1 -1
  97. package/lib/triangle.js +1 -1
  98. package/lib/twitter.js +1 -1
  99. package/lib/types.d.ts +1 -1
  100. package/lib/upload.js +1 -1
  101. package/lib/utils/getChildRef.d.ts +2 -0
  102. package/lib/utils/polymorphicComponent.d.ts +1 -1
  103. package/lib/utils/useFocusTrap.d.ts +1 -1
  104. package/lib/utils/useMnemonics.d.ts +2 -2
  105. package/lib/utils/useSharedRef.d.ts +3 -3
  106. package/package.json +28 -27
@@ -1,7 +1,7 @@
1
- import { MutableRefObject, Ref } from 'react';
1
+ import { RefObject, Ref } from 'react';
2
2
  /**
3
3
  * When a component needs to track an internal ref on a component that has a
4
- * forwarded ref, useSharedRef will return a MutableRefObject<T> that will
4
+ * forwarded ref, useSharedRef will return a RefObject<T | null> that will
5
5
  * correctly invoke the parent ref as well providing an internal ref.
6
6
  *
7
7
  * @example
@@ -13,4 +13,4 @@ import { MutableRefObject, Ref } from 'react';
13
13
  * return (<div ref={internalRef}>...</div>)
14
14
  * })
15
15
  */
16
- export default function useSharedRef<T>(ref: Ref<T>): MutableRefObject<T>;
16
+ export default function useSharedRef<T>(ref: Ref<T>): RefObject<T | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "7.1.0-canary.d4fda8b7",
3
+ "version": "7.1.0-canary.d6d44789",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Fully accessible react components library for Deque Cauldron",
6
6
  "homepage": "https://cauldron.dequelabs.com/",
@@ -13,34 +13,23 @@
13
13
  "files": [
14
14
  "lib/"
15
15
  ],
16
- "scripts": {
17
- "build": "yarn build:lib && yarn build:css",
18
- "prebuild:lib": "node scripts/buildIconTypes.js",
19
- "build:lib": "rollup -c",
20
- "build:css": "postcss --output=lib/cauldron.css src/index.css",
21
- "dev": "concurrently 'yarn build:css --watch' 'rollup -c --watch'",
22
- "prepublishOnly": "NODE_ENV=production yarn build",
23
- "test": "jest --maxWorkers=1 --coverage",
24
- "figma:parse": "figma connect parse",
25
- "figma:publish": "figma connect publish",
26
- "figma:publish:dry-run": "figma connect publish --dry-run"
27
- },
28
16
  "dependencies": {
17
+ "@floating-ui/dom": "^1.0.0",
29
18
  "@floating-ui/react-dom": "^2.1.2",
30
19
  "classnames": "^2.2.6",
31
20
  "focusable": "^2.3.0",
32
21
  "keyname": "^0.1.0",
33
22
  "react-aria-components": "^1.13.0",
34
23
  "react-id-generator": "^3.0.1",
35
- "react-syntax-highlighter": "^16.0.1",
24
+ "react-syntax-highlighter": "^16.1.1",
36
25
  "tslib": "^2.4.0"
37
26
  },
38
27
  "devDependencies": {
39
- "@babel/core": "^7.22.10",
40
- "@babel/plugin-proposal-export-default-from": "^7.22.5",
41
- "@babel/preset-env": "^7.22.10",
42
- "@babel/preset-react": "^7.22.5",
43
- "@babel/preset-typescript": "^7.22.5",
28
+ "@babel/core": "^7.29.7",
29
+ "@babel/plugin-proposal-export-default-from": "^7.29.7",
30
+ "@babel/preset-env": "^7.29.7",
31
+ "@babel/preset-react": "^7.29.7",
32
+ "@babel/preset-typescript": "^7.29.7",
44
33
  "@figma/code-connect": "^1.4.5",
45
34
  "@rollup/plugin-commonjs": "^14.0.0",
46
35
  "@rollup/plugin-dynamic-import-vars": "^1.4.2",
@@ -54,12 +43,12 @@
54
43
  "@types/jest": "^29.5.11",
55
44
  "@types/jest-axe": "^3.5.4",
56
45
  "@types/node": "^17.0.42",
57
- "@types/react": "^18.0.12",
58
- "@types/react-dom": "^18.0.5",
46
+ "@types/react": "^19.0.0",
47
+ "@types/react-dom": "^19.0.0",
59
48
  "@types/react-syntax-highlighter": "^15.5.13",
60
49
  "@types/sinon": "^10",
61
50
  "autoprefixer": "^9.7.6",
62
- "babel-plugin-module-resolver": "^4.0.0",
51
+ "babel-plugin-module-resolver": "^5.0.3",
63
52
  "babel-plugin-transform-export-extensions": "^6.22.0",
64
53
  "concurrently": "^5.3.0",
65
54
  "jest": "^29.7.0",
@@ -70,8 +59,8 @@
70
59
  "postcss-import": "^12.0.1",
71
60
  "postcss-loader": "^3.0.0",
72
61
  "prop-types": "^15.8.1",
73
- "react": "^18",
74
- "react-dom": "^18",
62
+ "react": "^19",
63
+ "react-dom": "^19",
75
64
  "rollup": "^2.23.0",
76
65
  "sinon": "^10.0.0",
77
66
  "ts-node": "^10.9.2",
@@ -82,7 +71,19 @@
82
71
  "url": "git+https://github.com/dequelabs/cauldron.git"
83
72
  },
84
73
  "peerDependencies": {
85
- "react": ">=16.6 <= 18",
86
- "react-dom": ">=16.6 <= 18"
74
+ "react": ">=16.6 <20",
75
+ "react-dom": ">=16.6 <20"
76
+ },
77
+ "scripts": {
78
+ "build": "pnpm build:lib && pnpm build:css",
79
+ "prebuild:lib": "node scripts/buildIconTypes.js",
80
+ "build:lib": "rollup -c",
81
+ "build:css": "postcss --output=lib/cauldron.css src/index.css",
82
+ "typecheck": "tsc --noEmit --skipLibCheck",
83
+ "dev": "concurrently 'pnpm build:css --watch' 'rollup -c --watch'",
84
+ "test": "jest --maxWorkers=1 --coverage",
85
+ "figma:parse": "figma connect parse",
86
+ "figma:publish": "figma connect publish",
87
+ "figma:publish:dry-run": "figma connect publish --dry-run"
87
88
  }
88
- }
89
+ }