@pyric/cli 0.1.0-alpha.10 → 0.1.0-alpha.11
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/README.md.orig +2 -2
- package/dist/assurance/.generated/conformance-verdicts.d.ts +16 -0
- package/dist/assurance/.generated/conformance-verdicts.d.ts.map +1 -1
- package/dist/assurance/.generated/conformance-verdicts.js +16 -0
- package/dist/assurance/.generated/conformance-verdicts.js.map +1 -1
- package/dist/bridge/server/peer.d.ts +1 -1
- package/dist/bridge/server.d.ts +1 -1
- package/dist/bridge/server.js +1 -1
- package/dist/cli/index.d.ts +11 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +13 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init.d.ts +3 -3
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +5 -5
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/serve.d.ts.map +1 -1
- package/dist/cli/serve.js +8 -2
- package/dist/cli/serve.js.map +1 -1
- package/dist/conformance/.generated/can-i-use-browser.d.ts.map +1 -1
- package/dist/conformance/.generated/can-i-use-browser.js +1 -1
- package/dist/conformance/.generated/can-i-use-browser.js.map +1 -1
- package/dist/conformance/.generated/can-i-use.d.ts.map +1 -1
- package/dist/conformance/.generated/can-i-use.js +1 -1
- package/dist/conformance/.generated/can-i-use.js.map +1 -1
- package/dist/conformance/.generated/conformance-docs.d.ts +12 -0
- package/dist/conformance/.generated/conformance-docs.d.ts.map +1 -0
- package/dist/conformance/.generated/conformance-docs.js +2 -0
- package/dist/conformance/.generated/conformance-docs.js.map +1 -0
- package/dist/conformance/docs.d.ts +6 -0
- package/dist/conformance/docs.d.ts.map +1 -0
- package/dist/conformance/docs.js +6 -0
- package/dist/conformance/docs.js.map +1 -0
- package/dist/remote/index.d.ts.map +1 -1
- package/dist/remote/index.js +1 -0
- package/dist/remote/index.js.map +1 -1
- package/dist/serve/activity-guard.d.ts +4 -0
- package/dist/serve/activity-guard.d.ts.map +1 -0
- package/dist/serve/activity-guard.js +22 -0
- package/dist/serve/activity-guard.js.map +1 -0
- package/dist/serve/activity-route.d.ts +4 -0
- package/dist/serve/activity-route.d.ts.map +1 -0
- package/dist/serve/activity-route.js +157 -0
- package/dist/serve/activity-route.js.map +1 -0
- package/dist/serve/activity-warning.d.ts +4 -0
- package/dist/serve/activity-warning.d.ts.map +1 -0
- package/dist/serve/activity-warning.js +21 -0
- package/dist/serve/activity-warning.js.map +1 -0
- package/dist/serve/bridge-mount.d.ts +5 -0
- package/dist/serve/bridge-mount.d.ts.map +1 -1
- package/dist/serve/bridge-mount.js +1 -0
- package/dist/serve/bridge-mount.js.map +1 -1
- package/dist/serve/docs-ui/404.html +3 -0
- package/dist/serve/docs-ui/_astro/{_slug_.DPUwShm2.css → _slug_.CXh9yTP1.css} +1 -1
- package/dist/serve/docs-ui/_astro/_slug_.DUci-duz.css +1 -0
- package/dist/serve/docs-ui/docs/_rhythm/index.html +2 -1
- package/dist/serve/docs-ui/docs/agent/set-up-your-agent/index.html +3 -2
- package/dist/serve/docs-ui/docs/agent/set-up-your-agent.md +1 -1
- package/dist/serve/docs-ui/docs/agent/watch-and-review/index.html +2 -1
- package/dist/serve/docs-ui/docs/agent/work-with-an-agent/index.html +2 -1
- package/dist/serve/docs-ui/docs/ai-compat/index.html +2 -1
- package/dist/serve/docs-ui/docs/api-reference/index.html +51 -49
- package/dist/serve/docs-ui/docs/api-reference.md +2 -2
- package/dist/serve/docs-ui/docs/app-compat/index.html +2 -1
- package/dist/serve/docs-ui/docs/auth-compat/index.html +2 -1
- package/dist/serve/docs-ui/docs/build/ai-logic/index.html +18 -3
- package/dist/serve/docs-ui/docs/build/ai-logic.md +30 -2
- package/dist/serve/docs-ui/docs/build/authentication/index.html +2 -1
- package/dist/serve/docs-ui/docs/build/authentication.md +1 -1
- package/dist/serve/docs-ui/docs/build/cloud-firestore/index.html +2 -1
- package/dist/serve/docs-ui/docs/build/cloud-messaging/index.html +46 -2
- package/dist/serve/docs-ui/docs/build/cloud-messaging.md +56 -1
- package/dist/serve/docs-ui/docs/build/cloud-storage/index.html +2 -1
- package/dist/serve/docs-ui/docs/build/cloud-storage.md +1 -1
- package/dist/serve/docs-ui/docs/build/realtime-database/index.html +21 -3
- package/dist/serve/docs-ui/docs/build/realtime-database.md +25 -1
- package/dist/serve/docs-ui/docs/conformance-scores/index.html +2 -1
- package/dist/serve/docs-ui/docs/create-pyric-reference-api/index.html +61 -28
- package/dist/serve/docs-ui/docs/create-pyric-reference-api.md +65 -20
- package/dist/serve/docs-ui/docs/database-compat/index.html +2 -1
- package/dist/serve/docs-ui/docs/firestore-compat/index.html +6 -5
- package/dist/serve/docs-ui/docs/firestore-compat.md +4 -4
- package/dist/serve/docs-ui/docs/functions-rtdb-compat/index.html +2 -1
- package/dist/serve/docs-ui/docs/get-started/how-the-swap-works/index.html +2 -1
- package/dist/serve/docs-ui/docs/get-started/start-building/index.html +4 -3
- package/dist/serve/docs-ui/docs/get-started/start-building.md +2 -2
- package/dist/serve/docs-ui/docs/index.json +800 -575
- package/dist/serve/docs-ui/docs/messaging-compat/index.html +2 -1
- package/dist/serve/docs-ui/docs/observe/see-whats-happening/index.html +2 -1
- package/dist/serve/docs-ui/docs/observe/shape-your-data/index.html +2 -1
- package/dist/serve/docs-ui/docs/overview/index.html +2 -1
- package/dist/serve/docs-ui/docs/pyric-admin-app-reference-api/index.html +5 -4
- package/dist/serve/docs-ui/docs/pyric-admin-app-reference-api.md +3 -4
- package/dist/serve/docs-ui/docs/pyric-admin-auth-reference-api/index.html +5 -4
- package/dist/serve/docs-ui/docs/pyric-admin-auth-reference-api.md +3 -4
- package/dist/serve/docs-ui/docs/pyric-admin-database-reference-api/index.html +5 -4
- package/dist/serve/docs-ui/docs/pyric-admin-database-reference-api.md +3 -4
- package/dist/serve/docs-ui/docs/pyric-admin-firestore-reference-api/index.html +2503 -12
- package/dist/serve/docs-ui/docs/pyric-admin-firestore-reference-api.md +2219 -8
- package/dist/serve/docs-ui/docs/pyric-admin-storage-reference-api/index.html +4 -3
- package/dist/serve/docs-ui/docs/pyric-admin-storage-reference-api.md +2 -3
- package/dist/serve/docs-ui/docs/pyric-ai-reference-api/index.html +16 -11
- package/dist/serve/docs-ui/docs/pyric-ai-reference-api.md +14 -13
- package/dist/serve/docs-ui/docs/pyric-ai-scripting-reference-api/index.html +4 -3
- package/dist/serve/docs-ui/docs/pyric-ai-scripting-reference-api.md +2 -3
- package/dist/serve/docs-ui/docs/pyric-app-reference-api/index.html +7 -2
- package/dist/serve/docs-ui/docs/pyric-app-reference-api.md +5 -2
- package/dist/serve/docs-ui/docs/pyric-auth-reference-api/index.html +23 -12
- package/dist/serve/docs-ui/docs/pyric-auth-reference-api.md +15 -12
- package/dist/serve/docs-ui/docs/pyric-cli-assurance-browser-reference-api/index.html +10 -48
- package/dist/serve/docs-ui/docs/pyric-cli-assurance-browser-reference-api.md +11 -24
- package/dist/serve/docs-ui/docs/pyric-cli-assurance-reference-api/index.html +87 -97
- package/dist/serve/docs-ui/docs/pyric-cli-assurance-reference-api.md +53 -65
- package/dist/serve/docs-ui/docs/pyric-cli-bridge-client-reference-api/index.html +14 -15
- package/dist/serve/docs-ui/docs/pyric-cli-bridge-client-reference-api.md +19 -28
- package/dist/serve/docs-ui/docs/pyric-cli-bridge-reference-api/index.html +4 -3
- package/dist/serve/docs-ui/docs/pyric-cli-bridge-reference-api.md +2 -3
- package/dist/serve/docs-ui/docs/pyric-cli-conformance-browser-reference-api/index.html +3 -2
- package/dist/serve/docs-ui/docs/pyric-cli-conformance-browser-reference-api.md +1 -2
- package/dist/serve/docs-ui/docs/pyric-cli-conformance-docs-reference-api/index.html +51 -0
- package/dist/serve/docs-ui/docs/pyric-cli-conformance-docs-reference-api.md +36 -0
- package/dist/serve/docs-ui/docs/pyric-cli-conformance-reference-api/index.html +3 -2
- package/dist/serve/docs-ui/docs/pyric-cli-conformance-reference-api.md +1 -2
- package/dist/serve/docs-ui/docs/pyric-cli-credentials-node-reference-api/index.html +3 -2
- package/dist/serve/docs-ui/docs/pyric-cli-credentials-node-reference-api.md +1 -2
- package/dist/serve/docs-ui/docs/pyric-cli-discover-reference-api/index.html +3 -2
- package/dist/serve/docs-ui/docs/pyric-cli-discover-reference-api.md +1 -2
- package/dist/serve/docs-ui/docs/pyric-cli-register-reference-api/index.html +3 -2
- package/dist/serve/docs-ui/docs/pyric-cli-register-reference-api.md +1 -2
- package/dist/serve/docs-ui/docs/pyric-cli-remote-reference-api/index.html +1067 -83
- package/dist/serve/docs-ui/docs/pyric-cli-remote-reference-api.md +1291 -160
- package/dist/serve/docs-ui/docs/pyric-cli-serve-worker-reference-api/index.html +123 -92
- package/dist/serve/docs-ui/docs/pyric-cli-serve-worker-reference-api.md +49 -20
- package/dist/serve/docs-ui/docs/pyric-cli-verify-reference-api/index.html +72 -7
- package/dist/serve/docs-ui/docs/pyric-cli-verify-reference-api.md +22 -7
- package/dist/serve/docs-ui/docs/pyric-cli-vite-reference-api/index.html +33 -12
- package/dist/serve/docs-ui/docs/pyric-cli-vite-reference-api.md +15 -12
- package/dist/serve/docs-ui/docs/pyric-database-reference-api/index.html +18 -17
- package/dist/serve/docs-ui/docs/pyric-database-reference-api.md +19 -22
- package/dist/serve/docs-ui/docs/pyric-firestore-reference-api/index.html +1512 -545
- package/dist/serve/docs-ui/docs/pyric-firestore-reference-api.md +1311 -316
- package/dist/serve/docs-ui/docs/pyric-firestore-values-reference-api/index.html +3 -2
- package/dist/serve/docs-ui/docs/pyric-firestore-values-reference-api.md +1 -2
- package/dist/serve/docs-ui/docs/pyric-messaging-reference-api/index.html +5 -4
- package/dist/serve/docs-ui/docs/pyric-messaging-reference-api.md +3 -4
- package/dist/serve/docs-ui/docs/pyric-messaging-sw-reference-api/index.html +69 -369
- package/dist/serve/docs-ui/docs/pyric-messaging-sw-reference-api.md +103 -216
- package/dist/serve/docs-ui/docs/pyric-rules-reference-api/index.html +10 -9
- package/dist/serve/docs-ui/docs/pyric-rules-reference-api.md +9 -10
- package/dist/serve/docs-ui/docs/pyric-sandbox-database-reference-api/index.html +8 -7
- package/dist/serve/docs-ui/docs/pyric-sandbox-database-reference-api.md +6 -7
- package/dist/serve/docs-ui/docs/pyric-sandbox-firestore-reference-api/index.html +10 -9
- package/dist/serve/docs-ui/docs/pyric-sandbox-firestore-reference-api.md +9 -10
- package/dist/serve/docs-ui/docs/pyric-sandbox-reference-api/index.html +374 -910
- package/dist/serve/docs-ui/docs/pyric-sandbox-reference-api.md +377 -911
- package/dist/serve/docs-ui/docs/pyric-storage-reference-api/index.html +25 -17
- package/dist/serve/docs-ui/docs/pyric-storage-reference-api.md +21 -19
- package/dist/serve/docs-ui/docs/pyric-ui-agents-reference-api/index.html +3 -2
- package/dist/serve/docs-ui/docs/pyric-ui-agents-reference-api.md +1 -2
- package/dist/serve/docs-ui/docs/pyric-ui-auth-hooks-reference-api/index.html +63 -776
- package/dist/serve/docs-ui/docs/pyric-ui-auth-hooks-reference-api.md +69 -510
- package/dist/serve/docs-ui/docs/pyric-ui-auth-reference-api/index.html +22 -21
- package/dist/serve/docs-ui/docs/pyric-ui-auth-reference-api.md +29 -30
- package/dist/serve/docs-ui/docs/pyric-ui-events-hooks-reference-api/index.html +15 -168
- package/dist/serve/docs-ui/docs/pyric-ui-events-hooks-reference-api.md +17 -87
- package/dist/serve/docs-ui/docs/pyric-ui-events-reference-api/index.html +6 -5
- package/dist/serve/docs-ui/docs/pyric-ui-events-reference-api.md +5 -6
- package/dist/serve/docs-ui/docs/pyric-ui-firestore-hooks-reference-api/index.html +82 -970
- package/dist/serve/docs-ui/docs/pyric-ui-firestore-hooks-reference-api.md +104 -479
- package/dist/serve/docs-ui/docs/pyric-ui-firestore-reference-api/index.html +30 -29
- package/dist/serve/docs-ui/docs/pyric-ui-firestore-reference-api.md +54 -55
- package/dist/serve/docs-ui/docs/pyric-ui-primitives-reference-api/index.html +3 -2
- package/dist/serve/docs-ui/docs/pyric-ui-primitives-reference-api.md +1 -2
- package/dist/serve/docs-ui/docs/pyric-ui-rtdb-reference-api/index.html +5 -4
- package/dist/serve/docs-ui/docs/pyric-ui-rtdb-reference-api.md +3 -4
- package/dist/serve/docs-ui/docs/pyric-ui-rules-hooks-reference-api/index.html +9 -124
- package/dist/serve/docs-ui/docs/pyric-ui-rules-hooks-reference-api.md +7 -58
- package/dist/serve/docs-ui/docs/pyric-ui-rules-reference-api/index.html +24 -23
- package/dist/serve/docs-ui/docs/pyric-ui-rules-reference-api.md +31 -34
- package/dist/serve/docs-ui/docs/pyric-ui-storage-hooks-reference-api/index.html +104 -1385
- package/dist/serve/docs-ui/docs/pyric-ui-storage-hooks-reference-api.md +133 -817
- package/dist/serve/docs-ui/docs/pyric-ui-storage-reference-api/index.html +34 -33
- package/dist/serve/docs-ui/docs/pyric-ui-storage-reference-api.md +37 -38
- package/dist/serve/docs-ui/docs/pyric-ui-traffic-hooks-reference-api/index.html +116 -1169
- package/dist/serve/docs-ui/docs/pyric-ui-traffic-hooks-reference-api.md +142 -590
- package/dist/serve/docs-ui/docs/pyric-ui-traffic-reference-api/index.html +4 -3
- package/dist/serve/docs-ui/docs/pyric-ui-traffic-reference-api.md +3 -4
- package/dist/serve/docs-ui/docs/rules-compat/index.html +34 -1
- package/dist/serve/docs-ui/docs/rules-compat.md +32 -0
- package/dist/serve/docs-ui/docs/secure/audit-your-rules/index.html +19 -2
- package/dist/serve/docs-ui/docs/secure/audit-your-rules.md +32 -0
- package/dist/serve/docs-ui/docs/secure/firestore-rules-limits/index.html +2 -1
- package/dist/serve/docs-ui/docs/secure/read-a-denial/index.html +2 -1
- package/dist/serve/docs-ui/docs/secure/rtdb-rules-in-typescript/index.html +2 -1
- package/dist/serve/docs-ui/docs/secure/rtdb-rules-in-typescript.md +1 -1
- package/dist/serve/docs-ui/docs/secure/rules-standard-library/index.html +2 -1
- package/dist/serve/docs-ui/docs/secure/secure-it-with-rules/index.html +2 -1
- package/dist/serve/docs-ui/docs/secure/simulate-and-lint/index.html +2 -1
- package/dist/serve/docs-ui/docs/secure/write-a-rules-test-suite/index.html +2 -1
- package/dist/serve/docs-ui/docs/ship/ship-to-production/index.html +2 -1
- package/dist/serve/docs-ui/docs/ship/test-in-node/index.html +2 -1
- package/dist/serve/docs-ui/docs/storage-compat/index.html +2 -1
- package/dist/serve/docs-ui/docs/trust/how-we-know-it-matches-firebase/index.html +2 -1
- package/dist/serve/docs-ui/docs/trust/versioning-and-compatibility/index.html +2 -1
- package/dist/serve/docs-ui/llms.txt +1 -0
- package/dist/serve/entries/ai.d.ts.map +1 -1
- package/dist/serve/entries/ai.js +39 -1
- package/dist/serve/entries/ai.js.map +1 -1
- package/dist/serve/entries/messaging-sw.d.ts.map +1 -1
- package/dist/serve/entries/messaging-sw.js +5 -1
- package/dist/serve/entries/messaging-sw.js.map +1 -1
- package/dist/serve/entries/messaging.d.ts.map +1 -1
- package/dist/serve/entries/messaging.js +7 -1
- package/dist/serve/entries/messaging.js.map +1 -1
- package/dist/serve/entries/runtime.d.ts.map +1 -1
- package/dist/serve/entries/runtime.js +20 -1
- package/dist/serve/entries/runtime.js.map +1 -1
- package/dist/serve/init-payload.d.ts +25 -0
- package/dist/serve/init-payload.d.ts.map +1 -1
- package/dist/serve/namespace.d.ts +39 -0
- package/dist/serve/namespace.d.ts.map +1 -1
- package/dist/serve/namespace.js +80 -1
- package/dist/serve/namespace.js.map +1 -1
- package/dist/serve/standalone-assets.d.ts +11 -9
- package/dist/serve/standalone-assets.d.ts.map +1 -1
- package/dist/serve/standalone-assets.js +6 -5
- package/dist/serve/standalone-assets.js.map +1 -1
- package/dist/serve/studio-ui/assets/{RulesCodeEditor-CXdSLKhO.js → RulesCodeEditor-CxVYcZXw.js} +1 -1
- package/dist/serve/studio-ui/assets/index-cpSfgQ7H.js +1218 -0
- package/dist/serve/studio-ui/assets/seed-DeuFKi4J.js +20 -0
- package/dist/serve/studio-ui/index.html +1 -1
- package/dist/serve/vite-plugin.d.ts +92 -15
- package/dist/serve/vite-plugin.d.ts.map +1 -1
- package/dist/serve/vite-plugin.js +281 -11
- package/dist/serve/vite-plugin.js.map +1 -1
- package/dist/serve/worker/activity-bootstrap.d.ts +8 -0
- package/dist/serve/worker/activity-bootstrap.d.ts.map +1 -0
- package/dist/serve/worker/activity-bootstrap.js +11 -0
- package/dist/serve/worker/activity-bootstrap.js.map +1 -0
- package/dist/serve/worker/client/connection.d.ts.map +1 -1
- package/dist/serve/worker/client/connection.js +17 -5
- package/dist/serve/worker/client/connection.js.map +1 -1
- package/dist/serve/worker/client/core.d.ts +2 -2
- package/dist/serve/worker/client/core.d.ts.map +1 -1
- package/dist/serve/worker/client/core.js +33 -5
- package/dist/serve/worker/client/core.js.map +1 -1
- package/dist/serve/worker/client/firestore-writes.d.ts.map +1 -1
- package/dist/serve/worker/client/firestore-writes.js +1 -0
- package/dist/serve/worker/client/firestore-writes.js.map +1 -1
- package/dist/serve/worker/client/messaging.d.ts +9 -1
- package/dist/serve/worker/client/messaging.d.ts.map +1 -1
- package/dist/serve/worker/client/messaging.js +15 -0
- package/dist/serve/worker/client/messaging.js.map +1 -1
- package/dist/serve/worker/client/studio.d.ts +10 -0
- package/dist/serve/worker/client/studio.d.ts.map +1 -1
- package/dist/serve/worker/client/studio.js +11 -0
- package/dist/serve/worker/client/studio.js.map +1 -1
- package/dist/serve/worker/durable-persistence.d.ts +12 -0
- package/dist/serve/worker/durable-persistence.d.ts.map +1 -0
- package/dist/serve/worker/durable-persistence.js +118 -0
- package/dist/serve/worker/durable-persistence.js.map +1 -0
- package/dist/serve/worker/entry.d.ts +7 -3
- package/dist/serve/worker/entry.d.ts.map +1 -1
- package/dist/serve/worker/entry.js +7 -3
- package/dist/serve/worker/entry.js.map +1 -1
- package/dist/serve/worker/host/core.d.ts +9 -5
- package/dist/serve/worker/host/core.d.ts.map +1 -1
- package/dist/serve/worker/host/core.js +33 -8
- package/dist/serve/worker/host/core.js.map +1 -1
- package/dist/serve/worker/host/dispatch.d.ts.map +1 -1
- package/dist/serve/worker/host/dispatch.js +9 -2
- package/dist/serve/worker/host/dispatch.js.map +1 -1
- package/dist/serve/worker/host/studio.d.ts +1 -1
- package/dist/serve/worker/host/studio.d.ts.map +1 -1
- package/dist/serve/worker/host/studio.js +36 -1
- package/dist/serve/worker/host/studio.js.map +1 -1
- package/dist/serve/worker/host/subscriptions.d.ts.map +1 -1
- package/dist/serve/worker/host/subscriptions.js +27 -7
- package/dist/serve/worker/host/subscriptions.js.map +1 -1
- package/dist/serve/worker/host-context.d.ts +15 -0
- package/dist/serve/worker/host-context.d.ts.map +1 -1
- package/dist/serve/worker/host-context.js +10 -0
- package/dist/serve/worker/host-context.js.map +1 -1
- package/dist/serve/worker/host-messaging.d.ts.map +1 -1
- package/dist/serve/worker/host-messaging.js +9 -2
- package/dist/serve/worker/host-messaging.js.map +1 -1
- package/dist/serve/worker/index.d.ts +1 -1
- package/dist/serve/worker/index.d.ts.map +1 -1
- package/dist/serve/worker/index.js +2 -0
- package/dist/serve/worker/index.js.map +1 -1
- package/dist/serve/worker/protocol.d.ts +25 -3
- package/dist/serve/worker/protocol.d.ts.map +1 -1
- package/dist/serve/worker/protocol.js.map +1 -1
- package/dist/serve/worker/serve-init.d.ts +23 -37
- package/dist/serve/worker/serve-init.d.ts.map +1 -1
- package/dist/serve/worker/serve-init.js +95 -172
- package/dist/serve/worker/serve-init.js.map +1 -1
- package/dist/vite.d.ts +4 -4
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +3 -3
- package/dist/vite.js.map +1 -1
- package/package.json +8 -4
- package/dist/serve/studio-ui/assets/index-BvtQIpGn.js +0 -1211
- package/dist/serve/studio-ui/assets/seed-3DMedLL3.js +0 -2
|
@@ -1,640 +1,265 @@
|
|
|
1
|
+
<!-- Generated from published package declarations via TypeDoc. Rendered by the api-reference content loader. -->
|
|
1
2
|
|
|
2
|
-
|
|
3
|
+
## References
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
<a id="browselocation"></a>
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### QueryBuilderActions
|
|
9
|
-
|
|
10
|
-
#### Properties
|
|
11
|
-
|
|
12
|
-
| Property | Type | Description |
|
|
13
|
-
| :------ | :------ | :------ |
|
|
14
|
-
| <a id="addcondition"></a> `addCondition` | (`c?`: `Partial`\<`Omit`\<[`QueryCondition`](#querycondition), `"id"`\>\>) => `void` | - |
|
|
15
|
-
| <a id="buildquery"></a> `buildQuery` | (`base`: `any`) => `Query` | Compose the state into a Firestore `Query`. Returns the base collection when there are no conditions / orderBy / limit. Conditions with empty `field` are skipped — the builder UI lets users add a row before they've filled it in. |
|
|
16
|
-
| <a id="removecondition"></a> `removeCondition` | (`id`: `string`) => `void` | - |
|
|
17
|
-
| <a id="reset"></a> `reset` | () => `void` | - |
|
|
18
|
-
| <a id="setlimit"></a> `setLimit` | (`limit?`: `number`) => `void` | - |
|
|
19
|
-
| <a id="setorderby"></a> `setOrderBy` | (`orderBy?`: \{ `direction`: `OrderDirection`; `field`: `string`; \}) => `void` | - |
|
|
20
|
-
| <a id="updatecondition"></a> `updateCondition` | (`id`: `string`, `patch`: `Partial`\<`Omit`\<[`QueryCondition`](#querycondition), `"id"`\>\>) => `void` | - |
|
|
21
|
-
|
|
22
|
-
***
|
|
23
|
-
|
|
24
|
-
<a id="querybuilderstate"></a>
|
|
25
|
-
|
|
26
|
-
### QueryBuilderState
|
|
27
|
-
|
|
28
|
-
#### Properties
|
|
7
|
+
### BrowseLocation
|
|
29
8
|
|
|
30
|
-
|
|
31
|
-
| :------ | :------ |
|
|
32
|
-
| <a id="conditions"></a> `conditions` | [`QueryCondition`](#querycondition)[] |
|
|
33
|
-
| <a id="limit"></a> `limit?` | `number` |
|
|
34
|
-
| <a id="orderby"></a> `orderBy?` | \{ `direction`: `OrderDirection`; `field`: `string`; \} |
|
|
35
|
-
| `orderBy.direction` | `OrderDirection` |
|
|
36
|
-
| `orderBy.field` | `string` |
|
|
9
|
+
Re-exports [BrowseLocation](pyric-ui-firestore-reference-api.md#browselocation-1)
|
|
37
10
|
|
|
38
11
|
***
|
|
39
12
|
|
|
40
|
-
<a id="
|
|
41
|
-
|
|
42
|
-
### QueryCondition
|
|
13
|
+
<a id="listsubcollections"></a>
|
|
43
14
|
|
|
44
|
-
|
|
15
|
+
### ListSubcollections
|
|
45
16
|
|
|
46
|
-
|
|
47
|
-
| :------ | :------ |
|
|
48
|
-
| <a id="field"></a> `field` | `string` |
|
|
49
|
-
| <a id="id"></a> `id` | `string` |
|
|
50
|
-
| <a id="op"></a> `op` | `WhereFilterOp` |
|
|
51
|
-
| <a id="value"></a> `value` | `unknown` |
|
|
17
|
+
Re-exports [ListSubcollections](pyric-ui-firestore-reference-api.md#listsubcollections-2)
|
|
52
18
|
|
|
53
19
|
***
|
|
54
20
|
|
|
55
|
-
<a id="
|
|
56
|
-
|
|
57
|
-
### RecursiveDeleteImpl
|
|
58
|
-
|
|
59
|
-
Implementation injected by the consumer. The library doesn't ship
|
|
60
|
-
one — sandbox-backed apps usually walk `pyric/sandbox`'s in-process
|
|
61
|
-
tree; production apps usually call a Cloud Function. Either way,
|
|
62
|
-
`start` returns an async iterator emitting progress.
|
|
63
|
-
|
|
64
|
-
#### Properties
|
|
65
|
-
|
|
66
|
-
| Property | Type |
|
|
67
|
-
| :------ | :------ |
|
|
68
|
-
| <a id="start"></a> `start` | (`target`: `any`) => `AsyncIterableIterator`\<[`RecursiveDeleteProgress`](#recursivedeleteprogress)\> |
|
|
69
|
-
|
|
70
|
-
***
|
|
71
|
-
|
|
72
|
-
<a id="recursivedeleteprogress"></a>
|
|
73
|
-
|
|
74
|
-
### RecursiveDeleteProgress
|
|
21
|
+
<a id="multi_value_ops"></a>
|
|
75
22
|
|
|
76
|
-
|
|
23
|
+
### MULTI\_VALUE\_OPS
|
|
77
24
|
|
|
78
|
-
|
|
79
|
-
| :------ | :------ | :------ |
|
|
80
|
-
| <a id="deletedcount"></a> `deletedCount` | `number` | Total nodes deleted so far. |
|
|
81
|
-
| <a id="done"></a> `done` | `boolean` | True for the final emission. |
|
|
25
|
+
Re-exports [MULTI_VALUE_OPS](pyric-ui-firestore-reference-api.md#multi_value_ops)
|
|
82
26
|
|
|
83
27
|
***
|
|
84
28
|
|
|
85
|
-
<a id="
|
|
86
|
-
|
|
87
|
-
### SubscriptionState
|
|
88
|
-
|
|
89
|
-
#### Type Parameters
|
|
90
|
-
|
|
91
|
-
| Type Parameter |
|
|
92
|
-
| :------ |
|
|
93
|
-
| `T` |
|
|
29
|
+
<a id="query_ops"></a>
|
|
94
30
|
|
|
95
|
-
|
|
31
|
+
### QUERY\_OPS
|
|
96
32
|
|
|
97
|
-
|
|
98
|
-
| :------ | :------ |
|
|
99
|
-
| <a id="data"></a> `data` | `T` |
|
|
100
|
-
| <a id="error"></a> `error` | `Error` |
|
|
101
|
-
| <a id="isloading"></a> `isLoading` | `boolean` |
|
|
33
|
+
Re-exports [QUERY_OPS](pyric-ui-firestore-reference-api.md#query_ops)
|
|
102
34
|
|
|
103
35
|
***
|
|
104
36
|
|
|
105
|
-
<a id="
|
|
106
|
-
|
|
107
|
-
### UseCollectionListOptions
|
|
37
|
+
<a id="querybuilderactions"></a>
|
|
108
38
|
|
|
109
|
-
|
|
39
|
+
### QueryBuilderActions
|
|
110
40
|
|
|
111
|
-
|
|
112
|
-
| :------ | :------ | :------ |
|
|
113
|
-
| <a id="firestore"></a> `firestore` | `Firestore` | - |
|
|
114
|
-
| <a id="listcollections"></a> `listCollections` | (`firestore`: `Firestore`, `parent`: `any`) => `Promise`\<`CollectionReference`[]\> | Injected collection-listing function. The library doesn't ship a default — the modular Web SDK doesn't expose `listCollections` on the client. Sandbox-backed apps usually wire `pyric/sandbox`'s in-process listing; production apps either pass a known list (e.g. from a schema) or call a server proxy. |
|
|
115
|
-
| <a id="parent"></a> `parent?` | `any` | Parent document, or `null`/`undefined` for root collections. |
|
|
41
|
+
Re-exports [QueryBuilderActions](pyric-ui-firestore-reference-api.md#querybuilderactions)
|
|
116
42
|
|
|
117
43
|
***
|
|
118
44
|
|
|
119
|
-
<a id="
|
|
120
|
-
|
|
121
|
-
### UseCollectionListResult
|
|
45
|
+
<a id="querybuilderstate"></a>
|
|
122
46
|
|
|
123
|
-
|
|
47
|
+
### QueryBuilderState
|
|
124
48
|
|
|
125
|
-
|
|
126
|
-
| :------ | :------ | :------ |
|
|
127
|
-
| <a id="collections"></a> `collections` | `CollectionReference`[] | - |
|
|
128
|
-
| <a id="createcollection"></a> `createCollection` | (`collectionId`: `string`, `firstDoc`: \{ `data`: `Record`\<`string`, `unknown`\>; `id`: `string`; \}) => `Promise`\<`DocumentReference`\> | Create a new collection by writing its first document. Firestore collections don't exist independently of their documents — `setDoc` on the first child path materializes the collection. |
|
|
129
|
-
| <a id="error-1"></a> `error` | `Error` | - |
|
|
130
|
-
| <a id="isloading-1"></a> `isLoading` | `boolean` | - |
|
|
131
|
-
| <a id="refresh"></a> `refresh` | () => `void` | Re-run the listing function. |
|
|
49
|
+
Re-exports [QueryBuilderState](pyric-ui-firestore-reference-api.md#querybuilderstate)
|
|
132
50
|
|
|
133
51
|
***
|
|
134
52
|
|
|
135
|
-
<a id="
|
|
136
|
-
|
|
137
|
-
### UseDocumentEditorOptions
|
|
53
|
+
<a id="querycondition"></a>
|
|
138
54
|
|
|
139
|
-
|
|
55
|
+
### QueryCondition
|
|
140
56
|
|
|
141
|
-
|
|
142
|
-
| :------ | :------ | :------ |
|
|
143
|
-
| <a id="initial"></a> `initial?` | `Record`\<`string`, `unknown`\> | Initial document data — the same shape a `DocumentSnapshot.data()` call returns. |
|
|
57
|
+
Re-exports [QueryCondition](pyric-ui-firestore-reference-api.md#querycondition)
|
|
144
58
|
|
|
145
59
|
***
|
|
146
60
|
|
|
147
|
-
<a id="
|
|
148
|
-
|
|
149
|
-
### UseDocumentEditorResult
|
|
150
|
-
|
|
151
|
-
#### Extends
|
|
152
|
-
|
|
153
|
-
- `DocumentEditorState`
|
|
61
|
+
<a id="queryop"></a>
|
|
154
62
|
|
|
155
|
-
|
|
63
|
+
### QueryOp
|
|
156
64
|
|
|
157
|
-
|
|
158
|
-
| :------ | :------ | :------ |
|
|
159
|
-
| <a id="addarrayentry"></a> `addArrayEntry` | (`parentId`: `string`, `childType`: `FieldType`) => `void` | Append a child to an array. Nested arrays are silently rejected by the reducer (Firestore disallows them). |
|
|
160
|
-
| <a id="addmapentry"></a> `addMapEntry` | (`parentId`: `string`, `key`: `string`, `childType`: `FieldType`) => `void` | Append a child to a map. |
|
|
161
|
-
| <a id="dispatch"></a> `dispatch` | (`action`: `DocumentEditorAction`) => `void` | Raw dispatch — drops to the reducer-action surface. Prefer the named helpers below. |
|
|
162
|
-
| <a id="errorcount"></a> `errorCount` | `number` | Count of nodes with an active `error`. Derived after every action; the reducer keeps it in state to avoid a tree walk on every render. |
|
|
163
|
-
| <a id="initial-1"></a> `initial` | `EditorTree` | Frozen copy of the tree at construction. `reset` restores from here; `isDirty` is computed by comparing serializations. |
|
|
164
|
-
| <a id="isdirty"></a> `isDirty` | `boolean` | `true` once any modifying action has fired since the last `reset`. Cleared by `reset`. Does NOT clear when the user manually re-enters the original values — checking that would require a full serialization comparison on every dispatch. |
|
|
165
|
-
| <a id="isvalid"></a> `isValid` | `boolean` | Convenience: `errorCount === 0`. |
|
|
166
|
-
| <a id="remove"></a> `remove` | (`nodeId`: `string`) => `void` | Remove a node (and all its descendants). Removing the root is a no-op. |
|
|
167
|
-
| <a id="replacedata"></a> `replaceData` | (`data`: `Record`\<`string`, `unknown`\>) => `void` | Replace the editor with a newly delivered snapshot and adopt it as the clean baseline. Intended for live document viewers. |
|
|
168
|
-
| <a id="reset-1"></a> `reset` | () => `void` | Restore the tree to its initial state. Clears `isDirty`. |
|
|
169
|
-
| <a id="setkey"></a> `setKey` | (`nodeId`: `string`, `key`: `string`) => `void` | Set a map-child's key. |
|
|
170
|
-
| <a id="settype"></a> `setType` | (`nodeId`: `string`, `newType`: `FieldType`) => `void` | Switch a node's type. Map/array nodes drop their children. |
|
|
171
|
-
| <a id="setvalue"></a> `setValue` | (`nodeId`: `string`, `value`: `unknown`) => `void` | Update a leaf value. |
|
|
172
|
-
| <a id="todata"></a> `toData` | () => `Record`\<`string`, `unknown`\> | Serialize the tree back to a Firestore-shaped object suitable for `setDoc` / `updateDoc`. |
|
|
173
|
-
| <a id="touch"></a> `touch` | (`nodeId`: `string`) => `void` | Mark one node touched (dispatch on blur). Gates error display — a freshly-added row stays quiet until the user leaves it. |
|
|
174
|
-
| <a id="touchall"></a> `touchAll` | () => `void` | Mark every node touched (dispatch on a submit attempt) so any hidden errors surface at once. |
|
|
175
|
-
| <a id="tree"></a> `tree` | `EditorTree` | - |
|
|
65
|
+
Re-exports [QueryOp](pyric-ui-firestore-reference-api.md#queryop)
|
|
176
66
|
|
|
177
67
|
***
|
|
178
68
|
|
|
179
|
-
<a id="
|
|
180
|
-
|
|
181
|
-
### UseDocumentListOptions
|
|
69
|
+
<a id="recursivedeleteimpl"></a>
|
|
182
70
|
|
|
183
|
-
|
|
71
|
+
### RecursiveDeleteImpl
|
|
184
72
|
|
|
185
|
-
|
|
186
|
-
| :------ | :------ | :------ |
|
|
187
|
-
| <a id="collection"></a> `collection` | `CollectionReference` | - |
|
|
188
|
-
| <a id="mode"></a> `mode?` | `"paged"` \| `"live"` | `paged` preserves the historical get-based cursor behavior. `live` keeps the currently requested window under an `onSnapshot` subscription and grows that window when `loadMore` is requested. Default `paged`. |
|
|
189
|
-
| <a id="pagesize"></a> `pageSize?` | `number` | Page size for cursor-based pagination. Default 50. |
|
|
190
|
-
| <a id="query"></a> `query?` | `Query` | Optional filter / sort. If omitted, the raw collection is used. |
|
|
73
|
+
Re-exports [RecursiveDeleteImpl](pyric-ui-firestore-reference-api.md#recursivedeleteimpl)
|
|
191
74
|
|
|
192
75
|
***
|
|
193
76
|
|
|
194
|
-
<a id="
|
|
195
|
-
|
|
196
|
-
### UseDocumentListResult
|
|
77
|
+
<a id="recursivedeleteprogress"></a>
|
|
197
78
|
|
|
198
|
-
|
|
79
|
+
### RecursiveDeleteProgress
|
|
199
80
|
|
|
200
|
-
|
|
201
|
-
| :------ | :------ | :------ |
|
|
202
|
-
| <a id="createdocument"></a> `createDocument` | (`id`: `string`, `data`: `Record`\<`string`, `unknown`\>, `opts?`: \{ `onExisting?`: `"overwrite"` \| `"fail"`; \}) => `Promise`\<`DocumentReference`\> | Create a document. If `id` is null, Firestore generates one via `addDoc`. With `onExisting: 'fail'` (CREATE semantics, the admin `create()` analog) an id that already exists rejects with `code: 'already-exists'` instead of silently overwriting — checked against the BACKEND (a `getDoc` probe), not any loaded page, so it is honest beyond pagination. Default: 'overwrite' (plain `setDoc`, the historical behavior). |
|
|
203
|
-
| <a id="deletedocument"></a> `deleteDocument` | (`ref`: `DocumentReference`) => `Promise`\<`void`\> | - |
|
|
204
|
-
| <a id="documents"></a> `documents` | `QueryDocumentSnapshot`[] | - |
|
|
205
|
-
| <a id="error-2"></a> `error` | `Error` | - |
|
|
206
|
-
| <a id="hasmore"></a> `hasMore` | `boolean` | True if there might be another page. The hook tracks this via the last fetch's length === pageSize. |
|
|
207
|
-
| <a id="isloading-2"></a> `isLoading` | `boolean` | - |
|
|
208
|
-
| <a id="loadmore"></a> `loadMore` | () => `void` | Fetch the next page; live mode grows and re-establishes its window. |
|
|
209
|
-
| <a id="refresh-1"></a> `refresh` | () => `void` | Re-establish the active read/subscription. Useful after the consumer mutates data outside this hook. |
|
|
210
|
-
| <a id="subscriptiongeneration"></a> `subscriptionGeneration` | `number` | Identifies the active live subscription. Consumers that diff result snapshots can include this in their scope so a re-subscription (including load-more) establishes a silent baseline instead of looking like writes. |
|
|
81
|
+
Re-exports [RecursiveDeleteProgress](pyric-ui-firestore-reference-api.md#recursivedeleteprogress)
|
|
211
82
|
|
|
212
83
|
***
|
|
213
84
|
|
|
214
|
-
<a id="
|
|
215
|
-
|
|
216
|
-
### UseDocumentSubcollectionsOptions
|
|
85
|
+
<a id="subscriptionstate"></a>
|
|
217
86
|
|
|
218
|
-
|
|
87
|
+
### SubscriptionState
|
|
219
88
|
|
|
220
|
-
|
|
221
|
-
| :------ | :------ | :------ |
|
|
222
|
-
| <a id="documentref"></a> `documentRef` | `any` | The document whose subcollections to list. When `null`/`undefined` the hook stays idle (empty, not loading) — used when the preview has no ref to drill from. |
|
|
223
|
-
| <a id="firestore-1"></a> `firestore` | `Firestore` | - |
|
|
224
|
-
| <a id="listsubcollections"></a> `listSubcollections` | [`ListSubcollections`](#listsubcollections-1) | - |
|
|
89
|
+
Re-exports [SubscriptionState](pyric-ui-firestore-reference-api.md#subscriptionstate)
|
|
225
90
|
|
|
226
91
|
***
|
|
227
92
|
|
|
228
|
-
<a id="
|
|
229
|
-
|
|
230
|
-
### UseDocumentSubcollectionsResult
|
|
93
|
+
<a id="usecollectionlist"></a>
|
|
231
94
|
|
|
232
|
-
|
|
95
|
+
### useCollectionList
|
|
233
96
|
|
|
234
|
-
|
|
235
|
-
| :------ | :------ |
|
|
236
|
-
| <a id="error-3"></a> `error` | `Error` |
|
|
237
|
-
| <a id="isloading-3"></a> `isLoading` | `boolean` |
|
|
238
|
-
| <a id="subcollections"></a> `subcollections` | `CollectionReference`[] |
|
|
97
|
+
Re-exports [useCollectionList](pyric-ui-firestore-reference-api.md#usecollectionlist)
|
|
239
98
|
|
|
240
99
|
***
|
|
241
100
|
|
|
242
|
-
<a id="
|
|
243
|
-
|
|
244
|
-
### UseQueryBuilderOptions
|
|
101
|
+
<a id="usecollectionlistoptions"></a>
|
|
245
102
|
|
|
246
|
-
|
|
103
|
+
### UseCollectionListOptions
|
|
247
104
|
|
|
248
|
-
|
|
249
|
-
| :------ | :------ | :------ |
|
|
250
|
-
| <a id="initial-2"></a> `initial?` | `Partial`\<[`QueryBuilderState`](#querybuilderstate)\> | Pre-populate the builder. |
|
|
105
|
+
Re-exports [UseCollectionListOptions](pyric-ui-firestore-reference-api.md#usecollectionlistoptions)
|
|
251
106
|
|
|
252
107
|
***
|
|
253
108
|
|
|
254
|
-
<a id="
|
|
255
|
-
|
|
256
|
-
### UseRecursiveDeleteResult
|
|
109
|
+
<a id="usecollectionlistresult"></a>
|
|
257
110
|
|
|
258
|
-
|
|
111
|
+
### UseCollectionListResult
|
|
259
112
|
|
|
260
|
-
|
|
261
|
-
| :------ | :------ | :------ |
|
|
262
|
-
| <a id="delete"></a> `delete` | (`target`: `any`) => `Promise`\<`void`\> | Run the delete. Resolves when the iterator signals `done`. |
|
|
263
|
-
| <a id="error-4"></a> `error` | `Error` | Error thrown by the iterator, if any. Cleared at the start of the next call. |
|
|
264
|
-
| <a id="isrunning"></a> `isRunning` | `boolean` | True while an iteration is in flight. |
|
|
265
|
-
| <a id="progress"></a> `progress` | `number` | Number of nodes deleted in the current/last run. |
|
|
113
|
+
Re-exports [UseCollectionListResult](pyric-ui-firestore-reference-api.md#usecollectionlistresult)
|
|
266
114
|
|
|
267
115
|
***
|
|
268
116
|
|
|
269
|
-
<a id="
|
|
270
|
-
|
|
271
|
-
### UseReferencePickerOptions
|
|
117
|
+
<a id="usedocumenteditor"></a>
|
|
272
118
|
|
|
273
|
-
|
|
119
|
+
### useDocumentEditor
|
|
274
120
|
|
|
275
|
-
|
|
276
|
-
| :------ | :------ | :------ |
|
|
277
|
-
| <a id="firestore-2"></a> `firestore` | `Firestore` | - |
|
|
278
|
-
| <a id="initialpath"></a> `initialPath?` | `string` | Initial value to pre-populate the text input + parse. |
|
|
279
|
-
| <a id="listcollections-1"></a> `listCollections` | (`firestore`: `Firestore`, `parent`: `any`) => `Promise`\<`CollectionReference`[]\> | Lister for subcollections under a parent (or root when `parent == null`). The library does not ship a default — see `useCollectionList` for the same rationale (the modular Web SDK can't enumerate collections client-side). |
|
|
280
|
-
| <a id="pagesize-1"></a> `pageSize?` | `number` | Default page size for the document list when browsing inside a collection. Default 20. |
|
|
121
|
+
Re-exports [useDocumentEditor](pyric-ui-firestore-reference-api.md#usedocumenteditor)
|
|
281
122
|
|
|
282
123
|
***
|
|
283
124
|
|
|
284
|
-
<a id="
|
|
285
|
-
|
|
286
|
-
### UseReferencePickerResult
|
|
287
|
-
|
|
288
|
-
#### Properties
|
|
289
|
-
|
|
290
|
-
| Property | Type | Description |
|
|
291
|
-
| :------ | :------ | :------ |
|
|
292
|
-
| <a id="browselocation"></a> `browseLocation` | [`BrowseLocation`](#browselocation-1) | Current browse position in the tree. |
|
|
293
|
-
| <a id="candrillback"></a> `canDrillBack` | `boolean` | Whether `drillBack` has anywhere to go. |
|
|
294
|
-
| <a id="clear"></a> `clear` | () => `void` | Clear the path input + reset browse to root. |
|
|
295
|
-
| <a id="collections-1"></a> `collections` | `CollectionReference`[] | Collections available at the current browse level. Populated when `browseLocation` is `root` or `document`. |
|
|
296
|
-
| <a id="documents-1"></a> `documents` | `QueryDocumentSnapshot`[] | First page of documents in the current collection — populated when `browseLocation.kind === 'collection'`. |
|
|
297
|
-
| <a id="drillback"></a> `drillBack` | () => `void` | Step back one level. No-op when at root. |
|
|
298
|
-
| <a id="drillintocollection"></a> `drillIntoCollection` | (`ref`: `CollectionReference`) => `void` | Drill into a collection — fetches its first page of documents. |
|
|
299
|
-
| <a id="drillintodocument"></a> `drillIntoDocument` | (`ref`: `DocumentReference`) => `void` | Drill into a document — fetches its subcollections. |
|
|
300
|
-
| <a id="error-5"></a> `error` | `string` | Parse error, or `null` when valid. |
|
|
301
|
-
| <a id="isloading-4"></a> `isLoading` | `boolean` | True while a fetch is in flight. |
|
|
302
|
-
| <a id="pathinput"></a> `pathInput` | `string` | Current text input value. |
|
|
303
|
-
| <a id="pick"></a> `pick` | (`ref`: `DocumentReference`) => `void` | Commit a chosen reference. Updates `pathInput` (and therefore the parsed `reference`). |
|
|
304
|
-
| <a id="reference"></a> `reference` | `any` | Validated `DocumentReference` parsed from `pathInput`, or `null` when the path is empty / invalid. |
|
|
305
|
-
| <a id="setpathinput"></a> `setPathInput` | (`path`: `string`) => `void` | Set the text-input value. Parses on every change. |
|
|
306
|
-
|
|
307
|
-
## Type Aliases
|
|
308
|
-
|
|
309
|
-
<a id="browselocation-1"></a>
|
|
125
|
+
<a id="usedocumenteditoroptions"></a>
|
|
310
126
|
|
|
311
|
-
###
|
|
127
|
+
### UseDocumentEditorOptions
|
|
312
128
|
|
|
313
|
-
|
|
314
|
-
type BrowseLocation =
|
|
315
|
-
| {
|
|
316
|
-
kind: "root";
|
|
317
|
-
}
|
|
318
|
-
| {
|
|
319
|
-
kind: "document";
|
|
320
|
-
ref: DocumentReference;
|
|
321
|
-
}
|
|
322
|
-
| {
|
|
323
|
-
kind: "collection";
|
|
324
|
-
ref: CollectionReference;
|
|
325
|
-
};
|
|
326
|
-
```
|
|
129
|
+
Re-exports [UseDocumentEditorOptions](pyric-ui-firestore-reference-api.md#usedocumenteditoroptions)
|
|
327
130
|
|
|
328
131
|
***
|
|
329
132
|
|
|
330
|
-
<a id="
|
|
331
|
-
|
|
332
|
-
### ListSubcollections()
|
|
333
|
-
|
|
334
|
-
```ts
|
|
335
|
-
type ListSubcollections = (firestore: Firestore, parent: DocumentReference) => Promise<CollectionReference[]>;
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
Lister for a document's own subcollections. Same injected-lister
|
|
339
|
-
shape as `useCollectionList` / `ReferencePicker` use — the modular
|
|
340
|
-
Web SDK doesn't expose a native `listCollections` on the client, so
|
|
341
|
-
the caller wires it (sandbox in-process listing, a server proxy, or
|
|
342
|
-
a known schema list).
|
|
343
|
-
|
|
344
|
-
#### Parameters
|
|
345
|
-
|
|
346
|
-
| Parameter | Type |
|
|
347
|
-
| :------ | :------ |
|
|
348
|
-
| `firestore` | `Firestore` |
|
|
349
|
-
| `parent` | `DocumentReference` |
|
|
133
|
+
<a id="usedocumenteditorresult"></a>
|
|
350
134
|
|
|
351
|
-
|
|
135
|
+
### UseDocumentEditorResult
|
|
352
136
|
|
|
353
|
-
|
|
137
|
+
Re-exports [UseDocumentEditorResult](pyric-ui-firestore-reference-api.md#usedocumenteditorresult)
|
|
354
138
|
|
|
355
139
|
***
|
|
356
140
|
|
|
357
|
-
<a id="
|
|
141
|
+
<a id="usedocumentlist"></a>
|
|
358
142
|
|
|
359
|
-
###
|
|
143
|
+
### useDocumentList
|
|
360
144
|
|
|
361
|
-
|
|
362
|
-
type QueryOp = WhereFilterOp;
|
|
363
|
-
```
|
|
145
|
+
Re-exports [useDocumentList](pyric-ui-firestore-reference-api.md#usedocumentlist)
|
|
364
146
|
|
|
365
147
|
***
|
|
366
148
|
|
|
367
|
-
<a id="
|
|
368
|
-
|
|
369
|
-
### UseQueryBuilderResult
|
|
370
|
-
|
|
371
|
-
```ts
|
|
372
|
-
type UseQueryBuilderResult = QueryBuilderState & QueryBuilderActions;
|
|
373
|
-
```
|
|
374
|
-
|
|
375
|
-
## Variables
|
|
376
|
-
|
|
377
|
-
<a id="multi_value_ops"></a>
|
|
378
|
-
|
|
379
|
-
### MULTI\_VALUE\_OPS
|
|
149
|
+
<a id="usedocumentlistoptions"></a>
|
|
380
150
|
|
|
381
|
-
|
|
382
|
-
const MULTI_VALUE_OPS: ReadonlySet<QueryOp>;
|
|
383
|
-
```
|
|
151
|
+
### UseDocumentListOptions
|
|
384
152
|
|
|
385
|
-
|
|
386
|
-
bundled <QueryBuilder> parses the input as JSON for these.
|
|
153
|
+
Re-exports [UseDocumentListOptions](pyric-ui-firestore-reference-api.md#usedocumentlistoptions)
|
|
387
154
|
|
|
388
155
|
***
|
|
389
156
|
|
|
390
|
-
<a id="
|
|
391
|
-
|
|
392
|
-
### QUERY\_OPS
|
|
393
|
-
|
|
394
|
-
```ts
|
|
395
|
-
const QUERY_OPS: readonly QueryOp[];
|
|
396
|
-
```
|
|
397
|
-
|
|
398
|
-
## Functions
|
|
399
|
-
|
|
400
|
-
<a id="usecollectionlist"></a>
|
|
401
|
-
|
|
402
|
-
### useCollectionList()
|
|
403
|
-
|
|
404
|
-
```ts
|
|
405
|
-
function useCollectionList(__namedParameters: UseCollectionListOptions): UseCollectionListResult;
|
|
406
|
-
```
|
|
407
|
-
|
|
408
|
-
Operational read + create for collections under a parent (or root).
|
|
409
|
-
Listing is injected because the modular Web SDK doesn't expose a
|
|
410
|
-
native `listCollections` on the client — see options docs.
|
|
411
|
-
|
|
412
|
-
#### Parameters
|
|
413
|
-
|
|
414
|
-
| Parameter | Type |
|
|
415
|
-
| :------ | :------ |
|
|
416
|
-
| `__namedParameters` | [`UseCollectionListOptions`](#usecollectionlistoptions) |
|
|
157
|
+
<a id="usedocumentlistresult"></a>
|
|
417
158
|
|
|
418
|
-
|
|
159
|
+
### UseDocumentListResult
|
|
419
160
|
|
|
420
|
-
[
|
|
161
|
+
Re-exports [UseDocumentListResult](pyric-ui-firestore-reference-api.md#usedocumentlistresult)
|
|
421
162
|
|
|
422
163
|
***
|
|
423
164
|
|
|
424
|
-
<a id="
|
|
425
|
-
|
|
426
|
-
### useDocumentEditor()
|
|
427
|
-
|
|
428
|
-
```ts
|
|
429
|
-
function useDocumentEditor(options?: UseDocumentEditorOptions): UseDocumentEditorResult;
|
|
430
|
-
```
|
|
431
|
-
|
|
432
|
-
Headless document editor. Owns the entire edit state for one
|
|
433
|
-
document via a pure reducer. Consumers either render the bundled
|
|
434
|
-
`<DocumentEditor>` compound component over this hook, or render
|
|
435
|
-
their own tree using the returned state.
|
|
436
|
-
|
|
437
|
-
The hook builds its tree from `initial` on first mount. Changing
|
|
438
|
-
`initial` later does NOT rebuild the tree; live viewers explicitly call
|
|
439
|
-
`replaceData()` when a newer snapshot should become the clean baseline.
|
|
440
|
-
This matches the firebase-tools-ui pattern of treating the editor as a
|
|
441
|
-
stateful workspace while still allowing snapshot-driven reconciliation.
|
|
442
|
-
|
|
443
|
-
#### Parameters
|
|
444
|
-
|
|
445
|
-
| Parameter | Type |
|
|
446
|
-
| :------ | :------ |
|
|
447
|
-
| `options?` | [`UseDocumentEditorOptions`](#usedocumenteditoroptions) |
|
|
165
|
+
<a id="usedocumentsubcollections"></a>
|
|
448
166
|
|
|
449
|
-
|
|
167
|
+
### useDocumentSubcollections
|
|
450
168
|
|
|
451
|
-
[
|
|
169
|
+
Re-exports [useDocumentSubcollections](pyric-ui-firestore-reference-api.md#usedocumentsubcollections)
|
|
452
170
|
|
|
453
171
|
***
|
|
454
172
|
|
|
455
|
-
<a id="
|
|
456
|
-
|
|
457
|
-
### useDocumentList()
|
|
458
|
-
|
|
459
|
-
```ts
|
|
460
|
-
function useDocumentList(__namedParameters: UseDocumentListOptions): UseDocumentListResult;
|
|
461
|
-
```
|
|
462
|
-
|
|
463
|
-
Paginated document list with two acquisition strategies. The default
|
|
464
|
-
`paged` mode uses `startAfter` and accumulates one-shot reads. `live` keeps
|
|
465
|
-
the requested prefix under one `onSnapshot` listener; loading more grows
|
|
466
|
-
that prefix and establishes a new subscription baseline.
|
|
467
|
-
|
|
468
|
-
#### Parameters
|
|
469
|
-
|
|
470
|
-
| Parameter | Type |
|
|
471
|
-
| :------ | :------ |
|
|
472
|
-
| `__namedParameters` | [`UseDocumentListOptions`](#usedocumentlistoptions) |
|
|
173
|
+
<a id="usedocumentsubcollectionsoptions"></a>
|
|
473
174
|
|
|
474
|
-
|
|
175
|
+
### UseDocumentSubcollectionsOptions
|
|
475
176
|
|
|
476
|
-
[
|
|
177
|
+
Re-exports [UseDocumentSubcollectionsOptions](pyric-ui-firestore-reference-api.md#usedocumentsubcollectionsoptions)
|
|
477
178
|
|
|
478
179
|
***
|
|
479
180
|
|
|
480
|
-
<a id="
|
|
481
|
-
|
|
482
|
-
### useDocumentSubcollections()
|
|
483
|
-
|
|
484
|
-
```ts
|
|
485
|
-
function useDocumentSubcollections(__namedParameters: UseDocumentSubcollectionsOptions): UseDocumentSubcollectionsResult;
|
|
486
|
-
```
|
|
487
|
-
|
|
488
|
-
Read a single document's subcollection list. A thin specialization of
|
|
489
|
-
the `useCollectionList` pattern, scoped to one parent document and
|
|
490
|
-
read-only (no create — that lives in `useCollectionList`).
|
|
491
|
-
|
|
492
|
-
#### Parameters
|
|
493
|
-
|
|
494
|
-
| Parameter | Type |
|
|
495
|
-
| :------ | :------ |
|
|
496
|
-
| `__namedParameters` | [`UseDocumentSubcollectionsOptions`](#usedocumentsubcollectionsoptions) |
|
|
181
|
+
<a id="usedocumentsubcollectionsresult"></a>
|
|
497
182
|
|
|
498
|
-
|
|
183
|
+
### UseDocumentSubcollectionsResult
|
|
499
184
|
|
|
500
|
-
[
|
|
185
|
+
Re-exports [UseDocumentSubcollectionsResult](pyric-ui-firestore-reference-api.md#usedocumentsubcollectionsresult)
|
|
501
186
|
|
|
502
187
|
***
|
|
503
188
|
|
|
504
189
|
<a id="usefirestorecollection"></a>
|
|
505
190
|
|
|
506
|
-
### useFirestoreCollection
|
|
507
|
-
|
|
508
|
-
```ts
|
|
509
|
-
function useFirestoreCollection(query: any): SubscriptionState<QuerySnapshot>;
|
|
510
|
-
```
|
|
191
|
+
### useFirestoreCollection
|
|
511
192
|
|
|
512
|
-
|
|
513
|
-
modular surface, including any `CollectionReference`, which extends
|
|
514
|
-
`Query`). Returns `{ data, error, isLoading }`.
|
|
515
|
-
|
|
516
|
-
Null/undefined query short-circuits to idle. Cleanup is automatic
|
|
517
|
-
on unmount or query change. `Query` objects don't have a stable
|
|
518
|
-
structural identity, so the consumer must memoize at the call site
|
|
519
|
-
— pass the same instance across renders to avoid re-subscribing.
|
|
520
|
-
|
|
521
|
-
#### Parameters
|
|
522
|
-
|
|
523
|
-
| Parameter | Type |
|
|
524
|
-
| :------ | :------ |
|
|
525
|
-
| `query` | `any` |
|
|
526
|
-
|
|
527
|
-
#### Returns
|
|
528
|
-
|
|
529
|
-
[`SubscriptionState`](#subscriptionstate)\<`QuerySnapshot`\>
|
|
193
|
+
Re-exports [useFirestoreCollection](pyric-ui-firestore-reference-api.md#usefirestorecollection)
|
|
530
194
|
|
|
531
195
|
***
|
|
532
196
|
|
|
533
197
|
<a id="usefirestoredoc"></a>
|
|
534
198
|
|
|
535
|
-
### useFirestoreDoc
|
|
536
|
-
|
|
537
|
-
```ts
|
|
538
|
-
function useFirestoreDoc(ref: any): SubscriptionState<DocumentSnapshot>;
|
|
539
|
-
```
|
|
199
|
+
### useFirestoreDoc
|
|
540
200
|
|
|
541
|
-
|
|
542
|
-
isLoading }`. Null/undefined ref short-circuits to an idle state
|
|
543
|
-
(`data: undefined, error: undefined, isLoading: false`) — useful
|
|
544
|
-
for conditional rendering before a ref is known.
|
|
201
|
+
Re-exports [useFirestoreDoc](pyric-ui-firestore-reference-api.md#usefirestoredoc)
|
|
545
202
|
|
|
546
|
-
|
|
547
|
-
the call site; this hook's effect re-runs on identity change.
|
|
548
|
-
|
|
549
|
-
#### Parameters
|
|
203
|
+
***
|
|
550
204
|
|
|
551
|
-
|
|
552
|
-
| :------ | :------ |
|
|
553
|
-
| `ref` | `any` |
|
|
205
|
+
<a id="usequerybuilder"></a>
|
|
554
206
|
|
|
555
|
-
|
|
207
|
+
### useQueryBuilder
|
|
556
208
|
|
|
557
|
-
[
|
|
209
|
+
Re-exports [useQueryBuilder](pyric-ui-firestore-reference-api.md#usequerybuilder)
|
|
558
210
|
|
|
559
211
|
***
|
|
560
212
|
|
|
561
|
-
<a id="
|
|
562
|
-
|
|
563
|
-
### useQueryBuilder()
|
|
213
|
+
<a id="usequerybuilderoptions"></a>
|
|
564
214
|
|
|
565
|
-
|
|
566
|
-
function useQueryBuilder(options?: UseQueryBuilderOptions): UseQueryBuilderResult;
|
|
567
|
-
```
|
|
215
|
+
### UseQueryBuilderOptions
|
|
568
216
|
|
|
569
|
-
|
|
570
|
-
`and()`/`or()` groups in v1. Consumers compose the state into a
|
|
571
|
-
Firestore `Query` via `buildQuery(base)` and feed that into
|
|
572
|
-
`useDocumentList` / `useFirestoreCollection`.
|
|
217
|
+
Re-exports [UseQueryBuilderOptions](pyric-ui-firestore-reference-api.md#usequerybuilderoptions)
|
|
573
218
|
|
|
574
|
-
|
|
219
|
+
***
|
|
575
220
|
|
|
576
|
-
|
|
577
|
-
| :------ | :------ |
|
|
578
|
-
| `options?` | [`UseQueryBuilderOptions`](#usequerybuilderoptions) |
|
|
221
|
+
<a id="usequerybuilderresult"></a>
|
|
579
222
|
|
|
580
|
-
|
|
223
|
+
### UseQueryBuilderResult
|
|
581
224
|
|
|
582
|
-
[
|
|
225
|
+
Re-exports [UseQueryBuilderResult](pyric-ui-firestore-reference-api.md#usequerybuilderresult)
|
|
583
226
|
|
|
584
227
|
***
|
|
585
228
|
|
|
586
229
|
<a id="userecursivedelete"></a>
|
|
587
230
|
|
|
588
|
-
### useRecursiveDelete
|
|
589
|
-
|
|
590
|
-
```ts
|
|
591
|
-
function useRecursiveDelete(impl: RecursiveDeleteImpl): UseRecursiveDeleteResult;
|
|
592
|
-
```
|
|
593
|
-
|
|
594
|
-
Drive a [RecursiveDeleteImpl](#recursivedeleteimpl) from a React component. Tracks
|
|
595
|
-
progress + running state so the consumer can render a progress
|
|
596
|
-
indicator. Errors are caught and surfaced via the returned state,
|
|
597
|
-
not thrown.
|
|
231
|
+
### useRecursiveDelete
|
|
598
232
|
|
|
599
|
-
|
|
600
|
-
cancels and starts a new run) before a previous iteration
|
|
601
|
-
finishes, the older run's progress updates are dropped via a
|
|
602
|
-
generation token.
|
|
233
|
+
Re-exports [useRecursiveDelete](pyric-ui-firestore-reference-api.md#userecursivedelete)
|
|
603
234
|
|
|
604
|
-
|
|
235
|
+
***
|
|
605
236
|
|
|
606
|
-
|
|
607
|
-
| :------ | :------ |
|
|
608
|
-
| `impl` | [`RecursiveDeleteImpl`](#recursivedeleteimpl) |
|
|
237
|
+
<a id="userecursivedeleteresult"></a>
|
|
609
238
|
|
|
610
|
-
|
|
239
|
+
### UseRecursiveDeleteResult
|
|
611
240
|
|
|
612
|
-
[
|
|
241
|
+
Re-exports [UseRecursiveDeleteResult](pyric-ui-firestore-reference-api.md#userecursivedeleteresult)
|
|
613
242
|
|
|
614
243
|
***
|
|
615
244
|
|
|
616
245
|
<a id="usereferencepicker"></a>
|
|
617
246
|
|
|
618
|
-
### useReferencePicker
|
|
247
|
+
### useReferencePicker
|
|
619
248
|
|
|
620
|
-
|
|
621
|
-
function useReferencePicker(__namedParameters: UseReferencePickerOptions): UseReferencePickerResult;
|
|
622
|
-
```
|
|
249
|
+
Re-exports [useReferencePicker](pyric-ui-firestore-reference-api.md#usereferencepicker)
|
|
623
250
|
|
|
624
|
-
|
|
625
|
-
(root → collection → document → collection → ...), maintains a
|
|
626
|
-
separately-validated text-input path, and commits a chosen
|
|
627
|
-
reference via `pick`.
|
|
251
|
+
***
|
|
628
252
|
|
|
629
|
-
|
|
630
|
-
UI, or use the bundled `<ReferencePicker>` component.
|
|
253
|
+
<a id="usereferencepickeroptions"></a>
|
|
631
254
|
|
|
632
|
-
|
|
255
|
+
### UseReferencePickerOptions
|
|
633
256
|
|
|
634
|
-
|
|
635
|
-
| :------ | :------ |
|
|
636
|
-
| `__namedParameters` | [`UseReferencePickerOptions`](#usereferencepickeroptions) |
|
|
257
|
+
Re-exports [UseReferencePickerOptions](pyric-ui-firestore-reference-api.md#usereferencepickeroptions)
|
|
637
258
|
|
|
638
|
-
|
|
259
|
+
***
|
|
260
|
+
|
|
261
|
+
<a id="usereferencepickerresult"></a>
|
|
262
|
+
|
|
263
|
+
### UseReferencePickerResult
|
|
639
264
|
|
|
640
|
-
[
|
|
265
|
+
Re-exports [UseReferencePickerResult](pyric-ui-firestore-reference-api.md#usereferencepickerresult)
|