@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,975 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@floating-ui/core')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@floating-ui/core'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.FloatingUIDOM = {}, global.FloatingUICore));
|
|
5
|
+
})(this, (function (exports, core) { 'use strict';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Custom positioning reference element.
|
|
9
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
const min = Math.min;
|
|
13
|
+
const max = Math.max;
|
|
14
|
+
const round = Math.round;
|
|
15
|
+
const floor = Math.floor;
|
|
16
|
+
const createCoords = v => ({
|
|
17
|
+
x: v,
|
|
18
|
+
y: v
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
function hasWindow() {
|
|
22
|
+
return typeof window !== 'undefined';
|
|
23
|
+
}
|
|
24
|
+
function getNodeName(node) {
|
|
25
|
+
if (isNode(node)) {
|
|
26
|
+
return (node.nodeName || '').toLowerCase();
|
|
27
|
+
}
|
|
28
|
+
// Mocked nodes in testing environments may not be instances of Node. By
|
|
29
|
+
// returning `#document` an infinite loop won't occur.
|
|
30
|
+
// https://github.com/floating-ui/floating-ui/issues/2317
|
|
31
|
+
return '#document';
|
|
32
|
+
}
|
|
33
|
+
function getWindow(node) {
|
|
34
|
+
var _node$ownerDocument;
|
|
35
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
36
|
+
}
|
|
37
|
+
function getDocumentElement(node) {
|
|
38
|
+
var _ref;
|
|
39
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
40
|
+
}
|
|
41
|
+
function isNode(value) {
|
|
42
|
+
if (!hasWindow()) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
46
|
+
}
|
|
47
|
+
function isElement(value) {
|
|
48
|
+
if (!hasWindow()) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
52
|
+
}
|
|
53
|
+
function isHTMLElement(value) {
|
|
54
|
+
if (!hasWindow()) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
58
|
+
}
|
|
59
|
+
function isShadowRoot(value) {
|
|
60
|
+
if (!hasWindow() || typeof ShadowRoot === 'undefined') {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
64
|
+
}
|
|
65
|
+
function isOverflowElement(element) {
|
|
66
|
+
const {
|
|
67
|
+
overflow,
|
|
68
|
+
overflowX,
|
|
69
|
+
overflowY,
|
|
70
|
+
display
|
|
71
|
+
} = getComputedStyle$1(element);
|
|
72
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
|
|
73
|
+
}
|
|
74
|
+
function isTableElement(element) {
|
|
75
|
+
return /^(table|td|th)$/.test(getNodeName(element));
|
|
76
|
+
}
|
|
77
|
+
function isTopLayer(element) {
|
|
78
|
+
try {
|
|
79
|
+
if (element.matches(':popover-open')) {
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
} catch (_e) {
|
|
83
|
+
// no-op
|
|
84
|
+
}
|
|
85
|
+
try {
|
|
86
|
+
return element.matches(':modal');
|
|
87
|
+
} catch (_e) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
|
|
92
|
+
const containRe = /paint|layout|strict|content/;
|
|
93
|
+
const isNotNone = value => !!value && value !== 'none';
|
|
94
|
+
let isWebKitValue;
|
|
95
|
+
function isContainingBlock(elementOrCss) {
|
|
96
|
+
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
97
|
+
|
|
98
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
99
|
+
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
100
|
+
return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');
|
|
101
|
+
}
|
|
102
|
+
function getContainingBlock(element) {
|
|
103
|
+
let currentNode = getParentNode(element);
|
|
104
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
105
|
+
if (isContainingBlock(currentNode)) {
|
|
106
|
+
return currentNode;
|
|
107
|
+
} else if (isTopLayer(currentNode)) {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
currentNode = getParentNode(currentNode);
|
|
111
|
+
}
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
function isWebKit() {
|
|
115
|
+
if (isWebKitValue == null) {
|
|
116
|
+
isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
|
|
117
|
+
}
|
|
118
|
+
return isWebKitValue;
|
|
119
|
+
}
|
|
120
|
+
function isLastTraversableNode(node) {
|
|
121
|
+
return /^(html|body|#document)$/.test(getNodeName(node));
|
|
122
|
+
}
|
|
123
|
+
function getComputedStyle$1(element) {
|
|
124
|
+
return getWindow(element).getComputedStyle(element);
|
|
125
|
+
}
|
|
126
|
+
function getNodeScroll(element) {
|
|
127
|
+
if (isElement(element)) {
|
|
128
|
+
return {
|
|
129
|
+
scrollLeft: element.scrollLeft,
|
|
130
|
+
scrollTop: element.scrollTop
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
return {
|
|
134
|
+
scrollLeft: element.scrollX,
|
|
135
|
+
scrollTop: element.scrollY
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function getParentNode(node) {
|
|
139
|
+
if (getNodeName(node) === 'html') {
|
|
140
|
+
return node;
|
|
141
|
+
}
|
|
142
|
+
const result =
|
|
143
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
144
|
+
node.assignedSlot ||
|
|
145
|
+
// DOM Element detected.
|
|
146
|
+
node.parentNode ||
|
|
147
|
+
// ShadowRoot detected.
|
|
148
|
+
isShadowRoot(node) && node.host ||
|
|
149
|
+
// Fallback.
|
|
150
|
+
getDocumentElement(node);
|
|
151
|
+
return isShadowRoot(result) ? result.host : result;
|
|
152
|
+
}
|
|
153
|
+
function getNearestOverflowAncestor(node) {
|
|
154
|
+
const parentNode = getParentNode(node);
|
|
155
|
+
if (isLastTraversableNode(parentNode)) {
|
|
156
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
157
|
+
}
|
|
158
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
159
|
+
return parentNode;
|
|
160
|
+
}
|
|
161
|
+
return getNearestOverflowAncestor(parentNode);
|
|
162
|
+
}
|
|
163
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
164
|
+
var _node$ownerDocument2;
|
|
165
|
+
if (list === void 0) {
|
|
166
|
+
list = [];
|
|
167
|
+
}
|
|
168
|
+
if (traverseIframes === void 0) {
|
|
169
|
+
traverseIframes = true;
|
|
170
|
+
}
|
|
171
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
172
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
173
|
+
const win = getWindow(scrollableAncestor);
|
|
174
|
+
if (isBody) {
|
|
175
|
+
const frameElement = getFrameElement(win);
|
|
176
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
177
|
+
} else {
|
|
178
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
function getFrameElement(win) {
|
|
182
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
function getCssDimensions(element) {
|
|
186
|
+
const css = getComputedStyle$1(element);
|
|
187
|
+
// In testing environments, the `width` and `height` properties are empty
|
|
188
|
+
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
|
189
|
+
let width = parseFloat(css.width) || 0;
|
|
190
|
+
let height = parseFloat(css.height) || 0;
|
|
191
|
+
const hasOffset = isHTMLElement(element);
|
|
192
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
193
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
194
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
195
|
+
if (shouldFallback) {
|
|
196
|
+
width = offsetWidth;
|
|
197
|
+
height = offsetHeight;
|
|
198
|
+
}
|
|
199
|
+
return {
|
|
200
|
+
width,
|
|
201
|
+
height,
|
|
202
|
+
$: shouldFallback
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
function unwrapElement(element) {
|
|
207
|
+
return !isElement(element) ? element.contextElement : element;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
function getScale(element) {
|
|
211
|
+
const domElement = unwrapElement(element);
|
|
212
|
+
if (!isHTMLElement(domElement)) {
|
|
213
|
+
return createCoords(1);
|
|
214
|
+
}
|
|
215
|
+
const rect = domElement.getBoundingClientRect();
|
|
216
|
+
const {
|
|
217
|
+
width,
|
|
218
|
+
height,
|
|
219
|
+
$
|
|
220
|
+
} = getCssDimensions(domElement);
|
|
221
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
222
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
223
|
+
|
|
224
|
+
// 0, NaN, or Infinity should always fallback to 1.
|
|
225
|
+
|
|
226
|
+
if (!x || !Number.isFinite(x)) {
|
|
227
|
+
x = 1;
|
|
228
|
+
}
|
|
229
|
+
if (!y || !Number.isFinite(y)) {
|
|
230
|
+
y = 1;
|
|
231
|
+
}
|
|
232
|
+
return {
|
|
233
|
+
x,
|
|
234
|
+
y
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
const noOffsets = /*#__PURE__*/createCoords(0);
|
|
239
|
+
function getVisualOffsets(element) {
|
|
240
|
+
const win = getWindow(element);
|
|
241
|
+
if (!isWebKit() || !win.visualViewport) {
|
|
242
|
+
return noOffsets;
|
|
243
|
+
}
|
|
244
|
+
return {
|
|
245
|
+
x: win.visualViewport.offsetLeft,
|
|
246
|
+
y: win.visualViewport.offsetTop
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
250
|
+
if (isFixed === void 0) {
|
|
251
|
+
isFixed = false;
|
|
252
|
+
}
|
|
253
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
254
|
+
return false;
|
|
255
|
+
}
|
|
256
|
+
return isFixed;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
260
|
+
if (includeScale === void 0) {
|
|
261
|
+
includeScale = false;
|
|
262
|
+
}
|
|
263
|
+
if (isFixedStrategy === void 0) {
|
|
264
|
+
isFixedStrategy = false;
|
|
265
|
+
}
|
|
266
|
+
const clientRect = element.getBoundingClientRect();
|
|
267
|
+
const domElement = unwrapElement(element);
|
|
268
|
+
let scale = createCoords(1);
|
|
269
|
+
if (includeScale) {
|
|
270
|
+
if (offsetParent) {
|
|
271
|
+
if (isElement(offsetParent)) {
|
|
272
|
+
scale = getScale(offsetParent);
|
|
273
|
+
}
|
|
274
|
+
} else {
|
|
275
|
+
scale = getScale(element);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
279
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
280
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
281
|
+
let width = clientRect.width / scale.x;
|
|
282
|
+
let height = clientRect.height / scale.y;
|
|
283
|
+
if (domElement) {
|
|
284
|
+
const win = getWindow(domElement);
|
|
285
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
286
|
+
let currentWin = win;
|
|
287
|
+
let currentIFrame = getFrameElement(currentWin);
|
|
288
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
289
|
+
const iframeScale = getScale(currentIFrame);
|
|
290
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
291
|
+
const css = getComputedStyle$1(currentIFrame);
|
|
292
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
293
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
294
|
+
x *= iframeScale.x;
|
|
295
|
+
y *= iframeScale.y;
|
|
296
|
+
width *= iframeScale.x;
|
|
297
|
+
height *= iframeScale.y;
|
|
298
|
+
x += left;
|
|
299
|
+
y += top;
|
|
300
|
+
currentWin = getWindow(currentIFrame);
|
|
301
|
+
currentIFrame = getFrameElement(currentWin);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return core.rectToClientRect({
|
|
305
|
+
width,
|
|
306
|
+
height,
|
|
307
|
+
x,
|
|
308
|
+
y
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
313
|
+
// incorrect for RTL.
|
|
314
|
+
function getWindowScrollBarX(element, rect) {
|
|
315
|
+
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
316
|
+
if (!rect) {
|
|
317
|
+
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
318
|
+
}
|
|
319
|
+
return rect.left + leftScroll;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
function getHTMLOffset(documentElement, scroll) {
|
|
323
|
+
const htmlRect = documentElement.getBoundingClientRect();
|
|
324
|
+
const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
325
|
+
const y = htmlRect.top + scroll.scrollTop;
|
|
326
|
+
return {
|
|
327
|
+
x,
|
|
328
|
+
y
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
333
|
+
let {
|
|
334
|
+
elements,
|
|
335
|
+
rect,
|
|
336
|
+
offsetParent,
|
|
337
|
+
strategy
|
|
338
|
+
} = _ref;
|
|
339
|
+
const isFixed = strategy === 'fixed';
|
|
340
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
341
|
+
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
|
342
|
+
if (offsetParent === documentElement || topLayer && isFixed) {
|
|
343
|
+
return rect;
|
|
344
|
+
}
|
|
345
|
+
let scroll = {
|
|
346
|
+
scrollLeft: 0,
|
|
347
|
+
scrollTop: 0
|
|
348
|
+
};
|
|
349
|
+
let scale = createCoords(1);
|
|
350
|
+
const offsets = createCoords(0);
|
|
351
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
352
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
353
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
354
|
+
scroll = getNodeScroll(offsetParent);
|
|
355
|
+
}
|
|
356
|
+
if (isOffsetParentAnElement) {
|
|
357
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
|
358
|
+
scale = getScale(offsetParent);
|
|
359
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
360
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
364
|
+
return {
|
|
365
|
+
width: rect.width * scale.x,
|
|
366
|
+
height: rect.height * scale.y,
|
|
367
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
|
|
368
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
function getClientRects(element) {
|
|
373
|
+
return Array.from(element.getClientRects());
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// Gets the entire size of the scrollable document area, even extending outside
|
|
377
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
378
|
+
function getDocumentRect(element) {
|
|
379
|
+
const html = getDocumentElement(element);
|
|
380
|
+
const scroll = getNodeScroll(element);
|
|
381
|
+
const body = element.ownerDocument.body;
|
|
382
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
383
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
384
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
385
|
+
const y = -scroll.scrollTop;
|
|
386
|
+
if (getComputedStyle$1(body).direction === 'rtl') {
|
|
387
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
|
388
|
+
}
|
|
389
|
+
return {
|
|
390
|
+
width,
|
|
391
|
+
height,
|
|
392
|
+
x,
|
|
393
|
+
y
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
// Safety check: ensure the scrollbar space is reasonable in case this
|
|
398
|
+
// calculation is affected by unusual styles.
|
|
399
|
+
// Most scrollbars leave 15-18px of space.
|
|
400
|
+
const SCROLLBAR_MAX = 25;
|
|
401
|
+
function getViewportRect(element, strategy) {
|
|
402
|
+
const win = getWindow(element);
|
|
403
|
+
const html = getDocumentElement(element);
|
|
404
|
+
const visualViewport = win.visualViewport;
|
|
405
|
+
let width = html.clientWidth;
|
|
406
|
+
let height = html.clientHeight;
|
|
407
|
+
let x = 0;
|
|
408
|
+
let y = 0;
|
|
409
|
+
if (visualViewport) {
|
|
410
|
+
width = visualViewport.width;
|
|
411
|
+
height = visualViewport.height;
|
|
412
|
+
const visualViewportBased = isWebKit();
|
|
413
|
+
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
|
414
|
+
x = visualViewport.offsetLeft;
|
|
415
|
+
y = visualViewport.offsetTop;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
const windowScrollbarX = getWindowScrollBarX(html);
|
|
419
|
+
// <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the
|
|
420
|
+
// visual width of the <html> but this is not considered in the size
|
|
421
|
+
// of `html.clientWidth`.
|
|
422
|
+
if (windowScrollbarX <= 0) {
|
|
423
|
+
const doc = html.ownerDocument;
|
|
424
|
+
const body = doc.body;
|
|
425
|
+
const bodyStyles = getComputedStyle(body);
|
|
426
|
+
const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
|
|
427
|
+
const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
|
|
428
|
+
if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
|
|
429
|
+
width -= clippingStableScrollbarWidth;
|
|
430
|
+
}
|
|
431
|
+
} else if (windowScrollbarX <= SCROLLBAR_MAX) {
|
|
432
|
+
// If the <body> scrollbar is on the left, the width needs to be extended
|
|
433
|
+
// by the scrollbar amount so there isn't extra space on the right.
|
|
434
|
+
width += windowScrollbarX;
|
|
435
|
+
}
|
|
436
|
+
return {
|
|
437
|
+
width,
|
|
438
|
+
height,
|
|
439
|
+
x,
|
|
440
|
+
y
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
// Returns the inner client rect, subtracting scrollbars if present.
|
|
445
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
446
|
+
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
447
|
+
const top = clientRect.top + element.clientTop;
|
|
448
|
+
const left = clientRect.left + element.clientLeft;
|
|
449
|
+
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
|
450
|
+
const width = element.clientWidth * scale.x;
|
|
451
|
+
const height = element.clientHeight * scale.y;
|
|
452
|
+
const x = left * scale.x;
|
|
453
|
+
const y = top * scale.y;
|
|
454
|
+
return {
|
|
455
|
+
width,
|
|
456
|
+
height,
|
|
457
|
+
x,
|
|
458
|
+
y
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
462
|
+
let rect;
|
|
463
|
+
if (clippingAncestor === 'viewport') {
|
|
464
|
+
rect = getViewportRect(element, strategy);
|
|
465
|
+
} else if (clippingAncestor === 'document') {
|
|
466
|
+
rect = getDocumentRect(getDocumentElement(element));
|
|
467
|
+
} else if (isElement(clippingAncestor)) {
|
|
468
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
469
|
+
} else {
|
|
470
|
+
const visualOffsets = getVisualOffsets(element);
|
|
471
|
+
rect = {
|
|
472
|
+
x: clippingAncestor.x - visualOffsets.x,
|
|
473
|
+
y: clippingAncestor.y - visualOffsets.y,
|
|
474
|
+
width: clippingAncestor.width,
|
|
475
|
+
height: clippingAncestor.height
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
return core.rectToClientRect(rect);
|
|
479
|
+
}
|
|
480
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
|
481
|
+
const parentNode = getParentNode(element);
|
|
482
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
483
|
+
return false;
|
|
484
|
+
}
|
|
485
|
+
return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
489
|
+
// clipping (or hiding) child elements. This returns all clipping ancestors
|
|
490
|
+
// of the given element up the tree.
|
|
491
|
+
function getClippingElementAncestors(element, cache) {
|
|
492
|
+
const cachedResult = cache.get(element);
|
|
493
|
+
if (cachedResult) {
|
|
494
|
+
return cachedResult;
|
|
495
|
+
}
|
|
496
|
+
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
497
|
+
let currentContainingBlockComputedStyle = null;
|
|
498
|
+
const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
|
|
499
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
500
|
+
|
|
501
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
502
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
503
|
+
const computedStyle = getComputedStyle$1(currentNode);
|
|
504
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
505
|
+
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
506
|
+
currentContainingBlockComputedStyle = null;
|
|
507
|
+
}
|
|
508
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === 'absolute' || currentContainingBlockComputedStyle.position === 'fixed') || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
509
|
+
if (shouldDropCurrentNode) {
|
|
510
|
+
// Drop non-containing blocks.
|
|
511
|
+
result = result.filter(ancestor => ancestor !== currentNode);
|
|
512
|
+
} else {
|
|
513
|
+
// Record last containing block for next iteration.
|
|
514
|
+
currentContainingBlockComputedStyle = computedStyle;
|
|
515
|
+
}
|
|
516
|
+
currentNode = getParentNode(currentNode);
|
|
517
|
+
}
|
|
518
|
+
cache.set(element, result);
|
|
519
|
+
return result;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
// Gets the maximum area that the element is visible in due to any number of
|
|
523
|
+
// clipping ancestors.
|
|
524
|
+
function getClippingRect(_ref) {
|
|
525
|
+
let {
|
|
526
|
+
element,
|
|
527
|
+
boundary,
|
|
528
|
+
rootBoundary,
|
|
529
|
+
strategy
|
|
530
|
+
} = _ref;
|
|
531
|
+
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
532
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
533
|
+
const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
|
|
534
|
+
let top = firstRect.top;
|
|
535
|
+
let right = firstRect.right;
|
|
536
|
+
let bottom = firstRect.bottom;
|
|
537
|
+
let left = firstRect.left;
|
|
538
|
+
for (let i = 1; i < clippingAncestors.length; i++) {
|
|
539
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
|
|
540
|
+
top = max(rect.top, top);
|
|
541
|
+
right = min(rect.right, right);
|
|
542
|
+
bottom = min(rect.bottom, bottom);
|
|
543
|
+
left = max(rect.left, left);
|
|
544
|
+
}
|
|
545
|
+
return {
|
|
546
|
+
width: right - left,
|
|
547
|
+
height: bottom - top,
|
|
548
|
+
x: left,
|
|
549
|
+
y: top
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
function getDimensions(element) {
|
|
554
|
+
const {
|
|
555
|
+
width,
|
|
556
|
+
height
|
|
557
|
+
} = getCssDimensions(element);
|
|
558
|
+
return {
|
|
559
|
+
width,
|
|
560
|
+
height
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
565
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
566
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
567
|
+
const isFixed = strategy === 'fixed';
|
|
568
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
569
|
+
let scroll = {
|
|
570
|
+
scrollLeft: 0,
|
|
571
|
+
scrollTop: 0
|
|
572
|
+
};
|
|
573
|
+
const offsets = createCoords(0);
|
|
574
|
+
|
|
575
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
576
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
577
|
+
function setLeftRTLScrollbarOffset() {
|
|
578
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
579
|
+
}
|
|
580
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
581
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
582
|
+
scroll = getNodeScroll(offsetParent);
|
|
583
|
+
}
|
|
584
|
+
if (isOffsetParentAnElement) {
|
|
585
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
586
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
587
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
588
|
+
} else if (documentElement) {
|
|
589
|
+
setLeftRTLScrollbarOffset();
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
593
|
+
setLeftRTLScrollbarOffset();
|
|
594
|
+
}
|
|
595
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
596
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
597
|
+
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
598
|
+
return {
|
|
599
|
+
x,
|
|
600
|
+
y,
|
|
601
|
+
width: rect.width,
|
|
602
|
+
height: rect.height
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
function isStaticPositioned(element) {
|
|
607
|
+
return getComputedStyle$1(element).position === 'static';
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
function getTrueOffsetParent(element, polyfill) {
|
|
611
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
|
|
612
|
+
return null;
|
|
613
|
+
}
|
|
614
|
+
if (polyfill) {
|
|
615
|
+
return polyfill(element);
|
|
616
|
+
}
|
|
617
|
+
let rawOffsetParent = element.offsetParent;
|
|
618
|
+
|
|
619
|
+
// Firefox returns the <html> element as the offsetParent if it's non-static,
|
|
620
|
+
// while Chrome and Safari return the <body> element. The <body> element must
|
|
621
|
+
// be used to perform the correct calculations even if the <html> element is
|
|
622
|
+
// non-static.
|
|
623
|
+
if (getDocumentElement(element) === rawOffsetParent) {
|
|
624
|
+
rawOffsetParent = rawOffsetParent.ownerDocument.body;
|
|
625
|
+
}
|
|
626
|
+
return rawOffsetParent;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
630
|
+
// such as table ancestors and cross browser bugs.
|
|
631
|
+
function getOffsetParent(element, polyfill) {
|
|
632
|
+
const win = getWindow(element);
|
|
633
|
+
if (isTopLayer(element)) {
|
|
634
|
+
return win;
|
|
635
|
+
}
|
|
636
|
+
if (!isHTMLElement(element)) {
|
|
637
|
+
let svgOffsetParent = getParentNode(element);
|
|
638
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
639
|
+
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
640
|
+
return svgOffsetParent;
|
|
641
|
+
}
|
|
642
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
|
643
|
+
}
|
|
644
|
+
return win;
|
|
645
|
+
}
|
|
646
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
647
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
648
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
649
|
+
}
|
|
650
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
651
|
+
return win;
|
|
652
|
+
}
|
|
653
|
+
return offsetParent || getContainingBlock(element) || win;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
const getElementRects = async function (data) {
|
|
657
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
658
|
+
const getDimensionsFn = this.getDimensions;
|
|
659
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
|
660
|
+
return {
|
|
661
|
+
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
662
|
+
floating: {
|
|
663
|
+
x: 0,
|
|
664
|
+
y: 0,
|
|
665
|
+
width: floatingDimensions.width,
|
|
666
|
+
height: floatingDimensions.height
|
|
667
|
+
}
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
function isRTL(element) {
|
|
672
|
+
return getComputedStyle$1(element).direction === 'rtl';
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
const platform = {
|
|
676
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
677
|
+
getDocumentElement,
|
|
678
|
+
getClippingRect,
|
|
679
|
+
getOffsetParent,
|
|
680
|
+
getElementRects,
|
|
681
|
+
getClientRects,
|
|
682
|
+
getDimensions,
|
|
683
|
+
getScale,
|
|
684
|
+
isElement,
|
|
685
|
+
isRTL
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
function rectsAreEqual(a, b) {
|
|
689
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
// https://samthor.au/2021/observing-dom/
|
|
693
|
+
function observeMove(element, onMove) {
|
|
694
|
+
let io = null;
|
|
695
|
+
let timeoutId;
|
|
696
|
+
const root = getDocumentElement(element);
|
|
697
|
+
function cleanup() {
|
|
698
|
+
var _io;
|
|
699
|
+
clearTimeout(timeoutId);
|
|
700
|
+
(_io = io) == null || _io.disconnect();
|
|
701
|
+
io = null;
|
|
702
|
+
}
|
|
703
|
+
function refresh(skip, threshold) {
|
|
704
|
+
if (skip === void 0) {
|
|
705
|
+
skip = false;
|
|
706
|
+
}
|
|
707
|
+
if (threshold === void 0) {
|
|
708
|
+
threshold = 1;
|
|
709
|
+
}
|
|
710
|
+
cleanup();
|
|
711
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
712
|
+
const {
|
|
713
|
+
left,
|
|
714
|
+
top,
|
|
715
|
+
width,
|
|
716
|
+
height
|
|
717
|
+
} = elementRectForRootMargin;
|
|
718
|
+
if (!skip) {
|
|
719
|
+
onMove();
|
|
720
|
+
}
|
|
721
|
+
if (!width || !height) {
|
|
722
|
+
return;
|
|
723
|
+
}
|
|
724
|
+
const insetTop = floor(top);
|
|
725
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
|
726
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
|
727
|
+
const insetLeft = floor(left);
|
|
728
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
729
|
+
const options = {
|
|
730
|
+
rootMargin,
|
|
731
|
+
threshold: max(0, min(1, threshold)) || 1
|
|
732
|
+
};
|
|
733
|
+
let isFirstUpdate = true;
|
|
734
|
+
function handleObserve(entries) {
|
|
735
|
+
const ratio = entries[0].intersectionRatio;
|
|
736
|
+
if (ratio !== threshold) {
|
|
737
|
+
if (!isFirstUpdate) {
|
|
738
|
+
return refresh();
|
|
739
|
+
}
|
|
740
|
+
if (!ratio) {
|
|
741
|
+
// If the reference is clipped, the ratio is 0. Throttle the refresh
|
|
742
|
+
// to prevent an infinite loop of updates.
|
|
743
|
+
timeoutId = setTimeout(() => {
|
|
744
|
+
refresh(false, 1e-7);
|
|
745
|
+
}, 1000);
|
|
746
|
+
} else {
|
|
747
|
+
refresh(false, ratio);
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
751
|
+
// It's possible that even though the ratio is reported as 1, the
|
|
752
|
+
// element is not actually fully within the IntersectionObserver's root
|
|
753
|
+
// area anymore. This can happen under performance constraints. This may
|
|
754
|
+
// be a bug in the browser's IntersectionObserver implementation. To
|
|
755
|
+
// work around this, we compare the element's bounding rect now with
|
|
756
|
+
// what it was at the time we created the IntersectionObserver. If they
|
|
757
|
+
// are not equal then the element moved, so we refresh.
|
|
758
|
+
refresh();
|
|
759
|
+
}
|
|
760
|
+
isFirstUpdate = false;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
// Older browsers don't support a `document` as the root and will throw an
|
|
764
|
+
// error.
|
|
765
|
+
try {
|
|
766
|
+
io = new IntersectionObserver(handleObserve, {
|
|
767
|
+
...options,
|
|
768
|
+
// Handle <iframe>s
|
|
769
|
+
root: root.ownerDocument
|
|
770
|
+
});
|
|
771
|
+
} catch (_e) {
|
|
772
|
+
io = new IntersectionObserver(handleObserve, options);
|
|
773
|
+
}
|
|
774
|
+
io.observe(element);
|
|
775
|
+
}
|
|
776
|
+
refresh(true);
|
|
777
|
+
return cleanup;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* Automatically updates the position of the floating element when necessary.
|
|
782
|
+
* Should only be called when the floating element is mounted on the DOM or
|
|
783
|
+
* visible on the screen.
|
|
784
|
+
* @returns cleanup function that should be invoked when the floating element is
|
|
785
|
+
* removed from the DOM or hidden from the screen.
|
|
786
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
|
787
|
+
*/
|
|
788
|
+
function autoUpdate(reference, floating, update, options) {
|
|
789
|
+
if (options === void 0) {
|
|
790
|
+
options = {};
|
|
791
|
+
}
|
|
792
|
+
const {
|
|
793
|
+
ancestorScroll = true,
|
|
794
|
+
ancestorResize = true,
|
|
795
|
+
elementResize = typeof ResizeObserver === 'function',
|
|
796
|
+
layoutShift = typeof IntersectionObserver === 'function',
|
|
797
|
+
animationFrame = false
|
|
798
|
+
} = options;
|
|
799
|
+
const referenceEl = unwrapElement(reference);
|
|
800
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];
|
|
801
|
+
ancestors.forEach(ancestor => {
|
|
802
|
+
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
803
|
+
passive: true
|
|
804
|
+
});
|
|
805
|
+
ancestorResize && ancestor.addEventListener('resize', update);
|
|
806
|
+
});
|
|
807
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
808
|
+
let reobserveFrame = -1;
|
|
809
|
+
let resizeObserver = null;
|
|
810
|
+
if (elementResize) {
|
|
811
|
+
resizeObserver = new ResizeObserver(_ref => {
|
|
812
|
+
let [firstEntry] = _ref;
|
|
813
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
|
|
814
|
+
// Prevent update loops when using the `size` middleware.
|
|
815
|
+
// https://github.com/floating-ui/floating-ui/issues/1740
|
|
816
|
+
resizeObserver.unobserve(floating);
|
|
817
|
+
cancelAnimationFrame(reobserveFrame);
|
|
818
|
+
reobserveFrame = requestAnimationFrame(() => {
|
|
819
|
+
var _resizeObserver;
|
|
820
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
821
|
+
});
|
|
822
|
+
}
|
|
823
|
+
update();
|
|
824
|
+
});
|
|
825
|
+
if (referenceEl && !animationFrame) {
|
|
826
|
+
resizeObserver.observe(referenceEl);
|
|
827
|
+
}
|
|
828
|
+
if (floating) {
|
|
829
|
+
resizeObserver.observe(floating);
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
let frameId;
|
|
833
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
834
|
+
if (animationFrame) {
|
|
835
|
+
frameLoop();
|
|
836
|
+
}
|
|
837
|
+
function frameLoop() {
|
|
838
|
+
const nextRefRect = getBoundingClientRect(reference);
|
|
839
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
840
|
+
update();
|
|
841
|
+
}
|
|
842
|
+
prevRefRect = nextRefRect;
|
|
843
|
+
frameId = requestAnimationFrame(frameLoop);
|
|
844
|
+
}
|
|
845
|
+
update();
|
|
846
|
+
return () => {
|
|
847
|
+
var _resizeObserver2;
|
|
848
|
+
ancestors.forEach(ancestor => {
|
|
849
|
+
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
850
|
+
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
851
|
+
});
|
|
852
|
+
cleanupIo == null || cleanupIo();
|
|
853
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
|
854
|
+
resizeObserver = null;
|
|
855
|
+
if (animationFrame) {
|
|
856
|
+
cancelAnimationFrame(frameId);
|
|
857
|
+
}
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
|
863
|
+
* element is overflowing a given clipping boundary on each side.
|
|
864
|
+
* - positive = overflowing the boundary by that number of pixels
|
|
865
|
+
* - negative = how many pixels left before it will overflow
|
|
866
|
+
* - 0 = lies flush with the boundary
|
|
867
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
|
868
|
+
*/
|
|
869
|
+
const detectOverflow = core.detectOverflow;
|
|
870
|
+
|
|
871
|
+
/**
|
|
872
|
+
* Modifies the placement by translating the floating element along the
|
|
873
|
+
* specified axes.
|
|
874
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
875
|
+
* object may be passed.
|
|
876
|
+
* @see https://floating-ui.com/docs/offset
|
|
877
|
+
*/
|
|
878
|
+
const offset = core.offset;
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
882
|
+
* that has the most space available automatically, without needing to specify a
|
|
883
|
+
* preferred placement. Alternative to `flip`.
|
|
884
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
885
|
+
*/
|
|
886
|
+
const autoPlacement = core.autoPlacement;
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
890
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
891
|
+
* @see https://floating-ui.com/docs/shift
|
|
892
|
+
*/
|
|
893
|
+
const shift = core.shift;
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
897
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
898
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
899
|
+
* @see https://floating-ui.com/docs/flip
|
|
900
|
+
*/
|
|
901
|
+
const flip = core.flip;
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Provides data that allows you to change the size of the floating element —
|
|
905
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
906
|
+
* width of the reference element.
|
|
907
|
+
* @see https://floating-ui.com/docs/size
|
|
908
|
+
*/
|
|
909
|
+
const size = core.size;
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
913
|
+
* when it is not in the same clipping context as the reference element.
|
|
914
|
+
* @see https://floating-ui.com/docs/hide
|
|
915
|
+
*/
|
|
916
|
+
const hide = core.hide;
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* Provides data to position an inner element of the floating element so that it
|
|
920
|
+
* appears centered to the reference element.
|
|
921
|
+
* @see https://floating-ui.com/docs/arrow
|
|
922
|
+
*/
|
|
923
|
+
const arrow = core.arrow;
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Provides improved positioning for inline reference elements that can span
|
|
927
|
+
* over multiple lines, such as hyperlinks or range selections.
|
|
928
|
+
* @see https://floating-ui.com/docs/inline
|
|
929
|
+
*/
|
|
930
|
+
const inline = core.inline;
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
934
|
+
*/
|
|
935
|
+
const limitShift = core.limitShift;
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
939
|
+
* next to a given reference element.
|
|
940
|
+
*/
|
|
941
|
+
const computePosition = (reference, floating, options) => {
|
|
942
|
+
// This caches the expensive `getClippingElementAncestors` function so that
|
|
943
|
+
// multiple lifecycle resets re-use the same result. It only lives for a
|
|
944
|
+
// single call. If other functions become expensive, we can add them as well.
|
|
945
|
+
const cache = new Map();
|
|
946
|
+
const mergedOptions = {
|
|
947
|
+
platform,
|
|
948
|
+
...options
|
|
949
|
+
};
|
|
950
|
+
const platformWithCache = {
|
|
951
|
+
...mergedOptions.platform,
|
|
952
|
+
_c: cache
|
|
953
|
+
};
|
|
954
|
+
return core.computePosition(reference, floating, {
|
|
955
|
+
...mergedOptions,
|
|
956
|
+
platform: platformWithCache
|
|
957
|
+
});
|
|
958
|
+
};
|
|
959
|
+
|
|
960
|
+
exports.arrow = arrow;
|
|
961
|
+
exports.autoPlacement = autoPlacement;
|
|
962
|
+
exports.autoUpdate = autoUpdate;
|
|
963
|
+
exports.computePosition = computePosition;
|
|
964
|
+
exports.detectOverflow = detectOverflow;
|
|
965
|
+
exports.flip = flip;
|
|
966
|
+
exports.getOverflowAncestors = getOverflowAncestors;
|
|
967
|
+
exports.hide = hide;
|
|
968
|
+
exports.inline = inline;
|
|
969
|
+
exports.limitShift = limitShift;
|
|
970
|
+
exports.offset = offset;
|
|
971
|
+
exports.platform = platform;
|
|
972
|
+
exports.shift = shift;
|
|
973
|
+
exports.size = size;
|
|
974
|
+
|
|
975
|
+
}));
|