@noodleseed/one 0.32.1 → 0.34.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.
Files changed (917) hide show
  1. package/LICENSE +27 -1
  2. package/NOTICE +4 -0
  3. package/dist/assistant-embed-scaffold-template.d.ts +10 -0
  4. package/dist/assistant-embed-scaffold-template.d.ts.map +1 -0
  5. package/dist/assistant-embed-scaffold-template.js +74 -0
  6. package/dist/assistant-embed-scaffold-template.js.map +1 -0
  7. package/dist/commands/assistant-embed-ops.d.ts +2 -0
  8. package/dist/commands/assistant-embed-ops.d.ts.map +1 -0
  9. package/dist/commands/assistant-embed-ops.js +87 -0
  10. package/dist/commands/assistant-embed-ops.js.map +1 -0
  11. package/dist/commands/assistant-ops.d.ts.map +1 -1
  12. package/dist/commands/assistant-ops.js +32 -1
  13. package/dist/commands/assistant-ops.js.map +1 -1
  14. package/dist/commands/catalog-data-resources.d.ts.map +1 -1
  15. package/dist/commands/catalog-data-resources.js +11 -0
  16. package/dist/commands/catalog-data-resources.js.map +1 -1
  17. package/dist/commands/deploy-ops.d.ts +2 -0
  18. package/dist/commands/deploy-ops.d.ts.map +1 -1
  19. package/dist/commands/deploy-ops.js +18 -0
  20. package/dist/commands/deploy-ops.js.map +1 -1
  21. package/dist/commands/mcp-apps.js +20 -0
  22. package/dist/commands/mcp-apps.js.map +1 -1
  23. package/dist/commands/project-setup.d.ts +2 -2
  24. package/dist/commands/project-setup.d.ts.map +1 -1
  25. package/dist/commands/project-setup.js +5 -4
  26. package/dist/commands/project-setup.js.map +1 -1
  27. package/dist/control-plane.d.ts.map +1 -1
  28. package/dist/control-plane.js +2 -0
  29. package/dist/control-plane.js.map +1 -1
  30. package/dist/deploy.d.ts +2 -1
  31. package/dist/deploy.d.ts.map +1 -1
  32. package/dist/deploy.js +57 -40
  33. package/dist/deploy.js.map +1 -1
  34. package/dist/first-run.js +1 -1
  35. package/dist/first-run.js.map +1 -1
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js.map +1 -1
  39. package/dist/openapi-import.d.ts.map +1 -1
  40. package/dist/openapi-import.js +6 -1
  41. package/dist/openapi-import.js.map +1 -1
  42. package/dist/project-scaffold-templates.d.ts +9 -6
  43. package/dist/project-scaffold-templates.d.ts.map +1 -1
  44. package/dist/project-scaffold-templates.js +9 -200
  45. package/dist/project-scaffold-templates.js.map +1 -1
  46. package/dist/project.d.ts.map +1 -1
  47. package/dist/project.js +5 -2
  48. package/dist/project.js.map +1 -1
  49. package/dist/react-widget-build.js +10 -0
  50. package/dist/react-widget-build.js.map +1 -1
  51. package/dist/react.d.ts +2 -2
  52. package/dist/react.d.ts.map +1 -1
  53. package/dist/react.js +2 -1
  54. package/dist/react.js.map +1 -1
  55. package/dist/widget-focused-template.d.ts +4 -0
  56. package/dist/widget-focused-template.d.ts.map +1 -0
  57. package/dist/widget-focused-template.js +75 -0
  58. package/dist/widget-focused-template.js.map +1 -0
  59. package/dist/widget-scaffold-template.d.ts +4 -0
  60. package/dist/widget-scaffold-template.d.ts.map +1 -0
  61. package/dist/widget-scaffold-template.js +228 -0
  62. package/dist/widget-scaffold-template.js.map +1 -0
  63. package/dist/widget-showcase-template.d.ts +5 -0
  64. package/dist/widget-showcase-template.d.ts.map +1 -0
  65. package/dist/widget-showcase-template.js +478 -0
  66. package/dist/widget-showcase-template.js.map +1 -0
  67. package/node_modules/@floating-ui/core/LICENSE +20 -0
  68. package/node_modules/@floating-ui/core/README.md +4 -0
  69. package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs +1 -0
  70. package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs +1184 -0
  71. package/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +531 -0
  72. package/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +531 -0
  73. package/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js +1058 -0
  74. package/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1058 -0
  75. package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js +1203 -0
  76. package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js +1 -0
  77. package/node_modules/@floating-ui/core/package.json +63 -0
  78. package/node_modules/@floating-ui/dom/LICENSE +20 -0
  79. package/node_modules/@floating-ui/dom/README.md +4 -0
  80. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs +1 -0
  81. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs +956 -0
  82. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts +358 -0
  83. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts +358 -0
  84. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js +781 -0
  85. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +781 -0
  86. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js +975 -0
  87. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.min.js +1 -0
  88. package/node_modules/@floating-ui/dom/package.json +70 -0
  89. package/node_modules/@floating-ui/react-dom/LICENSE +20 -0
  90. package/node_modules/@floating-ui/react-dom/README.md +3 -0
  91. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.d.mts +307 -0
  92. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.d.ts +307 -0
  93. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js +406 -0
  94. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +406 -0
  95. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js +457 -0
  96. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.min.js +1 -0
  97. package/node_modules/@floating-ui/react-dom/package.json +75 -0
  98. package/node_modules/@floating-ui/utils/LICENSE +20 -0
  99. package/node_modules/@floating-ui/utils/README.md +4 -0
  100. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +103 -0
  101. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +103 -0
  102. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
  103. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
  104. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.esm.js +165 -0
  105. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +165 -0
  106. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.js +192 -0
  107. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.min.js +1 -0
  108. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.esm.js +136 -0
  109. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +136 -0
  110. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.js +167 -0
  111. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.min.js +1 -0
  112. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
  113. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.esm.js +165 -0
  114. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.umd.js +192 -0
  115. package/node_modules/@floating-ui/utils/dom/package.json +6 -0
  116. package/node_modules/@floating-ui/utils/package.json +70 -0
  117. package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.d.ts.map +1 -1
  118. package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.js +1 -0
  119. package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.js.map +1 -1
  120. package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js +7 -7
  121. package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js.map +1 -1
  122. package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.d.ts.map +1 -1
  123. package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.js +1 -0
  124. package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.js.map +1 -1
  125. package/node_modules/@noodle-borg/agent-kit/dist/index.d.ts.map +1 -1
  126. package/node_modules/@noodle-borg/agent-kit/dist/index.js +4 -0
  127. package/node_modules/@noodle-borg/agent-kit/dist/index.js.map +1 -1
  128. package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.d.ts.map +1 -1
  129. package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js +36 -22
  130. package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js.map +1 -1
  131. package/node_modules/@noodle-borg/agent-kit/dist/skill-content.d.ts.map +1 -1
  132. package/node_modules/@noodle-borg/agent-kit/dist/skill-content.js +6 -3
  133. package/node_modules/@noodle-borg/agent-kit/dist/skill-content.js.map +1 -1
  134. package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.d.ts +3 -0
  135. package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.d.ts.map +1 -0
  136. package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.js +166 -0
  137. package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.js.map +1 -0
  138. package/node_modules/@noodle-borg/agent-kit/dist/skill-operations-refs.d.ts.map +1 -1
  139. package/node_modules/@noodle-borg/agent-kit/dist/skill-operations-refs.js +5 -0
  140. package/node_modules/@noodle-borg/agent-kit/dist/skill-operations-refs.js.map +1 -1
  141. package/node_modules/@noodle-borg/agent-kit/package.json +2 -1
  142. package/node_modules/@noodle-borg/auth/package.json +1 -0
  143. package/node_modules/@noodle-borg/authoring/dist/customer-auth.d.ts +5 -5
  144. package/node_modules/@noodle-borg/authoring/dist/customer-auth.d.ts.map +1 -1
  145. package/node_modules/@noodle-borg/authoring/dist/customer-auth.js +11 -5
  146. package/node_modules/@noodle-borg/authoring/dist/customer-auth.js.map +1 -1
  147. package/node_modules/@noodle-borg/authoring/dist/index.d.ts +0 -2
  148. package/node_modules/@noodle-borg/authoring/dist/index.d.ts.map +1 -1
  149. package/node_modules/@noodle-borg/authoring/dist/index.js +0 -1
  150. package/node_modules/@noodle-borg/authoring/dist/index.js.map +1 -1
  151. package/node_modules/@noodle-borg/authoring/dist/react/bridge.d.ts +22 -2
  152. package/node_modules/@noodle-borg/authoring/dist/react/bridge.d.ts.map +1 -1
  153. package/node_modules/@noodle-borg/authoring/dist/react/bridge.js +15 -6
  154. package/node_modules/@noodle-borg/authoring/dist/react/bridge.js.map +1 -1
  155. package/node_modules/@noodle-borg/authoring/dist/react/components.d.ts +400 -666
  156. package/node_modules/@noodle-borg/authoring/dist/react/components.d.ts.map +1 -1
  157. package/node_modules/@noodle-borg/authoring/dist/react/components.js +114 -23
  158. package/node_modules/@noodle-borg/authoring/dist/react/components.js.map +1 -1
  159. package/node_modules/@noodle-borg/authoring/dist/react/display-components.d.ts +39 -0
  160. package/node_modules/@noodle-borg/authoring/dist/react/display-components.d.ts.map +1 -0
  161. package/node_modules/@noodle-borg/authoring/dist/react/display-components.js +55 -0
  162. package/node_modules/@noodle-borg/authoring/dist/react/display-components.js.map +1 -0
  163. package/node_modules/@noodle-borg/authoring/dist/react/field-context.d.ts +28 -0
  164. package/node_modules/@noodle-borg/authoring/dist/react/field-context.d.ts.map +1 -0
  165. package/node_modules/@noodle-borg/authoring/dist/react/field-context.js +20 -0
  166. package/node_modules/@noodle-borg/authoring/dist/react/field-context.js.map +1 -0
  167. package/node_modules/@noodle-borg/authoring/dist/react/form-components.d.ts +114 -0
  168. package/node_modules/@noodle-borg/authoring/dist/react/form-components.d.ts.map +1 -0
  169. package/node_modules/@noodle-borg/authoring/dist/react/form-components.js +147 -0
  170. package/node_modules/@noodle-borg/authoring/dist/react/form-components.js.map +1 -0
  171. package/node_modules/@noodle-borg/authoring/dist/react/hooks.d.ts +2 -2
  172. package/node_modules/@noodle-borg/authoring/dist/react/hooks.d.ts.map +1 -1
  173. package/node_modules/@noodle-borg/authoring/dist/react/hooks.js.map +1 -1
  174. package/node_modules/@noodle-borg/authoring/dist/react/index.d.ts +4 -1
  175. package/node_modules/@noodle-borg/authoring/dist/react/index.d.ts.map +1 -1
  176. package/node_modules/@noodle-borg/authoring/dist/react/index.js +3 -0
  177. package/node_modules/@noodle-borg/authoring/dist/react/index.js.map +1 -1
  178. package/node_modules/@noodle-borg/authoring/dist/react/native-components.d.ts +76 -76
  179. package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.d.ts +67 -0
  180. package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.d.ts.map +1 -0
  181. package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.js +86 -0
  182. package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.js.map +1 -0
  183. package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.d.ts +971 -386
  184. package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.d.ts.map +1 -1
  185. package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.js +57 -10
  186. package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.js.map +1 -1
  187. package/node_modules/@noodle-borg/authoring/dist/react.d.ts +2 -2
  188. package/node_modules/@noodle-borg/authoring/dist/react.d.ts.map +1 -1
  189. package/node_modules/@noodle-borg/authoring/dist/react.js +2 -1
  190. package/node_modules/@noodle-borg/authoring/dist/react.js.map +1 -1
  191. package/node_modules/@noodle-borg/authoring/dist/server.d.ts +0 -1
  192. package/node_modules/@noodle-borg/authoring/dist/server.d.ts.map +1 -1
  193. package/node_modules/@noodle-borg/authoring/dist/server.js +24 -6
  194. package/node_modules/@noodle-borg/authoring/dist/server.js.map +1 -1
  195. package/node_modules/@noodle-borg/authoring/package.json +8 -1
  196. package/node_modules/@noodle-borg/capabilities/package.json +1 -0
  197. package/node_modules/@noodle-borg/compiler/dist/artifact/types.d.ts +3 -1
  198. package/node_modules/@noodle-borg/compiler/dist/artifact/types.d.ts.map +1 -1
  199. package/node_modules/@noodle-borg/compiler/dist/compile.d.ts.map +1 -1
  200. package/node_modules/@noodle-borg/compiler/dist/compile.js +48 -3
  201. package/node_modules/@noodle-borg/compiler/dist/compile.js.map +1 -1
  202. package/node_modules/@noodle-borg/compiler/dist/errors.d.ts +1 -1
  203. package/node_modules/@noodle-borg/compiler/dist/errors.d.ts.map +1 -1
  204. package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.d.ts.map +1 -1
  205. package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.js +1 -4
  206. package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.js.map +1 -1
  207. package/node_modules/@noodle-borg/compiler/dist/fulfilment-structural.d.ts +7 -9
  208. package/node_modules/@noodle-borg/compiler/dist/fulfilment-structural.d.ts.map +1 -1
  209. package/node_modules/@noodle-borg/compiler/dist/fulfilment-structural.js +8 -18
  210. package/node_modules/@noodle-borg/compiler/dist/fulfilment-structural.js.map +1 -1
  211. package/node_modules/@noodle-borg/compiler/dist/index.d.ts +1 -1
  212. package/node_modules/@noodle-borg/compiler/dist/index.d.ts.map +1 -1
  213. package/node_modules/@noodle-borg/compiler/dist/index.js +1 -1
  214. package/node_modules/@noodle-borg/compiler/dist/index.js.map +1 -1
  215. package/node_modules/@noodle-borg/compiler/dist/manifest/csp-origins.js +2 -2
  216. package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts +1 -5
  217. package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts.map +1 -1
  218. package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js +19 -8
  219. package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js.map +1 -1
  220. package/node_modules/@noodle-borg/compiler/dist/schema-validation.d.ts +9 -0
  221. package/node_modules/@noodle-borg/compiler/dist/schema-validation.d.ts.map +1 -1
  222. package/node_modules/@noodle-borg/compiler/dist/schema-validation.js +42 -0
  223. package/node_modules/@noodle-borg/compiler/dist/schema-validation.js.map +1 -1
  224. package/node_modules/@noodle-borg/compiler/package.json +1 -0
  225. package/node_modules/@noodle-borg/compute/package.json +1 -0
  226. package/node_modules/@noodle-borg/connector-defs/dist/index.d.ts +1 -1
  227. package/node_modules/@noodle-borg/connector-defs/dist/index.d.ts.map +1 -1
  228. package/node_modules/@noodle-borg/connector-defs/dist/index.js.map +1 -1
  229. package/node_modules/@noodle-borg/connector-defs/package.json +1 -0
  230. package/node_modules/@noodle-borg/connector-http/package.json +1 -0
  231. package/node_modules/@noodle-borg/module/package.json +1 -0
  232. package/node_modules/@noodle-borg/module-audit/package.json +1 -0
  233. package/node_modules/@noodle-borg/openapi-import/dist/index.js +1 -1
  234. package/node_modules/@noodle-borg/openapi-import/dist/index.js.map +1 -1
  235. package/node_modules/@noodle-borg/openapi-import/package.json +1 -0
  236. package/node_modules/@noodle-borg/protocol/dist/input-validation.d.ts +9 -0
  237. package/node_modules/@noodle-borg/protocol/dist/input-validation.d.ts.map +1 -1
  238. package/node_modules/@noodle-borg/protocol/dist/input-validation.js +13 -1
  239. package/node_modules/@noodle-borg/protocol/dist/input-validation.js.map +1 -1
  240. package/node_modules/@noodle-borg/protocol/dist/sdk-server.js +8 -5
  241. package/node_modules/@noodle-borg/protocol/dist/sdk-server.js.map +1 -1
  242. package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.d.ts +1 -1
  243. package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.d.ts.map +1 -1
  244. package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.js +26 -2
  245. package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.js.map +1 -1
  246. package/node_modules/@noodle-borg/protocol/package.json +1 -0
  247. package/node_modules/@noodle-borg/runtime/package.json +1 -0
  248. package/node_modules/@noodle-borg/service/dist/assistant-model-stream.d.ts +19 -0
  249. package/node_modules/@noodle-borg/service/dist/assistant-model-stream.d.ts.map +1 -0
  250. package/node_modules/@noodle-borg/service/dist/assistant-model-stream.js +84 -0
  251. package/node_modules/@noodle-borg/service/dist/assistant-model-stream.js.map +1 -0
  252. package/node_modules/@noodle-borg/service/dist/assistant-store.d.ts +2 -0
  253. package/node_modules/@noodle-borg/service/dist/assistant-store.d.ts.map +1 -1
  254. package/node_modules/@noodle-borg/service/dist/assistant-store.js +11 -0
  255. package/node_modules/@noodle-borg/service/dist/assistant-store.js.map +1 -1
  256. package/node_modules/@noodle-borg/service/dist/auth/deploy-gate.d.ts +4 -0
  257. package/node_modules/@noodle-borg/service/dist/auth/deploy-gate.d.ts.map +1 -1
  258. package/node_modules/@noodle-borg/service/dist/auth/deploy-gate.js +10 -1
  259. package/node_modules/@noodle-borg/service/dist/auth/deploy-gate.js.map +1 -1
  260. package/node_modules/@noodle-borg/service/dist/build-info.d.ts +9 -0
  261. package/node_modules/@noodle-borg/service/dist/build-info.d.ts.map +1 -1
  262. package/node_modules/@noodle-borg/service/dist/build-info.js +50 -0
  263. package/node_modules/@noodle-borg/service/dist/build-info.js.map +1 -1
  264. package/node_modules/@noodle-borg/service/dist/client-compatibility.d.ts +5 -0
  265. package/node_modules/@noodle-borg/service/dist/client-compatibility.d.ts.map +1 -0
  266. package/node_modules/@noodle-borg/service/dist/client-compatibility.js +12 -0
  267. package/node_modules/@noodle-borg/service/dist/client-compatibility.js.map +1 -0
  268. package/node_modules/@noodle-borg/service/dist/connector-normalize.d.ts +6 -0
  269. package/node_modules/@noodle-borg/service/dist/connector-normalize.d.ts.map +1 -0
  270. package/node_modules/@noodle-borg/service/dist/connector-normalize.js +80 -0
  271. package/node_modules/@noodle-borg/service/dist/connector-normalize.js.map +1 -0
  272. package/node_modules/@noodle-borg/service/dist/index.d.ts +3 -1
  273. package/node_modules/@noodle-borg/service/dist/index.d.ts.map +1 -1
  274. package/node_modules/@noodle-borg/service/dist/index.js +2 -0
  275. package/node_modules/@noodle-borg/service/dist/index.js.map +1 -1
  276. package/node_modules/@noodle-borg/service/dist/main.js +8 -0
  277. package/node_modules/@noodle-borg/service/dist/main.js.map +1 -1
  278. package/node_modules/@noodle-borg/service/dist/manifest-normalize.d.ts.map +1 -1
  279. package/node_modules/@noodle-borg/service/dist/manifest-normalize.js +13 -0
  280. package/node_modules/@noodle-borg/service/dist/manifest-normalize.js.map +1 -1
  281. package/node_modules/@noodle-borg/service/dist/options.d.ts +7 -0
  282. package/node_modules/@noodle-borg/service/dist/options.d.ts.map +1 -1
  283. package/node_modules/@noodle-borg/service/dist/personal-workspace.d.ts +1 -0
  284. package/node_modules/@noodle-borg/service/dist/personal-workspace.d.ts.map +1 -1
  285. package/node_modules/@noodle-borg/service/dist/personal-workspace.js +4 -5
  286. package/node_modules/@noodle-borg/service/dist/personal-workspace.js.map +1 -1
  287. package/node_modules/@noodle-borg/service/dist/registry.d.ts.map +1 -1
  288. package/node_modules/@noodle-borg/service/dist/registry.js +10 -4
  289. package/node_modules/@noodle-borg/service/dist/registry.js.map +1 -1
  290. package/node_modules/@noodle-borg/service/dist/routes/access-mode.d.ts.map +1 -1
  291. package/node_modules/@noodle-borg/service/dist/routes/access-mode.js +2 -6
  292. package/node_modules/@noodle-borg/service/dist/routes/access-mode.js.map +1 -1
  293. package/node_modules/@noodle-borg/service/dist/routes/assets.d.ts +6 -2
  294. package/node_modules/@noodle-borg/service/dist/routes/assets.d.ts.map +1 -1
  295. package/node_modules/@noodle-borg/service/dist/routes/assets.js +12 -52
  296. package/node_modules/@noodle-borg/service/dist/routes/assets.js.map +1 -1
  297. package/node_modules/@noodle-borg/service/dist/routes/assistant-dispatch.d.ts.map +1 -1
  298. package/node_modules/@noodle-borg/service/dist/routes/assistant-dispatch.js +7 -2
  299. package/node_modules/@noodle-borg/service/dist/routes/assistant-dispatch.js.map +1 -1
  300. package/node_modules/@noodle-borg/service/dist/routes/assistant.d.ts +1 -0
  301. package/node_modules/@noodle-borg/service/dist/routes/assistant.d.ts.map +1 -1
  302. package/node_modules/@noodle-borg/service/dist/routes/assistant.js +103 -35
  303. package/node_modules/@noodle-borg/service/dist/routes/assistant.js.map +1 -1
  304. package/node_modules/@noodle-borg/service/dist/routes/control-plane.d.ts.map +1 -1
  305. package/node_modules/@noodle-borg/service/dist/routes/control-plane.js +22 -27
  306. package/node_modules/@noodle-borg/service/dist/routes/control-plane.js.map +1 -1
  307. package/node_modules/@noodle-borg/service/dist/routes/org-admin-dispatch.d.ts +3 -0
  308. package/node_modules/@noodle-borg/service/dist/routes/org-admin-dispatch.d.ts.map +1 -1
  309. package/node_modules/@noodle-borg/service/dist/routes/org-admin-dispatch.js +6 -1
  310. package/node_modules/@noodle-borg/service/dist/routes/org-admin-dispatch.js.map +1 -1
  311. package/node_modules/@noodle-borg/service/dist/routes/org-admin.d.ts +5 -1
  312. package/node_modules/@noodle-borg/service/dist/routes/org-admin.d.ts.map +1 -1
  313. package/node_modules/@noodle-borg/service/dist/routes/org-admin.js +31 -3
  314. package/node_modules/@noodle-borg/service/dist/routes/org-admin.js.map +1 -1
  315. package/node_modules/@noodle-borg/service/dist/serve.d.ts.map +1 -1
  316. package/node_modules/@noodle-borg/service/dist/serve.js +12 -0
  317. package/node_modules/@noodle-borg/service/dist/serve.js.map +1 -1
  318. package/node_modules/@noodle-borg/service/dist/service.d.ts.map +1 -1
  319. package/node_modules/@noodle-borg/service/dist/service.js +6 -3
  320. package/node_modules/@noodle-borg/service/dist/service.js.map +1 -1
  321. package/node_modules/@noodle-borg/service/dist/store/control-plane.d.ts +15 -1
  322. package/node_modules/@noodle-borg/service/dist/store/control-plane.d.ts.map +1 -1
  323. package/node_modules/@noodle-borg/service/dist/store/control-plane.js +81 -0
  324. package/node_modules/@noodle-borg/service/dist/store/control-plane.js.map +1 -1
  325. package/node_modules/@noodle-borg/service/dist/store/postgres-assistant.d.ts +1 -0
  326. package/node_modules/@noodle-borg/service/dist/store/postgres-assistant.d.ts.map +1 -1
  327. package/node_modules/@noodle-borg/service/dist/store/postgres-assistant.js +18 -0
  328. package/node_modules/@noodle-borg/service/dist/store/postgres-assistant.js.map +1 -1
  329. package/node_modules/@noodle-borg/service/dist/store/postgres-control-plane.d.ts +15 -1
  330. package/node_modules/@noodle-borg/service/dist/store/postgres-control-plane.d.ts.map +1 -1
  331. package/node_modules/@noodle-borg/service/dist/store/postgres-control-plane.js +83 -0
  332. package/node_modules/@noodle-borg/service/dist/store/postgres-control-plane.js.map +1 -1
  333. package/node_modules/@noodle-borg/service/dist/store/postgres-schema.d.ts.map +1 -1
  334. package/node_modules/@noodle-borg/service/dist/store/postgres-schema.js +21 -0
  335. package/node_modules/@noodle-borg/service/dist/store/postgres-schema.js.map +1 -1
  336. package/node_modules/@noodle-borg/service/dist/store/postgres-signup.d.ts +22 -0
  337. package/node_modules/@noodle-borg/service/dist/store/postgres-signup.d.ts.map +1 -0
  338. package/node_modules/@noodle-borg/service/dist/store/postgres-signup.js +26 -0
  339. package/node_modules/@noodle-borg/service/dist/store/postgres-signup.js.map +1 -0
  340. package/node_modules/@noodle-borg/service/dist/store/postgres.d.ts +2 -1
  341. package/node_modules/@noodle-borg/service/dist/store/postgres.d.ts.map +1 -1
  342. package/node_modules/@noodle-borg/service/dist/store/postgres.js +10 -9
  343. package/node_modules/@noodle-borg/service/dist/store/postgres.js.map +1 -1
  344. package/node_modules/@noodle-borg/service/dist/store.d.ts +40 -0
  345. package/node_modules/@noodle-borg/service/dist/store.d.ts.map +1 -1
  346. package/node_modules/@noodle-borg/service/dist/store.js.map +1 -1
  347. package/node_modules/@noodle-borg/service/dist/welcome-email.d.ts +65 -0
  348. package/node_modules/@noodle-borg/service/dist/welcome-email.d.ts.map +1 -0
  349. package/node_modules/@noodle-borg/service/dist/welcome-email.js +243 -0
  350. package/node_modules/@noodle-borg/service/dist/welcome-email.js.map +1 -0
  351. package/node_modules/@noodle-borg/service/package.json +2 -0
  352. package/node_modules/@noodle-borg/transport-http/dist/examples/serve-demo.js +1 -1
  353. package/node_modules/@noodle-borg/transport-http/package.json +1 -0
  354. package/node_modules/@noodle-borg/wire-contracts/dist/assistant.d.ts +26 -0
  355. package/node_modules/@noodle-borg/wire-contracts/dist/assistant.d.ts.map +1 -0
  356. package/node_modules/@noodle-borg/wire-contracts/dist/assistant.js +31 -0
  357. package/node_modules/@noodle-borg/wire-contracts/dist/assistant.js.map +1 -0
  358. package/node_modules/@noodle-borg/wire-contracts/dist/index.d.ts +261 -0
  359. package/node_modules/@noodle-borg/wire-contracts/dist/index.d.ts.map +1 -0
  360. package/node_modules/@noodle-borg/wire-contracts/dist/index.js +150 -0
  361. package/node_modules/@noodle-borg/wire-contracts/dist/index.js.map +1 -0
  362. package/node_modules/@noodle-borg/wire-contracts/package.json +31 -0
  363. package/node_modules/@radix-ui/primitive/LICENSE +21 -0
  364. package/node_modules/@radix-ui/primitive/README.md +3 -0
  365. package/node_modules/@radix-ui/primitive/dist/index.d.mts +20 -0
  366. package/node_modules/@radix-ui/primitive/dist/index.d.ts +20 -0
  367. package/node_modules/@radix-ui/primitive/dist/index.js +76 -0
  368. package/node_modules/@radix-ui/primitive/dist/index.js.map +7 -0
  369. package/node_modules/@radix-ui/primitive/dist/index.mjs +53 -0
  370. package/node_modules/@radix-ui/primitive/dist/index.mjs.map +7 -0
  371. package/node_modules/@radix-ui/primitive/package.json +47 -0
  372. package/node_modules/@radix-ui/react-arrow/LICENSE +21 -0
  373. package/node_modules/@radix-ui/react-arrow/README.md +3 -0
  374. package/node_modules/@radix-ui/react-arrow/dist/index.d.mts +10 -0
  375. package/node_modules/@radix-ui/react-arrow/dist/index.d.ts +10 -0
  376. package/node_modules/@radix-ui/react-arrow/dist/index.js +60 -0
  377. package/node_modules/@radix-ui/react-arrow/dist/index.js.map +7 -0
  378. package/node_modules/@radix-ui/react-arrow/dist/index.mjs +27 -0
  379. package/node_modules/@radix-ui/react-arrow/dist/index.mjs.map +7 -0
  380. package/node_modules/@radix-ui/react-arrow/package.json +68 -0
  381. package/node_modules/@radix-ui/react-collection/LICENSE +21 -0
  382. package/node_modules/@radix-ui/react-collection/README.md +3 -0
  383. package/node_modules/@radix-ui/react-collection/dist/index.d.mts +98 -0
  384. package/node_modules/@radix-ui/react-collection/dist/index.d.ts +98 -0
  385. package/node_modules/@radix-ui/react-collection/dist/index.js +577 -0
  386. package/node_modules/@radix-ui/react-collection/dist/index.js.map +7 -0
  387. package/node_modules/@radix-ui/react-collection/dist/index.mjs +545 -0
  388. package/node_modules/@radix-ui/react-collection/dist/index.mjs.map +7 -0
  389. package/node_modules/@radix-ui/react-collection/package.json +71 -0
  390. package/node_modules/@radix-ui/react-compose-refs/LICENSE +21 -0
  391. package/node_modules/@radix-ui/react-compose-refs/README.md +3 -0
  392. package/node_modules/@radix-ui/react-compose-refs/dist/index.d.mts +15 -0
  393. package/node_modules/@radix-ui/react-compose-refs/dist/index.d.ts +15 -0
  394. package/node_modules/@radix-ui/react-compose-refs/dist/index.js +74 -0
  395. package/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +7 -0
  396. package/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +41 -0
  397. package/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.map +7 -0
  398. package/node_modules/@radix-ui/react-compose-refs/package.json +60 -0
  399. package/node_modules/@radix-ui/react-context/LICENSE +21 -0
  400. package/node_modules/@radix-ui/react-context/README.md +3 -0
  401. package/node_modules/@radix-ui/react-context/dist/index.d.mts +21 -0
  402. package/node_modules/@radix-ui/react-context/dist/index.d.ts +21 -0
  403. package/node_modules/@radix-ui/react-context/dist/index.js +116 -0
  404. package/node_modules/@radix-ui/react-context/dist/index.js.map +7 -0
  405. package/node_modules/@radix-ui/react-context/dist/index.mjs +83 -0
  406. package/node_modules/@radix-ui/react-context/dist/index.mjs.map +7 -0
  407. package/node_modules/@radix-ui/react-context/package.json +60 -0
  408. package/node_modules/@radix-ui/react-dialog/LICENSE +21 -0
  409. package/node_modules/@radix-ui/react-dialog/README.md +3 -0
  410. package/node_modules/@radix-ui/react-dialog/dist/index.d.mts +99 -0
  411. package/node_modules/@radix-ui/react-dialog/dist/index.d.ts +99 -0
  412. package/node_modules/@radix-ui/react-dialog/dist/index.js +330 -0
  413. package/node_modules/@radix-ui/react-dialog/dist/index.js.map +7 -0
  414. package/node_modules/@radix-ui/react-dialog/dist/index.mjs +298 -0
  415. package/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +7 -0
  416. package/node_modules/@radix-ui/react-dialog/package.json +81 -0
  417. package/node_modules/@radix-ui/react-direction/LICENSE +21 -0
  418. package/node_modules/@radix-ui/react-direction/README.md +3 -0
  419. package/node_modules/@radix-ui/react-direction/dist/index.d.mts +12 -0
  420. package/node_modules/@radix-ui/react-direction/dist/index.d.ts +12 -0
  421. package/node_modules/@radix-ui/react-direction/dist/index.js +53 -0
  422. package/node_modules/@radix-ui/react-direction/dist/index.js.map +7 -0
  423. package/node_modules/@radix-ui/react-direction/dist/index.mjs +21 -0
  424. package/node_modules/@radix-ui/react-direction/dist/index.mjs.map +7 -0
  425. package/node_modules/@radix-ui/react-direction/package.json +60 -0
  426. package/node_modules/@radix-ui/react-dismissable-layer/LICENSE +21 -0
  427. package/node_modules/@radix-ui/react-dismissable-layer/README.md +3 -0
  428. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.d.mts +62 -0
  429. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.d.ts +62 -0
  430. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +364 -0
  431. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +7 -0
  432. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +332 -0
  433. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +7 -0
  434. package/node_modules/@radix-ui/react-dismissable-layer/package.json +73 -0
  435. package/node_modules/@radix-ui/react-dropdown-menu/LICENSE +21 -0
  436. package/node_modules/@radix-ui/react-dropdown-menu/README.md +3 -0
  437. package/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.mts +97 -0
  438. package/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.ts +97 -0
  439. package/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +338 -0
  440. package/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +7 -0
  441. package/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +306 -0
  442. package/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.map +7 -0
  443. package/node_modules/@radix-ui/react-dropdown-menu/package.json +76 -0
  444. package/node_modules/@radix-ui/react-focus-guards/LICENSE +21 -0
  445. package/node_modules/@radix-ui/react-focus-guards/README.md +3 -0
  446. package/node_modules/@radix-ui/react-focus-guards/dist/index.d.mts +13 -0
  447. package/node_modules/@radix-ui/react-focus-guards/dist/index.d.ts +13 -0
  448. package/node_modules/@radix-ui/react-focus-guards/dist/index.js +81 -0
  449. package/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +7 -0
  450. package/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +49 -0
  451. package/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +7 -0
  452. package/node_modules/@radix-ui/react-focus-guards/package.json +60 -0
  453. package/node_modules/@radix-ui/react-focus-scope/LICENSE +21 -0
  454. package/node_modules/@radix-ui/react-focus-scope/README.md +3 -0
  455. package/node_modules/@radix-ui/react-focus-scope/dist/index.d.mts +32 -0
  456. package/node_modules/@radix-ui/react-focus-scope/dist/index.d.ts +32 -0
  457. package/node_modules/@radix-ui/react-focus-scope/dist/index.js +246 -0
  458. package/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +7 -0
  459. package/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +214 -0
  460. package/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.map +7 -0
  461. package/node_modules/@radix-ui/react-focus-scope/package.json +70 -0
  462. package/node_modules/@radix-ui/react-id/LICENSE +21 -0
  463. package/node_modules/@radix-ui/react-id/README.md +3 -0
  464. package/node_modules/@radix-ui/react-id/dist/index.d.mts +3 -0
  465. package/node_modules/@radix-ui/react-id/dist/index.d.ts +3 -0
  466. package/node_modules/@radix-ui/react-id/dist/index.js +49 -0
  467. package/node_modules/@radix-ui/react-id/dist/index.js.map +7 -0
  468. package/node_modules/@radix-ui/react-id/dist/index.mjs +16 -0
  469. package/node_modules/@radix-ui/react-id/dist/index.mjs.map +7 -0
  470. package/node_modules/@radix-ui/react-id/package.json +63 -0
  471. package/node_modules/@radix-ui/react-menu/LICENSE +21 -0
  472. package/node_modules/@radix-ui/react-menu/README.md +3 -0
  473. package/node_modules/@radix-ui/react-menu/dist/index.d.mts +175 -0
  474. package/node_modules/@radix-ui/react-menu/dist/index.d.ts +175 -0
  475. package/node_modules/@radix-ui/react-menu/dist/index.js +913 -0
  476. package/node_modules/@radix-ui/react-menu/dist/index.js.map +7 -0
  477. package/node_modules/@radix-ui/react-menu/dist/index.mjs +881 -0
  478. package/node_modules/@radix-ui/react-menu/dist/index.mjs.map +7 -0
  479. package/node_modules/@radix-ui/react-menu/package.json +86 -0
  480. package/node_modules/@radix-ui/react-popover/LICENSE +21 -0
  481. package/node_modules/@radix-ui/react-popover/README.md +3 -0
  482. package/node_modules/@radix-ui/react-popover/dist/index.d.mts +85 -0
  483. package/node_modules/@radix-ui/react-popover/dist/index.d.ts +85 -0
  484. package/node_modules/@radix-ui/react-popover/dist/index.js +353 -0
  485. package/node_modules/@radix-ui/react-popover/dist/index.js.map +7 -0
  486. package/node_modules/@radix-ui/react-popover/dist/index.mjs +321 -0
  487. package/node_modules/@radix-ui/react-popover/dist/index.mjs.map +7 -0
  488. package/node_modules/@radix-ui/react-popover/package.json +82 -0
  489. package/node_modules/@radix-ui/react-popper/LICENSE +21 -0
  490. package/node_modules/@radix-ui/react-popper/README.md +3 -0
  491. package/node_modules/@radix-ui/react-popper/dist/index.d.mts +46 -0
  492. package/node_modules/@radix-ui/react-popper/dist/index.d.ts +46 -0
  493. package/node_modules/@radix-ui/react-popper/dist/index.js +384 -0
  494. package/node_modules/@radix-ui/react-popper/dist/index.js.map +7 -0
  495. package/node_modules/@radix-ui/react-popper/dist/index.mjs +362 -0
  496. package/node_modules/@radix-ui/react-popper/dist/index.mjs.map +7 -0
  497. package/node_modules/@radix-ui/react-popper/package.json +78 -0
  498. package/node_modules/@radix-ui/react-portal/LICENSE +21 -0
  499. package/node_modules/@radix-ui/react-portal/README.md +3 -0
  500. package/node_modules/@radix-ui/react-portal/dist/index.d.mts +14 -0
  501. package/node_modules/@radix-ui/react-portal/dist/index.d.ts +14 -0
  502. package/node_modules/@radix-ui/react-portal/dist/index.js +55 -0
  503. package/node_modules/@radix-ui/react-portal/dist/index.js.map +7 -0
  504. package/node_modules/@radix-ui/react-portal/dist/index.mjs +23 -0
  505. package/node_modules/@radix-ui/react-portal/dist/index.mjs.map +7 -0
  506. package/node_modules/@radix-ui/react-portal/package.json +69 -0
  507. package/node_modules/@radix-ui/react-presence/LICENSE +21 -0
  508. package/node_modules/@radix-ui/react-presence/README.md +3 -0
  509. package/node_modules/@radix-ui/react-presence/dist/index.d.mts +12 -0
  510. package/node_modules/@radix-ui/react-presence/dist/index.d.ts +12 -0
  511. package/node_modules/@radix-ui/react-presence/dist/index.js +204 -0
  512. package/node_modules/@radix-ui/react-presence/dist/index.js.map +7 -0
  513. package/node_modules/@radix-ui/react-presence/dist/index.mjs +172 -0
  514. package/node_modules/@radix-ui/react-presence/dist/index.mjs.map +7 -0
  515. package/node_modules/@radix-ui/react-presence/package.json +68 -0
  516. package/node_modules/@radix-ui/react-primitive/LICENSE +21 -0
  517. package/node_modules/@radix-ui/react-primitive/README.md +3 -0
  518. package/node_modules/@radix-ui/react-primitive/dist/index.d.mts +57 -0
  519. package/node_modules/@radix-ui/react-primitive/dist/index.d.ts +57 -0
  520. package/node_modules/@radix-ui/react-primitive/dist/index.js +80 -0
  521. package/node_modules/@radix-ui/react-primitive/dist/index.js.map +7 -0
  522. package/node_modules/@radix-ui/react-primitive/dist/index.mjs +47 -0
  523. package/node_modules/@radix-ui/react-primitive/dist/index.mjs.map +7 -0
  524. package/node_modules/@radix-ui/react-primitive/package.json +68 -0
  525. package/node_modules/@radix-ui/react-roving-focus/LICENSE +21 -0
  526. package/node_modules/@radix-ui/react-roving-focus/README.md +3 -0
  527. package/node_modules/@radix-ui/react-roving-focus/dist/index.d.mts +49 -0
  528. package/node_modules/@radix-ui/react-roving-focus/dist/index.d.ts +49 -0
  529. package/node_modules/@radix-ui/react-roving-focus/dist/index.js +263 -0
  530. package/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +7 -0
  531. package/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +231 -0
  532. package/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.map +7 -0
  533. package/node_modules/@radix-ui/react-roving-focus/package.json +76 -0
  534. package/node_modules/@radix-ui/react-slot/LICENSE +21 -0
  535. package/node_modules/@radix-ui/react-slot/README.md +3 -0
  536. package/node_modules/@radix-ui/react-slot/dist/index.d.mts +29 -0
  537. package/node_modules/@radix-ui/react-slot/dist/index.d.ts +29 -0
  538. package/node_modules/@radix-ui/react-slot/dist/index.js +170 -0
  539. package/node_modules/@radix-ui/react-slot/dist/index.js.map +7 -0
  540. package/node_modules/@radix-ui/react-slot/dist/index.mjs +137 -0
  541. package/node_modules/@radix-ui/react-slot/dist/index.mjs.map +7 -0
  542. package/node_modules/@radix-ui/react-slot/package.json +63 -0
  543. package/node_modules/@radix-ui/react-tooltip/LICENSE +21 -0
  544. package/node_modules/@radix-ui/react-tooltip/README.md +3 -0
  545. package/node_modules/@radix-ui/react-tooltip/dist/index.d.mts +101 -0
  546. package/node_modules/@radix-ui/react-tooltip/dist/index.d.ts +101 -0
  547. package/node_modules/@radix-ui/react-tooltip/dist/index.js +543 -0
  548. package/node_modules/@radix-ui/react-tooltip/dist/index.js.map +7 -0
  549. package/node_modules/@radix-ui/react-tooltip/dist/index.mjs +511 -0
  550. package/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map +7 -0
  551. package/node_modules/@radix-ui/react-tooltip/package.json +79 -0
  552. package/node_modules/@radix-ui/react-use-callback-ref/LICENSE +21 -0
  553. package/node_modules/@radix-ui/react-use-callback-ref/README.md +3 -0
  554. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.d.mts +7 -0
  555. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.d.ts +7 -0
  556. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +46 -0
  557. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +7 -0
  558. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +13 -0
  559. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.map +7 -0
  560. package/node_modules/@radix-ui/react-use-callback-ref/package.json +60 -0
  561. package/node_modules/@radix-ui/react-use-controllable-state/LICENSE +21 -0
  562. package/node_modules/@radix-ui/react-use-controllable-state/README.md +3 -0
  563. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.d.mts +40 -0
  564. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.d.ts +40 -0
  565. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +169 -0
  566. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +7 -0
  567. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +136 -0
  568. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.map +7 -0
  569. package/node_modules/@radix-ui/react-use-controllable-state/package.json +64 -0
  570. package/node_modules/@radix-ui/react-use-effect-event/LICENSE +21 -0
  571. package/node_modules/@radix-ui/react-use-effect-event/README.md +5 -0
  572. package/node_modules/@radix-ui/react-use-effect-event/dist/index.d.mts +8 -0
  573. package/node_modules/@radix-ui/react-use-effect-event/dist/index.d.ts +8 -0
  574. package/node_modules/@radix-ui/react-use-effect-event/dist/index.js +60 -0
  575. package/node_modules/@radix-ui/react-use-effect-event/dist/index.js.map +7 -0
  576. package/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs +27 -0
  577. package/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs.map +7 -0
  578. package/node_modules/@radix-ui/react-use-effect-event/package.json +65 -0
  579. package/node_modules/@radix-ui/react-use-effect-event/src/index.ts +1 -0
  580. package/node_modules/@radix-ui/react-use-effect-event/src/use-effect-event.tsx +36 -0
  581. package/node_modules/@radix-ui/react-use-escape-keydown/LICENSE +21 -0
  582. package/node_modules/@radix-ui/react-use-escape-keydown/README.md +3 -0
  583. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.d.mts +6 -0
  584. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.d.ts +6 -0
  585. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +52 -0
  586. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +7 -0
  587. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +19 -0
  588. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.map +7 -0
  589. package/node_modules/@radix-ui/react-use-escape-keydown/package.json +63 -0
  590. package/node_modules/@radix-ui/react-use-layout-effect/LICENSE +21 -0
  591. package/node_modules/@radix-ui/react-use-layout-effect/README.md +3 -0
  592. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.d.mts +12 -0
  593. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.d.ts +12 -0
  594. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +41 -0
  595. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +7 -0
  596. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +8 -0
  597. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.map +7 -0
  598. package/node_modules/@radix-ui/react-use-layout-effect/package.json +60 -0
  599. package/node_modules/@radix-ui/react-use-rect/LICENSE +21 -0
  600. package/node_modules/@radix-ui/react-use-rect/README.md +3 -0
  601. package/node_modules/@radix-ui/react-use-rect/dist/index.d.mts +9 -0
  602. package/node_modules/@radix-ui/react-use-rect/dist/index.d.ts +9 -0
  603. package/node_modules/@radix-ui/react-use-rect/dist/index.js +54 -0
  604. package/node_modules/@radix-ui/react-use-rect/dist/index.js.map +7 -0
  605. package/node_modules/@radix-ui/react-use-rect/dist/index.mjs +21 -0
  606. package/node_modules/@radix-ui/react-use-rect/dist/index.mjs.map +7 -0
  607. package/node_modules/@radix-ui/react-use-rect/package.json +63 -0
  608. package/node_modules/@radix-ui/react-use-size/LICENSE +21 -0
  609. package/node_modules/@radix-ui/react-use-size/README.md +3 -0
  610. package/node_modules/@radix-ui/react-use-size/dist/index.d.mts +6 -0
  611. package/node_modules/@radix-ui/react-use-size/dist/index.d.ts +6 -0
  612. package/node_modules/@radix-ui/react-use-size/dist/index.js +74 -0
  613. package/node_modules/@radix-ui/react-use-size/dist/index.js.map +7 -0
  614. package/node_modules/@radix-ui/react-use-size/dist/index.mjs +41 -0
  615. package/node_modules/@radix-ui/react-use-size/dist/index.mjs.map +7 -0
  616. package/node_modules/@radix-ui/react-use-size/package.json +63 -0
  617. package/node_modules/@radix-ui/react-visually-hidden/LICENSE +21 -0
  618. package/node_modules/@radix-ui/react-visually-hidden/README.md +3 -0
  619. package/node_modules/@radix-ui/react-visually-hidden/dist/index.d.mts +22 -0
  620. package/node_modules/@radix-ui/react-visually-hidden/dist/index.d.ts +22 -0
  621. package/node_modules/@radix-ui/react-visually-hidden/dist/index.js +71 -0
  622. package/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +7 -0
  623. package/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +38 -0
  624. package/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.map +7 -0
  625. package/node_modules/@radix-ui/react-visually-hidden/package.json +68 -0
  626. package/node_modules/@radix-ui/rect/LICENSE +21 -0
  627. package/node_modules/@radix-ui/rect/README.md +3 -0
  628. package/node_modules/@radix-ui/rect/dist/index.d.mts +16 -0
  629. package/node_modules/@radix-ui/rect/dist/index.d.ts +16 -0
  630. package/node_modules/@radix-ui/rect/dist/index.js +73 -0
  631. package/node_modules/@radix-ui/rect/dist/index.js.map +7 -0
  632. package/node_modules/@radix-ui/rect/dist/index.mjs +50 -0
  633. package/node_modules/@radix-ui/rect/dist/index.mjs.map +7 -0
  634. package/node_modules/@radix-ui/rect/package.json +47 -0
  635. package/node_modules/aria-hidden/LICENSE +21 -0
  636. package/node_modules/aria-hidden/README.md +99 -0
  637. package/node_modules/aria-hidden/dist/es2015/index.d.ts +29 -0
  638. package/node_modules/aria-hidden/dist/es2015/index.js +167 -0
  639. package/node_modules/aria-hidden/dist/es2019/index.d.ts +29 -0
  640. package/node_modules/aria-hidden/dist/es2019/index.js +156 -0
  641. package/node_modules/aria-hidden/dist/es5/index.d.ts +29 -0
  642. package/node_modules/aria-hidden/dist/es5/index.js +174 -0
  643. package/node_modules/aria-hidden/package.json +71 -0
  644. package/node_modules/detect-node-es/LICENSE +21 -0
  645. package/node_modules/detect-node-es/Readme.md +39 -0
  646. package/node_modules/detect-node-es/es5/browser.js +2 -0
  647. package/node_modules/detect-node-es/es5/node.d.ts +4 -0
  648. package/node_modules/detect-node-es/es5/node.js +2 -0
  649. package/node_modules/detect-node-es/esm/browser.js +2 -0
  650. package/node_modules/detect-node-es/esm/node.js +2 -0
  651. package/node_modules/detect-node-es/package.json +29 -0
  652. package/node_modules/get-nonce/LICENSE +21 -0
  653. package/node_modules/get-nonce/README.md +54 -0
  654. package/node_modules/get-nonce/dist/es2015/index.d.ts +2 -0
  655. package/node_modules/get-nonce/dist/es2015/index.js +13 -0
  656. package/node_modules/get-nonce/dist/es5/index.d.ts +2 -0
  657. package/node_modules/get-nonce/dist/es5/index.js +15 -0
  658. package/node_modules/get-nonce/package.json +68 -0
  659. package/node_modules/react-remove-scroll/LICENSE +21 -0
  660. package/node_modules/react-remove-scroll/README.md +153 -0
  661. package/node_modules/react-remove-scroll/UI/UI.d.ts +1 -0
  662. package/node_modules/react-remove-scroll/UI/package.json +8 -0
  663. package/node_modules/react-remove-scroll/dist/es2015/Combination.d.ts +3 -0
  664. package/node_modules/react-remove-scroll/dist/es2015/Combination.js +7 -0
  665. package/node_modules/react-remove-scroll/dist/es2015/SideEffect.d.ts +5 -0
  666. package/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +164 -0
  667. package/node_modules/react-remove-scroll/dist/es2015/UI.d.ts +7 -0
  668. package/node_modules/react-remove-scroll/dist/es2015/UI.js +36 -0
  669. package/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.d.ts +3 -0
  670. package/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +19 -0
  671. package/node_modules/react-remove-scroll/dist/es2015/handleScroll.d.ts +3 -0
  672. package/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +108 -0
  673. package/node_modules/react-remove-scroll/dist/es2015/index.d.ts +2 -0
  674. package/node_modules/react-remove-scroll/dist/es2015/index.js +2 -0
  675. package/node_modules/react-remove-scroll/dist/es2015/medium.d.ts +2 -0
  676. package/node_modules/react-remove-scroll/dist/es2015/medium.js +2 -0
  677. package/node_modules/react-remove-scroll/dist/es2015/pinchAndZoom.d.ts +8 -0
  678. package/node_modules/react-remove-scroll/dist/es2015/pinchAndZoom.js +33 -0
  679. package/node_modules/react-remove-scroll/dist/es2015/sidecar.d.ts +2 -0
  680. package/node_modules/react-remove-scroll/dist/es2015/sidecar.js +4 -0
  681. package/node_modules/react-remove-scroll/dist/es2015/types.d.ts +104 -0
  682. package/node_modules/react-remove-scroll/dist/es2015/types.js +1 -0
  683. package/node_modules/react-remove-scroll/dist/es2019/Combination.d.ts +3 -0
  684. package/node_modules/react-remove-scroll/dist/es2019/Combination.js +6 -0
  685. package/node_modules/react-remove-scroll/dist/es2019/SideEffect.d.ts +5 -0
  686. package/node_modules/react-remove-scroll/dist/es2019/SideEffect.js +162 -0
  687. package/node_modules/react-remove-scroll/dist/es2019/UI.d.ts +7 -0
  688. package/node_modules/react-remove-scroll/dist/es2019/UI.js +41 -0
  689. package/node_modules/react-remove-scroll/dist/es2019/aggresiveCapture.d.ts +3 -0
  690. package/node_modules/react-remove-scroll/dist/es2019/aggresiveCapture.js +19 -0
  691. package/node_modules/react-remove-scroll/dist/es2019/handleScroll.d.ts +3 -0
  692. package/node_modules/react-remove-scroll/dist/es2019/handleScroll.js +96 -0
  693. package/node_modules/react-remove-scroll/dist/es2019/index.d.ts +2 -0
  694. package/node_modules/react-remove-scroll/dist/es2019/index.js +2 -0
  695. package/node_modules/react-remove-scroll/dist/es2019/medium.d.ts +2 -0
  696. package/node_modules/react-remove-scroll/dist/es2019/medium.js +2 -0
  697. package/node_modules/react-remove-scroll/dist/es2019/pinchAndZoom.d.ts +8 -0
  698. package/node_modules/react-remove-scroll/dist/es2019/pinchAndZoom.js +33 -0
  699. package/node_modules/react-remove-scroll/dist/es2019/sidecar.d.ts +2 -0
  700. package/node_modules/react-remove-scroll/dist/es2019/sidecar.js +4 -0
  701. package/node_modules/react-remove-scroll/dist/es2019/types.d.ts +104 -0
  702. package/node_modules/react-remove-scroll/dist/es2019/types.js +1 -0
  703. package/node_modules/react-remove-scroll/dist/es5/Combination.d.ts +3 -0
  704. package/node_modules/react-remove-scroll/dist/es5/Combination.js +9 -0
  705. package/node_modules/react-remove-scroll/dist/es5/SideEffect.d.ts +5 -0
  706. package/node_modules/react-remove-scroll/dist/es5/SideEffect.js +170 -0
  707. package/node_modules/react-remove-scroll/dist/es5/UI.d.ts +7 -0
  708. package/node_modules/react-remove-scroll/dist/es5/UI.js +39 -0
  709. package/node_modules/react-remove-scroll/dist/es5/aggresiveCapture.d.ts +3 -0
  710. package/node_modules/react-remove-scroll/dist/es5/aggresiveCapture.js +22 -0
  711. package/node_modules/react-remove-scroll/dist/es5/handleScroll.d.ts +3 -0
  712. package/node_modules/react-remove-scroll/dist/es5/handleScroll.js +113 -0
  713. package/node_modules/react-remove-scroll/dist/es5/index.d.ts +2 -0
  714. package/node_modules/react-remove-scroll/dist/es5/index.js +6 -0
  715. package/node_modules/react-remove-scroll/dist/es5/medium.d.ts +2 -0
  716. package/node_modules/react-remove-scroll/dist/es5/medium.js +5 -0
  717. package/node_modules/react-remove-scroll/dist/es5/pinchAndZoom.d.ts +8 -0
  718. package/node_modules/react-remove-scroll/dist/es5/pinchAndZoom.js +37 -0
  719. package/node_modules/react-remove-scroll/dist/es5/sidecar.d.ts +2 -0
  720. package/node_modules/react-remove-scroll/dist/es5/sidecar.js +6 -0
  721. package/node_modules/react-remove-scroll/dist/es5/types.d.ts +104 -0
  722. package/node_modules/react-remove-scroll/dist/es5/types.js +2 -0
  723. package/node_modules/react-remove-scroll/package.json +98 -0
  724. package/node_modules/react-remove-scroll/sidecar/package.json +7 -0
  725. package/node_modules/react-remove-scroll/sidecar/sidecar.d.ts +5 -0
  726. package/node_modules/react-remove-scroll-bar/README.md +52 -0
  727. package/node_modules/react-remove-scroll-bar/constants/package.json +8 -0
  728. package/node_modules/react-remove-scroll-bar/dist/es2015/component.d.ts +13 -0
  729. package/node_modules/react-remove-scroll-bar/dist/es2015/component.js +53 -0
  730. package/node_modules/react-remove-scroll-bar/dist/es2015/constants.d.ts +8 -0
  731. package/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +8 -0
  732. package/node_modules/react-remove-scroll-bar/dist/es2015/index.d.ts +4 -0
  733. package/node_modules/react-remove-scroll-bar/dist/es2015/index.js +4 -0
  734. package/node_modules/react-remove-scroll-bar/dist/es2015/utils.d.ts +14 -0
  735. package/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +29 -0
  736. package/node_modules/react-remove-scroll-bar/dist/es2019/component.d.ts +13 -0
  737. package/node_modules/react-remove-scroll-bar/dist/es2019/component.js +85 -0
  738. package/node_modules/react-remove-scroll-bar/dist/es2019/constants.d.ts +8 -0
  739. package/node_modules/react-remove-scroll-bar/dist/es2019/constants.js +8 -0
  740. package/node_modules/react-remove-scroll-bar/dist/es2019/index.d.ts +4 -0
  741. package/node_modules/react-remove-scroll-bar/dist/es2019/index.js +4 -0
  742. package/node_modules/react-remove-scroll-bar/dist/es2019/utils.d.ts +14 -0
  743. package/node_modules/react-remove-scroll-bar/dist/es2019/utils.js +28 -0
  744. package/node_modules/react-remove-scroll-bar/dist/es5/component.d.ts +13 -0
  745. package/node_modules/react-remove-scroll-bar/dist/es5/component.js +59 -0
  746. package/node_modules/react-remove-scroll-bar/dist/es5/constants.d.ts +8 -0
  747. package/node_modules/react-remove-scroll-bar/dist/es5/constants.js +11 -0
  748. package/node_modules/react-remove-scroll-bar/dist/es5/index.d.ts +4 -0
  749. package/node_modules/react-remove-scroll-bar/dist/es5/index.js +12 -0
  750. package/node_modules/react-remove-scroll-bar/dist/es5/utils.d.ts +14 -0
  751. package/node_modules/react-remove-scroll-bar/dist/es5/utils.js +33 -0
  752. package/node_modules/react-remove-scroll-bar/package.json +85 -0
  753. package/node_modules/react-style-singleton/LICENSE +21 -0
  754. package/node_modules/react-style-singleton/README.md +45 -0
  755. package/node_modules/react-style-singleton/dist/es2015/component.d.ts +21 -0
  756. package/node_modules/react-style-singleton/dist/es2015/component.js +16 -0
  757. package/node_modules/react-style-singleton/dist/es2015/hook.d.ts +23 -0
  758. package/node_modules/react-style-singleton/dist/es2015/hook.js +22 -0
  759. package/node_modules/react-style-singleton/dist/es2015/index.d.ts +3 -0
  760. package/node_modules/react-style-singleton/dist/es2015/index.js +3 -0
  761. package/node_modules/react-style-singleton/dist/es2015/singleton.d.ts +4 -0
  762. package/node_modules/react-style-singleton/dist/es2015/singleton.js +48 -0
  763. package/node_modules/react-style-singleton/dist/es2019/component.d.ts +21 -0
  764. package/node_modules/react-style-singleton/dist/es2019/component.js +15 -0
  765. package/node_modules/react-style-singleton/dist/es2019/hook.d.ts +23 -0
  766. package/node_modules/react-style-singleton/dist/es2019/hook.js +22 -0
  767. package/node_modules/react-style-singleton/dist/es2019/index.d.ts +3 -0
  768. package/node_modules/react-style-singleton/dist/es2019/index.js +3 -0
  769. package/node_modules/react-style-singleton/dist/es2019/singleton.d.ts +4 -0
  770. package/node_modules/react-style-singleton/dist/es2019/singleton.js +48 -0
  771. package/node_modules/react-style-singleton/dist/es5/component.d.ts +21 -0
  772. package/node_modules/react-style-singleton/dist/es5/component.js +20 -0
  773. package/node_modules/react-style-singleton/dist/es5/hook.d.ts +23 -0
  774. package/node_modules/react-style-singleton/dist/es5/hook.js +27 -0
  775. package/node_modules/react-style-singleton/dist/es5/index.d.ts +3 -0
  776. package/node_modules/react-style-singleton/dist/es5/index.js +9 -0
  777. package/node_modules/react-style-singleton/dist/es5/singleton.d.ts +4 -0
  778. package/node_modules/react-style-singleton/dist/es5/singleton.js +52 -0
  779. package/node_modules/react-style-singleton/dist/index.js +1 -0
  780. package/node_modules/react-style-singleton/package.json +90 -0
  781. package/node_modules/tslib/CopyrightNotice.txt +15 -0
  782. package/node_modules/tslib/LICENSE.txt +12 -0
  783. package/node_modules/tslib/README.md +164 -0
  784. package/node_modules/tslib/SECURITY.md +41 -0
  785. package/node_modules/tslib/modules/index.d.ts +38 -0
  786. package/node_modules/tslib/modules/index.js +70 -0
  787. package/node_modules/tslib/modules/package.json +3 -0
  788. package/node_modules/tslib/package.json +47 -0
  789. package/node_modules/tslib/tslib.d.ts +460 -0
  790. package/node_modules/tslib/tslib.es6.html +1 -0
  791. package/node_modules/tslib/tslib.es6.js +402 -0
  792. package/node_modules/tslib/tslib.es6.mjs +401 -0
  793. package/node_modules/tslib/tslib.html +1 -0
  794. package/node_modules/tslib/tslib.js +484 -0
  795. package/node_modules/use-callback-ref/LICENSE +21 -0
  796. package/node_modules/use-callback-ref/README.md +170 -0
  797. package/node_modules/use-callback-ref/dist/es2015/assignRef.d.ts +15 -0
  798. package/node_modules/use-callback-ref/dist/es2015/assignRef.js +22 -0
  799. package/node_modules/use-callback-ref/dist/es2015/createRef.d.ts +10 -0
  800. package/node_modules/use-callback-ref/dist/es2015/createRef.js +23 -0
  801. package/node_modules/use-callback-ref/dist/es2015/index.d.ts +8 -0
  802. package/node_modules/use-callback-ref/dist/es2015/index.js +12 -0
  803. package/node_modules/use-callback-ref/dist/es2015/mergeRef.d.ts +16 -0
  804. package/node_modules/use-callback-ref/dist/es2015/mergeRef.js +18 -0
  805. package/node_modules/use-callback-ref/dist/es2015/refToCallback.d.ts +24 -0
  806. package/node_modules/use-callback-ref/dist/es2015/refToCallback.js +48 -0
  807. package/node_modules/use-callback-ref/dist/es2015/transformRef.d.ts +11 -0
  808. package/node_modules/use-callback-ref/dist/es2015/transformRef.js +14 -0
  809. package/node_modules/use-callback-ref/dist/es2015/types.d.ts +5 -0
  810. package/node_modules/use-callback-ref/dist/es2015/types.js +1 -0
  811. package/node_modules/use-callback-ref/dist/es2015/useMergeRef.d.ts +17 -0
  812. package/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +45 -0
  813. package/node_modules/use-callback-ref/dist/es2015/useRef.d.ts +16 -0
  814. package/node_modules/use-callback-ref/dist/es2015/useRef.js +39 -0
  815. package/node_modules/use-callback-ref/dist/es2015/useTransformRef.d.ts +15 -0
  816. package/node_modules/use-callback-ref/dist/es2015/useTransformRef.js +18 -0
  817. package/node_modules/use-callback-ref/dist/es2019/assignRef.d.ts +15 -0
  818. package/node_modules/use-callback-ref/dist/es2019/assignRef.js +22 -0
  819. package/node_modules/use-callback-ref/dist/es2019/createRef.d.ts +10 -0
  820. package/node_modules/use-callback-ref/dist/es2019/createRef.js +23 -0
  821. package/node_modules/use-callback-ref/dist/es2019/index.d.ts +8 -0
  822. package/node_modules/use-callback-ref/dist/es2019/index.js +12 -0
  823. package/node_modules/use-callback-ref/dist/es2019/mergeRef.d.ts +16 -0
  824. package/node_modules/use-callback-ref/dist/es2019/mergeRef.js +18 -0
  825. package/node_modules/use-callback-ref/dist/es2019/refToCallback.d.ts +24 -0
  826. package/node_modules/use-callback-ref/dist/es2019/refToCallback.js +48 -0
  827. package/node_modules/use-callback-ref/dist/es2019/transformRef.d.ts +11 -0
  828. package/node_modules/use-callback-ref/dist/es2019/transformRef.js +14 -0
  829. package/node_modules/use-callback-ref/dist/es2019/types.d.ts +5 -0
  830. package/node_modules/use-callback-ref/dist/es2019/types.js +1 -0
  831. package/node_modules/use-callback-ref/dist/es2019/useMergeRef.d.ts +17 -0
  832. package/node_modules/use-callback-ref/dist/es2019/useMergeRef.js +43 -0
  833. package/node_modules/use-callback-ref/dist/es2019/useRef.d.ts +16 -0
  834. package/node_modules/use-callback-ref/dist/es2019/useRef.js +39 -0
  835. package/node_modules/use-callback-ref/dist/es2019/useTransformRef.d.ts +15 -0
  836. package/node_modules/use-callback-ref/dist/es2019/useTransformRef.js +18 -0
  837. package/node_modules/use-callback-ref/dist/es5/assignRef.d.ts +15 -0
  838. package/node_modules/use-callback-ref/dist/es5/assignRef.js +26 -0
  839. package/node_modules/use-callback-ref/dist/es5/createRef.d.ts +10 -0
  840. package/node_modules/use-callback-ref/dist/es5/createRef.js +27 -0
  841. package/node_modules/use-callback-ref/dist/es5/index.d.ts +8 -0
  842. package/node_modules/use-callback-ref/dist/es5/index.js +24 -0
  843. package/node_modules/use-callback-ref/dist/es5/mergeRef.d.ts +16 -0
  844. package/node_modules/use-callback-ref/dist/es5/mergeRef.js +22 -0
  845. package/node_modules/use-callback-ref/dist/es5/refToCallback.d.ts +24 -0
  846. package/node_modules/use-callback-ref/dist/es5/refToCallback.js +53 -0
  847. package/node_modules/use-callback-ref/dist/es5/transformRef.d.ts +11 -0
  848. package/node_modules/use-callback-ref/dist/es5/transformRef.js +18 -0
  849. package/node_modules/use-callback-ref/dist/es5/types.d.ts +5 -0
  850. package/node_modules/use-callback-ref/dist/es5/types.js +2 -0
  851. package/node_modules/use-callback-ref/dist/es5/useMergeRef.d.ts +17 -0
  852. package/node_modules/use-callback-ref/dist/es5/useMergeRef.js +50 -0
  853. package/node_modules/use-callback-ref/dist/es5/useRef.d.ts +16 -0
  854. package/node_modules/use-callback-ref/dist/es5/useRef.js +43 -0
  855. package/node_modules/use-callback-ref/dist/es5/useTransformRef.d.ts +15 -0
  856. package/node_modules/use-callback-ref/dist/es5/useTransformRef.js +22 -0
  857. package/node_modules/use-callback-ref/package.json +85 -0
  858. package/node_modules/use-sidecar/LICENSE +21 -0
  859. package/node_modules/use-sidecar/README.md +349 -0
  860. package/node_modules/use-sidecar/dist/es2015/config.d.ts +5 -0
  861. package/node_modules/use-sidecar/dist/es2015/config.js +6 -0
  862. package/node_modules/use-sidecar/dist/es2015/env.d.ts +4 -0
  863. package/node_modules/use-sidecar/dist/es2015/env.js +5 -0
  864. package/node_modules/use-sidecar/dist/es2015/exports.d.ts +3 -0
  865. package/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
  866. package/node_modules/use-sidecar/dist/es2015/hoc.d.ts +3 -0
  867. package/node_modules/use-sidecar/dist/es2015/hoc.js +15 -0
  868. package/node_modules/use-sidecar/dist/es2015/hook.d.ts +2 -0
  869. package/node_modules/use-sidecar/dist/es2015/hook.js +41 -0
  870. package/node_modules/use-sidecar/dist/es2015/index.d.ts +7 -0
  871. package/node_modules/use-sidecar/dist/es2015/index.js +6 -0
  872. package/node_modules/use-sidecar/dist/es2015/medium.d.ts +3 -0
  873. package/node_modules/use-sidecar/dist/es2015/medium.js +78 -0
  874. package/node_modules/use-sidecar/dist/es2015/renderProp.d.ts +9 -0
  875. package/node_modules/use-sidecar/dist/es2015/renderProp.js +35 -0
  876. package/node_modules/use-sidecar/dist/es2015/types.d.ts +47 -0
  877. package/node_modules/use-sidecar/dist/es2015/types.js +1 -0
  878. package/node_modules/use-sidecar/dist/es2019/config.d.ts +5 -0
  879. package/node_modules/use-sidecar/dist/es2019/config.js +6 -0
  880. package/node_modules/use-sidecar/dist/es2019/env.d.ts +4 -0
  881. package/node_modules/use-sidecar/dist/es2019/env.js +5 -0
  882. package/node_modules/use-sidecar/dist/es2019/exports.d.ts +3 -0
  883. package/node_modules/use-sidecar/dist/es2019/exports.js +16 -0
  884. package/node_modules/use-sidecar/dist/es2019/hoc.d.ts +3 -0
  885. package/node_modules/use-sidecar/dist/es2019/hoc.js +14 -0
  886. package/node_modules/use-sidecar/dist/es2019/hook.d.ts +2 -0
  887. package/node_modules/use-sidecar/dist/es2019/hook.js +41 -0
  888. package/node_modules/use-sidecar/dist/es2019/index.d.ts +7 -0
  889. package/node_modules/use-sidecar/dist/es2019/index.js +6 -0
  890. package/node_modules/use-sidecar/dist/es2019/medium.d.ts +3 -0
  891. package/node_modules/use-sidecar/dist/es2019/medium.js +78 -0
  892. package/node_modules/use-sidecar/dist/es2019/renderProp.d.ts +9 -0
  893. package/node_modules/use-sidecar/dist/es2019/renderProp.js +28 -0
  894. package/node_modules/use-sidecar/dist/es2019/types.d.ts +47 -0
  895. package/node_modules/use-sidecar/dist/es2019/types.js +1 -0
  896. package/node_modules/use-sidecar/dist/es5/config.d.ts +5 -0
  897. package/node_modules/use-sidecar/dist/es5/config.js +10 -0
  898. package/node_modules/use-sidecar/dist/es5/env.d.ts +4 -0
  899. package/node_modules/use-sidecar/dist/es5/env.js +8 -0
  900. package/node_modules/use-sidecar/dist/es5/exports.d.ts +3 -0
  901. package/node_modules/use-sidecar/dist/es5/exports.js +22 -0
  902. package/node_modules/use-sidecar/dist/es5/hoc.d.ts +3 -0
  903. package/node_modules/use-sidecar/dist/es5/hoc.js +19 -0
  904. package/node_modules/use-sidecar/dist/es5/hook.d.ts +2 -0
  905. package/node_modules/use-sidecar/dist/es5/hook.js +45 -0
  906. package/node_modules/use-sidecar/dist/es5/index.d.ts +7 -0
  907. package/node_modules/use-sidecar/dist/es5/index.js +16 -0
  908. package/node_modules/use-sidecar/dist/es5/medium.d.ts +3 -0
  909. package/node_modules/use-sidecar/dist/es5/medium.js +83 -0
  910. package/node_modules/use-sidecar/dist/es5/renderProp.d.ts +9 -0
  911. package/node_modules/use-sidecar/dist/es5/renderProp.js +39 -0
  912. package/node_modules/use-sidecar/dist/es5/types.d.ts +47 -0
  913. package/node_modules/use-sidecar/dist/es5/types.js +2 -0
  914. package/node_modules/use-sidecar/package.json +93 -0
  915. package/package.json +50 -5
  916. package/react/styles.css +568 -18
  917. package/react/styles.source.css +568 -18
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "@radix-ui/react-roving-focus",
3
+ "version": "1.1.14",
4
+ "license": "MIT",
5
+ "source": "./src/index.ts",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.mjs",
8
+ "files": [
9
+ "dist",
10
+ "README.md"
11
+ ],
12
+ "sideEffects": false,
13
+ "dependencies": {
14
+ "@radix-ui/primitive": "1.1.4",
15
+ "@radix-ui/react-context": "1.1.4",
16
+ "@radix-ui/react-direction": "1.1.2",
17
+ "@radix-ui/react-compose-refs": "1.1.3",
18
+ "@radix-ui/react-id": "1.1.2",
19
+ "@radix-ui/react-collection": "1.1.11",
20
+ "@radix-ui/react-primitive": "2.1.7",
21
+ "@radix-ui/react-use-callback-ref": "1.1.2",
22
+ "@radix-ui/react-use-controllable-state": "1.2.3"
23
+ },
24
+ "devDependencies": {
25
+ "@types/react": "^19.2.2",
26
+ "@types/react-dom": "^19.2.2",
27
+ "react": "^19.2.0",
28
+ "react-dom": "^19.2.0",
29
+ "typescript": "^5.9.3",
30
+ "@repo/builder": "0.0.0",
31
+ "@repo/typescript-config": "0.0.0"
32
+ },
33
+ "peerDependencies": {
34
+ "@types/react": "*",
35
+ "@types/react-dom": "*",
36
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
37
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
38
+ },
39
+ "peerDependenciesMeta": {
40
+ "@types/react": {
41
+ "optional": true
42
+ },
43
+ "@types/react-dom": {
44
+ "optional": true
45
+ }
46
+ },
47
+ "homepage": "https://radix-ui.com/primitives",
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "git+https://github.com/radix-ui/primitives.git",
51
+ "directory": "packages/react/roving-focus"
52
+ },
53
+ "bugs": {
54
+ "url": "https://github.com/radix-ui/primitives/issues"
55
+ },
56
+ "scripts": {
57
+ "lint": "oxlint --max-warnings 0 src",
58
+ "clean": "rm -rf dist",
59
+ "reset": "rm -rf dist node_modules",
60
+ "typecheck": "tsc --noEmit",
61
+ "build": "radix-build"
62
+ },
63
+ "types": "./dist/index.d.ts",
64
+ "exports": {
65
+ ".": {
66
+ "import": {
67
+ "types": "./dist/index.d.mts",
68
+ "default": "./dist/index.mjs"
69
+ },
70
+ "require": {
71
+ "types": "./dist/index.d.ts",
72
+ "default": "./dist/index.js"
73
+ }
74
+ }
75
+ }
76
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 WorkOS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ # `react-slot`
2
+
3
+ View docs [here](https://radix-ui.com/primitives/docs/utilities/slot).
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+
3
+ declare module 'react' {
4
+ interface ReactElement {
5
+ $$typeof?: symbol | string;
6
+ }
7
+ }
8
+ type SlotProps<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>> = Props & {
9
+ children?: React.ReactNode;
10
+ };
11
+ declare function createSlot<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>>(ownerName: string): React.ForwardRefExoticComponent<React.PropsWithoutRef<SlotProps<Elem, Props>> & React.RefAttributes<Elem>>;
12
+ declare const Slot: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
13
+ children?: React.ReactNode;
14
+ } & React.RefAttributes<HTMLElement>>;
15
+ type SlottableChildrenProps = {
16
+ children: React.ReactNode;
17
+ };
18
+ type SlottableRenderFnProps = {
19
+ child: React.ReactNode;
20
+ children: (slottable: React.ReactNode) => React.ReactNode;
21
+ };
22
+ type SlottableProps = SlottableRenderFnProps | SlottableChildrenProps;
23
+ interface SlottableComponent extends React.FC<SlottableProps> {
24
+ __radixId: symbol;
25
+ }
26
+ declare function createSlottable(ownerName: string): SlottableComponent;
27
+ declare const Slottable: SlottableComponent;
28
+
29
+ export { Slot as Root, Slot, type SlotProps, Slottable, createSlot, createSlottable };
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+
3
+ declare module 'react' {
4
+ interface ReactElement {
5
+ $$typeof?: symbol | string;
6
+ }
7
+ }
8
+ type SlotProps<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>> = Props & {
9
+ children?: React.ReactNode;
10
+ };
11
+ declare function createSlot<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>>(ownerName: string): React.ForwardRefExoticComponent<React.PropsWithoutRef<SlotProps<Elem, Props>> & React.RefAttributes<Elem>>;
12
+ declare const Slot: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
13
+ children?: React.ReactNode;
14
+ } & React.RefAttributes<HTMLElement>>;
15
+ type SlottableChildrenProps = {
16
+ children: React.ReactNode;
17
+ };
18
+ type SlottableRenderFnProps = {
19
+ child: React.ReactNode;
20
+ children: (slottable: React.ReactNode) => React.ReactNode;
21
+ };
22
+ type SlottableProps = SlottableRenderFnProps | SlottableChildrenProps;
23
+ interface SlottableComponent extends React.FC<SlottableProps> {
24
+ __radixId: symbol;
25
+ }
26
+ declare function createSlottable(ownerName: string): SlottableComponent;
27
+ declare const Slottable: SlottableComponent;
28
+
29
+ export { Slot as Root, Slot, type SlotProps, Slottable, createSlot, createSlottable };
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.ts
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
+ Root: () => Slot,
34
+ Slot: () => Slot,
35
+ Slottable: () => Slottable,
36
+ createSlot: () => createSlot,
37
+ createSlottable: () => createSlottable
38
+ });
39
+ module.exports = __toCommonJS(index_exports);
40
+
41
+ // src/slot.tsx
42
+ var React = __toESM(require("react"));
43
+ var import_react_compose_refs = require("@radix-ui/react-compose-refs");
44
+ // @__NO_SIDE_EFFECTS__
45
+ function createSlot(ownerName) {
46
+ const Slot2 = React.forwardRef((props, forwardedRef) => {
47
+ let { children, ...slotProps } = props;
48
+ let slottableElement = null;
49
+ let hasSlottable = false;
50
+ const newChildren = [];
51
+ if (isLazyComponent(children) && typeof use === "function") {
52
+ children = use(children._payload);
53
+ }
54
+ React.Children.forEach(children, (maybeSlottable) => {
55
+ if (isSlottable(maybeSlottable)) {
56
+ hasSlottable = true;
57
+ const slottable = maybeSlottable;
58
+ let child = "child" in slottable.props ? slottable.props.child : slottable.props.children;
59
+ if (isLazyComponent(child) && typeof use === "function") {
60
+ child = use(child._payload);
61
+ }
62
+ slottableElement = getSlottableElementFromSlottable(slottable, child);
63
+ newChildren.push(slottableElement?.props?.children);
64
+ } else {
65
+ newChildren.push(maybeSlottable);
66
+ }
67
+ });
68
+ if (slottableElement) {
69
+ slottableElement = React.cloneElement(slottableElement, void 0, newChildren);
70
+ } else if (
71
+ // A `Slottable` was found but it didn't resolve to a single element (e.g.
72
+ // it wrapped multiple elements, text, or a render-prop `child` that
73
+ // wasn't an element). Don't fall back to treating the `Slottable` wrapper
74
+ // itself as the slot target — throw a descriptive error below instead.
75
+ !hasSlottable && React.Children.count(children) === 1 && React.isValidElement(children)
76
+ ) {
77
+ slottableElement = children;
78
+ }
79
+ const slottableElementRef = slottableElement ? getElementRef(slottableElement) : void 0;
80
+ const composedRef = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, slottableElementRef);
81
+ if (!slottableElement) {
82
+ if (children || children === 0) {
83
+ throw new Error(
84
+ hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName)
85
+ );
86
+ }
87
+ return children;
88
+ }
89
+ const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});
90
+ if (slottableElement.type !== React.Fragment) {
91
+ mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;
92
+ }
93
+ return React.cloneElement(slottableElement, mergedProps);
94
+ });
95
+ Slot2.displayName = `${ownerName}.Slot`;
96
+ return Slot2;
97
+ }
98
+ var Slot = /* @__PURE__ */ createSlot("Slot");
99
+ var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
100
+ // @__NO_SIDE_EFFECTS__
101
+ function createSlottable(ownerName) {
102
+ const Slottable2 = (props) => "child" in props ? props.children(props.child) : props.children;
103
+ Slottable2.displayName = `${ownerName}.Slottable`;
104
+ Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
105
+ return Slottable2;
106
+ }
107
+ var Slottable = /* @__PURE__ */ createSlottable("Slottable");
108
+ var getSlottableElementFromSlottable = (slottable, child) => {
109
+ if ("child" in slottable.props) {
110
+ const child2 = slottable.props.child;
111
+ if (!React.isValidElement(child2)) return null;
112
+ return React.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
113
+ }
114
+ return React.isValidElement(child) ? child : null;
115
+ };
116
+ function mergeProps(slotProps, childProps) {
117
+ const overrideProps = { ...childProps };
118
+ for (const propName in childProps) {
119
+ const slotPropValue = slotProps[propName];
120
+ const childPropValue = childProps[propName];
121
+ const isHandler = /^on[A-Z]/.test(propName);
122
+ if (isHandler) {
123
+ if (slotPropValue && childPropValue) {
124
+ overrideProps[propName] = (...args) => {
125
+ const result = childPropValue(...args);
126
+ slotPropValue(...args);
127
+ return result;
128
+ };
129
+ } else if (slotPropValue) {
130
+ overrideProps[propName] = slotPropValue;
131
+ }
132
+ } else if (propName === "style") {
133
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
134
+ } else if (propName === "className") {
135
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
136
+ }
137
+ }
138
+ return { ...slotProps, ...overrideProps };
139
+ }
140
+ function getElementRef(element) {
141
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
142
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
143
+ if (mayWarn) {
144
+ return element.ref;
145
+ }
146
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
147
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
148
+ if (mayWarn) {
149
+ return element.props.ref;
150
+ }
151
+ return element.props.ref || element.ref;
152
+ }
153
+ function isSlottable(child) {
154
+ return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
155
+ }
156
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
157
+ function isLazyComponent(element) {
158
+ return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
159
+ }
160
+ function isPromiseLike(value) {
161
+ return typeof value === "object" && value !== null && "then" in value;
162
+ }
163
+ var createSlotError = (ownerName) => {
164
+ return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`;
165
+ };
166
+ var createSlottableError = (ownerName) => {
167
+ return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`;
168
+ };
169
+ var use = React[" use ".trim().toString()];
170
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts", "../src/slot.tsx"],
4
+ "sourcesContent": ["export {\n Slot,\n Slottable,\n //\n Root,\n createSlot,\n createSlottable,\n} from './slot';\nexport type { SlotProps } from './slot';\n", "import * as React from 'react';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\n\ndeclare module 'react' {\n interface ReactElement {\n $$typeof?: symbol | string;\n }\n}\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/\n\nexport type Usable<T> = PromiseLike<T> | React.Context<T>;\n\ntype SlotProps<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>> = Props & {\n children?: React.ReactNode;\n};\n\n/* @__NO_SIDE_EFFECTS__ */ export function createSlot<\n Elem extends Element = HTMLElement,\n Props = React.HTMLAttributes<Elem>,\n>(ownerName: string) {\n const Slot = React.forwardRef<Elem, SlotProps<Elem, Props>>((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n let slottableElement: React.ReactElement | null = null;\n let hasSlottable = false;\n const newChildren: React.ReactNode[] = [];\n\n if (isLazyComponent(children) && typeof use === 'function') {\n children = use(children._payload);\n }\n\n React.Children.forEach(children, (maybeSlottable) => {\n if (isSlottable(maybeSlottable)) {\n hasSlottable = true;\n const slottable = maybeSlottable;\n let child = 'child' in slottable.props ? slottable.props.child : slottable.props.children;\n\n if (isLazyComponent(child) && typeof use === 'function') {\n child = use(child._payload);\n }\n\n slottableElement = getSlottableElementFromSlottable(slottable, child);\n newChildren.push((slottableElement?.props as any)?.children);\n } else {\n newChildren.push(maybeSlottable);\n }\n });\n\n if (slottableElement) {\n slottableElement = React.cloneElement(slottableElement, undefined, newChildren);\n } else if (\n // A `Slottable` was found but it didn't resolve to a single element (e.g.\n // it wrapped multiple elements, text, or a render-prop `child` that\n // wasn't an element). Don't fall back to treating the `Slottable` wrapper\n // itself as the slot target \u2014 throw a descriptive error below instead.\n !hasSlottable &&\n React.Children.count(children) === 1 &&\n React.isValidElement(children)\n ) {\n slottableElement = children;\n }\n\n const slottableElementRef = slottableElement ? getElementRef(slottableElement) : undefined;\n const composedRef = useComposedRefs(forwardedRef, slottableElementRef);\n\n if (!slottableElement) {\n // Empty/falsy children (`null`, `undefined`, `false`, no children, etc.) are valid and\n // render nothing. Anything else is content we couldn't slot onto a single element, which\n // is a usage error, so we fail loudly with a clear message.\n if (children || children === 0) {\n throw new Error(\n hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName),\n );\n }\n return children;\n }\n\n const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});\n\n // do not pass ref to React.Fragment for React 19 compatibility\n if (slottableElement.type !== React.Fragment) {\n mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;\n }\n\n return React.cloneElement(slottableElement, mergedProps);\n });\n\n Slot.displayName = `${ownerName}.Slot`;\n return Slot;\n}\n\nconst Slot = createSlot('Slot');\n\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/\n\nconst SLOTTABLE_IDENTIFIER = Symbol.for('radix.slottable');\n\ntype SlottableChildrenProps = { children: React.ReactNode };\ntype SlottableRenderFnProps = {\n child: React.ReactNode;\n children: (slottable: React.ReactNode) => React.ReactNode;\n};\n\ntype SlottableProps = SlottableRenderFnProps | SlottableChildrenProps;\ninterface SlottableComponent extends React.FC<SlottableProps> {\n __radixId: symbol;\n}\n\n/* @__NO_SIDE_EFFECTS__ */ export function createSlottable(ownerName: string) {\n const Slottable: SlottableComponent = (props) =>\n 'child' in props ? props.children(props.child) : props.children;\n\n Slottable.displayName = `${ownerName}.Slottable`;\n Slottable.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable;\n}\n\nconst Slottable = createSlottable('Slottable');\n\n/* -------------------------------------------------------------------------------------------------\n * getSlottableElementFromSlottable\n * -----------------------------------------------------------------------------------------------*/\n\nconst getSlottableElementFromSlottable = (slottable: SlottableElement, child: React.ReactNode) => {\n if ('child' in slottable.props) {\n const child = slottable.props.child;\n if (!React.isValidElement<React.PropsWithChildren>(child)) return null;\n return React.cloneElement(child, undefined, slottable.props.children(child.props.children));\n }\n\n return React.isValidElement(child) ? child : null;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * mergeProps\n * -----------------------------------------------------------------------------------------------*/\n\ntype AnyProps = Record<string, any>;\n\nfunction mergeProps(slotProps: AnyProps, childProps: AnyProps) {\n // all child props should override\n const overrideProps = { ...childProps };\n\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n // if the handler exists on both, we compose them\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args: unknown[]) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n }\n // but if it exists only on the slot, we use only this one\n else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n }\n // if it's `style`, we merge them\n else if (propName === 'style') {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === 'className') {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(' ');\n }\n }\n\n return { ...slotProps, ...overrideProps };\n}\n\n/* -------------------------------------------------------------------------------------------------\n * getElementRef\n * -----------------------------------------------------------------------------------------------*/\n\n// Before React 19 accessing `element.props.ref` will throw a warning and suggest using `element.ref`\n// After React 19 accessing `element.ref` does the opposite.\n// https://github.com/facebook/react/pull/28348\n//\n// Access the ref using the method that doesn't yield a warning.\nfunction getElementRef(element: React.ReactElement) {\n // React <=18 in DEV\n let getter = Object.getOwnPropertyDescriptor(element.props, 'ref')?.get;\n let mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;\n if (mayWarn) {\n return (element as any).ref;\n }\n\n // React 19 in DEV\n getter = Object.getOwnPropertyDescriptor(element, 'ref')?.get;\n mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;\n if (mayWarn) {\n return (element.props as { ref?: React.Ref<unknown> }).ref;\n }\n\n // Not DEV\n return (element.props as { ref?: React.Ref<unknown> }).ref || (element as any).ref;\n}\n\n/* ---------------------------------------------------------------------------------------------- */\n\ntype SlottableElement = React.ReactElement<SlottableProps, SlottableComponent>;\n\nfunction isSlottable(\n child: React.ReactNode,\n): child is React.ReactElement<SlottableProps, typeof Slottable> {\n return (\n React.isValidElement(child) &&\n typeof child.type === 'function' &&\n '__radixId' in child.type &&\n child.type.__radixId === SLOTTABLE_IDENTIFIER\n );\n}\n\nconst REACT_LAZY_TYPE = Symbol.for('react.lazy');\n\ninterface LazyReactElement extends React.ReactElement {\n $$typeof: typeof REACT_LAZY_TYPE;\n _payload: PromiseLike<Exclude<React.ReactNode, PromiseLike<any>>>;\n}\n\nfunction isLazyComponent(element: React.ReactNode): element is LazyReactElement {\n return (\n element != null &&\n typeof element === 'object' &&\n '$$typeof' in element &&\n element.$$typeof === REACT_LAZY_TYPE &&\n '_payload' in element &&\n isPromiseLike(element._payload)\n );\n}\n\nfunction isPromiseLike(value: unknown): value is PromiseLike<unknown> {\n return typeof value === 'object' && value !== null && 'then' in value;\n}\n\nconst createSlotError = (ownerName: string) => {\n return `${ownerName} failed to slot onto its children. Expected a single React element child or \\`Slottable\\`.`;\n};\n\nconst createSlottableError = (ownerName: string) => {\n return `${ownerName} failed to slot onto its \\`Slottable\\`. Expected \\`Slottable\\` to receive a single React element child.`;\n};\n\nconst use: typeof React.use | undefined = (React as any)[' use '.trim().toString()];\n\nexport {\n Slot,\n Slottable,\n //\n Slot as Root,\n};\nexport type { SlotProps };\n"],
5
+ "mappings": "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",
6
+ "names": ["Slot", "Slottable", "child"]
7
+ }
@@ -0,0 +1,137 @@
1
+ // src/slot.tsx
2
+ import * as React from "react";
3
+ import { useComposedRefs } from "@radix-ui/react-compose-refs";
4
+ // @__NO_SIDE_EFFECTS__
5
+ function createSlot(ownerName) {
6
+ const Slot2 = React.forwardRef((props, forwardedRef) => {
7
+ let { children, ...slotProps } = props;
8
+ let slottableElement = null;
9
+ let hasSlottable = false;
10
+ const newChildren = [];
11
+ if (isLazyComponent(children) && typeof use === "function") {
12
+ children = use(children._payload);
13
+ }
14
+ React.Children.forEach(children, (maybeSlottable) => {
15
+ if (isSlottable(maybeSlottable)) {
16
+ hasSlottable = true;
17
+ const slottable = maybeSlottable;
18
+ let child = "child" in slottable.props ? slottable.props.child : slottable.props.children;
19
+ if (isLazyComponent(child) && typeof use === "function") {
20
+ child = use(child._payload);
21
+ }
22
+ slottableElement = getSlottableElementFromSlottable(slottable, child);
23
+ newChildren.push(slottableElement?.props?.children);
24
+ } else {
25
+ newChildren.push(maybeSlottable);
26
+ }
27
+ });
28
+ if (slottableElement) {
29
+ slottableElement = React.cloneElement(slottableElement, void 0, newChildren);
30
+ } else if (
31
+ // A `Slottable` was found but it didn't resolve to a single element (e.g.
32
+ // it wrapped multiple elements, text, or a render-prop `child` that
33
+ // wasn't an element). Don't fall back to treating the `Slottable` wrapper
34
+ // itself as the slot target — throw a descriptive error below instead.
35
+ !hasSlottable && React.Children.count(children) === 1 && React.isValidElement(children)
36
+ ) {
37
+ slottableElement = children;
38
+ }
39
+ const slottableElementRef = slottableElement ? getElementRef(slottableElement) : void 0;
40
+ const composedRef = useComposedRefs(forwardedRef, slottableElementRef);
41
+ if (!slottableElement) {
42
+ if (children || children === 0) {
43
+ throw new Error(
44
+ hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName)
45
+ );
46
+ }
47
+ return children;
48
+ }
49
+ const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});
50
+ if (slottableElement.type !== React.Fragment) {
51
+ mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;
52
+ }
53
+ return React.cloneElement(slottableElement, mergedProps);
54
+ });
55
+ Slot2.displayName = `${ownerName}.Slot`;
56
+ return Slot2;
57
+ }
58
+ var Slot = /* @__PURE__ */ createSlot("Slot");
59
+ var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
60
+ // @__NO_SIDE_EFFECTS__
61
+ function createSlottable(ownerName) {
62
+ const Slottable2 = (props) => "child" in props ? props.children(props.child) : props.children;
63
+ Slottable2.displayName = `${ownerName}.Slottable`;
64
+ Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
65
+ return Slottable2;
66
+ }
67
+ var Slottable = /* @__PURE__ */ createSlottable("Slottable");
68
+ var getSlottableElementFromSlottable = (slottable, child) => {
69
+ if ("child" in slottable.props) {
70
+ const child2 = slottable.props.child;
71
+ if (!React.isValidElement(child2)) return null;
72
+ return React.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
73
+ }
74
+ return React.isValidElement(child) ? child : null;
75
+ };
76
+ function mergeProps(slotProps, childProps) {
77
+ const overrideProps = { ...childProps };
78
+ for (const propName in childProps) {
79
+ const slotPropValue = slotProps[propName];
80
+ const childPropValue = childProps[propName];
81
+ const isHandler = /^on[A-Z]/.test(propName);
82
+ if (isHandler) {
83
+ if (slotPropValue && childPropValue) {
84
+ overrideProps[propName] = (...args) => {
85
+ const result = childPropValue(...args);
86
+ slotPropValue(...args);
87
+ return result;
88
+ };
89
+ } else if (slotPropValue) {
90
+ overrideProps[propName] = slotPropValue;
91
+ }
92
+ } else if (propName === "style") {
93
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
94
+ } else if (propName === "className") {
95
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
96
+ }
97
+ }
98
+ return { ...slotProps, ...overrideProps };
99
+ }
100
+ function getElementRef(element) {
101
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
102
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
103
+ if (mayWarn) {
104
+ return element.ref;
105
+ }
106
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
107
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
108
+ if (mayWarn) {
109
+ return element.props.ref;
110
+ }
111
+ return element.props.ref || element.ref;
112
+ }
113
+ function isSlottable(child) {
114
+ return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
115
+ }
116
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
117
+ function isLazyComponent(element) {
118
+ return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
119
+ }
120
+ function isPromiseLike(value) {
121
+ return typeof value === "object" && value !== null && "then" in value;
122
+ }
123
+ var createSlotError = (ownerName) => {
124
+ return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`;
125
+ };
126
+ var createSlottableError = (ownerName) => {
127
+ return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`;
128
+ };
129
+ var use = React[" use ".trim().toString()];
130
+ export {
131
+ Slot as Root,
132
+ Slot,
133
+ Slottable,
134
+ createSlot,
135
+ createSlottable
136
+ };
137
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/slot.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\n\ndeclare module 'react' {\n interface ReactElement {\n $$typeof?: symbol | string;\n }\n}\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/\n\nexport type Usable<T> = PromiseLike<T> | React.Context<T>;\n\ntype SlotProps<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>> = Props & {\n children?: React.ReactNode;\n};\n\n/* @__NO_SIDE_EFFECTS__ */ export function createSlot<\n Elem extends Element = HTMLElement,\n Props = React.HTMLAttributes<Elem>,\n>(ownerName: string) {\n const Slot = React.forwardRef<Elem, SlotProps<Elem, Props>>((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n let slottableElement: React.ReactElement | null = null;\n let hasSlottable = false;\n const newChildren: React.ReactNode[] = [];\n\n if (isLazyComponent(children) && typeof use === 'function') {\n children = use(children._payload);\n }\n\n React.Children.forEach(children, (maybeSlottable) => {\n if (isSlottable(maybeSlottable)) {\n hasSlottable = true;\n const slottable = maybeSlottable;\n let child = 'child' in slottable.props ? slottable.props.child : slottable.props.children;\n\n if (isLazyComponent(child) && typeof use === 'function') {\n child = use(child._payload);\n }\n\n slottableElement = getSlottableElementFromSlottable(slottable, child);\n newChildren.push((slottableElement?.props as any)?.children);\n } else {\n newChildren.push(maybeSlottable);\n }\n });\n\n if (slottableElement) {\n slottableElement = React.cloneElement(slottableElement, undefined, newChildren);\n } else if (\n // A `Slottable` was found but it didn't resolve to a single element (e.g.\n // it wrapped multiple elements, text, or a render-prop `child` that\n // wasn't an element). Don't fall back to treating the `Slottable` wrapper\n // itself as the slot target \u2014 throw a descriptive error below instead.\n !hasSlottable &&\n React.Children.count(children) === 1 &&\n React.isValidElement(children)\n ) {\n slottableElement = children;\n }\n\n const slottableElementRef = slottableElement ? getElementRef(slottableElement) : undefined;\n const composedRef = useComposedRefs(forwardedRef, slottableElementRef);\n\n if (!slottableElement) {\n // Empty/falsy children (`null`, `undefined`, `false`, no children, etc.) are valid and\n // render nothing. Anything else is content we couldn't slot onto a single element, which\n // is a usage error, so we fail loudly with a clear message.\n if (children || children === 0) {\n throw new Error(\n hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName),\n );\n }\n return children;\n }\n\n const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});\n\n // do not pass ref to React.Fragment for React 19 compatibility\n if (slottableElement.type !== React.Fragment) {\n mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;\n }\n\n return React.cloneElement(slottableElement, mergedProps);\n });\n\n Slot.displayName = `${ownerName}.Slot`;\n return Slot;\n}\n\nconst Slot = createSlot('Slot');\n\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/\n\nconst SLOTTABLE_IDENTIFIER = Symbol.for('radix.slottable');\n\ntype SlottableChildrenProps = { children: React.ReactNode };\ntype SlottableRenderFnProps = {\n child: React.ReactNode;\n children: (slottable: React.ReactNode) => React.ReactNode;\n};\n\ntype SlottableProps = SlottableRenderFnProps | SlottableChildrenProps;\ninterface SlottableComponent extends React.FC<SlottableProps> {\n __radixId: symbol;\n}\n\n/* @__NO_SIDE_EFFECTS__ */ export function createSlottable(ownerName: string) {\n const Slottable: SlottableComponent = (props) =>\n 'child' in props ? props.children(props.child) : props.children;\n\n Slottable.displayName = `${ownerName}.Slottable`;\n Slottable.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable;\n}\n\nconst Slottable = createSlottable('Slottable');\n\n/* -------------------------------------------------------------------------------------------------\n * getSlottableElementFromSlottable\n * -----------------------------------------------------------------------------------------------*/\n\nconst getSlottableElementFromSlottable = (slottable: SlottableElement, child: React.ReactNode) => {\n if ('child' in slottable.props) {\n const child = slottable.props.child;\n if (!React.isValidElement<React.PropsWithChildren>(child)) return null;\n return React.cloneElement(child, undefined, slottable.props.children(child.props.children));\n }\n\n return React.isValidElement(child) ? child : null;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * mergeProps\n * -----------------------------------------------------------------------------------------------*/\n\ntype AnyProps = Record<string, any>;\n\nfunction mergeProps(slotProps: AnyProps, childProps: AnyProps) {\n // all child props should override\n const overrideProps = { ...childProps };\n\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n // if the handler exists on both, we compose them\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args: unknown[]) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n }\n // but if it exists only on the slot, we use only this one\n else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n }\n // if it's `style`, we merge them\n else if (propName === 'style') {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === 'className') {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(' ');\n }\n }\n\n return { ...slotProps, ...overrideProps };\n}\n\n/* -------------------------------------------------------------------------------------------------\n * getElementRef\n * -----------------------------------------------------------------------------------------------*/\n\n// Before React 19 accessing `element.props.ref` will throw a warning and suggest using `element.ref`\n// After React 19 accessing `element.ref` does the opposite.\n// https://github.com/facebook/react/pull/28348\n//\n// Access the ref using the method that doesn't yield a warning.\nfunction getElementRef(element: React.ReactElement) {\n // React <=18 in DEV\n let getter = Object.getOwnPropertyDescriptor(element.props, 'ref')?.get;\n let mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;\n if (mayWarn) {\n return (element as any).ref;\n }\n\n // React 19 in DEV\n getter = Object.getOwnPropertyDescriptor(element, 'ref')?.get;\n mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;\n if (mayWarn) {\n return (element.props as { ref?: React.Ref<unknown> }).ref;\n }\n\n // Not DEV\n return (element.props as { ref?: React.Ref<unknown> }).ref || (element as any).ref;\n}\n\n/* ---------------------------------------------------------------------------------------------- */\n\ntype SlottableElement = React.ReactElement<SlottableProps, SlottableComponent>;\n\nfunction isSlottable(\n child: React.ReactNode,\n): child is React.ReactElement<SlottableProps, typeof Slottable> {\n return (\n React.isValidElement(child) &&\n typeof child.type === 'function' &&\n '__radixId' in child.type &&\n child.type.__radixId === SLOTTABLE_IDENTIFIER\n );\n}\n\nconst REACT_LAZY_TYPE = Symbol.for('react.lazy');\n\ninterface LazyReactElement extends React.ReactElement {\n $$typeof: typeof REACT_LAZY_TYPE;\n _payload: PromiseLike<Exclude<React.ReactNode, PromiseLike<any>>>;\n}\n\nfunction isLazyComponent(element: React.ReactNode): element is LazyReactElement {\n return (\n element != null &&\n typeof element === 'object' &&\n '$$typeof' in element &&\n element.$$typeof === REACT_LAZY_TYPE &&\n '_payload' in element &&\n isPromiseLike(element._payload)\n );\n}\n\nfunction isPromiseLike(value: unknown): value is PromiseLike<unknown> {\n return typeof value === 'object' && value !== null && 'then' in value;\n}\n\nconst createSlotError = (ownerName: string) => {\n return `${ownerName} failed to slot onto its children. Expected a single React element child or \\`Slottable\\`.`;\n};\n\nconst createSlottableError = (ownerName: string) => {\n return `${ownerName} failed to slot onto its \\`Slottable\\`. Expected \\`Slottable\\` to receive a single React element child.`;\n};\n\nconst use: typeof React.use | undefined = (React as any)[' use '.trim().toString()];\n\nexport {\n Slot,\n Slottable,\n //\n Slot as Root,\n};\nexport type { SlotProps };\n"],
5
+ "mappings": "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",
6
+ "names": ["Slot", "Slottable", "child"]
7
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@radix-ui/react-slot",
3
+ "version": "1.3.0",
4
+ "license": "MIT",
5
+ "source": "./src/index.ts",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.mjs",
8
+ "files": [
9
+ "dist",
10
+ "README.md"
11
+ ],
12
+ "sideEffects": false,
13
+ "dependencies": {
14
+ "@radix-ui/react-compose-refs": "1.1.3"
15
+ },
16
+ "devDependencies": {
17
+ "@types/react": "^19.2.2",
18
+ "@types/react-dom": "^19.2.2",
19
+ "react": "^19.2.0",
20
+ "react-dom": "^19.2.0",
21
+ "typescript": "^5.9.3",
22
+ "@repo/typescript-config": "0.0.0",
23
+ "@repo/builder": "0.0.0"
24
+ },
25
+ "peerDependencies": {
26
+ "@types/react": "*",
27
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
28
+ },
29
+ "peerDependenciesMeta": {
30
+ "@types/react": {
31
+ "optional": true
32
+ }
33
+ },
34
+ "homepage": "https://radix-ui.com/primitives",
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/radix-ui/primitives.git",
38
+ "directory": "packages/react/slot"
39
+ },
40
+ "bugs": {
41
+ "url": "https://github.com/radix-ui/primitives/issues"
42
+ },
43
+ "scripts": {
44
+ "lint": "oxlint --max-warnings 0 src",
45
+ "clean": "rm -rf dist",
46
+ "reset": "rm -rf dist node_modules",
47
+ "typecheck": "tsc --noEmit",
48
+ "build": "radix-build"
49
+ },
50
+ "types": "./dist/index.d.ts",
51
+ "exports": {
52
+ ".": {
53
+ "import": {
54
+ "types": "./dist/index.d.mts",
55
+ "default": "./dist/index.mjs"
56
+ },
57
+ "require": {
58
+ "types": "./dist/index.d.ts",
59
+ "default": "./dist/index.js"
60
+ }
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 WorkOS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ # `react-tooltip`
2
+
3
+ View docs [here](https://radix-ui.com/primitives/docs/components/tooltip).