@yaks/platform 0.0.0-stage → 0.2.36
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 +202 -0
- package/README.md +261 -2
- package/_client-blobs.js +7 -0
- package/_client-error.js +70 -0
- package/_client-modal.js +3 -0
- package/_client-replica.js +5 -0
- package/_client-review.js +1 -0
- package/_client-schema.js +1 -0
- package/_client-vault.js +31 -0
- package/_edit-query.js +1 -0
- package/_uploads.js +4 -0
- package/account-browser.js +67 -0
- package/account-browser.js.map +1 -0
- package/account-browser.ts +87 -0
- package/account-rows.js +130 -0
- package/account-rows.js.map +1 -0
- package/account-rows.ts +237 -0
- package/admin-visits-view.js +65 -0
- package/admin-visits-view.js.map +1 -0
- package/admin-visits-view.ts +120 -0
- package/admin-visits.js +143 -0
- package/admin-visits.js.map +1 -0
- package/admin-visits.ts +211 -0
- package/admit-graph.js +8 -0
- package/admit-graph.js.map +1 -0
- package/admit-graph.ts +10 -0
- package/agent-guide.js +368 -0
- package/agent-guide.js.map +1 -0
- package/agent-guide.ts +450 -0
- package/agents-browser.js +143 -0
- package/agents-browser.js.map +1 -0
- package/agents-browser.ts +141 -0
- package/agents-view.js +129 -0
- package/agents-view.js.map +1 -0
- package/agents-view.ts +236 -0
- package/agents.js +148 -0
- package/agents.js.map +1 -0
- package/agents.ts +150 -0
- package/app-actions.js +56 -0
- package/app-actions.js.map +1 -0
- package/app-actions.ts +61 -0
- package/app-authority.js +280 -0
- package/app-authority.js.map +1 -0
- package/app-authority.ts +356 -0
- package/app-canvas-browser.js +308 -0
- package/app-canvas-browser.js.map +1 -0
- package/app-canvas-browser.ts +377 -0
- package/app-canvas-view.js +244 -0
- package/app-canvas-view.js.map +1 -0
- package/app-canvas-view.ts +399 -0
- package/app-canvas.js +87 -0
- package/app-canvas.js.map +1 -0
- package/app-canvas.ts +170 -0
- package/app-client.js +521 -0
- package/app-client.js.map +1 -0
- package/app-client.ts +562 -0
- package/app-command.js +108 -0
- package/app-command.js.map +1 -0
- package/app-command.ts +155 -0
- package/app-commands.js +334 -0
- package/app-commands.js.map +1 -0
- package/app-commands.ts +379 -0
- package/app-decision.js +69 -0
- package/app-decision.js.map +1 -0
- package/app-decision.ts +61 -0
- package/app-effects.js +43 -0
- package/app-effects.js.map +1 -0
- package/app-effects.ts +53 -0
- package/app-file.js +252 -0
- package/app-file.js.map +1 -0
- package/app-file.ts +362 -0
- package/app-friends.js +60 -0
- package/app-friends.js.map +1 -0
- package/app-friends.ts +81 -0
- package/app-graph.js +9 -0
- package/app-graph.js.map +1 -0
- package/app-graph.ts +9 -0
- package/app-icon.js +59 -0
- package/app-icon.js.map +1 -0
- package/app-icon.ts +121 -0
- package/app-made.js +164 -0
- package/app-made.js.map +1 -0
- package/app-made.ts +306 -0
- package/app-outbound.js +72 -0
- package/app-outbound.js.map +1 -0
- package/app-outbound.ts +109 -0
- package/app-outbox.js +42 -0
- package/app-outbox.js.map +1 -0
- package/app-outbox.ts +46 -0
- package/app-patch.js +75 -0
- package/app-patch.js.map +1 -0
- package/app-patch.ts +106 -0
- package/app-read.js +101 -0
- package/app-read.js.map +1 -0
- package/app-read.ts +126 -0
- package/app-role-tools.js +232 -0
- package/app-role-tools.js.map +1 -0
- package/app-role-tools.ts +258 -0
- package/app-roles.js +91 -0
- package/app-roles.js.map +1 -0
- package/app-roles.ts +76 -0
- package/app-session-access.js +109 -0
- package/app-session-access.js.map +1 -0
- package/app-session-access.ts +145 -0
- package/app-starter.js +109 -0
- package/app-starter.js.map +1 -0
- package/app-starter.ts +123 -0
- package/app-storage.js +38 -0
- package/app-storage.js.map +1 -0
- package/app-storage.ts +54 -0
- package/app-style-guide.js +138 -0
- package/app-style-guide.js.map +1 -0
- package/app-style-guide.ts +195 -0
- package/app-subs.js +89 -0
- package/app-subs.js.map +1 -0
- package/app-subs.ts +110 -0
- package/app-tests.js +54 -0
- package/app-tests.js.map +1 -0
- package/app-tests.ts +56 -0
- package/app-tile.js +209 -0
- package/app-tile.js.map +1 -0
- package/app-tile.ts +227 -0
- package/app-transfer.js +188 -0
- package/app-transfer.js.map +1 -0
- package/app-transfer.ts +281 -0
- package/app-vocab.js +52 -0
- package/app-vocab.js.map +1 -0
- package/app-vocab.ts +43 -0
- package/app-words.js +55 -0
- package/app-words.js.map +1 -0
- package/app-words.ts +73 -0
- package/app-worker.js +28 -0
- package/app-worker.js.map +1 -0
- package/app-worker.ts +38 -0
- package/app-writes.js +132 -0
- package/app-writes.js.map +1 -0
- package/app-writes.ts +128 -0
- package/asset-bytes.js +57 -0
- package/asset-bytes.js.map +1 -0
- package/asset-bytes.ts +90 -0
- package/asset-response.js +28 -0
- package/asset-response.js.map +1 -0
- package/asset-response.ts +46 -0
- package/asset-url.js +556 -0
- package/asset-url.js.map +1 -0
- package/asset-url.ts +774 -0
- package/attribution-vocab.js +14 -0
- package/attribution-vocab.js.map +1 -0
- package/attribution-vocab.ts +11 -0
- package/authorship-graph.js +8 -0
- package/authorship-graph.js.map +1 -0
- package/authorship-graph.ts +10 -0
- package/badge.js +98 -0
- package/blob-images.js +206 -0
- package/blob-images.js.map +1 -0
- package/blob-images.ts +323 -0
- package/blob-posters.js +125 -0
- package/blob-posters.js.map +1 -0
- package/blob-posters.ts +207 -0
- package/blob-routes.js +14 -0
- package/blob-routes.js.map +1 -0
- package/blob-routes.ts +25 -0
- package/bots.js +77 -0
- package/bots.js.map +1 -0
- package/bots.ts +93 -0
- package/browser-mockup.js +81 -0
- package/browser-mockup.js.map +1 -0
- package/browser-mockup.ts +105 -0
- package/browser-record.js +55 -0
- package/browser-record.js.map +1 -0
- package/browser-record.ts +66 -0
- package/browser-scroll.js +90 -0
- package/browser-scroll.js.map +1 -0
- package/browser-scroll.ts +108 -0
- package/browser-stream.js +79 -0
- package/browser-stream.js.map +1 -0
- package/browser-stream.ts +84 -0
- package/browser-trace.js +252 -0
- package/browser-trace.js.map +1 -0
- package/browser-trace.ts +330 -0
- package/browser-viewer.js +236 -0
- package/browser-viewer.js.map +1 -0
- package/browser-viewer.ts +233 -0
- package/browser-visit.js +1522 -0
- package/browser-visit.js.map +1 -0
- package/browser-visit.ts +2179 -0
- package/browser-wire.js +242 -0
- package/browser-wire.js.map +1 -0
- package/browser-wire.ts +262 -0
- package/budget.js +17 -0
- package/budget.js.map +1 -0
- package/budget.ts +42 -0
- package/cli.js +52 -0
- package/cli.js.map +1 -0
- package/cli.ts +55 -0
- package/client-modules.js +24 -0
- package/client-modules.js.map +1 -0
- package/client-modules.ts +24 -0
- package/client-routes.js +83 -0
- package/client-routes.js.map +1 -0
- package/client-routes.ts +104 -0
- package/client-words.js +62 -0
- package/client-words.js.map +1 -0
- package/client-words.ts +77 -0
- package/client.js +709 -0
- package/comp.js +2 -0
- package/comp.js.map +1 -0
- package/comp.ts +15 -0
- package/config.js +497 -0
- package/config.js.map +1 -0
- package/config.ts +287 -0
- package/connect-parts.js +107 -0
- package/connect-parts.js.map +1 -0
- package/connect-parts.ts +165 -0
- package/connected-activity-browser.js +301 -0
- package/connected-activity-browser.js.map +1 -0
- package/connected-activity-browser.ts +341 -0
- package/connected-activity-view.js +55 -0
- package/connected-activity-view.js.map +1 -0
- package/connected-activity-view.ts +81 -0
- package/connected-activity-wire.js +165 -0
- package/connected-activity-wire.js.map +1 -0
- package/connected-activity-wire.ts +171 -0
- package/connected-activity.css +156 -0
- package/connected-activity.js +185 -0
- package/connected-activity.js.map +1 -0
- package/connected-activity.ts +278 -0
- package/connection-icon-browser.js +50 -0
- package/connection-icon-browser.js.map +1 -0
- package/connection-icon-browser.ts +52 -0
- package/connections-browser.js +393 -0
- package/connections-browser.js.map +1 -0
- package/connections-browser.ts +465 -0
- package/connections-page.js +178 -0
- package/connections-page.js.map +1 -0
- package/connections-page.ts +461 -0
- package/connections-view.js +1215 -0
- package/connections-view.js.map +1 -0
- package/connections-view.ts +2239 -0
- package/connector-upload.js +94 -0
- package/connector-upload.js.map +1 -0
- package/connector-upload.ts +146 -0
- package/consent.js +2 -0
- package/consent.js.map +1 -0
- package/consent.ts +3 -0
- package/cookie.js +53 -0
- package/cookie.js.map +1 -0
- package/cookie.ts +75 -0
- package/copy.js +104 -0
- package/corner.js +226 -0
- package/credential-draft-move.js +154 -0
- package/credential-draft-move.js.map +1 -0
- package/credential-draft-move.ts +197 -0
- package/credential-draft-place.js +2 -0
- package/credential-draft-place.js.map +1 -0
- package/credential-draft-place.ts +4 -0
- package/credential-drafts.js +66 -0
- package/credential-drafts.js.map +1 -0
- package/credential-drafts.ts +93 -0
- package/dashboard-browser.js +149 -0
- package/dashboard-browser.js.map +1 -0
- package/dashboard-browser.ts +184 -0
- package/dashboard-view.js +293 -0
- package/dashboard-view.js.map +1 -0
- package/dashboard-view.ts +423 -0
- package/dashboard.js +268 -0
- package/dashboard.js.map +1 -0
- package/dashboard.ts +436 -0
- package/deno.json +1 -0
- package/describe-graph.js +8 -0
- package/describe-graph.js.map +1 -0
- package/describe-graph.ts +7 -0
- package/directory-derived.js +142 -0
- package/directory-derived.js.map +1 -0
- package/directory-derived.ts +198 -0
- package/directory-index-move.js +77 -0
- package/directory-index-move.js.map +1 -0
- package/directory-index-move.ts +59 -0
- package/directory-index.js +382 -0
- package/directory-index.js.map +1 -0
- package/directory-index.ts +550 -0
- package/directory-pages.js +41 -0
- package/directory-pages.js.map +1 -0
- package/directory-pages.ts +71 -0
- package/directory-route.js +129 -0
- package/directory-route.js.map +1 -0
- package/directory-route.ts +189 -0
- package/directory-vocab.js +58 -0
- package/directory-vocab.js.map +1 -0
- package/directory-vocab.ts +46 -0
- package/document-graph.js +86 -0
- package/document-graph.js.map +1 -0
- package/document-graph.ts +93 -0
- package/document-ocr.js +146 -0
- package/document-ocr.js.map +1 -0
- package/document-ocr.ts +204 -0
- package/documents.js +50 -0
- package/documents.js.map +1 -0
- package/documents.ts +64 -0
- package/domain-pages.js +221 -0
- package/domain-pages.js.map +1 -0
- package/domain-pages.ts +586 -0
- package/domain-settings.js +88 -0
- package/domain-settings.js.map +1 -0
- package/domain-settings.ts +132 -0
- package/domain-transfer.js +138 -0
- package/domain-transfer.js.map +1 -0
- package/domain-transfer.ts +190 -0
- package/donation-loans.js +176 -0
- package/donation-loans.js.map +1 -0
- package/donation-loans.ts +271 -0
- package/draft-choice.js +136 -0
- package/draft-choice.js.map +1 -0
- package/draft-choice.ts +310 -0
- package/drawing.js +27 -0
- package/drawing.js.map +1 -0
- package/drawing.ts +40 -0
- package/early-report.js +18 -0
- package/early-report.js.map +1 -0
- package/early-report.ts +31 -0
- package/edit-client-path.js +2 -0
- package/edit-client-path.js.map +1 -0
- package/edit-client-path.ts +1 -0
- package/edit-mode.js +920 -0
- package/edit-mode.js.map +1 -0
- package/edit-mode.ts +1003 -0
- package/edit-sync.js +61 -0
- package/edit-sync.js.map +1 -0
- package/edit-sync.ts +83 -0
- package/edit.js +265 -0
- package/embed-graph.js +11 -0
- package/embed-graph.js.map +1 -0
- package/embed-graph.ts +8 -0
- package/embedded-payment.js +211 -0
- package/embedded-payment.js.map +1 -0
- package/embedded-payment.ts +290 -0
- package/entry-actions-browser.js +43 -0
- package/entry-actions-browser.js.map +1 -0
- package/entry-actions-browser.ts +64 -0
- package/entry-actions.js +56 -0
- package/entry-actions.js.map +1 -0
- package/entry-actions.ts +59 -0
- package/escape.js +14 -0
- package/escape.js.map +1 -0
- package/escape.ts +24 -0
- package/face-input.js +6 -0
- package/face-input.js.map +1 -0
- package/face-input.ts +14 -0
- package/facebook.js +370 -0
- package/facebook.js.map +1 -0
- package/facebook.ts +474 -0
- package/facets.js +142 -0
- package/facets.js.map +1 -0
- package/facets.ts +89 -0
- package/fee.js +45 -0
- package/fee.js.map +1 -0
- package/fee.ts +51 -0
- package/fence.js +164 -0
- package/fence.js.map +1 -0
- package/fence.ts +223 -0
- package/file-metadata.js +135 -0
- package/file-metadata.js.map +1 -0
- package/file-metadata.ts +177 -0
- package/file-operation.js +51 -0
- package/file-operation.js.map +1 -0
- package/file-operation.ts +32 -0
- package/file-redirects.js +72 -0
- package/file-redirects.js.map +1 -0
- package/file-redirects.ts +74 -0
- package/file-root.js +8 -0
- package/file-root.js.map +1 -0
- package/file-root.ts +24 -0
- package/files-routes.js +203 -0
- package/files-routes.js.map +1 -0
- package/files-routes.ts +282 -0
- package/files.js +369 -0
- package/files.js.map +1 -0
- package/files.ts +522 -0
- package/fingerprint.js +217 -0
- package/fingerprint.js.map +1 -0
- package/fingerprint.ts +314 -0
- package/firsts.js +335 -0
- package/firsts.js.map +1 -0
- package/firsts.ts +368 -0
- package/friends-at.js +78 -0
- package/friends-at.js.map +1 -0
- package/friends-at.ts +115 -0
- package/friends-browser.js +66 -0
- package/friends-browser.js.map +1 -0
- package/friends-browser.ts +77 -0
- package/friends-dock-browser.js +375 -0
- package/friends-dock-browser.js.map +1 -0
- package/friends-dock-browser.ts +408 -0
- package/friends-dock-view.js +363 -0
- package/friends-dock-view.js.map +1 -0
- package/friends-dock-view.ts +592 -0
- package/friends-view.js +33 -0
- package/friends-view.js.map +1 -0
- package/friends-view.ts +69 -0
- package/friends.js +153 -0
- package/friends.js.map +1 -0
- package/friends.ts +200 -0
- package/fundraising-orders.js +197 -0
- package/fundraising-orders.js.map +1 -0
- package/fundraising-orders.ts +283 -0
- package/fundraising.js +165 -0
- package/fundraising.js.map +1 -0
- package/fundraising.ts +215 -0
- package/funnel.js +141 -0
- package/funnel.js.map +1 -0
- package/funnel.ts +284 -0
- package/gift-savings.js +19 -0
- package/gift-savings.js.map +1 -0
- package/gift-savings.ts +29 -0
- package/git-history.js +331 -0
- package/git-history.js.map +1 -0
- package/git-history.ts +481 -0
- package/giving-browser.js +35 -0
- package/giving-browser.js.map +1 -0
- package/giving-browser.ts +40 -0
- package/giving-pages.js +284 -0
- package/giving-pages.js.map +1 -0
- package/giving-pages.ts +418 -0
- package/giving-view.js +244 -0
- package/giving-view.js.map +1 -0
- package/giving-view.ts +509 -0
- package/giving.js +198 -0
- package/giving.js.map +1 -0
- package/giving.ts +280 -0
- package/gmail-mailbox.js +52 -0
- package/gmail-mailbox.js.map +1 -0
- package/gmail-mailbox.ts +74 -0
- package/graves.js +136 -0
- package/graves.js.map +1 -0
- package/graves.ts +180 -0
- package/hashed.js +499 -0
- package/hashed.js.map +1 -0
- package/hashed.ts +676 -0
- package/home/assets.js +15 -0
- package/home/assets.js.map +1 -0
- package/home/assets.ts +16 -0
- package/home/brands/stripe.svg +12 -0
- package/home/brands/zoom.svg +34 -0
- package/home/demos.js +413 -0
- package/home/demos.js.map +1 -0
- package/home/demos.ts +431 -0
- package/home/games.js +112 -0
- package/home/games.js.map +1 -0
- package/home/games.ts +137 -0
- package/home/icons.js +41 -0
- package/home/icons.js.map +1 -0
- package/home/icons.ts +42 -0
- package/home/mascot/calculating.webp +0 -0
- package/home/mascot/flag.webp +0 -0
- package/home/mascot/letter.webp +0 -0
- package/home/mascot/plane.webp +0 -0
- package/home/mascot/plug.webp +0 -0
- package/home/mascot/thinking.webp +0 -0
- package/home/mascot/typing.webp +0 -0
- package/home/mascot/wave.webp +0 -0
- package/home/mod.tsx +517 -0
- package/home/parts.js +149 -0
- package/home/parts.js.map +1 -0
- package/home/parts.ts +45 -0
- package/home/phone.tsx +152 -0
- package/home/scenes.tsx +212 -0
- package/home/sky.js +930 -0
- package/home/sky.tsx +479 -0
- package/home/story.js +392 -0
- package/home/style.css +1304 -0
- package/home/words.js +2 -0
- package/home/words.js.map +1 -0
- package/home/words.ts +8 -0
- package/home/yak.js +146 -0
- package/home/yak_test.tsx +111 -0
- package/home-router.js +30 -0
- package/home-router.js.map +1 -0
- package/home-router.ts +41 -0
- package/host.js +58 -0
- package/host.js.map +1 -0
- package/host.ts +97 -0
- package/hosted-page.js +126 -0
- package/hosted-page.js.map +1 -0
- package/hosted-page.ts +295 -0
- package/install-browser.js +89 -0
- package/install-browser.js.map +1 -0
- package/install-browser.ts +99 -0
- package/install-icons.js +271 -0
- package/install-icons.js.map +1 -0
- package/install-icons.ts +366 -0
- package/installs.js +197 -0
- package/installs.js.map +1 -0
- package/installs.ts +270 -0
- package/instrument.js +50 -0
- package/instrument.js.map +1 -0
- package/instrument.ts +55 -0
- package/integration-icons.js +138 -0
- package/integration-icons.js.map +1 -0
- package/integration-icons.ts +198 -0
- package/interaction-browser.js +95 -0
- package/interaction-browser.js.map +1 -0
- package/interaction-browser.ts +107 -0
- package/interaction-report.js +399 -0
- package/interaction-report.js.map +1 -0
- package/interaction-report.ts +450 -0
- package/interaction.js +273 -0
- package/interaction.js.map +1 -0
- package/interaction.ts +290 -0
- package/invite-browser.js +98 -0
- package/invite-browser.js.map +1 -0
- package/invite-browser.ts +123 -0
- package/invite-view.js +100 -0
- package/invite-view.js.map +1 -0
- package/invite-view.ts +137 -0
- package/kept.js +520 -0
- package/kept.js.map +1 -0
- package/kept.ts +821 -0
- package/kills-graph.js +18 -0
- package/kills-graph.js.map +1 -0
- package/kills-graph.ts +16 -0
- package/ladder.js +418 -0
- package/ladder.js.map +1 -0
- package/ladder.ts +510 -0
- package/lenses-graph.js +24 -0
- package/lenses-graph.js.map +1 -0
- package/lenses-graph.ts +27 -0
- package/lenses.js +197 -0
- package/lenses.js.map +1 -0
- package/lenses.ts +204 -0
- package/lent.js +32 -0
- package/lent.js.map +1 -0
- package/lent.ts +95 -0
- package/letters.js +134 -0
- package/letters.js.map +1 -0
- package/letters.ts +251 -0
- package/lexicon-graph.js +11 -0
- package/lexicon-graph.js.map +1 -0
- package/lexicon-graph.ts +7 -0
- package/link-preview.js +111 -0
- package/link-preview.js.map +1 -0
- package/link-preview.ts +136 -0
- package/listing.js +262 -0
- package/listing.js.map +1 -0
- package/listing.ts +330 -0
- package/local-time.js +32 -0
- package/local-time.js.map +1 -0
- package/local-time.ts +41 -0
- package/located.js +380 -0
- package/located.js.map +1 -0
- package/located.ts +471 -0
- package/log-graph.js +7 -0
- package/log-graph.js.map +1 -0
- package/log-graph.ts +9 -0
- package/lower-graph.js +7 -0
- package/lower-graph.js.map +1 -0
- package/lower-graph.ts +9 -0
- package/mail-request.js +32 -0
- package/mail-request.js.map +1 -0
- package/mail-request.ts +29 -0
- package/mail-senders.js +40 -0
- package/mail-senders.js.map +1 -0
- package/mail-senders.ts +47 -0
- package/managed-browser-pilot.js +151 -0
- package/managed-browser-pilot.js.map +1 -0
- package/managed-browser-pilot.ts +230 -0
- package/managed-browser-sites.js +43 -0
- package/managed-browser-sites.js.map +1 -0
- package/managed-browser-sites.ts +41 -0
- package/managed-browser-wire.js +142 -0
- package/managed-browser-wire.js.map +1 -0
- package/managed-browser-wire.ts +140 -0
- package/managed-browser.js +529 -0
- package/managed-browser.js.map +1 -0
- package/managed-browser.ts +740 -0
- package/manifest.js +425 -0
- package/manifest.js.map +1 -0
- package/manifest.ts +468 -0
- package/metadata-effect.js +61 -0
- package/metadata-effect.js.map +1 -0
- package/metadata-effect.ts +59 -0
- package/meter-graph.js +205 -0
- package/meter-graph.js.map +1 -0
- package/meter-graph.ts +238 -0
- package/meter-vocab.js +8 -0
- package/meter-vocab.js.map +1 -0
- package/meter-vocab.ts +4 -0
- package/meter.js +402 -0
- package/meter.js.map +1 -0
- package/meter.ts +697 -0
- package/mod.js +14 -0
- package/mod.js.map +1 -0
- package/mod.ts +16 -0
- package/models-vocab.js +25 -0
- package/models-vocab.js.map +1 -0
- package/models-vocab.ts +15 -0
- package/monogram.js +32 -0
- package/monogram.js.map +1 -0
- package/monogram.ts +46 -0
- package/mover.js +6 -0
- package/mover.js.map +1 -0
- package/mover.ts +45 -0
- package/named.js +136 -0
- package/named.js.map +1 -0
- package/named.ts +169 -0
- package/names.js +196 -0
- package/names.js.map +1 -0
- package/names.ts +252 -0
- package/notices-vocab.js +20 -0
- package/notices-vocab.js.map +1 -0
- package/notices-vocab.ts +28 -0
- package/numbers.js +85 -0
- package/numbers.js.map +1 -0
- package/numbers.ts +97 -0
- package/object-hosts.js +137 -0
- package/object-hosts.js.map +1 -0
- package/object-hosts.ts +153 -0
- package/open-script.js +235 -0
- package/open-script.js.map +1 -0
- package/open-script.ts +253 -0
- package/opening.js +31 -0
- package/opening.js.map +1 -0
- package/opening.ts +28 -0
- package/operator-activity-view.js +82 -0
- package/operator-activity-view.js.map +1 -0
- package/operator-activity-view.ts +85 -0
- package/operator-activity.js +220 -0
- package/operator-activity.js.map +1 -0
- package/operator-activity.ts +293 -0
- package/operator-brief.js +36 -0
- package/operator-brief.js.map +1 -0
- package/operator-brief.ts +76 -0
- package/operator-copy-browser.js +67 -0
- package/operator-copy-browser.js.map +1 -0
- package/operator-copy-browser.ts +71 -0
- package/operator-corner.js +266 -0
- package/operator-corner.js.map +1 -0
- package/operator-corner.ts +300 -0
- package/operator-decisions.js +19 -0
- package/operator-decisions.js.map +1 -0
- package/operator-decisions.ts +18 -0
- package/operator-docs.js +152 -0
- package/operator-docs.js.map +1 -0
- package/operator-docs.ts +196 -0
- package/operator-door.js +10 -0
- package/operator-door.js.map +1 -0
- package/operator-door.ts +14 -0
- package/operator-drafts-browser.js +28 -0
- package/operator-drafts-browser.js.map +1 -0
- package/operator-drafts-browser.ts +32 -0
- package/operator-drafts.js +60 -0
- package/operator-drafts.js.map +1 -0
- package/operator-drafts.ts +80 -0
- package/operator-early-draft.js +110 -0
- package/operator-early-draft.js.map +1 -0
- package/operator-early-draft.ts +125 -0
- package/operator-go-browser.js +130 -0
- package/operator-go-browser.js.map +1 -0
- package/operator-go-browser.ts +182 -0
- package/operator-go-step.js +86 -0
- package/operator-go-step.js.map +1 -0
- package/operator-go-step.ts +92 -0
- package/operator-go-tool.js +49 -0
- package/operator-go-tool.js.map +1 -0
- package/operator-go-tool.ts +31 -0
- package/operator-go.js +68 -0
- package/operator-go.js.map +1 -0
- package/operator-go.ts +100 -0
- package/operator-graph.js +46 -0
- package/operator-graph.js.map +1 -0
- package/operator-graph.ts +60 -0
- package/operator-handoff.js +91 -0
- package/operator-handoff.js.map +1 -0
- package/operator-handoff.ts +104 -0
- package/operator-machine.js +136 -0
- package/operator-machine.js.map +1 -0
- package/operator-machine.ts +168 -0
- package/operator-matches-browser.js +155 -0
- package/operator-matches-browser.js.map +1 -0
- package/operator-matches-browser.ts +178 -0
- package/operator-matches-view.js +147 -0
- package/operator-matches-view.js.map +1 -0
- package/operator-matches-view.ts +224 -0
- package/operator-matches.js +65 -0
- package/operator-matches.js.map +1 -0
- package/operator-matches.ts +120 -0
- package/operator-memory.js +119 -0
- package/operator-memory.js.map +1 -0
- package/operator-memory.ts +122 -0
- package/operator-mic.ts +40 -0
- package/operator-model.js +144 -0
- package/operator-model.js.map +1 -0
- package/operator-model.ts +154 -0
- package/operator-notes.js +32 -0
- package/operator-notes.js.map +1 -0
- package/operator-notes.ts +40 -0
- package/operator-opening-browser.js +184 -0
- package/operator-opening-browser.js.map +1 -0
- package/operator-opening-browser.ts +195 -0
- package/operator-owner.js +391 -0
- package/operator-owner.js.map +1 -0
- package/operator-owner.ts +392 -0
- package/operator-page-context.js +121 -0
- package/operator-page-context.js.map +1 -0
- package/operator-page-context.ts +143 -0
- package/operator-page-image.js +38 -0
- package/operator-page-image.js.map +1 -0
- package/operator-page-image.ts +42 -0
- package/operator-panel-browser.js +601 -0
- package/operator-panel-browser.js.map +1 -0
- package/operator-panel-browser.ts +669 -0
- package/operator-panel-view.js +69 -0
- package/operator-panel-view.js.map +1 -0
- package/operator-panel-view.ts +100 -0
- package/operator-panel.js +131 -0
- package/operator-panel.js.map +1 -0
- package/operator-panel.ts +155 -0
- package/operator-push.tsx +112 -0
- package/operator-record.js +55 -0
- package/operator-record.js.map +1 -0
- package/operator-record.ts +92 -0
- package/operator-replies.js +240 -0
- package/operator-replies.js.map +1 -0
- package/operator-replies.ts +281 -0
- package/operator-reply-view.js +117 -0
- package/operator-reply-view.js.map +1 -0
- package/operator-reply-view.ts +185 -0
- package/operator-safety.js +30 -0
- package/operator-safety.js.map +1 -0
- package/operator-safety.ts +53 -0
- package/operator-settings-browser.js +257 -0
- package/operator-settings-browser.js.map +1 -0
- package/operator-settings-browser.ts +290 -0
- package/operator-settings-view.js +291 -0
- package/operator-settings-view.js.map +1 -0
- package/operator-settings-view.ts +588 -0
- package/operator-settings.js +79 -0
- package/operator-settings.js.map +1 -0
- package/operator-settings.ts +137 -0
- package/operator-source.js +43 -0
- package/operator-source.js.map +1 -0
- package/operator-source.ts +69 -0
- package/operator-talk-browser.js +94 -0
- package/operator-talk-browser.js.map +1 -0
- package/operator-talk-browser.ts +120 -0
- package/operator-talk.js +83 -0
- package/operator-talk.js.map +1 -0
- package/operator-talk.ts +127 -0
- package/operator-task-text.js +45 -0
- package/operator-task-text.js.map +1 -0
- package/operator-task-text.ts +49 -0
- package/operator-timing-browser.js +51 -0
- package/operator-timing-browser.js.map +1 -0
- package/operator-timing-browser.ts +68 -0
- package/operator-timing-view.js +48 -0
- package/operator-timing-view.js.map +1 -0
- package/operator-timing-view.ts +90 -0
- package/operator-timing.js +132 -0
- package/operator-timing.js.map +1 -0
- package/operator-timing.ts +170 -0
- package/operator-vocab.js +8 -0
- package/operator-vocab.js.map +1 -0
- package/operator-vocab.ts +7 -0
- package/operator-voice-audio.ts +84 -0
- package/operator-voice-browser.ts +237 -0
- package/operator-voice-feedback.js +108 -0
- package/operator-voice-feedback.js.map +1 -0
- package/operator-voice-feedback.ts +133 -0
- package/operator-voice-view.js +33 -0
- package/operator-voice-view.js.map +1 -0
- package/operator-voice-view.ts +43 -0
- package/operator-voice.css +38 -0
- package/operator-voice.js +35 -0
- package/operator-voice.js.map +1 -0
- package/operator-voice.ts +33 -0
- package/operator-wait.js +70 -0
- package/operator-wait.js.map +1 -0
- package/operator-wait.ts +79 -0
- package/operator-watches.js +126 -0
- package/operator-watches.js.map +1 -0
- package/operator-watches.ts +141 -0
- package/operator-words.js +94 -0
- package/operator-words.js.map +1 -0
- package/operator-words.ts +114 -0
- package/outreach-trial.js +103 -0
- package/outreach-trial.js.map +1 -0
- package/outreach-trial.ts +122 -0
- package/outreach-vocab.js +10 -0
- package/outreach-vocab.js.map +1 -0
- package/outreach-vocab.ts +7 -0
- package/outreach.js +162 -0
- package/outreach.js.map +1 -0
- package/outreach.ts +239 -0
- package/package.json +1131 -4
- package/packs.js +103 -0
- package/packs.js.map +1 -0
- package/packs.ts +119 -0
- package/page-copy.js +267 -0
- package/page-copy.js.map +1 -0
- package/page-copy.ts +362 -0
- package/page-graph.js +114 -0
- package/page-graph.js.map +1 -0
- package/page-graph.ts +151 -0
- package/page-links.js +78 -0
- package/page-links.js.map +1 -0
- package/page-links.ts +124 -0
- package/page-parts.js +236 -0
- package/page-parts.js.map +1 -0
- package/page-parts.ts +388 -0
- package/page-query.js +95 -0
- package/page-query.js.map +1 -0
- package/page-query.ts +120 -0
- package/page-script.js +183 -0
- package/page-script.js.map +1 -0
- package/page-script.ts +192 -0
- package/page-wire.js +93 -0
- package/page-wire.js.map +1 -0
- package/page-wire.ts +100 -0
- package/pages-vocab.js +9 -0
- package/pages-vocab.js.map +1 -0
- package/pages-vocab.ts +5 -0
- package/partials.js +21 -0
- package/partials.js.map +1 -0
- package/partials.ts +37 -0
- package/payment-browser.js +250 -0
- package/payment-browser.js.map +1 -0
- package/payment-browser.ts +298 -0
- package/payment-rows.js +117 -0
- package/payment-rows.js.map +1 -0
- package/payment-rows.ts +219 -0
- package/payment-view.js +397 -0
- package/payment-view.js.map +1 -0
- package/payment-view.ts +852 -0
- package/people-browser.js +186 -0
- package/people-browser.js.map +1 -0
- package/people-browser.ts +210 -0
- package/people-rows.js +192 -0
- package/people-rows.js.map +1 -0
- package/people-rows.ts +289 -0
- package/people-view.js +463 -0
- package/people-view.js.map +1 -0
- package/people-view.ts +804 -0
- package/person-lines.js +196 -0
- package/person-lines.js.map +1 -0
- package/person-lines.ts +256 -0
- package/place.js +30 -0
- package/place.js.map +1 -0
- package/place.ts +31 -0
- package/plan-details.js +39 -0
- package/plan-details.js.map +1 -0
- package/plan-details.ts +57 -0
- package/plan-trial-graph.js +63 -0
- package/plan-trial-graph.js.map +1 -0
- package/plan-trial-graph.ts +57 -0
- package/plans.js +223 -0
- package/plans.js.map +1 -0
- package/plans.ts +313 -0
- package/platform-credentials.js +136 -0
- package/platform-credentials.js.map +1 -0
- package/platform-credentials.ts +189 -0
- package/poster-backfill.js +72 -0
- package/poster-backfill.js.map +1 -0
- package/poster-backfill.ts +96 -0
- package/presence.js +57 -0
- package/presence.js.map +1 -0
- package/presence.ts +77 -0
- package/preview-audit.js +65 -0
- package/preview-audit.js.map +1 -0
- package/preview-audit.ts +126 -0
- package/preview-fit.js +62 -0
- package/preview-fit.js.map +1 -0
- package/preview-fit.ts +72 -0
- package/preview-html.js +96 -0
- package/preview-html.js.map +1 -0
- package/preview-html.ts +139 -0
- package/preview.js +317 -0
- package/preview.js.map +1 -0
- package/preview.ts +498 -0
- package/price.js +53 -0
- package/price.js.map +1 -0
- package/price.ts +85 -0
- package/profile-browser.js +117 -0
- package/profile-browser.js.map +1 -0
- package/profile-browser.ts +141 -0
- package/profile-view.js +96 -0
- package/profile-view.js.map +1 -0
- package/profile-view.ts +197 -0
- package/provider-credits.js +159 -0
- package/provider-credits.js.map +1 -0
- package/provider-credits.ts +174 -0
- package/public-site-choice.js +18 -0
- package/public-site-choice.js.map +1 -0
- package/public-site-choice.ts +21 -0
- package/public-site.js +151 -0
- package/public-site.js.map +1 -0
- package/public-site.ts +268 -0
- package/publishing-graph.js +136 -0
- package/publishing-graph.js.map +1 -0
- package/publishing-graph.ts +122 -0
- package/qr.js +32 -0
- package/qr.js.map +1 -0
- package/qr.ts +32 -0
- package/query-page.js +159 -0
- package/query-page.js.map +1 -0
- package/query-page.ts +249 -0
- package/query-refusal.js +174 -0
- package/query-refusal.js.map +1 -0
- package/query-refusal.ts +319 -0
- package/refusal-loop.js +71 -0
- package/refusal-loop.js.map +1 -0
- package/refusal-loop.ts +98 -0
- package/refusals-vocab.js +9 -0
- package/refusals-vocab.js.map +1 -0
- package/refusals-vocab.ts +5 -0
- package/refused-writes.js +119 -0
- package/refused-writes.js.map +1 -0
- package/refused-writes.ts +152 -0
- package/refused.js +67 -0
- package/refused.js.map +1 -0
- package/refused.ts +76 -0
- package/regional-route-storage.js +127 -0
- package/regional-route-storage.js.map +1 -0
- package/regional-route-storage.ts +94 -0
- package/regional-route.js +105 -0
- package/regional-route.js.map +1 -0
- package/regional-route.ts +158 -0
- package/regional-serving-copy.js +153 -0
- package/regional-serving-copy.js.map +1 -0
- package/regional-serving-copy.ts +200 -0
- package/release-asset.js +71 -0
- package/release-asset.js.map +1 -0
- package/release-asset.ts +121 -0
- package/release-browser.js +383 -0
- package/release-code.js +5 -0
- package/release-entry.js +3 -0
- package/release-file.js +169 -0
- package/release-file.js.map +1 -0
- package/release-file.ts +241 -0
- package/release-index.js +140 -0
- package/release-index.js.map +1 -0
- package/release-index.ts +161 -0
- package/release-page.js +227 -0
- package/release-reads.js +27 -0
- package/release-reads.js.map +1 -0
- package/release-reads.ts +56 -0
- package/release-sheets.js +76 -0
- package/release-state.js +181 -0
- package/release-update.js +22 -0
- package/release-update.js.map +1 -0
- package/release-update.ts +29 -0
- package/release.js +50 -0
- package/release.js.map +1 -0
- package/release.ts +72 -0
- package/released.js +263 -0
- package/released.js.map +1 -0
- package/released.ts +310 -0
- package/remake-graph.js +17 -0
- package/remake-graph.js.map +1 -0
- package/remake-graph.ts +15 -0
- package/rouse-graph.js +11 -0
- package/rouse-graph.js.map +1 -0
- package/rouse-graph.ts +8 -0
- package/route-memory.js +101 -0
- package/route-memory.js.map +1 -0
- package/route-memory.ts +132 -0
- package/routes.js +1143 -0
- package/routes.js.map +1 -0
- package/routes.ts +1502 -0
- package/sale-recovery.js +175 -0
- package/sale-recovery.js.map +1 -0
- package/sale-recovery.ts +156 -0
- package/sales.js +113 -0
- package/sales.js.map +1 -0
- package/sales.ts +150 -0
- package/schema.js +28 -0
- package/schema.js.map +1 -0
- package/schema.ts +13 -0
- package/serving-copy.js +161 -0
- package/serving-copy.js.map +1 -0
- package/serving-copy.ts +201 -0
- package/settings-drafts-browser.js +81 -0
- package/settings-drafts-browser.js.map +1 -0
- package/settings-drafts-browser.ts +95 -0
- package/settings-drafts.js +119 -0
- package/settings-drafts.js.map +1 -0
- package/settings-drafts.ts +136 -0
- package/shared-browser.js +61 -0
- package/shared-browser.js.map +1 -0
- package/shared-browser.ts +77 -0
- package/shared-view.js +29 -0
- package/shared-view.js.map +1 -0
- package/shared-view.ts +47 -0
- package/side-browser.js +164 -0
- package/side-browser.js.map +1 -0
- package/side-browser.ts +201 -0
- package/side-parts.js +258 -0
- package/side-parts.js.map +1 -0
- package/side-parts.ts +447 -0
- package/side-rows.js +64 -0
- package/side-rows.js.map +1 -0
- package/side-rows.ts +104 -0
- package/signed-in.js +37 -0
- package/signed-in.js.map +1 -0
- package/signed-in.ts +45 -0
- package/site-assets.js +8 -0
- package/site-assets.js.map +1 -0
- package/site-assets.ts +25 -0
- package/site-header.js +65 -0
- package/site-header.js.map +1 -0
- package/site-header.ts +71 -0
- package/site-nav.js +75 -0
- package/site-nav.js.map +1 -0
- package/site-nav.ts +82 -0
- package/site-validation.js +37 -0
- package/site-validation.js.map +1 -0
- package/site-validation.ts +47 -0
- package/space-apps-browser.js +107 -0
- package/space-apps-browser.js.map +1 -0
- package/space-apps-browser.ts +128 -0
- package/space-apps-view.js +222 -0
- package/space-apps-view.js.map +1 -0
- package/space-apps-view.ts +396 -0
- package/space-apps.js +88 -0
- package/space-apps.js.map +1 -0
- package/space-apps.ts +143 -0
- package/space-logo.js +82 -0
- package/space-logo.js.map +1 -0
- package/space-logo.ts +112 -0
- package/space-pages-browser.js +474 -0
- package/space-pages-browser.js.map +1 -0
- package/space-pages-browser.ts +463 -0
- package/space-pages-view.js +212 -0
- package/space-pages-view.js.map +1 -0
- package/space-pages-view.ts +460 -0
- package/space-pages.js +193 -0
- package/space-pages.js.map +1 -0
- package/space-pages.ts +282 -0
- package/space-switch.js +36 -0
- package/space-switch.js.map +1 -0
- package/space-switch.ts +64 -0
- package/splash.js +510 -0
- package/splash.js.map +1 -0
- package/splash.ts +525 -0
- package/standing.js +409 -0
- package/standing.js.map +1 -0
- package/standing.ts +746 -0
- package/still.js +63 -0
- package/still.js.map +1 -0
- package/still.ts +95 -0
- package/store-listing.js +107 -0
- package/store-listing.js.map +1 -0
- package/store-listing.ts +133 -0
- package/store-wake.js +65 -0
- package/store-wake.js.map +1 -0
- package/store-wake.ts +101 -0
- package/stream-posters.js +177 -0
- package/stream-posters.js.map +1 -0
- package/stream-posters.ts +297 -0
- package/support-contract-service.js +219 -0
- package/support-contract-service.js.map +1 -0
- package/support-contract-service.ts +307 -0
- package/support-contract-view.js +155 -0
- package/support-contract-view.js.map +1 -0
- package/support-contract-view.ts +265 -0
- package/support-contract.js +114 -0
- package/support-contract.js.map +1 -0
- package/support-contract.ts +157 -0
- package/sweep-vocab.js +10 -0
- package/sweep-vocab.js.map +1 -0
- package/sweep-vocab.ts +9 -0
- package/talk-views-browser.js +208 -0
- package/talk-views-browser.js.map +1 -0
- package/talk-views-browser.ts +232 -0
- package/talk-views.js +36 -0
- package/talk-views.js.map +1 -0
- package/talk-views.ts +64 -0
- package/task-rows.js +86 -0
- package/task-rows.js.map +1 -0
- package/task-rows.ts +96 -0
- package/tasks-view.js +111 -0
- package/tasks-view.js.map +1 -0
- package/tasks-view.ts +176 -0
- package/toast.ts +17 -0
- package/trash-graph.js +41 -0
- package/trash-graph.js.map +1 -0
- package/trash-graph.ts +27 -0
- package/trash-vocab.js +8 -0
- package/trash-vocab.js.map +1 -0
- package/trash-vocab.ts +4 -0
- package/trial.js +325 -0
- package/trial.js.map +1 -0
- package/trial.ts +451 -0
- package/update-rows.js +77 -0
- package/update-rows.js.map +1 -0
- package/update-rows.ts +171 -0
- package/update-waiting.js +131 -0
- package/update-waiting.js.map +1 -0
- package/update-waiting.ts +133 -0
- package/updates-browser.js +28 -0
- package/updates-browser.js.map +1 -0
- package/updates-browser.ts +33 -0
- package/updates-day-browser.js +77 -0
- package/updates-day-browser.js.map +1 -0
- package/updates-day-browser.ts +84 -0
- package/updates-day.js +60 -0
- package/updates-day.js.map +1 -0
- package/updates-day.ts +94 -0
- package/updates-list-browser.js +175 -0
- package/updates-list-browser.js.map +1 -0
- package/updates-list-browser.ts +198 -0
- package/updates-view.js +546 -0
- package/updates-view.js.map +1 -0
- package/updates-view.ts +814 -0
- package/upload-client-path.js +5 -0
- package/upload-client-path.js.map +1 -0
- package/upload-client-path.ts +4 -0
- package/uploads.js +290 -0
- package/uploads.js.map +1 -0
- package/uploads.ts +334 -0
- package/upstream.js +40 -0
- package/upstream.js.map +1 -0
- package/upstream.ts +57 -0
- package/version-view.js +57 -0
- package/version-view.js.map +1 -0
- package/version-view.ts +99 -0
- package/versions.js +231 -0
- package/versions.js.map +1 -0
- package/versions.ts +367 -0
- package/visit-counts.js +123 -0
- package/visit-counts.js.map +1 -0
- package/visit-counts.ts +162 -0
- package/visitor-location.js +33 -0
- package/visitor-location.js.map +1 -0
- package/visitor-location.ts +38 -0
- package/visitor.js +152 -0
- package/visitor.js.map +1 -0
- package/visitor.ts +228 -0
- package/visits-browser.js +71 -0
- package/visits-browser.js.map +1 -0
- package/visits-browser.ts +87 -0
- package/visits-view.js +88 -0
- package/visits-view.js.map +1 -0
- package/visits-view.ts +184 -0
- package/visits.js +428 -0
- package/visits.js.map +1 -0
- package/visits.ts +561 -0
- package/vocab/account.vocab.json +349 -0
- package/vocab/agents.vocab.json +64 -0
- package/vocab/app-canvas.vocab.json +137 -0
- package/vocab/app-friends.vocab.json +71 -0
- package/vocab/app-permissions.vocab.json +46 -0
- package/vocab/apps.vocab.json +553 -0
- package/vocab/attribution.vocab.json +32 -0
- package/vocab/builder-install.vocab.json +10 -0
- package/vocab/connections.vocab.json +128 -0
- package/vocab/dashboard.vocab.json +148 -0
- package/vocab/directory.vocab.json +2445 -0
- package/vocab/exception.vocab.json +18 -0
- package/vocab/fundraising.vocab.json +284 -0
- package/vocab/gmail-mailbox.vocab.json +73 -0
- package/vocab/kernel.vocab.json +420 -0
- package/vocab/mcp-retirement.vocab.json +66 -0
- package/vocab/meter.vocab.json +230 -0
- package/vocab/models-install.vocab.json +10 -0
- package/vocab/notices.vocab.json +88 -0
- package/vocab/operator-drafts.vocab.json +19 -0
- package/vocab/operator-matches.vocab.json +85 -0
- package/vocab/operator-settings.vocab.json +127 -0
- package/vocab/operator-talk.vocab.json +92 -0
- package/vocab/operator.vocab.json +1314 -0
- package/vocab/outreach.vocab.json +141 -0
- package/vocab/pages.vocab.json +38 -0
- package/vocab/payment.vocab.json +271 -0
- package/vocab/people.vocab.json +337 -0
- package/vocab/presence.vocab.json +19 -0
- package/vocab/preview.vocab.json +66 -0
- package/vocab/referenced.vocab.json +17 -0
- package/vocab/referral.vocab.json +272 -0
- package/vocab/refusals.vocab.json +16 -0
- package/vocab/registration.vocab.json +17 -0
- package/vocab/serving.vocab.json +103 -0
- package/vocab/side.vocab.json +97 -0
- package/vocab/space-apps.vocab.json +137 -0
- package/vocab/space-pages.vocab.json +416 -0
- package/vocab/sweep-install.vocab.json +10 -0
- package/vocab/sweep.vocab.json +125 -0
- package/vocab/trash.vocab.json +19 -0
- package/vocab/update.vocab.json +53 -0
- package/vocab/upload.vocab.json +69 -0
- package/vocab/use.vocab.json +93 -0
- package/vocab/visits.vocab.json +143 -0
- package/vocab/waiting.vocab.json +29 -0
- package/vocab.js +16 -0
- package/vocab.js.map +1 -0
- package/vocab.json +1703 -0
- package/vocab.ts +17 -0
- package/weigh-graph.js +12 -0
- package/weigh-graph.js.map +1 -0
- package/weigh-graph.ts +9 -0
- package/wire-news.js +30 -0
- package/wire-news.js.map +1 -0
- package/wire-news.ts +30 -0
- package/work-standing.js +64 -0
- package/work-standing.js.map +1 -0
- package/work-standing.ts +44 -0
- package/woven.js +435 -0
- package/woven.js.map +1 -0
- package/woven.ts +649 -0
- package/wrap-graph.js +17 -0
- package/wrap-graph.js.map +1 -0
- package/wrap-graph.ts +15 -0
- package/write-owner.js +11 -0
- package/write-owner.js.map +1 -0
- package/write-owner.ts +24 -0
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
import { overlays } from '@yaks/ui/overlays'
|
|
2
|
+
/**
|
|
3
|
+
* A space's Connections page in the browser (D-475 step 5). The page is drawn
|
|
4
|
+
* from its `connectionsPage` row (./connections-view.ts), and here it is drawn
|
|
5
|
+
* again from the tab's page graph as the row moves: a key saved in another
|
|
6
|
+
* tab, an app given a connection by an agent, a server signed in to.
|
|
7
|
+
*
|
|
8
|
+
* What the page shows follows its address. The hash opens one thing in the
|
|
9
|
+
* page's dialog, drawn from the row at once, unless it names a place on the
|
|
10
|
+
* page; one the row does not hold (a
|
|
11
|
+
* service from the integration directory) is asked of the server
|
|
12
|
+
* (`?detail=`). The search, a kind of service and the trash ask the row
|
|
13
|
+
* again, as the page's line names them (./connections-page.ts `askOf`).
|
|
14
|
+
*
|
|
15
|
+
* Each button the page's forms send writes a `connectionAct` through the
|
|
16
|
+
* graph, which the door does as the person: what it says is said where the
|
|
17
|
+
* button was pressed, and a sign-in sends the person to the service. A
|
|
18
|
+
* sign-in into another tab (a broker's) is the form's own post. A space at
|
|
19
|
+
* its plan's connections is offered the Plus plan, whose button writes a
|
|
20
|
+
* `leave` as the Billing page's does (./payment-rows.ts `leaveTo`).
|
|
21
|
+
*
|
|
22
|
+
* The view is `[data-view="connections"]`, saying what it draws for in
|
|
23
|
+
* `data-connections-view` (`ConnectionsView`).
|
|
24
|
+
*
|
|
25
|
+
* @module
|
|
26
|
+
*/
|
|
27
|
+
import { fragment } from '@yaks/html/dom'
|
|
28
|
+
import type { Bundle } from '@yaks/graph'
|
|
29
|
+
import type { Client } from 'jsr:@yaks/client@0.2.36'
|
|
30
|
+
import { mint } from '@yaks/graph'
|
|
31
|
+
import { CallError } from '@yaks/tools/errors'
|
|
32
|
+
import { showError } from '@yaks/ui/ErrorNotice'
|
|
33
|
+
import { DRAW, type Drawing, leaving, morph, PAGE } from '@yaks/ui/navigate'
|
|
34
|
+
import { actionFailure, tell } from './account-browser.js'
|
|
35
|
+
import { bindConnectionIcon } from './connection-icon-browser.js'
|
|
36
|
+
import { drawn, pageGraph } from './page-graph.js'
|
|
37
|
+
import { leaveTo, paymentWords } from './payment-rows.js'
|
|
38
|
+
import { SAVE_THROUGH, type SavingForm } from './page-parts.js'
|
|
39
|
+
import {
|
|
40
|
+
actedOf,
|
|
41
|
+
askOf,
|
|
42
|
+
type Connections,
|
|
43
|
+
connectionsPage,
|
|
44
|
+
connectionsWords,
|
|
45
|
+
pageOf,
|
|
46
|
+
sentOf,
|
|
47
|
+
} from './connections-page.js'
|
|
48
|
+
import {
|
|
49
|
+
chosen,
|
|
50
|
+
type ConnectionsView,
|
|
51
|
+
connectionsView,
|
|
52
|
+
holds,
|
|
53
|
+
} from './connections-view.js'
|
|
54
|
+
|
|
55
|
+
/** The Connections view. */
|
|
56
|
+
export let VIEW = '[data-view="connections"]'
|
|
57
|
+
|
|
58
|
+
// The rows the page carried for its first paint, and what a press said,
|
|
59
|
+
// stay as they are.
|
|
60
|
+
let KEPT = {
|
|
61
|
+
leave: (n: Node) => {
|
|
62
|
+
let e = n as Element
|
|
63
|
+
return e.localName == 'script' || e.hasAttribute?.('data-said') ||
|
|
64
|
+
e.hasAttribute?.('data-save-mounted') ||
|
|
65
|
+
e.hasAttribute?.('data-error-notice')
|
|
66
|
+
},
|
|
67
|
+
keeps: (e: Element, name: string) =>
|
|
68
|
+
name == 'open' && e.hasAttribute('data-save-fold'),
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** What the address's hash opens, if anything. A place on the page
|
|
72
|
+
* (`placed`: the frame's `#menu`, a skip link's
|
|
73
|
+
* `#main`, a contents link to a heading) opens nothing. */
|
|
74
|
+
export let openedIn = (
|
|
75
|
+
hash: string,
|
|
76
|
+
placed: (id: string) => boolean = () => false,
|
|
77
|
+
): string | undefined => {
|
|
78
|
+
try {
|
|
79
|
+
let key = decodeURIComponent(hash.slice(1))
|
|
80
|
+
return key && key != 'find' && key != 'new:connection' && !placed(key)
|
|
81
|
+
? key
|
|
82
|
+
: undefined
|
|
83
|
+
} catch {
|
|
84
|
+
return undefined
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Whether `dialog` is open over the page, not only open in it, as a
|
|
89
|
+
// document that knows no `:modal` says by its being open.
|
|
90
|
+
let modal = (dialog: HTMLDialogElement) => {
|
|
91
|
+
try {
|
|
92
|
+
return dialog.matches(':modal')
|
|
93
|
+
} catch {
|
|
94
|
+
return dialog.open
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Show the dialog over the page while it is open, or put it away.
|
|
99
|
+
let shown = (dialog: HTMLDialogElement | null, opening: boolean) => {
|
|
100
|
+
if (!opening && dialog?.open) dialog.close()
|
|
101
|
+
if (opening && dialog && !modal(dialog)) {
|
|
102
|
+
if (dialog.open) dialog.close()
|
|
103
|
+
dialog.showModal()
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** Draw `root` again from `c`, its dialog open on `opened`. */
|
|
108
|
+
export let drawConnections = (
|
|
109
|
+
root: HTMLElement,
|
|
110
|
+
view: ConnectionsView,
|
|
111
|
+
c: Connections,
|
|
112
|
+
opened: string | null,
|
|
113
|
+
): void => {
|
|
114
|
+
let doc = root.ownerDocument
|
|
115
|
+
let next = root.cloneNode(false) as HTMLElement
|
|
116
|
+
next.append(
|
|
117
|
+
fragment(doc, connectionsView(view, c, opened)),
|
|
118
|
+
)
|
|
119
|
+
let opening = !!next.querySelector('#connect[open]')
|
|
120
|
+
if (!opening) shown(root.querySelector('#connect'), false)
|
|
121
|
+
morph(root, next, KEPT)
|
|
122
|
+
shown(root.querySelector('#connect'), opening)
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** Open `root`'s dialog on `opened` as drawn from `c`, or close it, by
|
|
126
|
+
* showing the one body of the many already drawn: what a press on a card
|
|
127
|
+
* does, where drawing the page again redraws thousands of nodes to change
|
|
128
|
+
* a few. False when the page holds no body for it, which only drawing the
|
|
129
|
+
* page again can add. */
|
|
130
|
+
export let chooseConnection = (
|
|
131
|
+
root: HTMLElement,
|
|
132
|
+
c: Connections,
|
|
133
|
+
opened: string | null,
|
|
134
|
+
): boolean => {
|
|
135
|
+
let dialog = root.querySelector<HTMLDialogElement>('#connect')
|
|
136
|
+
if (!dialog) return false
|
|
137
|
+
let { key, label } = opened ? chosen(c, opened) : { key: null, label: '' }
|
|
138
|
+
let bodies = [...dialog.children].filter((b) => b.hasAttribute('data-key'))
|
|
139
|
+
let body = key ? bodies.find((b) => b.getAttribute('data-key') == key) : null
|
|
140
|
+
if (key && !body) return false
|
|
141
|
+
for (let b of bodies) b.toggleAttribute('hidden', b != body)
|
|
142
|
+
if (body) dialog.setAttribute('data-modal-key', key!)
|
|
143
|
+
else dialog.removeAttribute('data-modal-key')
|
|
144
|
+
dialog.setAttribute('aria-label', body ? label : 'Manage connection')
|
|
145
|
+
root.querySelector('[data-connections]')?.toggleAttribute('inert', !!body)
|
|
146
|
+
root.querySelector('[data-connections-missing]')?.remove()
|
|
147
|
+
shown(dialog, !!body)
|
|
148
|
+
return true
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** Keep the Connections view `root` drawn from `graph`, following the
|
|
152
|
+
* address it is at, and send its presses through it. The answer lets go of
|
|
153
|
+
* it all. */
|
|
154
|
+
export let bindConnections = (
|
|
155
|
+
root: HTMLElement,
|
|
156
|
+
graph: Pick<Client, 'watch' | 'mutate'>,
|
|
157
|
+
win:
|
|
158
|
+
& Pick<Window, 'location' | 'history' | 'addEventListener'>
|
|
159
|
+
& Partial<Pick<Window, 'removeEventListener'>> = globalThis,
|
|
160
|
+
): () => void => {
|
|
161
|
+
let view = JSON.parse(root.dataset.connectionsView!) as ConnectionsView
|
|
162
|
+
overlays(root.ownerDocument)
|
|
163
|
+
let placed = (id: string) => !!root.ownerDocument.getElementById(id)
|
|
164
|
+
let space = view.space.eid
|
|
165
|
+
let path = win.location.pathname
|
|
166
|
+
let origin = new URL(win.location.href).origin
|
|
167
|
+
// What the address asks, and what the watch asks: the same, or with the
|
|
168
|
+
// one thing the dialog opened that the row was not read for.
|
|
169
|
+
let base = view.ask
|
|
170
|
+
let ask = ''
|
|
171
|
+
let held: Connections | undefined = pageOf(
|
|
172
|
+
drawn(view.person, root)?.rows ?? [],
|
|
173
|
+
)
|
|
174
|
+
let watch: ReturnType<typeof graph.watch> | undefined
|
|
175
|
+
// What the page was drawn from last.
|
|
176
|
+
let drew: { c: Connections; ask: string } | undefined
|
|
177
|
+
let off = () => {}
|
|
178
|
+
let icons = new Map<HTMLElement, () => void>()
|
|
179
|
+
let icon = () => {
|
|
180
|
+
for (let [mark, close] of icons) {
|
|
181
|
+
if (root.contains(mark)) continue
|
|
182
|
+
close()
|
|
183
|
+
icons.delete(mark)
|
|
184
|
+
}
|
|
185
|
+
let mark = root.querySelector<HTMLElement>(
|
|
186
|
+
'dialog[open] .Modal_Body:not([hidden]) [data-connection-icon]',
|
|
187
|
+
)
|
|
188
|
+
if (!mark || !mark.closest('details')?.open || icons.has(mark)) return
|
|
189
|
+
icons.set(
|
|
190
|
+
mark,
|
|
191
|
+
bindConnectionIcon(mark, view.person, win.location.pathname),
|
|
192
|
+
)
|
|
193
|
+
}
|
|
194
|
+
let asking = (next: string) => {
|
|
195
|
+
if (watch && next == ask) return
|
|
196
|
+
ask = next
|
|
197
|
+
off()
|
|
198
|
+
watch?.close()
|
|
199
|
+
let now = graph.watch(connectionsPage(space, ask))
|
|
200
|
+
watch = now
|
|
201
|
+
off = now.subscribe(draw)
|
|
202
|
+
}
|
|
203
|
+
// A refusal said out of sight of the form it came from: at the head of the
|
|
204
|
+
// dialog body `at`, or of the page where `at` is null. Drawing again keeps
|
|
205
|
+
// it until the person dismisses it, presses again, or closes that body.
|
|
206
|
+
let refused: { at: string | null; words: string } | undefined
|
|
207
|
+
let notice = (at: string | null) => {
|
|
208
|
+
if (at == null) {
|
|
209
|
+
return root.querySelector<HTMLElement>(
|
|
210
|
+
'[data-connections] > [data-connections-status]',
|
|
211
|
+
)
|
|
212
|
+
}
|
|
213
|
+
let body = [...root.querySelectorAll<HTMLElement>('.Modal_Body')]
|
|
214
|
+
.find((b) => b.dataset.modalKey == at && !b.hasAttribute('hidden'))
|
|
215
|
+
return body?.querySelector<HTMLElement>('[data-connections-status]') ??
|
|
216
|
+
null
|
|
217
|
+
}
|
|
218
|
+
let draw = () => {
|
|
219
|
+
let c = watch && pageOf(watch.value)
|
|
220
|
+
if (c) held = c
|
|
221
|
+
if (!held) return
|
|
222
|
+
// The address alone says what is open: its hash, or the `detail` the
|
|
223
|
+
// server drew it opened on.
|
|
224
|
+
let search = new URLSearchParams(win.location.search)
|
|
225
|
+
let hash = openedIn(win.location.hash, placed)
|
|
226
|
+
let mcp = search.get('mcp')
|
|
227
|
+
let key = hash && hash != `mcp-${mcp}`
|
|
228
|
+
? hash
|
|
229
|
+
: search.get('detail') ?? (mcp ? `mcp:${mcp}` : undefined)
|
|
230
|
+
// One the row was not read for is asked of the server, drawn loading
|
|
231
|
+
// until it answers.
|
|
232
|
+
if (key && !holds(held, key)) {
|
|
233
|
+
let asked = new URLSearchParams(base)
|
|
234
|
+
asked.set('detail', key)
|
|
235
|
+
asking(askOf(asked))
|
|
236
|
+
} else if (!key && ask != base) {
|
|
237
|
+
asking(base)
|
|
238
|
+
}
|
|
239
|
+
// A press that moves only the hash shows one of the bodies drawn.
|
|
240
|
+
let asked = askOf(search)
|
|
241
|
+
let same = drew?.c == held && drew.ask == asked
|
|
242
|
+
if (!same || !chooseConnection(root, held, key ?? null)) {
|
|
243
|
+
drawConnections(root, { ...view, ask: asked }, held, key ?? null)
|
|
244
|
+
}
|
|
245
|
+
drew = { c: held, ask: asked }
|
|
246
|
+
if (refused?.at != null && !notice(refused.at)) refused = undefined
|
|
247
|
+
showError(
|
|
248
|
+
notice(null),
|
|
249
|
+
watch?.refused
|
|
250
|
+
? 'Connections could not refresh. Reload the page to try again.'
|
|
251
|
+
: refused?.at === null
|
|
252
|
+
? refused.words
|
|
253
|
+
: '',
|
|
254
|
+
)
|
|
255
|
+
if (refused?.at != null) showError(notice(refused.at), refused.words)
|
|
256
|
+
icon()
|
|
257
|
+
// Settings without a credential use the graph's write door. The key
|
|
258
|
+
// form posts directly so the page graph never queues the pasted value.
|
|
259
|
+
for (let form of root.querySelectorAll<SavingForm>('form[data-save]')) {
|
|
260
|
+
if (!form.hasAttribute('data-save-reset')) form[SAVE_THROUGH] = press
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
// The page at `to`, whose search is what the page asks of its row.
|
|
264
|
+
let go = (to: URL, push = true) => {
|
|
265
|
+
let at = `${to.pathname}${to.search}${to.hash}`
|
|
266
|
+
if (push) win.history.pushState(null, '', at)
|
|
267
|
+
else win.history.replaceState(null, '', at)
|
|
268
|
+
let next = askOf(to.searchParams)
|
|
269
|
+
if (next != base) asking(base = next)
|
|
270
|
+
draw()
|
|
271
|
+
}
|
|
272
|
+
// A press of one of the page's buttons, the fields its form sent: what
|
|
273
|
+
// the page says of it, or, for a sign-in, the person sent to the service.
|
|
274
|
+
// What the door refuses is thrown as what the page says.
|
|
275
|
+
let press = async (body: FormData): Promise<string> => {
|
|
276
|
+
let answer: Bundle[]
|
|
277
|
+
try {
|
|
278
|
+
answer = await graph.mutate([{
|
|
279
|
+
entity: { eid: mint() },
|
|
280
|
+
connectionAct: {
|
|
281
|
+
space,
|
|
282
|
+
page: `${win.location.pathname}${win.location.search}`,
|
|
283
|
+
form: sentOf(body),
|
|
284
|
+
},
|
|
285
|
+
}])
|
|
286
|
+
} catch (error) {
|
|
287
|
+
throw new CallError(
|
|
288
|
+
'arguments',
|
|
289
|
+
actionFailure(error, 'The connection could not be changed. Try again.'),
|
|
290
|
+
)
|
|
291
|
+
}
|
|
292
|
+
let acted = actedOf(answer)
|
|
293
|
+
if (acted?.no) {
|
|
294
|
+
throw new CallError(
|
|
295
|
+
'arguments',
|
|
296
|
+
acted.say ?? 'The connection could not be changed. Try again.',
|
|
297
|
+
)
|
|
298
|
+
}
|
|
299
|
+
if (acted?.go) win.location.assign(acted.go)
|
|
300
|
+
return acted?.say ?? ''
|
|
301
|
+
}
|
|
302
|
+
let here = () => new URL(win.location.href)
|
|
303
|
+
let shut = () => {
|
|
304
|
+
let now = here()
|
|
305
|
+
now.hash = ''
|
|
306
|
+
now.searchParams.delete('detail')
|
|
307
|
+
now.searchParams.delete('mcp')
|
|
308
|
+
go(now)
|
|
309
|
+
}
|
|
310
|
+
// The plan offered at the space's connections leaves for its checkout.
|
|
311
|
+
let checkout = async (button: HTMLButtonElement) => {
|
|
312
|
+
let card = button.closest<HTMLElement>('.Bill')
|
|
313
|
+
let lost = 'Checkout could not open. Try again.'
|
|
314
|
+
tell(card, '')
|
|
315
|
+
button.disabled = true
|
|
316
|
+
try {
|
|
317
|
+
let to = await leaveTo(graph, space, button)
|
|
318
|
+
if (to) return win.location.assign(to)
|
|
319
|
+
tell(card, lost, true)
|
|
320
|
+
} catch (error) {
|
|
321
|
+
tell(card, actionFailure(error, lost), true)
|
|
322
|
+
}
|
|
323
|
+
button.disabled = false
|
|
324
|
+
}
|
|
325
|
+
let click = (e: Event) => {
|
|
326
|
+
let event = e as MouseEvent
|
|
327
|
+
if ((e.target as Element).closest('[data-error-dismiss]')) {
|
|
328
|
+
refused = undefined
|
|
329
|
+
}
|
|
330
|
+
let buy = (e.target as Element).closest<HTMLButtonElement>('.Bill_Go')
|
|
331
|
+
if (buy) return void checkout(buy)
|
|
332
|
+
let link = (e.target as Element).closest<HTMLAnchorElement>('a[href]')
|
|
333
|
+
if (
|
|
334
|
+
!link || event.defaultPrevented || event.button > 0 || event.metaKey ||
|
|
335
|
+
event.ctrlKey || event.shiftKey || event.altKey || link.target ||
|
|
336
|
+
link.hasAttribute('download')
|
|
337
|
+
) return
|
|
338
|
+
let to = new URL(link.getAttribute('href')!, win.location.href)
|
|
339
|
+
let now = here()
|
|
340
|
+
if (link.hasAttribute('data-modal-close')) {
|
|
341
|
+
event.preventDefault()
|
|
342
|
+
return shut()
|
|
343
|
+
}
|
|
344
|
+
if (to.origin != now.origin || to.pathname != now.pathname) return
|
|
345
|
+
event.preventDefault()
|
|
346
|
+
go(to)
|
|
347
|
+
}
|
|
348
|
+
let cancel = (e: Event) => {
|
|
349
|
+
e.preventDefault()
|
|
350
|
+
shut()
|
|
351
|
+
}
|
|
352
|
+
let timer: ReturnType<typeof setTimeout> | undefined
|
|
353
|
+
let searching = (form: HTMLFormElement) => {
|
|
354
|
+
let to = new URL(form.action, win.location.href)
|
|
355
|
+
for (let [k, v] of new FormData(form)) to.searchParams.set(k, String(v))
|
|
356
|
+
go(to, false)
|
|
357
|
+
}
|
|
358
|
+
let typed = (e: Event) => {
|
|
359
|
+
let form = (e.target as Element).closest<HTMLFormElement>('form[data-find]')
|
|
360
|
+
if (!form) return
|
|
361
|
+
clearTimeout(timer)
|
|
362
|
+
timer = setTimeout(() => searching(form), 200)
|
|
363
|
+
}
|
|
364
|
+
let sent = async (e: Event) => {
|
|
365
|
+
if (e.defaultPrevented) return
|
|
366
|
+
let event = e as SubmitEvent
|
|
367
|
+
let form = event.target as HTMLFormElement
|
|
368
|
+
if (form.matches('[data-find]')) {
|
|
369
|
+
event.preventDefault()
|
|
370
|
+
clearTimeout(timer)
|
|
371
|
+
return searching(form)
|
|
372
|
+
}
|
|
373
|
+
let by = event.submitter as HTMLButtonElement | null
|
|
374
|
+
let target = by?.getAttribute('formtarget') ?? form.getAttribute('target')
|
|
375
|
+
let to = new URL(form.getAttribute('action') ?? '', win.location.href)
|
|
376
|
+
if (
|
|
377
|
+
form.method != 'post' || form.enctype == 'multipart/form-data' ||
|
|
378
|
+
(target && target != '_self') ||
|
|
379
|
+
to.pathname != win.location.pathname
|
|
380
|
+
) return
|
|
381
|
+
event.preventDefault()
|
|
382
|
+
let body = new FormData(form, by)
|
|
383
|
+
// A form an item's menu sends may be out of sight: what came of it is said
|
|
384
|
+
// at the head of the dialog it is in, where that is open and has one, or
|
|
385
|
+
// else of the page.
|
|
386
|
+
let away = form.checkVisibility?.() === false
|
|
387
|
+
let key = form.closest<HTMLElement>('.Modal_Body')?.dataset.modalKey
|
|
388
|
+
let at = away && key != null && notice(key) ? key : null
|
|
389
|
+
let said = away ? notice(at) : form
|
|
390
|
+
if (refused) showError(notice(refused.at), '')
|
|
391
|
+
refused = undefined
|
|
392
|
+
tell(said, '')
|
|
393
|
+
by?.setAttribute('aria-busy', 'true')
|
|
394
|
+
try {
|
|
395
|
+
tell(said, await press(body))
|
|
396
|
+
} catch (error) {
|
|
397
|
+
let words = error instanceof CallError ? error.message : actionFailure(
|
|
398
|
+
error,
|
|
399
|
+
'The connection could not be changed. Try again.',
|
|
400
|
+
)
|
|
401
|
+
if (away) refused = { at, words }
|
|
402
|
+
tell(said, words, true)
|
|
403
|
+
} finally {
|
|
404
|
+
by?.removeAttribute('aria-busy')
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
let within = (to: URL) => to.origin == origin && to.pathname == path
|
|
408
|
+
let moved = () => {
|
|
409
|
+
let to = here()
|
|
410
|
+
if (within(to)) go(to, false)
|
|
411
|
+
}
|
|
412
|
+
// Back and Forward inside Connections are driven by its page graph.
|
|
413
|
+
// Claim them before the frame navigator swaps in a loading page.
|
|
414
|
+
let drawing = (event: Event) => {
|
|
415
|
+
let asked = (event as CustomEvent<Drawing>).detail
|
|
416
|
+
if (within(asked.to)) asked.draw = () => go(asked.to, false)
|
|
417
|
+
}
|
|
418
|
+
root.ownerDocument.addEventListener(DRAW, drawing)
|
|
419
|
+
root.addEventListener('click', click)
|
|
420
|
+
root.addEventListener('cancel', cancel, true)
|
|
421
|
+
root.addEventListener('input', typed)
|
|
422
|
+
root.addEventListener('submit', sent)
|
|
423
|
+
root.addEventListener('toggle', icon, true)
|
|
424
|
+
win.addEventListener('popstate', moved)
|
|
425
|
+
asking(base)
|
|
426
|
+
draw()
|
|
427
|
+
return () => {
|
|
428
|
+
clearTimeout(timer)
|
|
429
|
+
root.removeEventListener('click', click)
|
|
430
|
+
root.removeEventListener('cancel', cancel, true)
|
|
431
|
+
root.removeEventListener('input', typed)
|
|
432
|
+
root.removeEventListener('submit', sent)
|
|
433
|
+
root.removeEventListener('toggle', icon, true)
|
|
434
|
+
for (let close of icons.values()) close()
|
|
435
|
+
win.removeEventListener?.('popstate', moved)
|
|
436
|
+
root.ownerDocument.removeEventListener(DRAW, drawing)
|
|
437
|
+
off()
|
|
438
|
+
watch?.close()
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
let start = (doc: Document = document) => {
|
|
443
|
+
let bound = new Set<Element>()
|
|
444
|
+
let each = () => {
|
|
445
|
+
for (let root of doc.querySelectorAll<HTMLElement>(VIEW)) {
|
|
446
|
+
if (bound.has(root)) continue
|
|
447
|
+
bound.add(root)
|
|
448
|
+
let { person } = JSON.parse(
|
|
449
|
+
root.dataset.connectionsView!,
|
|
450
|
+
) as ConnectionsView
|
|
451
|
+
let stop = bindConnections(
|
|
452
|
+
root,
|
|
453
|
+
pageGraph([connectionsWords, paymentWords], person),
|
|
454
|
+
)
|
|
455
|
+
leaving(doc).addEventListener('abort', () => {
|
|
456
|
+
bound.delete(root)
|
|
457
|
+
stop()
|
|
458
|
+
}, { once: true })
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
each()
|
|
462
|
+
doc.addEventListener(PAGE, each)
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
if (typeof document != 'undefined') start()
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a space's Connections page (./connections-view.ts) is drawn from, as
|
|
3
|
+
* the tab's page graph holds it (D-475 step 5), and what it writes there.
|
|
4
|
+
*
|
|
5
|
+
* - `connectionsPage{space, ask, on, list, borrowed, services, mcp, built,
|
|
6
|
+
* catalog, asked, open, trash, enable, plan}`: everything the page shows, for the
|
|
7
|
+
* space and what its address asks (`ask`: the search, the service opened,
|
|
8
|
+
* the MCP server opened, the trash). No store holds it: the page graph's
|
|
9
|
+
* door reads it of the directory, the vault and the catalog
|
|
10
|
+
* (yaks.app's connections.ts `connectionsOf`), and reads it again as the
|
|
11
|
+
* space's connections, their links and the person's MCP servers move.
|
|
12
|
+
* - `connectionAct{space, page, form}`: one of the page's buttons pressed,
|
|
13
|
+
* the fields its form sent (`do` among them) as `page` showed it. The door
|
|
14
|
+
* does it as the person and answers it with `connectionActed{say, no, go}`:
|
|
15
|
+
* what the page says of it, or where the person goes to sign in.
|
|
16
|
+
* - `connectionsMoved{space}`: the space's connections, the links its apps
|
|
17
|
+
* call out through, its apps or its owner's MCP servers moved. The
|
|
18
|
+
* directory answers it as a read of the person (./person-lines.ts), again
|
|
19
|
+
* on each commit that touches them: how the door knows to read the page
|
|
20
|
+
* again.
|
|
21
|
+
*
|
|
22
|
+
* @module
|
|
23
|
+
*/ import { derivedEid } from "@yaks/graph/identity";
|
|
24
|
+
import { line } from "@yaks/query";
|
|
25
|
+
/** One thing a person gives to connect a pasted-key service, and the one a
|
|
26
|
+
* service that declares none asks for: its key (@yaks/connections `Field`). */ import { KEY } from "@yaks/connections/form";
|
|
27
|
+
import connectionsJson from './vocab/connections.vocab.json' with {
|
|
28
|
+
type: 'json'
|
|
29
|
+
};
|
|
30
|
+
export { KEY };
|
|
31
|
+
/** The most a search shows at once. */ export let SHOWN = 48;
|
|
32
|
+
/** The page's address asks the read: the search (`q`), the service or
|
|
33
|
+
* connection opened (`detail`), the MCP server opened and an app asking for
|
|
34
|
+
* sources (`mcp`, `grant`, `at`), the trash (`trash`) and the testing
|
|
35
|
+
* integrations (`enable`). */ export let ASKS = [
|
|
36
|
+
'q',
|
|
37
|
+
'detail',
|
|
38
|
+
'mcp',
|
|
39
|
+
'grant',
|
|
40
|
+
'at',
|
|
41
|
+
'trash',
|
|
42
|
+
'enable'
|
|
43
|
+
];
|
|
44
|
+
/** What `params` ask of the page, as one text the same asks always give. */ export let askOf = (params)=>{
|
|
45
|
+
let kept = new URLSearchParams();
|
|
46
|
+
for (let k of ASKS){
|
|
47
|
+
let v = params.getAll(k).join(',').trim();
|
|
48
|
+
if (v) kept.set(k, v);
|
|
49
|
+
}
|
|
50
|
+
return kept.toString();
|
|
51
|
+
};
|
|
52
|
+
let PAGE = '.connectionsPage.space=';
|
|
53
|
+
/** The line of the Connections page of the space `space`, as `ask` asks
|
|
54
|
+
* it. */ export let connectionsPage = (space, ask)=>line`.connectionsPage.space=${space}&.connectionsPage.ask=${ask}`;
|
|
55
|
+
/** The space and the asks a `connectionsPage` line names, or undefined for
|
|
56
|
+
* another line. */ export let pageAsked = (text)=>{
|
|
57
|
+
if (!text.startsWith(PAGE)) return undefined;
|
|
58
|
+
let m = /^\.connectionsPage\.space=("(?:[^"\\]|\\.)*"|[^&]*)&\.connectionsPage\.ask=("(?:[^"\\]|\\.)*"|.*)$/.exec(text);
|
|
59
|
+
let bare = (v)=>v.startsWith('"') ? v.slice(1, -1).replace(/\\(.)/g, '$1') : v;
|
|
60
|
+
if (!m) return undefined;
|
|
61
|
+
let asked = {
|
|
62
|
+
space: bare(m[1]),
|
|
63
|
+
ask: bare(m[2])
|
|
64
|
+
};
|
|
65
|
+
return connectionsPage(asked.space, asked.ask) == text ? asked : undefined;
|
|
66
|
+
};
|
|
67
|
+
let MOVED = '.connectionsMoved.space=';
|
|
68
|
+
/** The line that moves as the Connections page of the space `space` does. */ export let connectionsMoved = (space)=>MOVED + space;
|
|
69
|
+
/** The space a `connectionsMoved` line names, or undefined for another line. */ export let movedSpace = (text)=>text.startsWith(MOVED) ? text.slice(MOVED.length) : undefined;
|
|
70
|
+
/** That the Connections page of `space` moved, as `person`'s row. */ export let movedRow = (person, space)=>({
|
|
71
|
+
entity: {
|
|
72
|
+
eid: derivedEid(`connections-moved|${person}|${space}`)
|
|
73
|
+
},
|
|
74
|
+
connectionsMoved: {
|
|
75
|
+
space
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
export let connectionsWords = connectionsJson;
|
|
79
|
+
/** A person's page as the platform's admin inspects it: each MCP server by
|
|
80
|
+
* its origin alone, and no other text on the page (a failure, a title)
|
|
81
|
+
* holding a server's path or query. A hosted server's URL may carry the
|
|
82
|
+
* account's secret there, which makes the URL the credential. */ export let inspected = (c)=>{
|
|
83
|
+
let cuts = (c.mcp?.servers ?? []).flatMap((s)=>cutsOf(s.url)).sort(([a], [b])=>b.length - a.length);
|
|
84
|
+
let scrub = (v)=>typeof v == 'string' ? cuts.reduce((t, [from, to])=>t.replaceAll(from, to), v) : Array.isArray(v) ? v.map(scrub) : v && typeof v == 'object' ? Object.fromEntries(Object.entries(v).map(([k, x])=>[
|
|
85
|
+
k,
|
|
86
|
+
scrub(x)
|
|
87
|
+
])) : v;
|
|
88
|
+
return cuts.length ? scrub(c) : c;
|
|
89
|
+
};
|
|
90
|
+
// What of `url` is cut, each way it may be written, and what replaces it: the
|
|
91
|
+
// whole by its origin, and its path and query alone by an ellipsis. A path
|
|
92
|
+
// with no origin (a server on a machine) is all path.
|
|
93
|
+
let cutsOf = (url)=>{
|
|
94
|
+
let u = URL.canParse(url) ? new URL(url) : null;
|
|
95
|
+
let origin = u?.origin ?? '';
|
|
96
|
+
let rest = u ? u.href.slice(origin.length) : url;
|
|
97
|
+
let forms = (s)=>[
|
|
98
|
+
s,
|
|
99
|
+
decoded(s)
|
|
100
|
+
];
|
|
101
|
+
return [
|
|
102
|
+
...u ? [
|
|
103
|
+
url,
|
|
104
|
+
...forms(u.href)
|
|
105
|
+
].map((s)=>[
|
|
106
|
+
s,
|
|
107
|
+
origin
|
|
108
|
+
]) : [],
|
|
109
|
+
...forms(rest).map((s)=>[
|
|
110
|
+
s,
|
|
111
|
+
'/…'
|
|
112
|
+
])
|
|
113
|
+
].filter(([s], i, all)=>s && s != '/' && all.findIndex(([t])=>t == s) == i);
|
|
114
|
+
};
|
|
115
|
+
let decoded = (s)=>{
|
|
116
|
+
try {
|
|
117
|
+
return decodeURI(s);
|
|
118
|
+
} catch {
|
|
119
|
+
return s;
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
/** The Connections page of `space` as `ask` asks it, as a row. */ export let pageRow = (space, ask, c)=>({
|
|
123
|
+
entity: {
|
|
124
|
+
eid: derivedEid(`connectionsPage|${space}|${ask}`)
|
|
125
|
+
},
|
|
126
|
+
connectionsPage: {
|
|
127
|
+
...c,
|
|
128
|
+
space,
|
|
129
|
+
ask
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
// One row reads as one page, so a page drawn from it is known unchanged.
|
|
133
|
+
let pages = new WeakMap();
|
|
134
|
+
/** What the page is drawn from, if `rows` hold it. */ export let pageOf = (rows)=>{
|
|
135
|
+
let row = rows.find((r)=>r.connectionsPage)?.connectionsPage;
|
|
136
|
+
if (!row) return undefined;
|
|
137
|
+
let c = pages.get(row);
|
|
138
|
+
if (!c) {
|
|
139
|
+
let { space: _, ask: __, ...page } = row;
|
|
140
|
+
pages.set(row, c = page);
|
|
141
|
+
}
|
|
142
|
+
return c;
|
|
143
|
+
};
|
|
144
|
+
/** What a form holding `body` sent. */ export let sentOf = (body)=>{
|
|
145
|
+
let sent = {};
|
|
146
|
+
for (let k of new Set(body.keys())){
|
|
147
|
+
let all = body.getAll(k).map(String);
|
|
148
|
+
sent[k] = all.length == 1 ? all[0] : all;
|
|
149
|
+
}
|
|
150
|
+
return sent;
|
|
151
|
+
};
|
|
152
|
+
/** What a `connectionAct` sent, as a form the page's post would carry. */ export let formOf = (sent)=>{
|
|
153
|
+
let form = new FormData();
|
|
154
|
+
for (let [k, v] of Object.entries(sent)){
|
|
155
|
+
for (let one of Array.isArray(v) ? v : [
|
|
156
|
+
v
|
|
157
|
+
])form.append(k, one);
|
|
158
|
+
}
|
|
159
|
+
return form;
|
|
160
|
+
};
|
|
161
|
+
/** The act `bundles` write, when they are one press of the page's, else
|
|
162
|
+
* undefined. */ export let actOf = (bundles)=>{
|
|
163
|
+
let [b, ...rest] = bundles;
|
|
164
|
+
let act = b?.connectionAct;
|
|
165
|
+
if (rest.length || !act?.space || !act.form) return undefined;
|
|
166
|
+
return {
|
|
167
|
+
...act,
|
|
168
|
+
eid: b.entity.eid
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
/** The act `eid`, answered with what came of it. */ export let actedRow = (eid, acted)=>({
|
|
172
|
+
entity: {
|
|
173
|
+
eid
|
|
174
|
+
},
|
|
175
|
+
connectionActed: acted
|
|
176
|
+
});
|
|
177
|
+
/** What came of the act `rows` answer, if they do. */ export let actedOf = (rows)=>rows.find((r)=>r.connectionActed)?.connectionActed;
|
|
178
|
+
//# sourceMappingURL=connections-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections-page.js","sources":["./connections-page.ts"],"names":[],"mappings":"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"}
|