openplanr 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/README.md +1 -1
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.js +24 -1
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/groups/delivery.d.ts.map +1 -1
- package/dist/cli/commands/groups/delivery.js +2 -0
- package/dist/cli/commands/groups/delivery.js.map +1 -1
- package/dist/cli/commands/planning-artifacts.d.ts.map +1 -1
- package/dist/cli/commands/planning-artifacts.js +22 -12
- package/dist/cli/commands/planning-artifacts.js.map +1 -1
- package/dist/cli/commands/ship.d.ts +3 -0
- package/dist/cli/commands/ship.d.ts.map +1 -0
- package/dist/cli/commands/ship.js +65 -0
- package/dist/cli/commands/ship.js.map +1 -0
- package/dist/dashboard/.vite/manifest.json +1 -1
- package/dist/dashboard/assets/{index-G7ygVDGg.js → index-L8qtwqv6.js} +2 -2
- package/dist/dashboard/assets/{index-G7ygVDGg.js.map → index-L8qtwqv6.js.map} +1 -1
- package/dist/dashboard/dashboard-manifest.json +8 -8
- package/dist/dashboard/index.html +1 -1
- package/dist/models/schema.d.ts +39 -23
- package/dist/models/schema.d.ts.map +1 -1
- package/dist/models/schema.js +19 -12
- package/dist/models/schema.js.map +1 -1
- package/dist/models/types.d.ts +6 -0
- package/dist/models/types.d.ts.map +1 -1
- package/dist/services/global-install-service.d.ts +24 -0
- package/dist/services/global-install-service.d.ts.map +1 -0
- package/dist/services/global-install-service.js +68 -0
- package/dist/services/global-install-service.js.map +1 -0
- package/dist/services/id-service.d.ts +1 -5
- package/dist/services/id-service.d.ts.map +1 -1
- package/dist/services/id-service.js +1 -34
- package/dist/services/id-service.js.map +1 -1
- package/dist/services/ship-checks/changes.d.ts +24 -0
- package/dist/services/ship-checks/changes.d.ts.map +1 -0
- package/dist/services/ship-checks/changes.js +135 -0
- package/dist/services/ship-checks/changes.js.map +1 -0
- package/dist/services/ship-checks/contract.d.ts +81 -0
- package/dist/services/ship-checks/contract.d.ts.map +1 -0
- package/dist/services/ship-checks/contract.js +7 -0
- package/dist/services/ship-checks/contract.js.map +1 -0
- package/dist/services/ship-checks/discover.d.ts +10 -0
- package/dist/services/ship-checks/discover.d.ts.map +1 -0
- package/dist/services/ship-checks/discover.js +250 -0
- package/dist/services/ship-checks/discover.js.map +1 -0
- package/dist/services/ship-checks/glob.d.ts +5 -0
- package/dist/services/ship-checks/glob.d.ts.map +1 -0
- package/dist/services/ship-checks/glob.js +39 -0
- package/dist/services/ship-checks/glob.js.map +1 -0
- package/dist/services/ship-checks/hooks.d.ts +7 -0
- package/dist/services/ship-checks/hooks.d.ts.map +1 -0
- package/dist/services/ship-checks/hooks.js +65 -0
- package/dist/services/ship-checks/hooks.js.map +1 -0
- package/dist/services/ship-checks/packages.d.ts +29 -0
- package/dist/services/ship-checks/packages.d.ts.map +1 -0
- package/dist/services/ship-checks/packages.js +197 -0
- package/dist/services/ship-checks/packages.js.map +1 -0
- package/dist/services/ship-checks/related-tests.d.ts +13 -0
- package/dist/services/ship-checks/related-tests.d.ts.map +1 -0
- package/dist/services/ship-checks/related-tests.js +73 -0
- package/dist/services/ship-checks/related-tests.js.map +1 -0
- package/dist/services/ship-checks/scope.d.ts +8 -0
- package/dist/services/ship-checks/scope.d.ts.map +1 -0
- package/dist/services/ship-checks/scope.js +66 -0
- package/dist/services/ship-checks/scope.js.map +1 -0
- package/dist/services/ship-checks/task-requirements.d.ts +14 -0
- package/dist/services/ship-checks/task-requirements.d.ts.map +1 -0
- package/dist/services/ship-checks/task-requirements.js +145 -0
- package/dist/services/ship-checks/task-requirements.js.map +1 -0
- package/dist/services/ship-checks/workflows.d.ts +21 -0
- package/dist/services/ship-checks/workflows.d.ts.map +1 -0
- package/dist/services/ship-checks/workflows.js +208 -0
- package/dist/services/ship-checks/workflows.js.map +1 -0
- package/dist/services/template-service.d.ts +2 -0
- package/dist/services/template-service.d.ts.map +1 -1
- package/dist/services/template-service.js +4 -0
- package/dist/services/template-service.js.map +1 -1
- package/dist/services/upgrade-service.d.ts +15 -1
- package/dist/services/upgrade-service.d.ts.map +1 -1
- package/dist/services/upgrade-service.js +102 -13
- package/dist/services/upgrade-service.js.map +1 -1
- package/dist/utils/slugify.d.ts +1 -8
- package/dist/utils/slugify.d.ts.map +1 -1
- package/dist/utils/slugify.js +1 -25
- package/dist/utils/slugify.js.map +1 -1
- package/docs/CLI.md +48 -1
- package/lib/backlog-item.d.mts +49 -0
- package/lib/backlog-item.mjs +339 -0
- package/lib/host-packages/adapter-registry.json +5 -5
- package/lib/host-packages/capability-map.json +1 -1
- package/lib/host-packages/claude/.claude-plugin/marketplace.json +2 -2
- package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +1 -1
- package/lib/host-packages/claude/openplanr/.openplanr-content.json +126 -90
- package/lib/host-packages/claude/openplanr/CONNECTORS.md +4 -6
- package/lib/host-packages/claude/openplanr/README.md +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-artifact-shell.mjs +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-document.mjs +385 -79
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-handoff.mjs +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-resource-pack.mjs +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review.mjs +45 -4
- package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-runtime-support-e34c388a8e59.mjs → claude/openplanr/runtime/design/scripts/design-runtime-support-6774fd3d5d02.mjs} +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share.mjs +8 -5
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +40 -7
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/{design-shared-protocol-contracts-31a760fc.mjs → design-shared-protocol-contracts-b5f28f94.mjs} +284 -45
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-upload-spool.mjs +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design.mjs +215 -55
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +23 -23
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +246 -45
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +12 -12
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +47 -14
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +11 -10
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -3
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +16 -11
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +7 -11
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +163 -274
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +494 -967
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +346 -678
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +382 -810
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +406 -730
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +259 -522
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +585 -937
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +115 -240
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +7 -17
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +3 -4
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +215 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +2766 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +134 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +2170 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +16 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +8 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +3883 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +966 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/{16-studio-shell.js → 20-studio-shell.js} +122 -227
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +1583 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +101 -47
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +5 -1
- package/lib/host-packages/{openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0 → claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.20.0}/design-document.schema.json +78 -5
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +247 -45
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design.mjs +45 -12
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +5 -1
- package/lib/host-packages/claude/openplanr/skills/connect/references/connectors.md +4 -6
- package/lib/host-packages/claude/openplanr/skills/design/SKILL.md +12 -0
- package/lib/host-packages/claude/openplanr/skills/design/references/craft.md +14 -3
- package/lib/host-packages/claude/openplanr/skills/design/references/design-system.md +33 -1
- package/lib/host-packages/claude/openplanr/skills/design/references/discovery.md +18 -4
- package/lib/host-packages/claude/openplanr/skills/design/references/generation.md +74 -1
- package/lib/host-packages/claude/openplanr/skills/design/references/hosted-canvas.md +62 -0
- package/lib/host-packages/claude/openplanr/skills/design/references/review.md +46 -1
- package/lib/host-packages/claude/openplanr/skills/design/references/utilities.md +6 -0
- package/lib/host-packages/claude/openplanr/skills/design/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/craft.md +14 -3
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/design-system.md +33 -1
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/discovery.md +18 -4
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/generation.md +74 -1
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/review.md +46 -1
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/utilities.md +6 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/claude/openplanr/skills/design-review/references/craft.md +14 -3
- package/lib/host-packages/claude/openplanr/skills/design-review/references/design-system.md +33 -1
- package/lib/host-packages/claude/openplanr/skills/design-review/references/discovery.md +18 -4
- package/lib/host-packages/claude/openplanr/skills/design-review/references/generation.md +74 -1
- package/lib/host-packages/claude/openplanr/skills/design-review/references/review.md +46 -1
- package/lib/host-packages/claude/openplanr/skills/design-review/references/utilities.md +6 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/claude/openplanr/skills/investigate/SKILL.md +10 -1
- package/lib/host-packages/claude/openplanr/skills/investigate/references/findings.md +92 -0
- package/lib/host-packages/claude/openplanr/skills/investigate/scripts/backlog-item.mjs +339 -0
- package/lib/host-packages/claude/openplanr/skills/plan/SKILL.md +3 -0
- package/lib/host-packages/claude/openplanr/skills/plan/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/claude/openplanr/skills/share/references/connectors.md +4 -6
- package/lib/host-packages/claude/openplanr/skills/ship/SKILL.md +15 -4
- package/lib/host-packages/claude/openplanr/skills/ship/references/findings.md +92 -0
- package/lib/host-packages/claude/openplanr/skills/ship/references/result-contract.md +3 -1
- package/lib/host-packages/claude/openplanr/skills/ship/scripts/backlog-item.mjs +339 -0
- package/lib/host-packages/claude/openplanr/skills/sprint/references/connectors.md +4 -6
- package/lib/host-packages/claude/openplanr/skills/status/references/connectors.md +4 -6
- package/lib/host-packages/claude/openplanr/skills/sync/references/connectors.md +4 -6
- package/lib/host-packages/cursor/openplanr/.openplanr-content.json +125 -89
- package/lib/host-packages/cursor/openplanr/CONNECTORS.md +4 -6
- package/lib/host-packages/cursor/openplanr/manifest.json +1 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-connect/references/connectors.md +4 -6
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/craft.md +14 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/design-system.md +33 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/discovery.md +18 -4
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/generation.md +74 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/hosted-canvas.md +62 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/review.md +46 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/utilities.md +6 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/craft.md +14 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/design-system.md +33 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/discovery.md +18 -4
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/generation.md +74 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/review.md +46 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/utilities.md +6 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/craft.md +14 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/design-system.md +33 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/discovery.md +18 -4
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/generation.md +74 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/review.md +46 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/utilities.md +6 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/cursor/openplanr/rules/planr-design.mdc +12 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-investigate/references/findings.md +92 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-investigate/scripts/backlog-item.mjs +339 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-investigate.mdc +10 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/cursor/openplanr/rules/planr-plan.mdc +3 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-share/references/connectors.md +4 -6
- package/lib/host-packages/cursor/openplanr/rules/planr-ship/references/findings.md +92 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-ship/references/result-contract.md +3 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-ship/scripts/backlog-item.mjs +339 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-ship.mdc +15 -4
- package/lib/host-packages/cursor/openplanr/rules/planr-sprint/references/connectors.md +4 -6
- package/lib/host-packages/cursor/openplanr/rules/planr-status/references/connectors.md +4 -6
- package/lib/host-packages/cursor/openplanr/rules/planr-sync/references/connectors.md +4 -6
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-artifact-shell.mjs +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-document.mjs +385 -79
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-handoff.mjs +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-resource-pack.mjs +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review.mjs +45 -4
- package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-runtime-support-e34c388a8e59.mjs → cursor/openplanr/runtime/design/scripts/design-runtime-support-6774fd3d5d02.mjs} +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share.mjs +8 -5
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +40 -7
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs +1 -1
- package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs → cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs} +284 -45
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-upload-spool.mjs +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design.mjs +215 -55
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +23 -23
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +246 -45
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +12 -12
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +47 -14
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +11 -10
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -3
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +16 -11
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +7 -11
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +163 -274
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +494 -967
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +346 -678
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +382 -810
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +406 -730
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +259 -522
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +585 -937
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +115 -240
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +7 -17
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +3 -4
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +215 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +2766 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +134 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +2170 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +16 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +8 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +3883 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +966 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/{16-studio-shell.js → 20-studio-shell.js} +122 -227
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +1583 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +101 -47
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +5 -1
- package/lib/host-packages/{claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0 → cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.20.0}/design-document.schema.json +78 -5
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +247 -45
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design.mjs +45 -12
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +5 -1
- package/lib/host-packages/openai/.claude-plugin/marketplace.json +2 -2
- package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +1 -1
- package/lib/host-packages/openai/openplanr/.openplanr-content.json +128 -92
- package/lib/host-packages/openai/openplanr/CONNECTORS.md +4 -6
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-artifact-shell.mjs +1 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +1 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-document.mjs +385 -79
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-handoff.mjs +1 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-resource-pack.mjs +1 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review.mjs +45 -4
- package/lib/host-packages/{claude/openplanr/runtime/design/scripts/design-runtime-support-e34c388a8e59.mjs → openai/openplanr/runtime/design/scripts/design-runtime-support-6774fd3d5d02.mjs} +1 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share.mjs +8 -5
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +40 -7
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs +1 -1
- package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs → openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs} +284 -45
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-upload-spool.mjs +1 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design.mjs +215 -55
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +23 -23
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +246 -45
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +12 -12
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +47 -14
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +11 -10
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -3
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +16 -11
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +7 -11
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +163 -274
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +494 -967
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +346 -678
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +382 -810
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +406 -730
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +259 -522
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +585 -937
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +115 -240
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +7 -17
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +3 -4
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +215 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +2766 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +134 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +2170 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +16 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +8 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +3883 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +966 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/{16-studio-shell.js → 20-studio-shell.js} +122 -227
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +1583 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +101 -47
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +5 -1
- package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0 → openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.20.0}/design-document.schema.json +78 -5
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +247 -45
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design.mjs +45 -12
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +5 -1
- package/lib/host-packages/openai/openplanr/skills/connect/references/connectors.md +4 -6
- package/lib/host-packages/openai/openplanr/skills/design/SKILL.md +12 -0
- package/lib/host-packages/openai/openplanr/skills/design/openplanr.skill.json +11 -0
- package/lib/host-packages/openai/openplanr/skills/design/references/craft.md +14 -3
- package/lib/host-packages/openai/openplanr/skills/design/references/design-system.md +33 -1
- package/lib/host-packages/openai/openplanr/skills/design/references/discovery.md +18 -4
- package/lib/host-packages/openai/openplanr/skills/design/references/generation.md +74 -1
- package/lib/host-packages/openai/openplanr/skills/design/references/hosted-canvas.md +62 -0
- package/lib/host-packages/openai/openplanr/skills/design/references/review.md +46 -1
- package/lib/host-packages/openai/openplanr/skills/design/references/utilities.md +6 -0
- package/lib/host-packages/openai/openplanr/skills/design/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/craft.md +14 -3
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/design-system.md +33 -1
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/discovery.md +18 -4
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/generation.md +74 -1
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/review.md +46 -1
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/utilities.md +6 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/openai/openplanr/skills/design-review/references/craft.md +14 -3
- package/lib/host-packages/openai/openplanr/skills/design-review/references/design-system.md +33 -1
- package/lib/host-packages/openai/openplanr/skills/design-review/references/discovery.md +18 -4
- package/lib/host-packages/openai/openplanr/skills/design-review/references/generation.md +74 -1
- package/lib/host-packages/openai/openplanr/skills/design-review/references/review.md +46 -1
- package/lib/host-packages/openai/openplanr/skills/design-review/references/utilities.md +6 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/openai/openplanr/skills/investigate/SKILL.md +10 -1
- package/lib/host-packages/openai/openplanr/skills/investigate/openplanr.skill.json +22 -0
- package/lib/host-packages/openai/openplanr/skills/investigate/references/findings.md +92 -0
- package/lib/host-packages/openai/openplanr/skills/investigate/scripts/backlog-item.mjs +339 -0
- package/lib/host-packages/openai/openplanr/skills/plan/SKILL.md +3 -0
- package/lib/host-packages/openai/openplanr/skills/plan/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/openai/openplanr/skills/share/references/connectors.md +4 -6
- package/lib/host-packages/openai/openplanr/skills/ship/SKILL.md +15 -4
- package/lib/host-packages/openai/openplanr/skills/ship/openplanr.skill.json +22 -0
- package/lib/host-packages/openai/openplanr/skills/ship/references/findings.md +92 -0
- package/lib/host-packages/openai/openplanr/skills/ship/references/result-contract.md +3 -1
- package/lib/host-packages/openai/openplanr/skills/ship/scripts/backlog-item.mjs +339 -0
- package/lib/host-packages/openai/openplanr/skills/sprint/references/connectors.md +4 -6
- package/lib/host-packages/openai/openplanr/skills/status/references/connectors.md +4 -6
- package/lib/host-packages/openai/openplanr/skills/sync/references/connectors.md +4 -6
- package/package.json +3 -3
- package/dist/templates/backlog/backlog-item.md.hbs +0 -40
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +0 -3589
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +0 -184
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +0 -5229
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +0 -1733
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +0 -1844
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +0 -3589
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +0 -184
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +0 -5229
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +0 -1733
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +0 -1844
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +0 -3589
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +0 -184
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +0 -5229
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +0 -1733
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +0 -1844
|
@@ -1,27 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator, formState) {
|
|
3
|
-
this.tag = 1;
|
|
4
|
-
this.containerInfo = containerInfo;
|
|
5
|
-
this.pingCache = this.current = this.pendingChildren = null;
|
|
6
|
-
this.timeoutHandle = -1;
|
|
7
|
-
this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null;
|
|
8
|
-
this.callbackPriority = 0;
|
|
9
|
-
this.expirationTimes = createLaneMap(-1);
|
|
10
|
-
this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
|
|
11
|
-
this.entanglements = createLaneMap(0);
|
|
12
|
-
this.hiddenUpdates = createLaneMap(null);
|
|
13
|
-
this.identifierPrefix = identifierPrefix;
|
|
14
|
-
this.onUncaughtError = onUncaughtError;
|
|
15
|
-
this.onCaughtError = onCaughtError;
|
|
16
|
-
this.onRecoverableError = onRecoverableError;
|
|
17
|
-
this.pooledCache = null;
|
|
18
|
-
this.pooledCacheLanes = 0;
|
|
19
|
-
this.formState = formState;
|
|
20
|
-
this.transitionTypes = null;
|
|
21
|
-
this.incompleteTransitions = /* @__PURE__ */ new Map();
|
|
3
|
+
this.tag = 1, this.containerInfo = containerInfo, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = createLaneMap(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = createLaneMap(0), this.hiddenUpdates = createLaneMap(null), this.identifierPrefix = identifierPrefix, this.onUncaughtError = onUncaughtError, this.onCaughtError = onCaughtError, this.onRecoverableError = onRecoverableError, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = formState, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();
|
|
22
4
|
}
|
|
23
5
|
function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, identifierPrefix, formState, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator) {
|
|
24
|
-
containerInfo = new FiberRootNode(
|
|
6
|
+
return containerInfo = new FiberRootNode(
|
|
25
7
|
containerInfo,
|
|
26
8
|
tag,
|
|
27
9
|
hydrate,
|
|
@@ -31,67 +13,42 @@
|
|
|
31
13
|
onRecoverableError,
|
|
32
14
|
onDefaultTransitionIndicator,
|
|
33
15
|
formState
|
|
34
|
-
)
|
|
35
|
-
tag = 1;
|
|
36
|
-
true === isStrictMode && (tag |= 24);
|
|
37
|
-
isStrictMode = createFiberImplClass(3, null, null, tag);
|
|
38
|
-
containerInfo.current = isStrictMode;
|
|
39
|
-
isStrictMode.stateNode = containerInfo;
|
|
40
|
-
tag = createCache();
|
|
41
|
-
tag.refCount++;
|
|
42
|
-
containerInfo.pooledCache = tag;
|
|
43
|
-
tag.refCount++;
|
|
44
|
-
isStrictMode.memoizedState = {
|
|
16
|
+
), tag = 1, isStrictMode === !0 && (tag |= 24), isStrictMode = createFiberImplClass(3, null, null, tag), containerInfo.current = isStrictMode, isStrictMode.stateNode = containerInfo, tag = createCache(), tag.refCount++, containerInfo.pooledCache = tag, tag.refCount++, isStrictMode.memoizedState = {
|
|
45
17
|
element: initialChildren,
|
|
46
18
|
isDehydrated: hydrate,
|
|
47
19
|
cache: tag
|
|
48
|
-
};
|
|
49
|
-
initializeUpdateQueue(isStrictMode);
|
|
50
|
-
return containerInfo;
|
|
20
|
+
}, initializeUpdateQueue(isStrictMode), containerInfo;
|
|
51
21
|
}
|
|
52
22
|
function getContextForSubtree(parentComponent) {
|
|
53
|
-
|
|
54
|
-
parentComponent = emptyContextObject;
|
|
55
|
-
return parentComponent;
|
|
23
|
+
return parentComponent ? (parentComponent = emptyContextObject, parentComponent) : emptyContextObject;
|
|
56
24
|
}
|
|
57
25
|
function updateContainerImpl(rootFiber, lane, element, container, parentComponent, callback) {
|
|
58
|
-
parentComponent = getContextForSubtree(parentComponent);
|
|
59
|
-
null === container.context ? container.context = parentComponent : container.pendingContext = parentComponent;
|
|
60
|
-
container = createUpdate(lane);
|
|
61
|
-
container.payload = { element };
|
|
62
|
-
callback = void 0 === callback ? null : callback;
|
|
63
|
-
null !== callback && (container.callback = callback);
|
|
64
|
-
element = enqueueUpdate(rootFiber, container, lane);
|
|
65
|
-
null !== element && (scheduleUpdateOnFiber(element, rootFiber, lane), entangleTransitions(element, rootFiber, lane));
|
|
26
|
+
parentComponent = getContextForSubtree(parentComponent), container.context === null ? container.context = parentComponent : container.pendingContext = parentComponent, container = createUpdate(lane), container.payload = { element }, callback = callback === void 0 ? null : callback, callback !== null && (container.callback = callback), element = enqueueUpdate(rootFiber, container, lane), element !== null && (scheduleUpdateOnFiber(element, rootFiber, lane), entangleTransitions(element, rootFiber, lane));
|
|
66
27
|
}
|
|
67
28
|
function markRetryLaneImpl(fiber, retryLane) {
|
|
68
|
-
fiber = fiber.memoizedState
|
|
69
|
-
if (null !== fiber && null !== fiber.dehydrated) {
|
|
29
|
+
if (fiber = fiber.memoizedState, fiber !== null && fiber.dehydrated !== null) {
|
|
70
30
|
var a = fiber.retryLane;
|
|
71
|
-
fiber.retryLane =
|
|
31
|
+
fiber.retryLane = a !== 0 && a < retryLane ? a : retryLane;
|
|
72
32
|
}
|
|
73
33
|
}
|
|
74
34
|
function markRetryLaneIfNotHydrated(fiber, retryLane) {
|
|
75
|
-
markRetryLaneImpl(fiber, retryLane);
|
|
76
|
-
(fiber = fiber.alternate) && markRetryLaneImpl(fiber, retryLane);
|
|
35
|
+
markRetryLaneImpl(fiber, retryLane), (fiber = fiber.alternate) && markRetryLaneImpl(fiber, retryLane);
|
|
77
36
|
}
|
|
78
37
|
function attemptContinuousHydration(fiber) {
|
|
79
|
-
if (
|
|
38
|
+
if (fiber.tag === 13 || fiber.tag === 31) {
|
|
80
39
|
var root2 = enqueueConcurrentRenderForLane(fiber, 67108864);
|
|
81
|
-
|
|
82
|
-
markRetryLaneIfNotHydrated(fiber, 67108864);
|
|
40
|
+
root2 !== null && scheduleUpdateOnFiber(root2, fiber, 67108864), markRetryLaneIfNotHydrated(fiber, 67108864);
|
|
83
41
|
}
|
|
84
42
|
}
|
|
85
43
|
function attemptHydrationAtCurrentPriority(fiber) {
|
|
86
|
-
if (
|
|
44
|
+
if (fiber.tag === 13 || fiber.tag === 31) {
|
|
87
45
|
var lane = requestUpdateLane();
|
|
88
46
|
lane = getBumpedLaneForHydrationByLane(lane);
|
|
89
47
|
var root2 = enqueueConcurrentRenderForLane(fiber, lane);
|
|
90
|
-
|
|
91
|
-
markRetryLaneIfNotHydrated(fiber, lane);
|
|
48
|
+
root2 !== null && scheduleUpdateOnFiber(root2, fiber, lane), markRetryLaneIfNotHydrated(fiber, lane);
|
|
92
49
|
}
|
|
93
50
|
}
|
|
94
|
-
var _enabled =
|
|
51
|
+
var _enabled = !0;
|
|
95
52
|
function dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) {
|
|
96
53
|
var prevTransition = ReactSharedInternals.T;
|
|
97
54
|
ReactSharedInternals.T = null;
|
|
@@ -115,7 +72,7 @@
|
|
|
115
72
|
function dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {
|
|
116
73
|
if (_enabled) {
|
|
117
74
|
var blockedOn = findInstanceBlockingEvent(nativeEvent);
|
|
118
|
-
if (
|
|
75
|
+
if (blockedOn === null)
|
|
119
76
|
dispatchEventForPluginEventSystem(
|
|
120
77
|
domEventName,
|
|
121
78
|
eventSystemFlags,
|
|
@@ -132,43 +89,37 @@
|
|
|
132
89
|
))
|
|
133
90
|
nativeEvent.stopPropagation();
|
|
134
91
|
else if (clearIfContinuousEvent(domEventName, nativeEvent), eventSystemFlags & 4 && -1 < discreteReplayableEvents.indexOf(domEventName)) {
|
|
135
|
-
for (;
|
|
92
|
+
for (; blockedOn !== null; ) {
|
|
136
93
|
var fiber = getInstanceFromNode(blockedOn);
|
|
137
|
-
if (
|
|
94
|
+
if (fiber !== null)
|
|
138
95
|
switch (fiber.tag) {
|
|
139
96
|
case 3:
|
|
140
|
-
fiber = fiber.stateNode
|
|
141
|
-
if (fiber.current.memoizedState.isDehydrated) {
|
|
97
|
+
if (fiber = fiber.stateNode, fiber.current.memoizedState.isDehydrated) {
|
|
142
98
|
var lanes = getHighestPriorityLanes(fiber.pendingLanes);
|
|
143
|
-
if (
|
|
99
|
+
if (lanes !== 0) {
|
|
144
100
|
var root2 = fiber;
|
|
145
|
-
root2.pendingLanes |= 2;
|
|
146
|
-
for (root2.entangledLanes |= 2; lanes; ) {
|
|
101
|
+
for (root2.pendingLanes |= 2, root2.entangledLanes |= 2; lanes; ) {
|
|
147
102
|
var lane = 1 << 31 - clz32(lanes);
|
|
148
|
-
root2.entanglements[1] |= lane;
|
|
149
|
-
lanes &= ~lane;
|
|
103
|
+
root2.entanglements[1] |= lane, lanes &= ~lane;
|
|
150
104
|
}
|
|
151
|
-
ensureRootIsScheduled(fiber);
|
|
152
|
-
0 === (executionContext & 6) && (workInProgressRootRenderTargetTime = now() + 500, flushSyncWorkAcrossRoots_impl(0, false));
|
|
105
|
+
ensureRootIsScheduled(fiber), (executionContext & 6) === 0 && (workInProgressRootRenderTargetTime = now() + 500, flushSyncWorkAcrossRoots_impl(0, !1));
|
|
153
106
|
}
|
|
154
107
|
}
|
|
155
108
|
break;
|
|
156
109
|
case 31:
|
|
157
110
|
case 13:
|
|
158
|
-
root2 = enqueueConcurrentRenderForLane(fiber, 2),
|
|
111
|
+
root2 = enqueueConcurrentRenderForLane(fiber, 2), root2 !== null && scheduleUpdateOnFiber(root2, fiber, 2), flushSyncWork$1(), markRetryLaneIfNotHydrated(fiber, 2);
|
|
159
112
|
}
|
|
160
|
-
fiber = findInstanceBlockingEvent(nativeEvent)
|
|
161
|
-
null === fiber && dispatchEventForPluginEventSystem(
|
|
113
|
+
if (fiber = findInstanceBlockingEvent(nativeEvent), fiber === null && dispatchEventForPluginEventSystem(
|
|
162
114
|
domEventName,
|
|
163
115
|
eventSystemFlags,
|
|
164
116
|
nativeEvent,
|
|
165
117
|
return_targetInst,
|
|
166
118
|
targetContainer
|
|
167
|
-
);
|
|
168
|
-
if (fiber === blockedOn) break;
|
|
119
|
+
), fiber === blockedOn) break;
|
|
169
120
|
blockedOn = fiber;
|
|
170
121
|
}
|
|
171
|
-
|
|
122
|
+
blockedOn !== null && nativeEvent.stopPropagation();
|
|
172
123
|
} else
|
|
173
124
|
dispatchEventForPluginEventSystem(
|
|
174
125
|
domEventName,
|
|
@@ -180,35 +131,29 @@
|
|
|
180
131
|
}
|
|
181
132
|
}
|
|
182
133
|
function findInstanceBlockingEvent(nativeEvent) {
|
|
183
|
-
nativeEvent = getEventTarget(nativeEvent);
|
|
184
|
-
return findInstanceBlockingTarget(nativeEvent);
|
|
134
|
+
return nativeEvent = getEventTarget(nativeEvent), findInstanceBlockingTarget(nativeEvent);
|
|
185
135
|
}
|
|
186
136
|
var return_targetInst = null;
|
|
187
137
|
function findInstanceBlockingTarget(targetNode) {
|
|
188
|
-
return_targetInst = null
|
|
189
|
-
targetNode = getClosestInstanceFromNode(targetNode);
|
|
190
|
-
if (null !== targetNode) {
|
|
138
|
+
if (return_targetInst = null, targetNode = getClosestInstanceFromNode(targetNode), targetNode !== null) {
|
|
191
139
|
var nearestMounted = getNearestMountedFiber(targetNode);
|
|
192
|
-
if (
|
|
140
|
+
if (nearestMounted === null) targetNode = null;
|
|
193
141
|
else {
|
|
194
142
|
var tag = nearestMounted.tag;
|
|
195
|
-
if (
|
|
196
|
-
targetNode = getSuspenseInstanceFromFiber(nearestMounted);
|
|
197
|
-
if (null !== targetNode) return targetNode;
|
|
143
|
+
if (tag === 13) {
|
|
144
|
+
if (targetNode = getSuspenseInstanceFromFiber(nearestMounted), targetNode !== null) return targetNode;
|
|
198
145
|
targetNode = null;
|
|
199
|
-
} else if (
|
|
200
|
-
targetNode = getActivityInstanceFromFiber(nearestMounted);
|
|
201
|
-
if (null !== targetNode) return targetNode;
|
|
146
|
+
} else if (tag === 31) {
|
|
147
|
+
if (targetNode = getActivityInstanceFromFiber(nearestMounted), targetNode !== null) return targetNode;
|
|
202
148
|
targetNode = null;
|
|
203
|
-
} else if (
|
|
149
|
+
} else if (tag === 3) {
|
|
204
150
|
if (nearestMounted.stateNode.current.memoizedState.isDehydrated)
|
|
205
|
-
return
|
|
151
|
+
return nearestMounted.tag === 3 ? nearestMounted.stateNode.containerInfo : null;
|
|
206
152
|
targetNode = null;
|
|
207
153
|
} else nearestMounted !== targetNode && (targetNode = null);
|
|
208
154
|
}
|
|
209
155
|
}
|
|
210
|
-
return_targetInst = targetNode;
|
|
211
|
-
return null;
|
|
156
|
+
return return_targetInst = targetNode, null;
|
|
212
157
|
}
|
|
213
158
|
function getEventPriority(domEventName) {
|
|
214
159
|
switch (domEventName) {
|
|
@@ -304,14 +249,7 @@
|
|
|
304
249
|
return 32;
|
|
305
250
|
}
|
|
306
251
|
}
|
|
307
|
-
var hasScheduledReplayAttempt =
|
|
308
|
-
var queuedFocus = null;
|
|
309
|
-
var queuedDrag = null;
|
|
310
|
-
var queuedMouse = null;
|
|
311
|
-
var queuedPointers = /* @__PURE__ */ new Map();
|
|
312
|
-
var queuedPointerCaptures = /* @__PURE__ */ new Map();
|
|
313
|
-
var queuedExplicitHydrationTargets = [];
|
|
314
|
-
var discreteReplayableEvents = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(
|
|
252
|
+
var hasScheduledReplayAttempt = !1, queuedFocus = null, queuedDrag = null, queuedMouse = null, queuedPointers = /* @__PURE__ */ new Map(), queuedPointerCaptures = /* @__PURE__ */ new Map(), queuedExplicitHydrationTargets = [], discreteReplayableEvents = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(
|
|
315
253
|
" "
|
|
316
254
|
);
|
|
317
255
|
function clearIfContinuousEvent(domEventName, nativeEvent) {
|
|
@@ -338,18 +276,13 @@
|
|
|
338
276
|
}
|
|
339
277
|
}
|
|
340
278
|
function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
}, null !== blockedOn && (blockedOn = getInstanceFromNode(blockedOn), null !== blockedOn && attemptContinuousHydration(blockedOn)), existingQueuedEvent;
|
|
349
|
-
existingQueuedEvent.eventSystemFlags |= eventSystemFlags;
|
|
350
|
-
blockedOn = existingQueuedEvent.targetContainers;
|
|
351
|
-
null !== targetContainer && -1 === blockedOn.indexOf(targetContainer) && blockedOn.push(targetContainer);
|
|
352
|
-
return existingQueuedEvent;
|
|
279
|
+
return existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent ? (existingQueuedEvent = {
|
|
280
|
+
blockedOn,
|
|
281
|
+
domEventName,
|
|
282
|
+
eventSystemFlags,
|
|
283
|
+
nativeEvent,
|
|
284
|
+
targetContainers: [targetContainer]
|
|
285
|
+
}, blockedOn !== null && (blockedOn = getInstanceFromNode(blockedOn), blockedOn !== null && attemptContinuousHydration(blockedOn)), existingQueuedEvent) : (existingQueuedEvent.eventSystemFlags |= eventSystemFlags, blockedOn = existingQueuedEvent.targetContainers, targetContainer !== null && blockedOn.indexOf(targetContainer) === -1 && blockedOn.push(targetContainer), existingQueuedEvent);
|
|
353
286
|
}
|
|
354
287
|
function queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
|
|
355
288
|
switch (domEventName) {
|
|
@@ -361,7 +294,7 @@
|
|
|
361
294
|
eventSystemFlags,
|
|
362
295
|
targetContainer,
|
|
363
296
|
nativeEvent
|
|
364
|
-
),
|
|
297
|
+
), !0;
|
|
365
298
|
case "dragenter":
|
|
366
299
|
return queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(
|
|
367
300
|
queuedDrag,
|
|
@@ -370,7 +303,7 @@
|
|
|
370
303
|
eventSystemFlags,
|
|
371
304
|
targetContainer,
|
|
372
305
|
nativeEvent
|
|
373
|
-
),
|
|
306
|
+
), !0;
|
|
374
307
|
case "mouseover":
|
|
375
308
|
return queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(
|
|
376
309
|
queuedMouse,
|
|
@@ -379,10 +312,10 @@
|
|
|
379
312
|
eventSystemFlags,
|
|
380
313
|
targetContainer,
|
|
381
314
|
nativeEvent
|
|
382
|
-
),
|
|
315
|
+
), !0;
|
|
383
316
|
case "pointerover":
|
|
384
317
|
var pointerId = nativeEvent.pointerId;
|
|
385
|
-
queuedPointers.set(
|
|
318
|
+
return queuedPointers.set(
|
|
386
319
|
pointerId,
|
|
387
320
|
accumulateOrCreateContinuousQueuedReplayableEvent(
|
|
388
321
|
queuedPointers.get(pointerId) || null,
|
|
@@ -392,8 +325,7 @@
|
|
|
392
325
|
targetContainer,
|
|
393
326
|
nativeEvent
|
|
394
327
|
)
|
|
395
|
-
);
|
|
396
|
-
return true;
|
|
328
|
+
), !0;
|
|
397
329
|
case "gotpointercapture":
|
|
398
330
|
return pointerId = nativeEvent.pointerId, queuedPointerCaptures.set(
|
|
399
331
|
pointerId,
|
|
@@ -405,33 +337,31 @@
|
|
|
405
337
|
targetContainer,
|
|
406
338
|
nativeEvent
|
|
407
339
|
)
|
|
408
|
-
),
|
|
340
|
+
), !0;
|
|
409
341
|
}
|
|
410
|
-
return
|
|
342
|
+
return !1;
|
|
411
343
|
}
|
|
412
344
|
function attemptExplicitHydrationTarget(queuedTarget) {
|
|
413
345
|
var targetInst = getClosestInstanceFromNode(queuedTarget.target);
|
|
414
|
-
if (
|
|
346
|
+
if (targetInst !== null) {
|
|
415
347
|
var nearestMounted = getNearestMountedFiber(targetInst);
|
|
416
|
-
if (
|
|
417
|
-
if (targetInst = nearestMounted.tag,
|
|
418
|
-
if (targetInst = getSuspenseInstanceFromFiber(nearestMounted),
|
|
419
|
-
queuedTarget.blockedOn = targetInst
|
|
420
|
-
runWithPriority(queuedTarget.priority, function() {
|
|
348
|
+
if (nearestMounted !== null) {
|
|
349
|
+
if (targetInst = nearestMounted.tag, targetInst === 13) {
|
|
350
|
+
if (targetInst = getSuspenseInstanceFromFiber(nearestMounted), targetInst !== null) {
|
|
351
|
+
queuedTarget.blockedOn = targetInst, runWithPriority(queuedTarget.priority, function() {
|
|
421
352
|
attemptHydrationAtCurrentPriority(nearestMounted);
|
|
422
353
|
});
|
|
423
354
|
return;
|
|
424
355
|
}
|
|
425
|
-
} else if (
|
|
426
|
-
if (targetInst = getActivityInstanceFromFiber(nearestMounted),
|
|
427
|
-
queuedTarget.blockedOn = targetInst
|
|
428
|
-
runWithPriority(queuedTarget.priority, function() {
|
|
356
|
+
} else if (targetInst === 31) {
|
|
357
|
+
if (targetInst = getActivityInstanceFromFiber(nearestMounted), targetInst !== null) {
|
|
358
|
+
queuedTarget.blockedOn = targetInst, runWithPriority(queuedTarget.priority, function() {
|
|
429
359
|
attemptHydrationAtCurrentPriority(nearestMounted);
|
|
430
360
|
});
|
|
431
361
|
return;
|
|
432
362
|
}
|
|
433
|
-
} else if (
|
|
434
|
-
queuedTarget.blockedOn =
|
|
363
|
+
} else if (targetInst === 3 && nearestMounted.stateNode.current.memoizedState.isDehydrated) {
|
|
364
|
+
queuedTarget.blockedOn = nearestMounted.tag === 3 ? nearestMounted.stateNode.containerInfo : null;
|
|
435
365
|
return;
|
|
436
366
|
}
|
|
437
367
|
}
|
|
@@ -439,37 +369,30 @@
|
|
|
439
369
|
queuedTarget.blockedOn = null;
|
|
440
370
|
}
|
|
441
371
|
function attemptReplayContinuousQueuedEvent(queuedEvent) {
|
|
442
|
-
if (
|
|
372
|
+
if (queuedEvent.blockedOn !== null) return !1;
|
|
443
373
|
for (var targetContainers = queuedEvent.targetContainers; 0 < targetContainers.length; ) {
|
|
444
374
|
var nextBlockedOn = findInstanceBlockingEvent(queuedEvent.nativeEvent);
|
|
445
|
-
if (
|
|
375
|
+
if (nextBlockedOn === null) {
|
|
446
376
|
nextBlockedOn = queuedEvent.nativeEvent;
|
|
447
377
|
var nativeEventClone = new nextBlockedOn.constructor(
|
|
448
378
|
nextBlockedOn.type,
|
|
449
379
|
nextBlockedOn
|
|
450
380
|
);
|
|
451
|
-
currentReplayingEvent = nativeEventClone;
|
|
452
|
-
nextBlockedOn.target.dispatchEvent(nativeEventClone);
|
|
453
|
-
currentReplayingEvent = null;
|
|
381
|
+
currentReplayingEvent = nativeEventClone, nextBlockedOn.target.dispatchEvent(nativeEventClone), currentReplayingEvent = null;
|
|
454
382
|
} else
|
|
455
|
-
return targetContainers = getInstanceFromNode(nextBlockedOn),
|
|
383
|
+
return targetContainers = getInstanceFromNode(nextBlockedOn), targetContainers !== null && attemptContinuousHydration(targetContainers), queuedEvent.blockedOn = nextBlockedOn, !1;
|
|
456
384
|
targetContainers.shift();
|
|
457
385
|
}
|
|
458
|
-
return
|
|
386
|
+
return !0;
|
|
459
387
|
}
|
|
460
388
|
function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {
|
|
461
389
|
attemptReplayContinuousQueuedEvent(queuedEvent) && map.delete(key);
|
|
462
390
|
}
|
|
463
391
|
function replayUnblockedEvents() {
|
|
464
|
-
hasScheduledReplayAttempt =
|
|
465
|
-
null !== queuedFocus && attemptReplayContinuousQueuedEvent(queuedFocus) && (queuedFocus = null);
|
|
466
|
-
null !== queuedDrag && attemptReplayContinuousQueuedEvent(queuedDrag) && (queuedDrag = null);
|
|
467
|
-
null !== queuedMouse && attemptReplayContinuousQueuedEvent(queuedMouse) && (queuedMouse = null);
|
|
468
|
-
queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);
|
|
469
|
-
queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);
|
|
392
|
+
hasScheduledReplayAttempt = !1, queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus) && (queuedFocus = null), queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag) && (queuedDrag = null), queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse) && (queuedMouse = null), queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap), queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);
|
|
470
393
|
}
|
|
471
394
|
function scheduleCallbackIfUnblocked(queuedEvent, unblocked) {
|
|
472
|
-
queuedEvent.blockedOn === unblocked && (queuedEvent.blockedOn = null, hasScheduledReplayAttempt || (hasScheduledReplayAttempt =
|
|
395
|
+
queuedEvent.blockedOn === unblocked && (queuedEvent.blockedOn = null, hasScheduledReplayAttempt || (hasScheduledReplayAttempt = !0, Scheduler.unstable_scheduleCallback(
|
|
473
396
|
Scheduler.unstable_NormalPriority,
|
|
474
397
|
replayUnblockedEvents
|
|
475
398
|
)));
|
|
@@ -482,15 +405,16 @@
|
|
|
482
405
|
lastScheduledReplayQueue === formReplayingQueue && (lastScheduledReplayQueue = null);
|
|
483
406
|
for (var i = 0; i < formReplayingQueue.length; i += 3) {
|
|
484
407
|
var form = formReplayingQueue[i], submitterOrAction = formReplayingQueue[i + 1], formData = formReplayingQueue[i + 2];
|
|
485
|
-
if ("function"
|
|
486
|
-
if (
|
|
408
|
+
if (typeof submitterOrAction != "function") {
|
|
409
|
+
if (findInstanceBlockingTarget(submitterOrAction || form) === null)
|
|
487
410
|
continue;
|
|
488
|
-
|
|
411
|
+
break;
|
|
412
|
+
}
|
|
489
413
|
var formInst = getInstanceFromNode(form);
|
|
490
|
-
|
|
414
|
+
formInst !== null && (formReplayingQueue.splice(i, 3), i -= 3, startHostTransition(
|
|
491
415
|
formInst,
|
|
492
416
|
{
|
|
493
|
-
pending:
|
|
417
|
+
pending: !0,
|
|
494
418
|
data: formData,
|
|
495
419
|
method: form.method,
|
|
496
420
|
action: submitterOrAction
|
|
@@ -506,40 +430,32 @@
|
|
|
506
430
|
function unblock(queuedEvent) {
|
|
507
431
|
return scheduleCallbackIfUnblocked(queuedEvent, unblocked);
|
|
508
432
|
}
|
|
509
|
-
|
|
510
|
-
null !== queuedDrag && scheduleCallbackIfUnblocked(queuedDrag, unblocked);
|
|
511
|
-
null !== queuedMouse && scheduleCallbackIfUnblocked(queuedMouse, unblocked);
|
|
512
|
-
queuedPointers.forEach(unblock);
|
|
513
|
-
queuedPointerCaptures.forEach(unblock);
|
|
433
|
+
queuedFocus !== null && scheduleCallbackIfUnblocked(queuedFocus, unblocked), queuedDrag !== null && scheduleCallbackIfUnblocked(queuedDrag, unblocked), queuedMouse !== null && scheduleCallbackIfUnblocked(queuedMouse, unblocked), queuedPointers.forEach(unblock), queuedPointerCaptures.forEach(unblock);
|
|
514
434
|
for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) {
|
|
515
435
|
var queuedTarget = queuedExplicitHydrationTargets[i];
|
|
516
436
|
queuedTarget.blockedOn === unblocked && (queuedTarget.blockedOn = null);
|
|
517
437
|
}
|
|
518
|
-
for (; 0 < queuedExplicitHydrationTargets.length && (i = queuedExplicitHydrationTargets[0],
|
|
519
|
-
attemptExplicitHydrationTarget(i),
|
|
520
|
-
i = (unblocked.ownerDocument || unblocked).$$reactFormReplay
|
|
521
|
-
if (null != i)
|
|
438
|
+
for (; 0 < queuedExplicitHydrationTargets.length && (i = queuedExplicitHydrationTargets[0], i.blockedOn === null); )
|
|
439
|
+
attemptExplicitHydrationTarget(i), i.blockedOn === null && queuedExplicitHydrationTargets.shift();
|
|
440
|
+
if (i = (unblocked.ownerDocument || unblocked).$$reactFormReplay, i != null)
|
|
522
441
|
for (queuedTarget = 0; queuedTarget < i.length; queuedTarget += 3) {
|
|
523
442
|
var form = i[queuedTarget], submitterOrAction = i[queuedTarget + 1], formProps = form[internalPropsKey] || null;
|
|
524
|
-
if ("function"
|
|
443
|
+
if (typeof submitterOrAction == "function")
|
|
525
444
|
formProps || scheduleReplayQueueIfNeeded(i);
|
|
526
445
|
else if (formProps) {
|
|
527
446
|
var action = null;
|
|
528
|
-
if (submitterOrAction && submitterOrAction.hasAttribute("formAction"))
|
|
447
|
+
if (submitterOrAction && submitterOrAction.hasAttribute("formAction")) {
|
|
529
448
|
if (form = submitterOrAction, formProps = submitterOrAction[internalPropsKey] || null)
|
|
530
449
|
action = formProps.formAction;
|
|
531
|
-
else
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
else action = formProps.action;
|
|
535
|
-
"function" === typeof action ? i[queuedTarget + 1] = action : (i.splice(queuedTarget, 3), queuedTarget -= 3);
|
|
536
|
-
scheduleReplayQueueIfNeeded(i);
|
|
450
|
+
else if (findInstanceBlockingTarget(form) !== null) continue;
|
|
451
|
+
} else action = formProps.action;
|
|
452
|
+
typeof action == "function" ? i[queuedTarget + 1] = action : (i.splice(queuedTarget, 3), queuedTarget -= 3), scheduleReplayQueueIfNeeded(i);
|
|
537
453
|
}
|
|
538
454
|
}
|
|
539
455
|
}
|
|
540
456
|
function defaultOnDefaultTransitionIndicator() {
|
|
541
457
|
function handleNavigate(event) {
|
|
542
|
-
event.canIntercept && "react-transition"
|
|
458
|
+
event.canIntercept && event.info === "react-transition" && event.intercept({
|
|
543
459
|
handler: function() {
|
|
544
460
|
return new Promise(function(resolve) {
|
|
545
461
|
return pendingResolve = resolve;
|
|
@@ -550,31 +466,22 @@
|
|
|
550
466
|
});
|
|
551
467
|
}
|
|
552
468
|
function handleNavigateComplete() {
|
|
553
|
-
|
|
554
|
-
isCancelled || setTimeout(startFakeNavigation, 20);
|
|
469
|
+
pendingResolve !== null && (pendingResolve(), pendingResolve = null), isCancelled || setTimeout(startFakeNavigation, 20);
|
|
555
470
|
}
|
|
556
471
|
function startFakeNavigation() {
|
|
557
472
|
if (!isCancelled && !navigation.transition) {
|
|
558
473
|
var currentEntry = navigation.currentEntry;
|
|
559
|
-
currentEntry &&
|
|
474
|
+
currentEntry && currentEntry.url != null && navigation.navigate(currentEntry.url, {
|
|
560
475
|
state: currentEntry.getState(),
|
|
561
476
|
info: "react-transition",
|
|
562
477
|
history: "replace"
|
|
563
478
|
});
|
|
564
479
|
}
|
|
565
480
|
}
|
|
566
|
-
if ("object"
|
|
567
|
-
var isCancelled =
|
|
568
|
-
navigation.addEventListener("navigate", handleNavigate)
|
|
569
|
-
|
|
570
|
-
navigation.addEventListener("navigateerror", handleNavigateComplete);
|
|
571
|
-
setTimeout(startFakeNavigation, 100);
|
|
572
|
-
return function() {
|
|
573
|
-
isCancelled = true;
|
|
574
|
-
navigation.removeEventListener("navigate", handleNavigate);
|
|
575
|
-
navigation.removeEventListener("navigatesuccess", handleNavigateComplete);
|
|
576
|
-
navigation.removeEventListener("navigateerror", handleNavigateComplete);
|
|
577
|
-
null !== pendingResolve && (pendingResolve(), pendingResolve = null);
|
|
481
|
+
if (typeof navigation == "object") {
|
|
482
|
+
var isCancelled = !1, pendingResolve = null;
|
|
483
|
+
return navigation.addEventListener("navigate", handleNavigate), navigation.addEventListener("navigatesuccess", handleNavigateComplete), navigation.addEventListener("navigateerror", handleNavigateComplete), setTimeout(startFakeNavigation, 100), function() {
|
|
484
|
+
isCancelled = !0, navigation.removeEventListener("navigate", handleNavigate), navigation.removeEventListener("navigatesuccess", handleNavigateComplete), navigation.removeEventListener("navigateerror", handleNavigateComplete), pendingResolve !== null && (pendingResolve(), pendingResolve = null);
|
|
578
485
|
};
|
|
579
486
|
}
|
|
580
487
|
}
|
|
@@ -583,18 +490,16 @@
|
|
|
583
490
|
}
|
|
584
491
|
ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function(children) {
|
|
585
492
|
var root2 = this._internalRoot;
|
|
586
|
-
if (
|
|
493
|
+
if (root2 === null) throw Error(formatProdErrorMessage(409));
|
|
587
494
|
var current = root2.current, lane = requestUpdateLane();
|
|
588
495
|
updateContainerImpl(current, lane, children, root2, null, null);
|
|
589
496
|
};
|
|
590
497
|
ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = function() {
|
|
591
498
|
var root2 = this._internalRoot;
|
|
592
|
-
if (
|
|
499
|
+
if (root2 !== null) {
|
|
593
500
|
this._internalRoot = null;
|
|
594
501
|
var container = root2.containerInfo;
|
|
595
|
-
updateContainerImpl(root2.current, 2, null, root2, null, null);
|
|
596
|
-
flushSyncWork$1();
|
|
597
|
-
container[internalContainerInstanceKey] = null;
|
|
502
|
+
updateContainerImpl(root2.current, 2, null, root2, null, null), flushSyncWork$1(), container[internalContainerInstanceKey] = null;
|
|
598
503
|
}
|
|
599
504
|
};
|
|
600
505
|
function ReactDOMHydrationRoot(internalRoot) {
|
|
@@ -604,13 +509,12 @@
|
|
|
604
509
|
if (target) {
|
|
605
510
|
var updatePriority = resolveUpdatePriority();
|
|
606
511
|
target = { blockedOn: null, target, priority: updatePriority };
|
|
607
|
-
for (var i = 0; i < queuedExplicitHydrationTargets.length &&
|
|
608
|
-
queuedExplicitHydrationTargets.splice(i, 0, target);
|
|
609
|
-
0 === i && attemptExplicitHydrationTarget(target);
|
|
512
|
+
for (var i = 0; i < queuedExplicitHydrationTargets.length && updatePriority !== 0 && updatePriority < queuedExplicitHydrationTargets[i].priority; i++) ;
|
|
513
|
+
queuedExplicitHydrationTargets.splice(i, 0, target), i === 0 && attemptExplicitHydrationTarget(target);
|
|
610
514
|
}
|
|
611
515
|
};
|
|
612
516
|
var isomorphicReactPackageVersion$jscomp$inline_2043 = React36.version;
|
|
613
|
-
if ("19.3.0"
|
|
517
|
+
if (isomorphicReactPackageVersion$jscomp$inline_2043 !== "19.3.0")
|
|
614
518
|
throw Error(
|
|
615
519
|
formatProdErrorMessage(
|
|
616
520
|
527,
|
|
@@ -620,16 +524,9 @@
|
|
|
620
524
|
);
|
|
621
525
|
ReactDOMSharedInternals.findDOMNode = function(componentOrElement) {
|
|
622
526
|
var fiber = componentOrElement._reactInternals;
|
|
623
|
-
if (void 0
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
componentOrElement = Object.keys(componentOrElement).join(",");
|
|
627
|
-
throw Error(formatProdErrorMessage(268, componentOrElement));
|
|
628
|
-
}
|
|
629
|
-
componentOrElement = findCurrentFiberUsingSlowPath(fiber);
|
|
630
|
-
componentOrElement = null !== componentOrElement ? findCurrentHostFiberImpl(componentOrElement) : null;
|
|
631
|
-
componentOrElement = null === componentOrElement ? null : componentOrElement.stateNode;
|
|
632
|
-
return componentOrElement;
|
|
527
|
+
if (fiber === void 0)
|
|
528
|
+
throw typeof componentOrElement.render == "function" ? Error(formatProdErrorMessage(188)) : (componentOrElement = Object.keys(componentOrElement).join(","), Error(formatProdErrorMessage(268, componentOrElement)));
|
|
529
|
+
return componentOrElement = findCurrentFiberUsingSlowPath(fiber), componentOrElement = componentOrElement !== null ? findCurrentHostFiberImpl(componentOrElement) : null, componentOrElement = componentOrElement === null ? null : componentOrElement.stateNode, componentOrElement;
|
|
633
530
|
};
|
|
634
531
|
var internals$jscomp$inline_2586 = {
|
|
635
532
|
bundleType: 0,
|
|
@@ -638,25 +535,21 @@
|
|
|
638
535
|
currentDispatcherRef: ReactSharedInternals,
|
|
639
536
|
reconcilerVersion: "19.3.0"
|
|
640
537
|
};
|
|
641
|
-
if ("
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
} catch (err) {
|
|
649
|
-
}
|
|
650
|
-
}
|
|
538
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && (hook$jscomp$inline_2587 = __REACT_DEVTOOLS_GLOBAL_HOOK__, !hook$jscomp$inline_2587.isDisabled && hook$jscomp$inline_2587.supportsFiber))
|
|
539
|
+
try {
|
|
540
|
+
rendererID = hook$jscomp$inline_2587.inject(
|
|
541
|
+
internals$jscomp$inline_2586
|
|
542
|
+
), injectedHook = hook$jscomp$inline_2587;
|
|
543
|
+
} catch {
|
|
544
|
+
}
|
|
651
545
|
var hook$jscomp$inline_2587;
|
|
652
546
|
exports.createRoot = function(container, options3) {
|
|
653
547
|
if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299));
|
|
654
|
-
var isStrictMode =
|
|
655
|
-
|
|
656
|
-
options3 = createFiberRoot(
|
|
548
|
+
var isStrictMode = !1, identifierPrefix = "", onUncaughtError = defaultOnUncaughtError, onCaughtError = defaultOnCaughtError, onRecoverableError = defaultOnRecoverableError;
|
|
549
|
+
return options3 != null && (options3.unstable_strictMode === !0 && (isStrictMode = !0), options3.identifierPrefix !== void 0 && (identifierPrefix = options3.identifierPrefix), options3.onUncaughtError !== void 0 && (onUncaughtError = options3.onUncaughtError), options3.onCaughtError !== void 0 && (onCaughtError = options3.onCaughtError), options3.onRecoverableError !== void 0 && (onRecoverableError = options3.onRecoverableError)), options3 = createFiberRoot(
|
|
657
550
|
container,
|
|
658
551
|
1,
|
|
659
|
-
|
|
552
|
+
!1,
|
|
660
553
|
null,
|
|
661
554
|
null,
|
|
662
555
|
isStrictMode,
|
|
@@ -666,21 +559,17 @@
|
|
|
666
559
|
onCaughtError,
|
|
667
560
|
onRecoverableError,
|
|
668
561
|
defaultOnDefaultTransitionIndicator
|
|
669
|
-
);
|
|
670
|
-
container[internalContainerInstanceKey] = options3.current;
|
|
671
|
-
listenToAllSupportedEvents(container);
|
|
672
|
-
return new ReactDOMRoot(options3);
|
|
562
|
+
), container[internalContainerInstanceKey] = options3.current, listenToAllSupportedEvents(container), new ReactDOMRoot(options3);
|
|
673
563
|
};
|
|
674
564
|
exports.hydrateRoot = function(container, initialChildren, options3) {
|
|
675
565
|
if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299));
|
|
676
|
-
var isStrictMode =
|
|
677
|
-
|
|
678
|
-
initialChildren = createFiberRoot(
|
|
566
|
+
var isStrictMode = !1, identifierPrefix = "", onUncaughtError = defaultOnUncaughtError, onCaughtError = defaultOnCaughtError, onRecoverableError = defaultOnRecoverableError, formState = null;
|
|
567
|
+
return options3 != null && (options3.unstable_strictMode === !0 && (isStrictMode = !0), options3.identifierPrefix !== void 0 && (identifierPrefix = options3.identifierPrefix), options3.onUncaughtError !== void 0 && (onUncaughtError = options3.onUncaughtError), options3.onCaughtError !== void 0 && (onCaughtError = options3.onCaughtError), options3.onRecoverableError !== void 0 && (onRecoverableError = options3.onRecoverableError), options3.formState !== void 0 && (formState = options3.formState)), initialChildren = createFiberRoot(
|
|
679
568
|
container,
|
|
680
569
|
1,
|
|
681
|
-
|
|
570
|
+
!0,
|
|
682
571
|
initialChildren,
|
|
683
|
-
|
|
572
|
+
options3 ?? null,
|
|
684
573
|
isStrictMode,
|
|
685
574
|
identifierPrefix,
|
|
686
575
|
formState,
|
|
@@ -688,20 +577,6 @@
|
|
|
688
577
|
onCaughtError,
|
|
689
578
|
onRecoverableError,
|
|
690
579
|
defaultOnDefaultTransitionIndicator
|
|
691
|
-
);
|
|
692
|
-
initialChildren.context = getContextForSubtree(null);
|
|
693
|
-
options3 = initialChildren.current;
|
|
694
|
-
isStrictMode = requestUpdateLane();
|
|
695
|
-
isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode);
|
|
696
|
-
identifierPrefix = createUpdate(isStrictMode);
|
|
697
|
-
identifierPrefix.callback = null;
|
|
698
|
-
enqueueUpdate(options3, identifierPrefix, isStrictMode);
|
|
699
|
-
options3 = isStrictMode;
|
|
700
|
-
initialChildren.current.lanes = options3;
|
|
701
|
-
markRootUpdated$1(initialChildren, options3);
|
|
702
|
-
ensureRootIsScheduled(initialChildren);
|
|
703
|
-
container[internalContainerInstanceKey] = initialChildren.current;
|
|
704
|
-
listenToAllSupportedEvents(container);
|
|
705
|
-
return new ReactDOMHydrationRoot(initialChildren);
|
|
580
|
+
), initialChildren.context = getContextForSubtree(null), options3 = initialChildren.current, isStrictMode = requestUpdateLane(), isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode), identifierPrefix = createUpdate(isStrictMode), identifierPrefix.callback = null, enqueueUpdate(options3, identifierPrefix, isStrictMode), options3 = isStrictMode, initialChildren.current.lanes = options3, markRootUpdated$1(initialChildren, options3), ensureRootIsScheduled(initialChildren), container[internalContainerInstanceKey] = initialChildren.current, listenToAllSupportedEvents(container), new ReactDOMHydrationRoot(initialChildren);
|
|
706
581
|
};
|
|
707
582
|
exports.version = "19.3.0";
|