@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.
- package/LICENSE +27 -1
- package/NOTICE +4 -0
- package/dist/assistant-embed-scaffold-template.d.ts +10 -0
- package/dist/assistant-embed-scaffold-template.d.ts.map +1 -0
- package/dist/assistant-embed-scaffold-template.js +74 -0
- package/dist/assistant-embed-scaffold-template.js.map +1 -0
- package/dist/commands/assistant-embed-ops.d.ts +2 -0
- package/dist/commands/assistant-embed-ops.d.ts.map +1 -0
- package/dist/commands/assistant-embed-ops.js +87 -0
- package/dist/commands/assistant-embed-ops.js.map +1 -0
- package/dist/commands/assistant-ops.d.ts.map +1 -1
- package/dist/commands/assistant-ops.js +32 -1
- package/dist/commands/assistant-ops.js.map +1 -1
- package/dist/commands/catalog-data-resources.d.ts.map +1 -1
- package/dist/commands/catalog-data-resources.js +11 -0
- package/dist/commands/catalog-data-resources.js.map +1 -1
- package/dist/commands/deploy-ops.d.ts +2 -0
- package/dist/commands/deploy-ops.d.ts.map +1 -1
- package/dist/commands/deploy-ops.js +18 -0
- package/dist/commands/deploy-ops.js.map +1 -1
- package/dist/commands/mcp-apps.js +20 -0
- package/dist/commands/mcp-apps.js.map +1 -1
- package/dist/commands/project-setup.d.ts +2 -2
- package/dist/commands/project-setup.d.ts.map +1 -1
- package/dist/commands/project-setup.js +5 -4
- package/dist/commands/project-setup.js.map +1 -1
- package/dist/control-plane.d.ts.map +1 -1
- package/dist/control-plane.js +2 -0
- package/dist/control-plane.js.map +1 -1
- package/dist/deploy.d.ts +2 -1
- package/dist/deploy.d.ts.map +1 -1
- package/dist/deploy.js +57 -40
- package/dist/deploy.js.map +1 -1
- package/dist/first-run.js +1 -1
- package/dist/first-run.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/openapi-import.d.ts.map +1 -1
- package/dist/openapi-import.js +6 -1
- package/dist/openapi-import.js.map +1 -1
- package/dist/project-scaffold-templates.d.ts +9 -6
- package/dist/project-scaffold-templates.d.ts.map +1 -1
- package/dist/project-scaffold-templates.js +9 -200
- package/dist/project-scaffold-templates.js.map +1 -1
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +5 -2
- package/dist/project.js.map +1 -1
- package/dist/react-widget-build.js +10 -0
- package/dist/react-widget-build.js.map +1 -1
- package/dist/react.d.ts +2 -2
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +2 -1
- package/dist/react.js.map +1 -1
- package/dist/widget-focused-template.d.ts +4 -0
- package/dist/widget-focused-template.d.ts.map +1 -0
- package/dist/widget-focused-template.js +75 -0
- package/dist/widget-focused-template.js.map +1 -0
- package/dist/widget-scaffold-template.d.ts +4 -0
- package/dist/widget-scaffold-template.d.ts.map +1 -0
- package/dist/widget-scaffold-template.js +228 -0
- package/dist/widget-scaffold-template.js.map +1 -0
- package/dist/widget-showcase-template.d.ts +5 -0
- package/dist/widget-showcase-template.d.ts.map +1 -0
- package/dist/widget-showcase-template.js +478 -0
- package/dist/widget-showcase-template.js.map +1 -0
- package/node_modules/@floating-ui/core/LICENSE +20 -0
- package/node_modules/@floating-ui/core/README.md +4 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs +1 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs +1184 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +531 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +531 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js +1058 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1058 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js +1203 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js +1 -0
- package/node_modules/@floating-ui/core/package.json +63 -0
- package/node_modules/@floating-ui/dom/LICENSE +20 -0
- package/node_modules/@floating-ui/dom/README.md +4 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs +1 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs +956 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts +358 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts +358 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js +781 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +781 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js +975 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.min.js +1 -0
- package/node_modules/@floating-ui/dom/package.json +70 -0
- package/node_modules/@floating-ui/react-dom/LICENSE +20 -0
- package/node_modules/@floating-ui/react-dom/README.md +3 -0
- package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.d.mts +307 -0
- package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.d.ts +307 -0
- package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js +406 -0
- package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +406 -0
- package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js +457 -0
- package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.min.js +1 -0
- package/node_modules/@floating-ui/react-dom/package.json +75 -0
- package/node_modules/@floating-ui/utils/LICENSE +20 -0
- package/node_modules/@floating-ui/utils/README.md +4 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +103 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +103 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.esm.js +165 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +165 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.js +192 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.min.js +1 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.esm.js +136 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +136 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.js +167 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.min.js +1 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.esm.js +165 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.umd.js +192 -0
- package/node_modules/@floating-ui/utils/dom/package.json +6 -0
- package/node_modules/@floating-ui/utils/package.json +70 -0
- package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.js +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js +7 -7
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.js +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/index.js +4 -0
- package/node_modules/@noodle-borg/agent-kit/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js +36 -22
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-content.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-content.js +6 -3
- package/node_modules/@noodle-borg/agent-kit/dist/skill-content.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.d.ts +3 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.d.ts.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.js +166 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.js.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-operations-refs.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-operations-refs.js +5 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-operations-refs.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/package.json +2 -1
- package/node_modules/@noodle-borg/auth/package.json +1 -0
- package/node_modules/@noodle-borg/authoring/dist/customer-auth.d.ts +5 -5
- package/node_modules/@noodle-borg/authoring/dist/customer-auth.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/customer-auth.js +11 -5
- package/node_modules/@noodle-borg/authoring/dist/customer-auth.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/index.d.ts +0 -2
- package/node_modules/@noodle-borg/authoring/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/index.js +0 -1
- package/node_modules/@noodle-borg/authoring/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/bridge.d.ts +22 -2
- package/node_modules/@noodle-borg/authoring/dist/react/bridge.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/bridge.js +15 -6
- package/node_modules/@noodle-borg/authoring/dist/react/bridge.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/components.d.ts +400 -666
- package/node_modules/@noodle-borg/authoring/dist/react/components.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/components.js +114 -23
- package/node_modules/@noodle-borg/authoring/dist/react/components.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/display-components.d.ts +39 -0
- package/node_modules/@noodle-borg/authoring/dist/react/display-components.d.ts.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/display-components.js +55 -0
- package/node_modules/@noodle-borg/authoring/dist/react/display-components.js.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/field-context.d.ts +28 -0
- package/node_modules/@noodle-borg/authoring/dist/react/field-context.d.ts.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/field-context.js +20 -0
- package/node_modules/@noodle-borg/authoring/dist/react/field-context.js.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/form-components.d.ts +114 -0
- package/node_modules/@noodle-borg/authoring/dist/react/form-components.d.ts.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/form-components.js +147 -0
- package/node_modules/@noodle-borg/authoring/dist/react/form-components.js.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/hooks.d.ts +2 -2
- package/node_modules/@noodle-borg/authoring/dist/react/hooks.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/hooks.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/index.d.ts +4 -1
- package/node_modules/@noodle-borg/authoring/dist/react/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/index.js +3 -0
- package/node_modules/@noodle-borg/authoring/dist/react/index.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/native-components.d.ts +76 -76
- package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.d.ts +67 -0
- package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.d.ts.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.js +86 -0
- package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.js.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.d.ts +971 -386
- package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.js +57 -10
- package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react.d.ts +2 -2
- package/node_modules/@noodle-borg/authoring/dist/react.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react.js +2 -1
- package/node_modules/@noodle-borg/authoring/dist/react.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/server.d.ts +0 -1
- package/node_modules/@noodle-borg/authoring/dist/server.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/server.js +24 -6
- package/node_modules/@noodle-borg/authoring/dist/server.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/package.json +8 -1
- package/node_modules/@noodle-borg/capabilities/package.json +1 -0
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.d.ts +3 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/compile.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/compile.js +48 -3
- package/node_modules/@noodle-borg/compiler/dist/compile.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/errors.d.ts +1 -1
- package/node_modules/@noodle-borg/compiler/dist/errors.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.js +1 -4
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-structural.d.ts +7 -9
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-structural.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-structural.js +8 -18
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-structural.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/index.d.ts +1 -1
- package/node_modules/@noodle-borg/compiler/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/index.js +1 -1
- package/node_modules/@noodle-borg/compiler/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/manifest/csp-origins.js +2 -2
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts +1 -5
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js +19 -8
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/schema-validation.d.ts +9 -0
- package/node_modules/@noodle-borg/compiler/dist/schema-validation.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/schema-validation.js +42 -0
- package/node_modules/@noodle-borg/compiler/dist/schema-validation.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/package.json +1 -0
- package/node_modules/@noodle-borg/compute/package.json +1 -0
- package/node_modules/@noodle-borg/connector-defs/dist/index.d.ts +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/package.json +1 -0
- package/node_modules/@noodle-borg/connector-http/package.json +1 -0
- package/node_modules/@noodle-borg/module/package.json +1 -0
- package/node_modules/@noodle-borg/module-audit/package.json +1 -0
- package/node_modules/@noodle-borg/openapi-import/dist/index.js +1 -1
- package/node_modules/@noodle-borg/openapi-import/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/openapi-import/package.json +1 -0
- package/node_modules/@noodle-borg/protocol/dist/input-validation.d.ts +9 -0
- package/node_modules/@noodle-borg/protocol/dist/input-validation.d.ts.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/input-validation.js +13 -1
- package/node_modules/@noodle-borg/protocol/dist/input-validation.js.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/sdk-server.js +8 -5
- package/node_modules/@noodle-borg/protocol/dist/sdk-server.js.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.d.ts +1 -1
- package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.d.ts.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.js +26 -2
- package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.js.map +1 -1
- package/node_modules/@noodle-borg/protocol/package.json +1 -0
- package/node_modules/@noodle-borg/runtime/package.json +1 -0
- package/node_modules/@noodle-borg/service/dist/assistant-model-stream.d.ts +19 -0
- package/node_modules/@noodle-borg/service/dist/assistant-model-stream.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/assistant-model-stream.js +84 -0
- package/node_modules/@noodle-borg/service/dist/assistant-model-stream.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/assistant-store.d.ts +2 -0
- package/node_modules/@noodle-borg/service/dist/assistant-store.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/assistant-store.js +11 -0
- package/node_modules/@noodle-borg/service/dist/assistant-store.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/auth/deploy-gate.d.ts +4 -0
- package/node_modules/@noodle-borg/service/dist/auth/deploy-gate.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/auth/deploy-gate.js +10 -1
- package/node_modules/@noodle-borg/service/dist/auth/deploy-gate.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/build-info.d.ts +9 -0
- package/node_modules/@noodle-borg/service/dist/build-info.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/build-info.js +50 -0
- package/node_modules/@noodle-borg/service/dist/build-info.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/client-compatibility.d.ts +5 -0
- package/node_modules/@noodle-borg/service/dist/client-compatibility.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/client-compatibility.js +12 -0
- package/node_modules/@noodle-borg/service/dist/client-compatibility.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/connector-normalize.d.ts +6 -0
- package/node_modules/@noodle-borg/service/dist/connector-normalize.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/connector-normalize.js +80 -0
- package/node_modules/@noodle-borg/service/dist/connector-normalize.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/index.d.ts +3 -1
- package/node_modules/@noodle-borg/service/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/index.js +2 -0
- package/node_modules/@noodle-borg/service/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/main.js +8 -0
- package/node_modules/@noodle-borg/service/dist/main.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/manifest-normalize.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/manifest-normalize.js +13 -0
- package/node_modules/@noodle-borg/service/dist/manifest-normalize.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/options.d.ts +7 -0
- package/node_modules/@noodle-borg/service/dist/options.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/personal-workspace.d.ts +1 -0
- package/node_modules/@noodle-borg/service/dist/personal-workspace.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/personal-workspace.js +4 -5
- package/node_modules/@noodle-borg/service/dist/personal-workspace.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/registry.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/registry.js +10 -4
- package/node_modules/@noodle-borg/service/dist/registry.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/access-mode.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/access-mode.js +2 -6
- package/node_modules/@noodle-borg/service/dist/routes/access-mode.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assets.d.ts +6 -2
- package/node_modules/@noodle-borg/service/dist/routes/assets.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assets.js +12 -52
- package/node_modules/@noodle-borg/service/dist/routes/assets.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-dispatch.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-dispatch.js +7 -2
- package/node_modules/@noodle-borg/service/dist/routes/assistant-dispatch.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant.d.ts +1 -0
- package/node_modules/@noodle-borg/service/dist/routes/assistant.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant.js +103 -35
- package/node_modules/@noodle-borg/service/dist/routes/assistant.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/control-plane.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/control-plane.js +22 -27
- package/node_modules/@noodle-borg/service/dist/routes/control-plane.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/org-admin-dispatch.d.ts +3 -0
- package/node_modules/@noodle-borg/service/dist/routes/org-admin-dispatch.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/org-admin-dispatch.js +6 -1
- package/node_modules/@noodle-borg/service/dist/routes/org-admin-dispatch.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/org-admin.d.ts +5 -1
- package/node_modules/@noodle-borg/service/dist/routes/org-admin.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/org-admin.js +31 -3
- package/node_modules/@noodle-borg/service/dist/routes/org-admin.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/serve.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/serve.js +12 -0
- package/node_modules/@noodle-borg/service/dist/serve.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/service.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/service.js +6 -3
- package/node_modules/@noodle-borg/service/dist/service.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/control-plane.d.ts +15 -1
- package/node_modules/@noodle-borg/service/dist/store/control-plane.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/control-plane.js +81 -0
- package/node_modules/@noodle-borg/service/dist/store/control-plane.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-assistant.d.ts +1 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-assistant.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-assistant.js +18 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-assistant.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-control-plane.d.ts +15 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-control-plane.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-control-plane.js +83 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-control-plane.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-schema.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-schema.js +21 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-schema.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-signup.d.ts +22 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-signup.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-signup.js +26 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-signup.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres.d.ts +2 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres.js +10 -9
- package/node_modules/@noodle-borg/service/dist/store/postgres.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store.d.ts +40 -0
- package/node_modules/@noodle-borg/service/dist/store.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/welcome-email.d.ts +65 -0
- package/node_modules/@noodle-borg/service/dist/welcome-email.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/welcome-email.js +243 -0
- package/node_modules/@noodle-borg/service/dist/welcome-email.js.map +1 -0
- package/node_modules/@noodle-borg/service/package.json +2 -0
- package/node_modules/@noodle-borg/transport-http/dist/examples/serve-demo.js +1 -1
- package/node_modules/@noodle-borg/transport-http/package.json +1 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/assistant.d.ts +26 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/assistant.d.ts.map +1 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/assistant.js +31 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/assistant.js.map +1 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/index.d.ts +261 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/index.d.ts.map +1 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/index.js +150 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/index.js.map +1 -0
- package/node_modules/@noodle-borg/wire-contracts/package.json +31 -0
- package/node_modules/@radix-ui/primitive/LICENSE +21 -0
- package/node_modules/@radix-ui/primitive/README.md +3 -0
- package/node_modules/@radix-ui/primitive/dist/index.d.mts +20 -0
- package/node_modules/@radix-ui/primitive/dist/index.d.ts +20 -0
- package/node_modules/@radix-ui/primitive/dist/index.js +76 -0
- package/node_modules/@radix-ui/primitive/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/primitive/dist/index.mjs +53 -0
- package/node_modules/@radix-ui/primitive/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/primitive/package.json +47 -0
- package/node_modules/@radix-ui/react-arrow/LICENSE +21 -0
- package/node_modules/@radix-ui/react-arrow/README.md +3 -0
- package/node_modules/@radix-ui/react-arrow/dist/index.d.mts +10 -0
- package/node_modules/@radix-ui/react-arrow/dist/index.d.ts +10 -0
- package/node_modules/@radix-ui/react-arrow/dist/index.js +60 -0
- package/node_modules/@radix-ui/react-arrow/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-arrow/dist/index.mjs +27 -0
- package/node_modules/@radix-ui/react-arrow/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-arrow/package.json +68 -0
- package/node_modules/@radix-ui/react-collection/LICENSE +21 -0
- package/node_modules/@radix-ui/react-collection/README.md +3 -0
- package/node_modules/@radix-ui/react-collection/dist/index.d.mts +98 -0
- package/node_modules/@radix-ui/react-collection/dist/index.d.ts +98 -0
- package/node_modules/@radix-ui/react-collection/dist/index.js +577 -0
- package/node_modules/@radix-ui/react-collection/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-collection/dist/index.mjs +545 -0
- package/node_modules/@radix-ui/react-collection/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-collection/package.json +71 -0
- package/node_modules/@radix-ui/react-compose-refs/LICENSE +21 -0
- package/node_modules/@radix-ui/react-compose-refs/README.md +3 -0
- package/node_modules/@radix-ui/react-compose-refs/dist/index.d.mts +15 -0
- package/node_modules/@radix-ui/react-compose-refs/dist/index.d.ts +15 -0
- package/node_modules/@radix-ui/react-compose-refs/dist/index.js +74 -0
- package/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +41 -0
- package/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-compose-refs/package.json +60 -0
- package/node_modules/@radix-ui/react-context/LICENSE +21 -0
- package/node_modules/@radix-ui/react-context/README.md +3 -0
- package/node_modules/@radix-ui/react-context/dist/index.d.mts +21 -0
- package/node_modules/@radix-ui/react-context/dist/index.d.ts +21 -0
- package/node_modules/@radix-ui/react-context/dist/index.js +116 -0
- package/node_modules/@radix-ui/react-context/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-context/dist/index.mjs +83 -0
- package/node_modules/@radix-ui/react-context/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-context/package.json +60 -0
- package/node_modules/@radix-ui/react-dialog/LICENSE +21 -0
- package/node_modules/@radix-ui/react-dialog/README.md +3 -0
- package/node_modules/@radix-ui/react-dialog/dist/index.d.mts +99 -0
- package/node_modules/@radix-ui/react-dialog/dist/index.d.ts +99 -0
- package/node_modules/@radix-ui/react-dialog/dist/index.js +330 -0
- package/node_modules/@radix-ui/react-dialog/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-dialog/dist/index.mjs +298 -0
- package/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-dialog/package.json +81 -0
- package/node_modules/@radix-ui/react-direction/LICENSE +21 -0
- package/node_modules/@radix-ui/react-direction/README.md +3 -0
- package/node_modules/@radix-ui/react-direction/dist/index.d.mts +12 -0
- package/node_modules/@radix-ui/react-direction/dist/index.d.ts +12 -0
- package/node_modules/@radix-ui/react-direction/dist/index.js +53 -0
- package/node_modules/@radix-ui/react-direction/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-direction/dist/index.mjs +21 -0
- package/node_modules/@radix-ui/react-direction/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-direction/package.json +60 -0
- package/node_modules/@radix-ui/react-dismissable-layer/LICENSE +21 -0
- package/node_modules/@radix-ui/react-dismissable-layer/README.md +3 -0
- package/node_modules/@radix-ui/react-dismissable-layer/dist/index.d.mts +62 -0
- package/node_modules/@radix-ui/react-dismissable-layer/dist/index.d.ts +62 -0
- package/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +364 -0
- package/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +332 -0
- package/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-dismissable-layer/package.json +73 -0
- package/node_modules/@radix-ui/react-dropdown-menu/LICENSE +21 -0
- package/node_modules/@radix-ui/react-dropdown-menu/README.md +3 -0
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.mts +97 -0
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.ts +97 -0
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +338 -0
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +306 -0
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-dropdown-menu/package.json +76 -0
- package/node_modules/@radix-ui/react-focus-guards/LICENSE +21 -0
- package/node_modules/@radix-ui/react-focus-guards/README.md +3 -0
- package/node_modules/@radix-ui/react-focus-guards/dist/index.d.mts +13 -0
- package/node_modules/@radix-ui/react-focus-guards/dist/index.d.ts +13 -0
- package/node_modules/@radix-ui/react-focus-guards/dist/index.js +81 -0
- package/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +49 -0
- package/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-focus-guards/package.json +60 -0
- package/node_modules/@radix-ui/react-focus-scope/LICENSE +21 -0
- package/node_modules/@radix-ui/react-focus-scope/README.md +3 -0
- package/node_modules/@radix-ui/react-focus-scope/dist/index.d.mts +32 -0
- package/node_modules/@radix-ui/react-focus-scope/dist/index.d.ts +32 -0
- package/node_modules/@radix-ui/react-focus-scope/dist/index.js +246 -0
- package/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +214 -0
- package/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-focus-scope/package.json +70 -0
- package/node_modules/@radix-ui/react-id/LICENSE +21 -0
- package/node_modules/@radix-ui/react-id/README.md +3 -0
- package/node_modules/@radix-ui/react-id/dist/index.d.mts +3 -0
- package/node_modules/@radix-ui/react-id/dist/index.d.ts +3 -0
- package/node_modules/@radix-ui/react-id/dist/index.js +49 -0
- package/node_modules/@radix-ui/react-id/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-id/dist/index.mjs +16 -0
- package/node_modules/@radix-ui/react-id/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-id/package.json +63 -0
- package/node_modules/@radix-ui/react-menu/LICENSE +21 -0
- package/node_modules/@radix-ui/react-menu/README.md +3 -0
- package/node_modules/@radix-ui/react-menu/dist/index.d.mts +175 -0
- package/node_modules/@radix-ui/react-menu/dist/index.d.ts +175 -0
- package/node_modules/@radix-ui/react-menu/dist/index.js +913 -0
- package/node_modules/@radix-ui/react-menu/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-menu/dist/index.mjs +881 -0
- package/node_modules/@radix-ui/react-menu/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-menu/package.json +86 -0
- package/node_modules/@radix-ui/react-popover/LICENSE +21 -0
- package/node_modules/@radix-ui/react-popover/README.md +3 -0
- package/node_modules/@radix-ui/react-popover/dist/index.d.mts +85 -0
- package/node_modules/@radix-ui/react-popover/dist/index.d.ts +85 -0
- package/node_modules/@radix-ui/react-popover/dist/index.js +353 -0
- package/node_modules/@radix-ui/react-popover/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-popover/dist/index.mjs +321 -0
- package/node_modules/@radix-ui/react-popover/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-popover/package.json +82 -0
- package/node_modules/@radix-ui/react-popper/LICENSE +21 -0
- package/node_modules/@radix-ui/react-popper/README.md +3 -0
- package/node_modules/@radix-ui/react-popper/dist/index.d.mts +46 -0
- package/node_modules/@radix-ui/react-popper/dist/index.d.ts +46 -0
- package/node_modules/@radix-ui/react-popper/dist/index.js +384 -0
- package/node_modules/@radix-ui/react-popper/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-popper/dist/index.mjs +362 -0
- package/node_modules/@radix-ui/react-popper/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-popper/package.json +78 -0
- package/node_modules/@radix-ui/react-portal/LICENSE +21 -0
- package/node_modules/@radix-ui/react-portal/README.md +3 -0
- package/node_modules/@radix-ui/react-portal/dist/index.d.mts +14 -0
- package/node_modules/@radix-ui/react-portal/dist/index.d.ts +14 -0
- package/node_modules/@radix-ui/react-portal/dist/index.js +55 -0
- package/node_modules/@radix-ui/react-portal/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-portal/dist/index.mjs +23 -0
- package/node_modules/@radix-ui/react-portal/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-portal/package.json +69 -0
- package/node_modules/@radix-ui/react-presence/LICENSE +21 -0
- package/node_modules/@radix-ui/react-presence/README.md +3 -0
- package/node_modules/@radix-ui/react-presence/dist/index.d.mts +12 -0
- package/node_modules/@radix-ui/react-presence/dist/index.d.ts +12 -0
- package/node_modules/@radix-ui/react-presence/dist/index.js +204 -0
- package/node_modules/@radix-ui/react-presence/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-presence/dist/index.mjs +172 -0
- package/node_modules/@radix-ui/react-presence/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-presence/package.json +68 -0
- package/node_modules/@radix-ui/react-primitive/LICENSE +21 -0
- package/node_modules/@radix-ui/react-primitive/README.md +3 -0
- package/node_modules/@radix-ui/react-primitive/dist/index.d.mts +57 -0
- package/node_modules/@radix-ui/react-primitive/dist/index.d.ts +57 -0
- package/node_modules/@radix-ui/react-primitive/dist/index.js +80 -0
- package/node_modules/@radix-ui/react-primitive/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-primitive/dist/index.mjs +47 -0
- package/node_modules/@radix-ui/react-primitive/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-primitive/package.json +68 -0
- package/node_modules/@radix-ui/react-roving-focus/LICENSE +21 -0
- package/node_modules/@radix-ui/react-roving-focus/README.md +3 -0
- package/node_modules/@radix-ui/react-roving-focus/dist/index.d.mts +49 -0
- package/node_modules/@radix-ui/react-roving-focus/dist/index.d.ts +49 -0
- package/node_modules/@radix-ui/react-roving-focus/dist/index.js +263 -0
- package/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +231 -0
- package/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-roving-focus/package.json +76 -0
- package/node_modules/@radix-ui/react-slot/LICENSE +21 -0
- package/node_modules/@radix-ui/react-slot/README.md +3 -0
- package/node_modules/@radix-ui/react-slot/dist/index.d.mts +29 -0
- package/node_modules/@radix-ui/react-slot/dist/index.d.ts +29 -0
- package/node_modules/@radix-ui/react-slot/dist/index.js +170 -0
- package/node_modules/@radix-ui/react-slot/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-slot/dist/index.mjs +137 -0
- package/node_modules/@radix-ui/react-slot/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-slot/package.json +63 -0
- package/node_modules/@radix-ui/react-tooltip/LICENSE +21 -0
- package/node_modules/@radix-ui/react-tooltip/README.md +3 -0
- package/node_modules/@radix-ui/react-tooltip/dist/index.d.mts +101 -0
- package/node_modules/@radix-ui/react-tooltip/dist/index.d.ts +101 -0
- package/node_modules/@radix-ui/react-tooltip/dist/index.js +543 -0
- package/node_modules/@radix-ui/react-tooltip/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-tooltip/dist/index.mjs +511 -0
- package/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-tooltip/package.json +79 -0
- package/node_modules/@radix-ui/react-use-callback-ref/LICENSE +21 -0
- package/node_modules/@radix-ui/react-use-callback-ref/README.md +3 -0
- package/node_modules/@radix-ui/react-use-callback-ref/dist/index.d.mts +7 -0
- package/node_modules/@radix-ui/react-use-callback-ref/dist/index.d.ts +7 -0
- package/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +46 -0
- package/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +13 -0
- package/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-use-callback-ref/package.json +60 -0
- package/node_modules/@radix-ui/react-use-controllable-state/LICENSE +21 -0
- package/node_modules/@radix-ui/react-use-controllable-state/README.md +3 -0
- package/node_modules/@radix-ui/react-use-controllable-state/dist/index.d.mts +40 -0
- package/node_modules/@radix-ui/react-use-controllable-state/dist/index.d.ts +40 -0
- package/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +169 -0
- package/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +136 -0
- package/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-use-controllable-state/package.json +64 -0
- package/node_modules/@radix-ui/react-use-effect-event/LICENSE +21 -0
- package/node_modules/@radix-ui/react-use-effect-event/README.md +5 -0
- package/node_modules/@radix-ui/react-use-effect-event/dist/index.d.mts +8 -0
- package/node_modules/@radix-ui/react-use-effect-event/dist/index.d.ts +8 -0
- package/node_modules/@radix-ui/react-use-effect-event/dist/index.js +60 -0
- package/node_modules/@radix-ui/react-use-effect-event/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs +27 -0
- package/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-use-effect-event/package.json +65 -0
- package/node_modules/@radix-ui/react-use-effect-event/src/index.ts +1 -0
- package/node_modules/@radix-ui/react-use-effect-event/src/use-effect-event.tsx +36 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/LICENSE +21 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/README.md +3 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.d.mts +6 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.d.ts +6 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +52 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +19 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/package.json +63 -0
- package/node_modules/@radix-ui/react-use-layout-effect/LICENSE +21 -0
- package/node_modules/@radix-ui/react-use-layout-effect/README.md +3 -0
- package/node_modules/@radix-ui/react-use-layout-effect/dist/index.d.mts +12 -0
- package/node_modules/@radix-ui/react-use-layout-effect/dist/index.d.ts +12 -0
- package/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +41 -0
- package/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +8 -0
- package/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-use-layout-effect/package.json +60 -0
- package/node_modules/@radix-ui/react-use-rect/LICENSE +21 -0
- package/node_modules/@radix-ui/react-use-rect/README.md +3 -0
- package/node_modules/@radix-ui/react-use-rect/dist/index.d.mts +9 -0
- package/node_modules/@radix-ui/react-use-rect/dist/index.d.ts +9 -0
- package/node_modules/@radix-ui/react-use-rect/dist/index.js +54 -0
- package/node_modules/@radix-ui/react-use-rect/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-use-rect/dist/index.mjs +21 -0
- package/node_modules/@radix-ui/react-use-rect/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-use-rect/package.json +63 -0
- package/node_modules/@radix-ui/react-use-size/LICENSE +21 -0
- package/node_modules/@radix-ui/react-use-size/README.md +3 -0
- package/node_modules/@radix-ui/react-use-size/dist/index.d.mts +6 -0
- package/node_modules/@radix-ui/react-use-size/dist/index.d.ts +6 -0
- package/node_modules/@radix-ui/react-use-size/dist/index.js +74 -0
- package/node_modules/@radix-ui/react-use-size/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-use-size/dist/index.mjs +41 -0
- package/node_modules/@radix-ui/react-use-size/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-use-size/package.json +63 -0
- package/node_modules/@radix-ui/react-visually-hidden/LICENSE +21 -0
- package/node_modules/@radix-ui/react-visually-hidden/README.md +3 -0
- package/node_modules/@radix-ui/react-visually-hidden/dist/index.d.mts +22 -0
- package/node_modules/@radix-ui/react-visually-hidden/dist/index.d.ts +22 -0
- package/node_modules/@radix-ui/react-visually-hidden/dist/index.js +71 -0
- package/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +38 -0
- package/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-visually-hidden/package.json +68 -0
- package/node_modules/@radix-ui/rect/LICENSE +21 -0
- package/node_modules/@radix-ui/rect/README.md +3 -0
- package/node_modules/@radix-ui/rect/dist/index.d.mts +16 -0
- package/node_modules/@radix-ui/rect/dist/index.d.ts +16 -0
- package/node_modules/@radix-ui/rect/dist/index.js +73 -0
- package/node_modules/@radix-ui/rect/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/rect/dist/index.mjs +50 -0
- package/node_modules/@radix-ui/rect/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/rect/package.json +47 -0
- package/node_modules/aria-hidden/LICENSE +21 -0
- package/node_modules/aria-hidden/README.md +99 -0
- package/node_modules/aria-hidden/dist/es2015/index.d.ts +29 -0
- package/node_modules/aria-hidden/dist/es2015/index.js +167 -0
- package/node_modules/aria-hidden/dist/es2019/index.d.ts +29 -0
- package/node_modules/aria-hidden/dist/es2019/index.js +156 -0
- package/node_modules/aria-hidden/dist/es5/index.d.ts +29 -0
- package/node_modules/aria-hidden/dist/es5/index.js +174 -0
- package/node_modules/aria-hidden/package.json +71 -0
- package/node_modules/detect-node-es/LICENSE +21 -0
- package/node_modules/detect-node-es/Readme.md +39 -0
- package/node_modules/detect-node-es/es5/browser.js +2 -0
- package/node_modules/detect-node-es/es5/node.d.ts +4 -0
- package/node_modules/detect-node-es/es5/node.js +2 -0
- package/node_modules/detect-node-es/esm/browser.js +2 -0
- package/node_modules/detect-node-es/esm/node.js +2 -0
- package/node_modules/detect-node-es/package.json +29 -0
- package/node_modules/get-nonce/LICENSE +21 -0
- package/node_modules/get-nonce/README.md +54 -0
- package/node_modules/get-nonce/dist/es2015/index.d.ts +2 -0
- package/node_modules/get-nonce/dist/es2015/index.js +13 -0
- package/node_modules/get-nonce/dist/es5/index.d.ts +2 -0
- package/node_modules/get-nonce/dist/es5/index.js +15 -0
- package/node_modules/get-nonce/package.json +68 -0
- package/node_modules/react-remove-scroll/LICENSE +21 -0
- package/node_modules/react-remove-scroll/README.md +153 -0
- package/node_modules/react-remove-scroll/UI/UI.d.ts +1 -0
- package/node_modules/react-remove-scroll/UI/package.json +8 -0
- package/node_modules/react-remove-scroll/dist/es2015/Combination.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es2015/Combination.js +7 -0
- package/node_modules/react-remove-scroll/dist/es2015/SideEffect.d.ts +5 -0
- package/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +164 -0
- package/node_modules/react-remove-scroll/dist/es2015/UI.d.ts +7 -0
- package/node_modules/react-remove-scroll/dist/es2015/UI.js +36 -0
- package/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +19 -0
- package/node_modules/react-remove-scroll/dist/es2015/handleScroll.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +108 -0
- package/node_modules/react-remove-scroll/dist/es2015/index.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es2015/index.js +2 -0
- package/node_modules/react-remove-scroll/dist/es2015/medium.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es2015/medium.js +2 -0
- package/node_modules/react-remove-scroll/dist/es2015/pinchAndZoom.d.ts +8 -0
- package/node_modules/react-remove-scroll/dist/es2015/pinchAndZoom.js +33 -0
- package/node_modules/react-remove-scroll/dist/es2015/sidecar.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es2015/sidecar.js +4 -0
- package/node_modules/react-remove-scroll/dist/es2015/types.d.ts +104 -0
- package/node_modules/react-remove-scroll/dist/es2015/types.js +1 -0
- package/node_modules/react-remove-scroll/dist/es2019/Combination.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es2019/Combination.js +6 -0
- package/node_modules/react-remove-scroll/dist/es2019/SideEffect.d.ts +5 -0
- package/node_modules/react-remove-scroll/dist/es2019/SideEffect.js +162 -0
- package/node_modules/react-remove-scroll/dist/es2019/UI.d.ts +7 -0
- package/node_modules/react-remove-scroll/dist/es2019/UI.js +41 -0
- package/node_modules/react-remove-scroll/dist/es2019/aggresiveCapture.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es2019/aggresiveCapture.js +19 -0
- package/node_modules/react-remove-scroll/dist/es2019/handleScroll.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es2019/handleScroll.js +96 -0
- package/node_modules/react-remove-scroll/dist/es2019/index.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es2019/index.js +2 -0
- package/node_modules/react-remove-scroll/dist/es2019/medium.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es2019/medium.js +2 -0
- package/node_modules/react-remove-scroll/dist/es2019/pinchAndZoom.d.ts +8 -0
- package/node_modules/react-remove-scroll/dist/es2019/pinchAndZoom.js +33 -0
- package/node_modules/react-remove-scroll/dist/es2019/sidecar.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es2019/sidecar.js +4 -0
- package/node_modules/react-remove-scroll/dist/es2019/types.d.ts +104 -0
- package/node_modules/react-remove-scroll/dist/es2019/types.js +1 -0
- package/node_modules/react-remove-scroll/dist/es5/Combination.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es5/Combination.js +9 -0
- package/node_modules/react-remove-scroll/dist/es5/SideEffect.d.ts +5 -0
- package/node_modules/react-remove-scroll/dist/es5/SideEffect.js +170 -0
- package/node_modules/react-remove-scroll/dist/es5/UI.d.ts +7 -0
- package/node_modules/react-remove-scroll/dist/es5/UI.js +39 -0
- package/node_modules/react-remove-scroll/dist/es5/aggresiveCapture.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es5/aggresiveCapture.js +22 -0
- package/node_modules/react-remove-scroll/dist/es5/handleScroll.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es5/handleScroll.js +113 -0
- package/node_modules/react-remove-scroll/dist/es5/index.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es5/index.js +6 -0
- package/node_modules/react-remove-scroll/dist/es5/medium.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es5/medium.js +5 -0
- package/node_modules/react-remove-scroll/dist/es5/pinchAndZoom.d.ts +8 -0
- package/node_modules/react-remove-scroll/dist/es5/pinchAndZoom.js +37 -0
- package/node_modules/react-remove-scroll/dist/es5/sidecar.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es5/sidecar.js +6 -0
- package/node_modules/react-remove-scroll/dist/es5/types.d.ts +104 -0
- package/node_modules/react-remove-scroll/dist/es5/types.js +2 -0
- package/node_modules/react-remove-scroll/package.json +98 -0
- package/node_modules/react-remove-scroll/sidecar/package.json +7 -0
- package/node_modules/react-remove-scroll/sidecar/sidecar.d.ts +5 -0
- package/node_modules/react-remove-scroll-bar/README.md +52 -0
- package/node_modules/react-remove-scroll-bar/constants/package.json +8 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/component.d.ts +13 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/component.js +53 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/constants.d.ts +8 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +8 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/index.d.ts +4 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/index.js +4 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/utils.d.ts +14 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +29 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/component.d.ts +13 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/component.js +85 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/constants.d.ts +8 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/constants.js +8 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/index.d.ts +4 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/index.js +4 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/utils.d.ts +14 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/utils.js +28 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/component.d.ts +13 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/component.js +59 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/constants.d.ts +8 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/constants.js +11 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/index.d.ts +4 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/index.js +12 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/utils.d.ts +14 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/utils.js +33 -0
- package/node_modules/react-remove-scroll-bar/package.json +85 -0
- package/node_modules/react-style-singleton/LICENSE +21 -0
- package/node_modules/react-style-singleton/README.md +45 -0
- package/node_modules/react-style-singleton/dist/es2015/component.d.ts +21 -0
- package/node_modules/react-style-singleton/dist/es2015/component.js +16 -0
- package/node_modules/react-style-singleton/dist/es2015/hook.d.ts +23 -0
- package/node_modules/react-style-singleton/dist/es2015/hook.js +22 -0
- package/node_modules/react-style-singleton/dist/es2015/index.d.ts +3 -0
- package/node_modules/react-style-singleton/dist/es2015/index.js +3 -0
- package/node_modules/react-style-singleton/dist/es2015/singleton.d.ts +4 -0
- package/node_modules/react-style-singleton/dist/es2015/singleton.js +48 -0
- package/node_modules/react-style-singleton/dist/es2019/component.d.ts +21 -0
- package/node_modules/react-style-singleton/dist/es2019/component.js +15 -0
- package/node_modules/react-style-singleton/dist/es2019/hook.d.ts +23 -0
- package/node_modules/react-style-singleton/dist/es2019/hook.js +22 -0
- package/node_modules/react-style-singleton/dist/es2019/index.d.ts +3 -0
- package/node_modules/react-style-singleton/dist/es2019/index.js +3 -0
- package/node_modules/react-style-singleton/dist/es2019/singleton.d.ts +4 -0
- package/node_modules/react-style-singleton/dist/es2019/singleton.js +48 -0
- package/node_modules/react-style-singleton/dist/es5/component.d.ts +21 -0
- package/node_modules/react-style-singleton/dist/es5/component.js +20 -0
- package/node_modules/react-style-singleton/dist/es5/hook.d.ts +23 -0
- package/node_modules/react-style-singleton/dist/es5/hook.js +27 -0
- package/node_modules/react-style-singleton/dist/es5/index.d.ts +3 -0
- package/node_modules/react-style-singleton/dist/es5/index.js +9 -0
- package/node_modules/react-style-singleton/dist/es5/singleton.d.ts +4 -0
- package/node_modules/react-style-singleton/dist/es5/singleton.js +52 -0
- package/node_modules/react-style-singleton/dist/index.js +1 -0
- package/node_modules/react-style-singleton/package.json +90 -0
- package/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/tslib/README.md +164 -0
- package/node_modules/tslib/SECURITY.md +41 -0
- package/node_modules/tslib/modules/index.d.ts +38 -0
- package/node_modules/tslib/modules/index.js +70 -0
- package/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/tslib/package.json +47 -0
- package/node_modules/tslib/tslib.d.ts +460 -0
- package/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/tslib/tslib.es6.js +402 -0
- package/node_modules/tslib/tslib.es6.mjs +401 -0
- package/node_modules/tslib/tslib.html +1 -0
- package/node_modules/tslib/tslib.js +484 -0
- package/node_modules/use-callback-ref/LICENSE +21 -0
- package/node_modules/use-callback-ref/README.md +170 -0
- package/node_modules/use-callback-ref/dist/es2015/assignRef.d.ts +15 -0
- package/node_modules/use-callback-ref/dist/es2015/assignRef.js +22 -0
- package/node_modules/use-callback-ref/dist/es2015/createRef.d.ts +10 -0
- package/node_modules/use-callback-ref/dist/es2015/createRef.js +23 -0
- package/node_modules/use-callback-ref/dist/es2015/index.d.ts +8 -0
- package/node_modules/use-callback-ref/dist/es2015/index.js +12 -0
- package/node_modules/use-callback-ref/dist/es2015/mergeRef.d.ts +16 -0
- package/node_modules/use-callback-ref/dist/es2015/mergeRef.js +18 -0
- package/node_modules/use-callback-ref/dist/es2015/refToCallback.d.ts +24 -0
- package/node_modules/use-callback-ref/dist/es2015/refToCallback.js +48 -0
- package/node_modules/use-callback-ref/dist/es2015/transformRef.d.ts +11 -0
- package/node_modules/use-callback-ref/dist/es2015/transformRef.js +14 -0
- package/node_modules/use-callback-ref/dist/es2015/types.d.ts +5 -0
- package/node_modules/use-callback-ref/dist/es2015/types.js +1 -0
- package/node_modules/use-callback-ref/dist/es2015/useMergeRef.d.ts +17 -0
- package/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +45 -0
- package/node_modules/use-callback-ref/dist/es2015/useRef.d.ts +16 -0
- package/node_modules/use-callback-ref/dist/es2015/useRef.js +39 -0
- package/node_modules/use-callback-ref/dist/es2015/useTransformRef.d.ts +15 -0
- package/node_modules/use-callback-ref/dist/es2015/useTransformRef.js +18 -0
- package/node_modules/use-callback-ref/dist/es2019/assignRef.d.ts +15 -0
- package/node_modules/use-callback-ref/dist/es2019/assignRef.js +22 -0
- package/node_modules/use-callback-ref/dist/es2019/createRef.d.ts +10 -0
- package/node_modules/use-callback-ref/dist/es2019/createRef.js +23 -0
- package/node_modules/use-callback-ref/dist/es2019/index.d.ts +8 -0
- package/node_modules/use-callback-ref/dist/es2019/index.js +12 -0
- package/node_modules/use-callback-ref/dist/es2019/mergeRef.d.ts +16 -0
- package/node_modules/use-callback-ref/dist/es2019/mergeRef.js +18 -0
- package/node_modules/use-callback-ref/dist/es2019/refToCallback.d.ts +24 -0
- package/node_modules/use-callback-ref/dist/es2019/refToCallback.js +48 -0
- package/node_modules/use-callback-ref/dist/es2019/transformRef.d.ts +11 -0
- package/node_modules/use-callback-ref/dist/es2019/transformRef.js +14 -0
- package/node_modules/use-callback-ref/dist/es2019/types.d.ts +5 -0
- package/node_modules/use-callback-ref/dist/es2019/types.js +1 -0
- package/node_modules/use-callback-ref/dist/es2019/useMergeRef.d.ts +17 -0
- package/node_modules/use-callback-ref/dist/es2019/useMergeRef.js +43 -0
- package/node_modules/use-callback-ref/dist/es2019/useRef.d.ts +16 -0
- package/node_modules/use-callback-ref/dist/es2019/useRef.js +39 -0
- package/node_modules/use-callback-ref/dist/es2019/useTransformRef.d.ts +15 -0
- package/node_modules/use-callback-ref/dist/es2019/useTransformRef.js +18 -0
- package/node_modules/use-callback-ref/dist/es5/assignRef.d.ts +15 -0
- package/node_modules/use-callback-ref/dist/es5/assignRef.js +26 -0
- package/node_modules/use-callback-ref/dist/es5/createRef.d.ts +10 -0
- package/node_modules/use-callback-ref/dist/es5/createRef.js +27 -0
- package/node_modules/use-callback-ref/dist/es5/index.d.ts +8 -0
- package/node_modules/use-callback-ref/dist/es5/index.js +24 -0
- package/node_modules/use-callback-ref/dist/es5/mergeRef.d.ts +16 -0
- package/node_modules/use-callback-ref/dist/es5/mergeRef.js +22 -0
- package/node_modules/use-callback-ref/dist/es5/refToCallback.d.ts +24 -0
- package/node_modules/use-callback-ref/dist/es5/refToCallback.js +53 -0
- package/node_modules/use-callback-ref/dist/es5/transformRef.d.ts +11 -0
- package/node_modules/use-callback-ref/dist/es5/transformRef.js +18 -0
- package/node_modules/use-callback-ref/dist/es5/types.d.ts +5 -0
- package/node_modules/use-callback-ref/dist/es5/types.js +2 -0
- package/node_modules/use-callback-ref/dist/es5/useMergeRef.d.ts +17 -0
- package/node_modules/use-callback-ref/dist/es5/useMergeRef.js +50 -0
- package/node_modules/use-callback-ref/dist/es5/useRef.d.ts +16 -0
- package/node_modules/use-callback-ref/dist/es5/useRef.js +43 -0
- package/node_modules/use-callback-ref/dist/es5/useTransformRef.d.ts +15 -0
- package/node_modules/use-callback-ref/dist/es5/useTransformRef.js +22 -0
- package/node_modules/use-callback-ref/package.json +85 -0
- package/node_modules/use-sidecar/LICENSE +21 -0
- package/node_modules/use-sidecar/README.md +349 -0
- package/node_modules/use-sidecar/dist/es2015/config.d.ts +5 -0
- package/node_modules/use-sidecar/dist/es2015/config.js +6 -0
- package/node_modules/use-sidecar/dist/es2015/env.d.ts +4 -0
- package/node_modules/use-sidecar/dist/es2015/env.js +5 -0
- package/node_modules/use-sidecar/dist/es2015/exports.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/node_modules/use-sidecar/dist/es2015/hoc.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es2015/hoc.js +15 -0
- package/node_modules/use-sidecar/dist/es2015/hook.d.ts +2 -0
- package/node_modules/use-sidecar/dist/es2015/hook.js +41 -0
- package/node_modules/use-sidecar/dist/es2015/index.d.ts +7 -0
- package/node_modules/use-sidecar/dist/es2015/index.js +6 -0
- package/node_modules/use-sidecar/dist/es2015/medium.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es2015/medium.js +78 -0
- package/node_modules/use-sidecar/dist/es2015/renderProp.d.ts +9 -0
- package/node_modules/use-sidecar/dist/es2015/renderProp.js +35 -0
- package/node_modules/use-sidecar/dist/es2015/types.d.ts +47 -0
- package/node_modules/use-sidecar/dist/es2015/types.js +1 -0
- package/node_modules/use-sidecar/dist/es2019/config.d.ts +5 -0
- package/node_modules/use-sidecar/dist/es2019/config.js +6 -0
- package/node_modules/use-sidecar/dist/es2019/env.d.ts +4 -0
- package/node_modules/use-sidecar/dist/es2019/env.js +5 -0
- package/node_modules/use-sidecar/dist/es2019/exports.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es2019/exports.js +16 -0
- package/node_modules/use-sidecar/dist/es2019/hoc.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es2019/hoc.js +14 -0
- package/node_modules/use-sidecar/dist/es2019/hook.d.ts +2 -0
- package/node_modules/use-sidecar/dist/es2019/hook.js +41 -0
- package/node_modules/use-sidecar/dist/es2019/index.d.ts +7 -0
- package/node_modules/use-sidecar/dist/es2019/index.js +6 -0
- package/node_modules/use-sidecar/dist/es2019/medium.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es2019/medium.js +78 -0
- package/node_modules/use-sidecar/dist/es2019/renderProp.d.ts +9 -0
- package/node_modules/use-sidecar/dist/es2019/renderProp.js +28 -0
- package/node_modules/use-sidecar/dist/es2019/types.d.ts +47 -0
- package/node_modules/use-sidecar/dist/es2019/types.js +1 -0
- package/node_modules/use-sidecar/dist/es5/config.d.ts +5 -0
- package/node_modules/use-sidecar/dist/es5/config.js +10 -0
- package/node_modules/use-sidecar/dist/es5/env.d.ts +4 -0
- package/node_modules/use-sidecar/dist/es5/env.js +8 -0
- package/node_modules/use-sidecar/dist/es5/exports.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es5/exports.js +22 -0
- package/node_modules/use-sidecar/dist/es5/hoc.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es5/hoc.js +19 -0
- package/node_modules/use-sidecar/dist/es5/hook.d.ts +2 -0
- package/node_modules/use-sidecar/dist/es5/hook.js +45 -0
- package/node_modules/use-sidecar/dist/es5/index.d.ts +7 -0
- package/node_modules/use-sidecar/dist/es5/index.js +16 -0
- package/node_modules/use-sidecar/dist/es5/medium.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es5/medium.js +83 -0
- package/node_modules/use-sidecar/dist/es5/renderProp.d.ts +9 -0
- package/node_modules/use-sidecar/dist/es5/renderProp.js +39 -0
- package/node_modules/use-sidecar/dist/es5/types.d.ts +47 -0
- package/node_modules/use-sidecar/dist/es5/types.js +2 -0
- package/node_modules/use-sidecar/package.json +93 -0
- package/package.json +50 -5
- package/react/styles.css +568 -18
- package/react/styles.source.css +568 -18
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@radix-ui/react-portal",
|
|
3
|
+
"version": "1.1.12",
|
|
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-use-layout-effect": "1.1.2",
|
|
15
|
+
"@radix-ui/react-primitive": "2.1.6"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/react": "^19.2.2",
|
|
19
|
+
"@types/react-dom": "^19.2.2",
|
|
20
|
+
"react": "^19.2.0",
|
|
21
|
+
"react-dom": "^19.2.0",
|
|
22
|
+
"typescript": "^5.9.3",
|
|
23
|
+
"@repo/typescript-config": "0.0.0",
|
|
24
|
+
"@repo/builder": "0.0.0"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@types/react": "*",
|
|
28
|
+
"@types/react-dom": "*",
|
|
29
|
+
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
|
30
|
+
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
31
|
+
},
|
|
32
|
+
"peerDependenciesMeta": {
|
|
33
|
+
"@types/react": {
|
|
34
|
+
"optional": true
|
|
35
|
+
},
|
|
36
|
+
"@types/react-dom": {
|
|
37
|
+
"optional": true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://radix-ui.com/primitives",
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "git+https://github.com/radix-ui/primitives.git",
|
|
44
|
+
"directory": "packages/react/portal"
|
|
45
|
+
},
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": "https://github.com/radix-ui/primitives/issues"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"lint": "oxlint --max-warnings 0 src",
|
|
51
|
+
"clean": "rm -rf dist",
|
|
52
|
+
"reset": "rm -rf dist node_modules",
|
|
53
|
+
"typecheck": "tsc --noEmit",
|
|
54
|
+
"build": "radix-build"
|
|
55
|
+
},
|
|
56
|
+
"types": "./dist/index.d.ts",
|
|
57
|
+
"exports": {
|
|
58
|
+
".": {
|
|
59
|
+
"import": {
|
|
60
|
+
"types": "./dist/index.d.mts",
|
|
61
|
+
"default": "./dist/index.mjs"
|
|
62
|
+
},
|
|
63
|
+
"require": {
|
|
64
|
+
"types": "./dist/index.d.ts",
|
|
65
|
+
"default": "./dist/index.js"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -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,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface PresenceProps {
|
|
4
|
+
children: React.ReactElement | ((props: {
|
|
5
|
+
present: boolean;
|
|
6
|
+
}) => React.ReactElement);
|
|
7
|
+
present: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const Presence: React.FC<PresenceProps>;
|
|
10
|
+
declare const Root: React.FC<PresenceProps>;
|
|
11
|
+
|
|
12
|
+
export { Presence, type PresenceProps, Root };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface PresenceProps {
|
|
4
|
+
children: React.ReactElement | ((props: {
|
|
5
|
+
present: boolean;
|
|
6
|
+
}) => React.ReactElement);
|
|
7
|
+
present: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const Presence: React.FC<PresenceProps>;
|
|
10
|
+
declare const Root: React.FC<PresenceProps>;
|
|
11
|
+
|
|
12
|
+
export { Presence, type PresenceProps, Root };
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/index.ts
|
|
32
|
+
var index_exports = {};
|
|
33
|
+
__export(index_exports, {
|
|
34
|
+
Presence: () => Presence,
|
|
35
|
+
Root: () => Root
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(index_exports);
|
|
38
|
+
|
|
39
|
+
// src/presence.tsx
|
|
40
|
+
var React2 = __toESM(require("react"));
|
|
41
|
+
var import_react_use_layout_effect = require("@radix-ui/react-use-layout-effect");
|
|
42
|
+
|
|
43
|
+
// src/use-state-machine.tsx
|
|
44
|
+
var React = __toESM(require("react"));
|
|
45
|
+
function useStateMachine(initialState, machine) {
|
|
46
|
+
return React.useReducer((state, event) => {
|
|
47
|
+
const nextState = machine[state][event];
|
|
48
|
+
return nextState ?? state;
|
|
49
|
+
}, initialState);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// src/presence.tsx
|
|
53
|
+
var Presence = (props) => {
|
|
54
|
+
const { present, children } = props;
|
|
55
|
+
const presence = usePresence(present);
|
|
56
|
+
const child = typeof children === "function" ? children({ present: presence.isPresent }) : React2.Children.only(children);
|
|
57
|
+
const ref = useStableComposedRefs(presence.ref, getElementRef(child));
|
|
58
|
+
const forceMount = typeof children === "function";
|
|
59
|
+
return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;
|
|
60
|
+
};
|
|
61
|
+
Presence.displayName = "Presence";
|
|
62
|
+
function usePresence(present) {
|
|
63
|
+
const [node, setNode] = React2.useState();
|
|
64
|
+
const stylesRef = React2.useRef(null);
|
|
65
|
+
const prevPresentRef = React2.useRef(present);
|
|
66
|
+
const prevAnimationNameRef = React2.useRef("none");
|
|
67
|
+
const initialState = present ? "mounted" : "unmounted";
|
|
68
|
+
const [state, send] = useStateMachine(initialState, {
|
|
69
|
+
mounted: {
|
|
70
|
+
UNMOUNT: "unmounted",
|
|
71
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
72
|
+
},
|
|
73
|
+
unmountSuspended: {
|
|
74
|
+
MOUNT: "mounted",
|
|
75
|
+
ANIMATION_END: "unmounted"
|
|
76
|
+
},
|
|
77
|
+
unmounted: {
|
|
78
|
+
MOUNT: "mounted"
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
React2.useEffect(() => {
|
|
82
|
+
const currentAnimationName = getAnimationName(stylesRef.current);
|
|
83
|
+
prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
|
|
84
|
+
}, [state]);
|
|
85
|
+
(0, import_react_use_layout_effect.useLayoutEffect)(() => {
|
|
86
|
+
const styles = stylesRef.current;
|
|
87
|
+
const wasPresent = prevPresentRef.current;
|
|
88
|
+
const hasPresentChanged = wasPresent !== present;
|
|
89
|
+
if (hasPresentChanged) {
|
|
90
|
+
const prevAnimationName = prevAnimationNameRef.current;
|
|
91
|
+
const currentAnimationName = getAnimationName(styles);
|
|
92
|
+
if (present) {
|
|
93
|
+
send("MOUNT");
|
|
94
|
+
} else if (currentAnimationName === "none" || styles?.display === "none") {
|
|
95
|
+
send("UNMOUNT");
|
|
96
|
+
} else {
|
|
97
|
+
const isAnimating = prevAnimationName !== currentAnimationName;
|
|
98
|
+
if (wasPresent && isAnimating) {
|
|
99
|
+
send("ANIMATION_OUT");
|
|
100
|
+
} else {
|
|
101
|
+
send("UNMOUNT");
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
prevPresentRef.current = present;
|
|
105
|
+
}
|
|
106
|
+
}, [present, send]);
|
|
107
|
+
(0, import_react_use_layout_effect.useLayoutEffect)(() => {
|
|
108
|
+
if (node) {
|
|
109
|
+
let timeoutId;
|
|
110
|
+
const ownerWindow = node.ownerDocument.defaultView ?? window;
|
|
111
|
+
const handleAnimationEnd = (event) => {
|
|
112
|
+
const currentAnimationName = getAnimationName(stylesRef.current);
|
|
113
|
+
const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));
|
|
114
|
+
if (event.target === node && isCurrentAnimation) {
|
|
115
|
+
send("ANIMATION_END");
|
|
116
|
+
if (!prevPresentRef.current) {
|
|
117
|
+
const currentFillMode = node.style.animationFillMode;
|
|
118
|
+
node.style.animationFillMode = "forwards";
|
|
119
|
+
timeoutId = ownerWindow.setTimeout(() => {
|
|
120
|
+
if (node.style.animationFillMode === "forwards") {
|
|
121
|
+
node.style.animationFillMode = currentFillMode;
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
const handleAnimationStart = (event) => {
|
|
128
|
+
if (event.target === node) {
|
|
129
|
+
prevAnimationNameRef.current = getAnimationName(stylesRef.current);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
node.addEventListener("animationstart", handleAnimationStart);
|
|
133
|
+
node.addEventListener("animationcancel", handleAnimationEnd);
|
|
134
|
+
node.addEventListener("animationend", handleAnimationEnd);
|
|
135
|
+
return () => {
|
|
136
|
+
ownerWindow.clearTimeout(timeoutId);
|
|
137
|
+
node.removeEventListener("animationstart", handleAnimationStart);
|
|
138
|
+
node.removeEventListener("animationcancel", handleAnimationEnd);
|
|
139
|
+
node.removeEventListener("animationend", handleAnimationEnd);
|
|
140
|
+
};
|
|
141
|
+
} else {
|
|
142
|
+
send("ANIMATION_END");
|
|
143
|
+
}
|
|
144
|
+
}, [node, send]);
|
|
145
|
+
return {
|
|
146
|
+
isPresent: ["mounted", "unmountSuspended"].includes(state),
|
|
147
|
+
ref: React2.useCallback((node2) => {
|
|
148
|
+
stylesRef.current = node2 ? getComputedStyle(node2) : null;
|
|
149
|
+
setNode(node2);
|
|
150
|
+
}, [])
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
function setRef(ref, value) {
|
|
154
|
+
if (typeof ref === "function") {
|
|
155
|
+
return ref(value);
|
|
156
|
+
} else if (ref !== null && ref !== void 0) {
|
|
157
|
+
ref.current = value;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
function useStableComposedRefs(...refs) {
|
|
161
|
+
const refsRef = React2.useRef(refs);
|
|
162
|
+
refsRef.current = refs;
|
|
163
|
+
return React2.useCallback((node) => {
|
|
164
|
+
const currentRefs = refsRef.current;
|
|
165
|
+
let hasCleanup = false;
|
|
166
|
+
const cleanups = currentRefs.map((ref) => {
|
|
167
|
+
const cleanup = setRef(ref, node);
|
|
168
|
+
if (!hasCleanup && typeof cleanup === "function") {
|
|
169
|
+
hasCleanup = true;
|
|
170
|
+
}
|
|
171
|
+
return cleanup;
|
|
172
|
+
});
|
|
173
|
+
if (hasCleanup) {
|
|
174
|
+
return () => {
|
|
175
|
+
for (let i = 0; i < cleanups.length; i++) {
|
|
176
|
+
const cleanup = cleanups[i];
|
|
177
|
+
if (typeof cleanup === "function") {
|
|
178
|
+
cleanup();
|
|
179
|
+
} else {
|
|
180
|
+
setRef(currentRefs[i], null);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
}, []);
|
|
186
|
+
}
|
|
187
|
+
function getAnimationName(styles) {
|
|
188
|
+
return styles?.animationName || "none";
|
|
189
|
+
}
|
|
190
|
+
function getElementRef(element) {
|
|
191
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
192
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
193
|
+
if (mayWarn) {
|
|
194
|
+
return element.ref;
|
|
195
|
+
}
|
|
196
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
197
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
198
|
+
if (mayWarn) {
|
|
199
|
+
return element.props.ref;
|
|
200
|
+
}
|
|
201
|
+
return element.props.ref || element.ref;
|
|
202
|
+
}
|
|
203
|
+
var Root = Presence;
|
|
204
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/index.ts", "../src/presence.tsx", "../src/use-state-machine.tsx"],
|
|
4
|
+
"sourcesContent": ["'use client';\nexport { Presence, Root } from './presence';\nexport type { PresenceProps } from './presence';\n", "import * as React from 'react';\nimport { useLayoutEffect } from '@radix-ui/react-use-layout-effect';\nimport { useStateMachine } from './use-state-machine';\n\ninterface PresenceProps {\n children: React.ReactElement | ((props: { present: boolean }) => React.ReactElement);\n present: boolean;\n}\n\nconst Presence: React.FC<PresenceProps> = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n\n const child = (\n typeof children === 'function'\n ? children({ present: presence.isPresent })\n : React.Children.only(children)\n ) as React.ReactElement<{ ref?: React.Ref<HTMLElement> }>;\n\n const ref = useStableComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === 'function';\n return forceMount || presence.isPresent ? React.cloneElement(child, { ref }) : null;\n};\n\nPresence.displayName = 'Presence';\n\n/* -------------------------------------------------------------------------------------------------\n * usePresence\n * -----------------------------------------------------------------------------------------------*/\n\nfunction usePresence(present: boolean) {\n const [node, setNode] = React.useState<HTMLElement>();\n const stylesRef = React.useRef<CSSStyleDeclaration | null>(null);\n const prevPresentRef = React.useRef(present);\n const prevAnimationNameRef = React.useRef<string>('none');\n const initialState = present ? 'mounted' : 'unmounted';\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: 'unmounted',\n ANIMATION_OUT: 'unmountSuspended',\n },\n unmountSuspended: {\n MOUNT: 'mounted',\n ANIMATION_END: 'unmounted',\n },\n unmounted: {\n MOUNT: 'mounted',\n },\n });\n\n React.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';\n }, [state]);\n\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n\n if (present) {\n send('MOUNT');\n } else if (currentAnimationName === 'none' || styles?.display === 'none') {\n // If there is no exit animation or the element is hidden, animations won't run\n // so we unmount instantly\n send('UNMOUNT');\n } else {\n /**\n * When `present` changes to `false`, we check changes to animation-name to\n * determine whether an animation has started. We chose this approach (reading\n * computed styles) because there is no `animationrun` event and `animationstart`\n * fires after `animation-delay` has expired which would be too late.\n */\n const isAnimating = prevAnimationName !== currentAnimationName;\n\n if (wasPresent && isAnimating) {\n send('ANIMATION_OUT');\n } else {\n send('UNMOUNT');\n }\n }\n\n prevPresentRef.current = present;\n }\n }, [present, send]);\n\n useLayoutEffect(() => {\n if (node) {\n let timeoutId: number;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n /**\n * Triggering an ANIMATION_OUT during an ANIMATION_IN will fire an `animationcancel`\n * event for ANIMATION_IN after we have entered `unmountSuspended` state. So, we\n * make sure we only trigger ANIMATION_END for the currently active animation.\n */\n const handleAnimationEnd = (event: AnimationEvent) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n // The event.animationName is unescaped for CSS syntax,\n // so we need to escape it to compare with the animationName computed from the style.\n const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));\n if (event.target === node && isCurrentAnimation) {\n // With React 18 concurrency this update is applied a frame after the\n // animation ends, creating a flash of visible content. By setting the\n // animation fill mode to \"forwards\", we force the node to keep the\n // styles of the last keyframe, removing the flash.\n //\n // Previously we flushed the update via ReactDom.flushSync, but with\n // exit animations this resulted in the node being removed from the\n // DOM before the synthetic animationEnd event was dispatched, meaning\n // user-provided event handlers would not be called.\n // https://github.com/radix-ui/primitives/pull/1849\n send('ANIMATION_END');\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = 'forwards';\n // Reset the style after the node had time to unmount (for cases\n // where the component chooses not to unmount). Doing this any\n // sooner than `setTimeout` (e.g. with `requestAnimationFrame`)\n // still causes a flash.\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === 'forwards') {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event: AnimationEvent) => {\n if (event.target === node) {\n // if animation occurred, store its name as the previous animation.\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener('animationstart', handleAnimationStart);\n node.addEventListener('animationcancel', handleAnimationEnd);\n node.addEventListener('animationend', handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener('animationstart', handleAnimationStart);\n node.removeEventListener('animationcancel', handleAnimationEnd);\n node.removeEventListener('animationend', handleAnimationEnd);\n };\n } else {\n // Transition to the unmounted state if the node is removed prematurely.\n // We avoid doing so during cleanup as the node may change but still exist.\n send('ANIMATION_END');\n }\n }, [node, send]);\n\n return {\n isPresent: ['mounted', 'unmountSuspended'].includes(state),\n ref: React.useCallback((node: HTMLElement) => {\n stylesRef.current = node ? getComputedStyle(node) : null;\n setNode(node);\n }, []),\n };\n}\n\n/* -----------------------------------------------------------------------------------------------*/\n\ntype PossibleRef<T> = React.Ref<T> | undefined;\n\nfunction setRef<T>(ref: PossibleRef<T>, value: T | null) {\n if (typeof ref === 'function') {\n return ref(value);\n } else if (ref !== null && ref !== undefined) {\n ref.current = value;\n }\n}\n\n/**\n * Unlike `useComposedRefs`, the returned callback never changes identity, even\n * when the composed refs do. This matters in React 19: when a callback ref's\n * identity changes between renders, React detaches the previous ref (calls it\n * with `null`) and attaches the new one on every commit. Because `Presence`\n * calls `setNode` from its own ref, an unstable consumer ref would otherwise\n * cause React to re-run that update on every commit, resulting in a \"Maximum\n * update depth exceeded\" loop.\n *\n * The latest refs are always read at attach/detach time, so the most recent\n * consumer ref still receives the node when it mounts or unmounts.\n *\n * @see https://github.com/radix-ui/primitives/issues/3664\n */\nfunction useStableComposedRefs<T>(...refs: PossibleRef<T>[]): React.RefCallback<T> {\n // Keep the latest refs without changing the callback identity. Assigning during render is\n // safe here because we only ever read `.current` later (at commit time, in the ref callback).\n const refsRef = React.useRef(refs);\n refsRef.current = refs;\n\n return React.useCallback((node: T | null) => {\n const currentRefs = refsRef.current;\n let hasCleanup = false;\n const cleanups = currentRefs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup === 'function') {\n hasCleanup = true;\n }\n return cleanup;\n });\n\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup === 'function') {\n cleanup();\n } else {\n setRef(currentRefs[i], null);\n }\n }\n };\n }\n }, []);\n}\n\nfunction getAnimationName(styles: CSSStyleDeclaration | null) {\n return styles?.animationName || 'none';\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<{ ref?: React.Ref<unknown> }>) {\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.ref;\n }\n\n // Not DEV\n return element.props.ref || (element as any).ref;\n}\n\nconst Root = Presence;\n\nexport {\n Presence,\n //\n Root,\n};\nexport type { PresenceProps };\n", "import * as React from 'react';\n\ntype Machine<S> = { [k: string]: { [k: string]: S } };\ntype MachineState<T> = keyof T;\ntype MachineEvent<T> = keyof UnionToIntersection<T[keyof T]>;\n\n// \uD83E\uDD2F https://fettblog.eu/typescript-union-to-intersection/\ntype UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any\n ? R\n : never;\n\nexport function useStateMachine<M>(\n initialState: MachineState<M>,\n machine: M & Machine<MachineState<M>>,\n) {\n return React.useReducer((state: MachineState<M>, event: MachineEvent<M>): MachineState<M> => {\n const nextState = (machine[state] as any)[event];\n return nextState ?? state;\n }, initialState);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,SAAuB;AACvB,qCAAgC;;;ACDhC,YAAuB;AAWhB,SAAS,gBACd,cACA,SACA;AACA,SAAa,iBAAW,CAAC,OAAwB,UAA4C;AAC3F,UAAM,YAAa,QAAQ,KAAK,EAAU,KAAK;AAC/C,WAAO,aAAa;AAAA,EACtB,GAAG,YAAY;AACjB;;;ADVA,IAAM,WAAoC,CAAC,UAAU;AACnD,QAAM,EAAE,SAAS,SAAS,IAAI;AAC9B,QAAM,WAAW,YAAY,OAAO;AAEpC,QAAM,QACJ,OAAO,aAAa,aAChB,SAAS,EAAE,SAAS,SAAS,UAAU,CAAC,IAClC,gBAAS,KAAK,QAAQ;AAGlC,QAAM,MAAM,sBAAsB,SAAS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Q,MAAM,OAAQ,QAAgB;AAC/C;AAEA,IAAM,OAAO;",
|
|
6
|
+
"names": ["React", "node"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/presence.tsx
|
|
4
|
+
import * as React2 from "react";
|
|
5
|
+
import { useLayoutEffect } from "@radix-ui/react-use-layout-effect";
|
|
6
|
+
|
|
7
|
+
// src/use-state-machine.tsx
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
function useStateMachine(initialState, machine) {
|
|
10
|
+
return React.useReducer((state, event) => {
|
|
11
|
+
const nextState = machine[state][event];
|
|
12
|
+
return nextState ?? state;
|
|
13
|
+
}, initialState);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// src/presence.tsx
|
|
17
|
+
var Presence = (props) => {
|
|
18
|
+
const { present, children } = props;
|
|
19
|
+
const presence = usePresence(present);
|
|
20
|
+
const child = typeof children === "function" ? children({ present: presence.isPresent }) : React2.Children.only(children);
|
|
21
|
+
const ref = useStableComposedRefs(presence.ref, getElementRef(child));
|
|
22
|
+
const forceMount = typeof children === "function";
|
|
23
|
+
return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;
|
|
24
|
+
};
|
|
25
|
+
Presence.displayName = "Presence";
|
|
26
|
+
function usePresence(present) {
|
|
27
|
+
const [node, setNode] = React2.useState();
|
|
28
|
+
const stylesRef = React2.useRef(null);
|
|
29
|
+
const prevPresentRef = React2.useRef(present);
|
|
30
|
+
const prevAnimationNameRef = React2.useRef("none");
|
|
31
|
+
const initialState = present ? "mounted" : "unmounted";
|
|
32
|
+
const [state, send] = useStateMachine(initialState, {
|
|
33
|
+
mounted: {
|
|
34
|
+
UNMOUNT: "unmounted",
|
|
35
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
36
|
+
},
|
|
37
|
+
unmountSuspended: {
|
|
38
|
+
MOUNT: "mounted",
|
|
39
|
+
ANIMATION_END: "unmounted"
|
|
40
|
+
},
|
|
41
|
+
unmounted: {
|
|
42
|
+
MOUNT: "mounted"
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
React2.useEffect(() => {
|
|
46
|
+
const currentAnimationName = getAnimationName(stylesRef.current);
|
|
47
|
+
prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
|
|
48
|
+
}, [state]);
|
|
49
|
+
useLayoutEffect(() => {
|
|
50
|
+
const styles = stylesRef.current;
|
|
51
|
+
const wasPresent = prevPresentRef.current;
|
|
52
|
+
const hasPresentChanged = wasPresent !== present;
|
|
53
|
+
if (hasPresentChanged) {
|
|
54
|
+
const prevAnimationName = prevAnimationNameRef.current;
|
|
55
|
+
const currentAnimationName = getAnimationName(styles);
|
|
56
|
+
if (present) {
|
|
57
|
+
send("MOUNT");
|
|
58
|
+
} else if (currentAnimationName === "none" || styles?.display === "none") {
|
|
59
|
+
send("UNMOUNT");
|
|
60
|
+
} else {
|
|
61
|
+
const isAnimating = prevAnimationName !== currentAnimationName;
|
|
62
|
+
if (wasPresent && isAnimating) {
|
|
63
|
+
send("ANIMATION_OUT");
|
|
64
|
+
} else {
|
|
65
|
+
send("UNMOUNT");
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
prevPresentRef.current = present;
|
|
69
|
+
}
|
|
70
|
+
}, [present, send]);
|
|
71
|
+
useLayoutEffect(() => {
|
|
72
|
+
if (node) {
|
|
73
|
+
let timeoutId;
|
|
74
|
+
const ownerWindow = node.ownerDocument.defaultView ?? window;
|
|
75
|
+
const handleAnimationEnd = (event) => {
|
|
76
|
+
const currentAnimationName = getAnimationName(stylesRef.current);
|
|
77
|
+
const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));
|
|
78
|
+
if (event.target === node && isCurrentAnimation) {
|
|
79
|
+
send("ANIMATION_END");
|
|
80
|
+
if (!prevPresentRef.current) {
|
|
81
|
+
const currentFillMode = node.style.animationFillMode;
|
|
82
|
+
node.style.animationFillMode = "forwards";
|
|
83
|
+
timeoutId = ownerWindow.setTimeout(() => {
|
|
84
|
+
if (node.style.animationFillMode === "forwards") {
|
|
85
|
+
node.style.animationFillMode = currentFillMode;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const handleAnimationStart = (event) => {
|
|
92
|
+
if (event.target === node) {
|
|
93
|
+
prevAnimationNameRef.current = getAnimationName(stylesRef.current);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
node.addEventListener("animationstart", handleAnimationStart);
|
|
97
|
+
node.addEventListener("animationcancel", handleAnimationEnd);
|
|
98
|
+
node.addEventListener("animationend", handleAnimationEnd);
|
|
99
|
+
return () => {
|
|
100
|
+
ownerWindow.clearTimeout(timeoutId);
|
|
101
|
+
node.removeEventListener("animationstart", handleAnimationStart);
|
|
102
|
+
node.removeEventListener("animationcancel", handleAnimationEnd);
|
|
103
|
+
node.removeEventListener("animationend", handleAnimationEnd);
|
|
104
|
+
};
|
|
105
|
+
} else {
|
|
106
|
+
send("ANIMATION_END");
|
|
107
|
+
}
|
|
108
|
+
}, [node, send]);
|
|
109
|
+
return {
|
|
110
|
+
isPresent: ["mounted", "unmountSuspended"].includes(state),
|
|
111
|
+
ref: React2.useCallback((node2) => {
|
|
112
|
+
stylesRef.current = node2 ? getComputedStyle(node2) : null;
|
|
113
|
+
setNode(node2);
|
|
114
|
+
}, [])
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
function setRef(ref, value) {
|
|
118
|
+
if (typeof ref === "function") {
|
|
119
|
+
return ref(value);
|
|
120
|
+
} else if (ref !== null && ref !== void 0) {
|
|
121
|
+
ref.current = value;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function useStableComposedRefs(...refs) {
|
|
125
|
+
const refsRef = React2.useRef(refs);
|
|
126
|
+
refsRef.current = refs;
|
|
127
|
+
return React2.useCallback((node) => {
|
|
128
|
+
const currentRefs = refsRef.current;
|
|
129
|
+
let hasCleanup = false;
|
|
130
|
+
const cleanups = currentRefs.map((ref) => {
|
|
131
|
+
const cleanup = setRef(ref, node);
|
|
132
|
+
if (!hasCleanup && typeof cleanup === "function") {
|
|
133
|
+
hasCleanup = true;
|
|
134
|
+
}
|
|
135
|
+
return cleanup;
|
|
136
|
+
});
|
|
137
|
+
if (hasCleanup) {
|
|
138
|
+
return () => {
|
|
139
|
+
for (let i = 0; i < cleanups.length; i++) {
|
|
140
|
+
const cleanup = cleanups[i];
|
|
141
|
+
if (typeof cleanup === "function") {
|
|
142
|
+
cleanup();
|
|
143
|
+
} else {
|
|
144
|
+
setRef(currentRefs[i], null);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
}, []);
|
|
150
|
+
}
|
|
151
|
+
function getAnimationName(styles) {
|
|
152
|
+
return styles?.animationName || "none";
|
|
153
|
+
}
|
|
154
|
+
function getElementRef(element) {
|
|
155
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
156
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
157
|
+
if (mayWarn) {
|
|
158
|
+
return element.ref;
|
|
159
|
+
}
|
|
160
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
161
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
162
|
+
if (mayWarn) {
|
|
163
|
+
return element.props.ref;
|
|
164
|
+
}
|
|
165
|
+
return element.props.ref || element.ref;
|
|
166
|
+
}
|
|
167
|
+
var Root = Presence;
|
|
168
|
+
export {
|
|
169
|
+
Presence,
|
|
170
|
+
Root
|
|
171
|
+
};
|
|
172
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/presence.tsx", "../src/use-state-machine.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { useLayoutEffect } from '@radix-ui/react-use-layout-effect';\nimport { useStateMachine } from './use-state-machine';\n\ninterface PresenceProps {\n children: React.ReactElement | ((props: { present: boolean }) => React.ReactElement);\n present: boolean;\n}\n\nconst Presence: React.FC<PresenceProps> = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n\n const child = (\n typeof children === 'function'\n ? children({ present: presence.isPresent })\n : React.Children.only(children)\n ) as React.ReactElement<{ ref?: React.Ref<HTMLElement> }>;\n\n const ref = useStableComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === 'function';\n return forceMount || presence.isPresent ? React.cloneElement(child, { ref }) : null;\n};\n\nPresence.displayName = 'Presence';\n\n/* -------------------------------------------------------------------------------------------------\n * usePresence\n * -----------------------------------------------------------------------------------------------*/\n\nfunction usePresence(present: boolean) {\n const [node, setNode] = React.useState<HTMLElement>();\n const stylesRef = React.useRef<CSSStyleDeclaration | null>(null);\n const prevPresentRef = React.useRef(present);\n const prevAnimationNameRef = React.useRef<string>('none');\n const initialState = present ? 'mounted' : 'unmounted';\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: 'unmounted',\n ANIMATION_OUT: 'unmountSuspended',\n },\n unmountSuspended: {\n MOUNT: 'mounted',\n ANIMATION_END: 'unmounted',\n },\n unmounted: {\n MOUNT: 'mounted',\n },\n });\n\n React.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';\n }, [state]);\n\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n\n if (present) {\n send('MOUNT');\n } else if (currentAnimationName === 'none' || styles?.display === 'none') {\n // If there is no exit animation or the element is hidden, animations won't run\n // so we unmount instantly\n send('UNMOUNT');\n } else {\n /**\n * When `present` changes to `false`, we check changes to animation-name to\n * determine whether an animation has started. We chose this approach (reading\n * computed styles) because there is no `animationrun` event and `animationstart`\n * fires after `animation-delay` has expired which would be too late.\n */\n const isAnimating = prevAnimationName !== currentAnimationName;\n\n if (wasPresent && isAnimating) {\n send('ANIMATION_OUT');\n } else {\n send('UNMOUNT');\n }\n }\n\n prevPresentRef.current = present;\n }\n }, [present, send]);\n\n useLayoutEffect(() => {\n if (node) {\n let timeoutId: number;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n /**\n * Triggering an ANIMATION_OUT during an ANIMATION_IN will fire an `animationcancel`\n * event for ANIMATION_IN after we have entered `unmountSuspended` state. So, we\n * make sure we only trigger ANIMATION_END for the currently active animation.\n */\n const handleAnimationEnd = (event: AnimationEvent) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n // The event.animationName is unescaped for CSS syntax,\n // so we need to escape it to compare with the animationName computed from the style.\n const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));\n if (event.target === node && isCurrentAnimation) {\n // With React 18 concurrency this update is applied a frame after the\n // animation ends, creating a flash of visible content. By setting the\n // animation fill mode to \"forwards\", we force the node to keep the\n // styles of the last keyframe, removing the flash.\n //\n // Previously we flushed the update via ReactDom.flushSync, but with\n // exit animations this resulted in the node being removed from the\n // DOM before the synthetic animationEnd event was dispatched, meaning\n // user-provided event handlers would not be called.\n // https://github.com/radix-ui/primitives/pull/1849\n send('ANIMATION_END');\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = 'forwards';\n // Reset the style after the node had time to unmount (for cases\n // where the component chooses not to unmount). Doing this any\n // sooner than `setTimeout` (e.g. with `requestAnimationFrame`)\n // still causes a flash.\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === 'forwards') {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event: AnimationEvent) => {\n if (event.target === node) {\n // if animation occurred, store its name as the previous animation.\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener('animationstart', handleAnimationStart);\n node.addEventListener('animationcancel', handleAnimationEnd);\n node.addEventListener('animationend', handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener('animationstart', handleAnimationStart);\n node.removeEventListener('animationcancel', handleAnimationEnd);\n node.removeEventListener('animationend', handleAnimationEnd);\n };\n } else {\n // Transition to the unmounted state if the node is removed prematurely.\n // We avoid doing so during cleanup as the node may change but still exist.\n send('ANIMATION_END');\n }\n }, [node, send]);\n\n return {\n isPresent: ['mounted', 'unmountSuspended'].includes(state),\n ref: React.useCallback((node: HTMLElement) => {\n stylesRef.current = node ? getComputedStyle(node) : null;\n setNode(node);\n }, []),\n };\n}\n\n/* -----------------------------------------------------------------------------------------------*/\n\ntype PossibleRef<T> = React.Ref<T> | undefined;\n\nfunction setRef<T>(ref: PossibleRef<T>, value: T | null) {\n if (typeof ref === 'function') {\n return ref(value);\n } else if (ref !== null && ref !== undefined) {\n ref.current = value;\n }\n}\n\n/**\n * Unlike `useComposedRefs`, the returned callback never changes identity, even\n * when the composed refs do. This matters in React 19: when a callback ref's\n * identity changes between renders, React detaches the previous ref (calls it\n * with `null`) and attaches the new one on every commit. Because `Presence`\n * calls `setNode` from its own ref, an unstable consumer ref would otherwise\n * cause React to re-run that update on every commit, resulting in a \"Maximum\n * update depth exceeded\" loop.\n *\n * The latest refs are always read at attach/detach time, so the most recent\n * consumer ref still receives the node when it mounts or unmounts.\n *\n * @see https://github.com/radix-ui/primitives/issues/3664\n */\nfunction useStableComposedRefs<T>(...refs: PossibleRef<T>[]): React.RefCallback<T> {\n // Keep the latest refs without changing the callback identity. Assigning during render is\n // safe here because we only ever read `.current` later (at commit time, in the ref callback).\n const refsRef = React.useRef(refs);\n refsRef.current = refs;\n\n return React.useCallback((node: T | null) => {\n const currentRefs = refsRef.current;\n let hasCleanup = false;\n const cleanups = currentRefs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup === 'function') {\n hasCleanup = true;\n }\n return cleanup;\n });\n\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup === 'function') {\n cleanup();\n } else {\n setRef(currentRefs[i], null);\n }\n }\n };\n }\n }, []);\n}\n\nfunction getAnimationName(styles: CSSStyleDeclaration | null) {\n return styles?.animationName || 'none';\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<{ ref?: React.Ref<unknown> }>) {\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.ref;\n }\n\n // Not DEV\n return element.props.ref || (element as any).ref;\n}\n\nconst Root = Presence;\n\nexport {\n Presence,\n //\n Root,\n};\nexport type { PresenceProps };\n", "import * as React from 'react';\n\ntype Machine<S> = { [k: string]: { [k: string]: S } };\ntype MachineState<T> = keyof T;\ntype MachineEvent<T> = keyof UnionToIntersection<T[keyof T]>;\n\n// \uD83E\uDD2F https://fettblog.eu/typescript-union-to-intersection/\ntype UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any\n ? R\n : never;\n\nexport function useStateMachine<M>(\n initialState: MachineState<M>,\n machine: M & Machine<MachineState<M>>,\n) {\n return React.useReducer((state: MachineState<M>, event: MachineEvent<M>): MachineState<M> => {\n const nextState = (machine[state] as any)[event];\n return nextState ?? state;\n }, initialState);\n}\n"],
|
|
5
|
+
"mappings": ";;;AAAA,YAAYA,YAAW;A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IACF;AAAA,EACF,GAAG,CAAC,CAAC;AACP;AAEA,SAAS,iBAAiB,QAAoC;AAC5D,SAAO,QAAQ,iBAAiB;AAClC;AAOA,SAAS,cAAc,SAA2D;AAEhF,MAAI,SAAS,OAAO,yBAAyB,QAAQ,OAAO,KAAK,GAAG;AACpE,MAAI,UAAU,UAAU,oBAAoB,UAAU,OAAO;AAC7D,MAAI,SAAS;AACX,WAAQ,QAAgB;AAAA,EAC1B;AAGA,WAAS,OAAO,yBAAyB,SAAS,KAAK,GAAG;AAC1D,YAAU,UAAU,oBAAoB,UAAU,OAAO;AACzD,MAAI,SAAS;AACX,WAAO,QAAQ,MAAM;AAAA,EACvB;AAGA,SAAO,QAAQ,MAAM,OAAQ,QAAgB;AAC/C;AAEA,IAAM,OAAO;",
|
|
6
|
+
"names": ["React", "node"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@radix-ui/react-presence",
|
|
3
|
+
"version": "1.1.6",
|
|
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-use-layout-effect": "1.1.2"
|
|
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/builder": "0.0.0",
|
|
23
|
+
"@repo/typescript-config": "0.0.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@types/react": "*",
|
|
27
|
+
"@types/react-dom": "*",
|
|
28
|
+
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
|
29
|
+
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
30
|
+
},
|
|
31
|
+
"peerDependenciesMeta": {
|
|
32
|
+
"@types/react": {
|
|
33
|
+
"optional": true
|
|
34
|
+
},
|
|
35
|
+
"@types/react-dom": {
|
|
36
|
+
"optional": true
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://radix-ui.com/primitives",
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "git+https://github.com/radix-ui/primitives.git",
|
|
43
|
+
"directory": "packages/react/presence"
|
|
44
|
+
},
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://github.com/radix-ui/primitives/issues"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"lint": "oxlint --max-warnings 0 src",
|
|
50
|
+
"clean": "rm -rf dist",
|
|
51
|
+
"reset": "rm -rf dist node_modules",
|
|
52
|
+
"typecheck": "tsc --noEmit",
|
|
53
|
+
"build": "radix-build"
|
|
54
|
+
},
|
|
55
|
+
"types": "./dist/index.d.ts",
|
|
56
|
+
"exports": {
|
|
57
|
+
".": {
|
|
58
|
+
"import": {
|
|
59
|
+
"types": "./dist/index.d.mts",
|
|
60
|
+
"default": "./dist/index.mjs"
|
|
61
|
+
},
|
|
62
|
+
"require": {
|
|
63
|
+
"types": "./dist/index.d.ts",
|
|
64
|
+
"default": "./dist/index.js"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|