@notionhq/custom-blocks-dev-shell 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -18
- package/data/customers.json +286 -0
- package/data/meetings.json +519 -0
- package/data/people.json +171 -47
- package/data/projects.json +338 -0
- package/data/tasks.json +828 -38
- package/dist/assets/index-B4LAgGzW.css +2 -0
- package/dist/assets/index-CjUu48lJ.js +12 -0
- package/dist/index.html +3 -3
- package/dist-cli/cli/published-cli.js +1418 -912
- package/docs/bindings.md +16 -22
- package/docs/bridge/changelog.md +54 -15
- package/docs/bridge/protocol.md +152 -83
- package/docs/bridge/versioning.md +16 -4
- package/docs/data-sources.md +44 -31
- package/docs/host/README.md +26 -29
- package/docs/host/docs/compatibility.md +59 -31
- package/docs/host/docs/handlers.md +22 -15
- package/docs/host/docs/host-contract.md +71 -71
- package/docs/host/docs/lifecycle.md +64 -53
- package/package.json +1 -1
- package/data/radar.json +0 -87
- package/dist/assets/index-Do-x8yIt.css +0 -2
- package/dist/assets/index-Jy9OWV_k.js +0 -12
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# Host contract
|
|
2
2
|
|
|
3
3
|
`createCustomBlockHost(options: CustomBlockHostOptions)` returns a running `CustomBlockHost`.
|
|
4
|
-
`CustomBlockHostHandlers` connects that instance to application data and actions.
|
|
4
|
+
`CustomBlockHostHandlers` connects that instance to application data and actions. See
|
|
5
|
+
[Connection compatibility](compatibility.md) for protocol negotiation and version requirements.
|
|
5
6
|
|
|
6
7
|
Your application supplies authorized data and actions. The shared host owns initialization, message
|
|
7
8
|
validation, protocol compatibility, subscriptions, cancellation, and shutdown. Each host instance
|
|
@@ -9,29 +10,33 @@ belongs to one viewer. Stop the host and create a fresh host and iframe to chang
|
|
|
9
10
|
|
|
10
11
|
## Options and partial implementations
|
|
11
12
|
|
|
12
|
-
Required options are `
|
|
13
|
+
Required options are `instance`, `viewerId`, `getCurrentUser`, `theme`, `contrastMode`,
|
|
13
14
|
`containingPage`, `parent`, `iframe`, `sandboxUrl`, `manifestSource`, `getPersistedManifest`,
|
|
14
|
-
`onStatusChange`, `bindings`, and `handlers`. `
|
|
15
|
-
Optional settings are `onLog`, `minBridgeProtocolVersion`, `noConnectTimeoutMs`,
|
|
16
|
-
`initialStateTimeoutMs`, and `
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
For containing
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
15
|
+
`onStatusChange`, `bindings`, and `handlers`. `instance` and `viewerId` stay fixed for the instance.
|
|
16
|
+
Optional settings for this contract are `onLog`, `minBridgeProtocolVersion`, `noConnectTimeoutMs`,
|
|
17
|
+
`initialStateTimeoutMs`, `noInitResultTimeoutMs`, and `noReadyTimeoutMs`.
|
|
18
|
+
|
|
19
|
+
`theme`, `contrastMode`, `containingPage`, and `parent` accept `null` while unresolved. Supply
|
|
20
|
+
resolved values through `setTheme()`, `setContrastMode()`, `setContainingPage()`, and `setParent()`.
|
|
21
|
+
The host retains the latest values. Setup waits for theme and contrast mode, but not parent or
|
|
22
|
+
containing page values. Your application observes changes and calls the setters. Creating the host
|
|
23
|
+
does not subscribe to application state. See
|
|
24
|
+
[Manifest and initial state](lifecycle.md#manifest-and-initial-state) for loading and delivery.
|
|
25
|
+
|
|
26
|
+
For an accessible containing page, supply `displayMode`: `"full_page"`, `"side_peek"`, or
|
|
27
|
+
`"center_peek"`. Call `setContainingPage()` when the mode changes, even if the page ID is unchanged.
|
|
28
|
+
Use `full_page` outside peek presentation. It is also the default when the field is omitted.
|
|
29
|
+
Unavailable pages carry no display metadata.
|
|
30
|
+
|
|
31
|
+
Supply known initial failures through `parentError` and `containingPageError`, or report later
|
|
32
|
+
failures with `setParentError(error)` and `setContainingPageError(error)`. Errors carry `code`,
|
|
33
|
+
`message`, and `isRetryable`. Setup still succeeds. A later value setter clears the error. Use
|
|
34
|
+
unavailable values for resources the host cannot expose. Use errors when loading failed.
|
|
29
35
|
|
|
30
36
|
Every handler is required. `hostHandlerNotImplemented` accepts `getPage`, `createPage`,
|
|
31
37
|
`updatePage`, `getUser`, `listUsers`, `openPage`, `openExternalUrl`, and `subscribeToQuery`.
|
|
32
|
-
Failures from these operations leave initialization and unrelated operations available. The
|
|
33
|
-
current
|
|
34
|
-
`resize` has no error result and can do nothing for a fixed-size embed.
|
|
38
|
+
Failures from these operations leave initialization and unrelated operations available. The SDK
|
|
39
|
+
requests the current user profile and source metadata independently after setup acknowledgment.
|
|
35
40
|
|
|
36
41
|
A partial integration supplies an explicit wrapper using `hostHandlerNotImplemented`, which creates
|
|
37
42
|
a non-retryable `host_handler_not_implemented` error:
|
|
@@ -58,8 +63,14 @@ const host = createCustomBlockHost(options)
|
|
|
58
63
|
host.stop()
|
|
59
64
|
```
|
|
60
65
|
|
|
61
|
-
`resize` returns no result and sends no result message.
|
|
62
|
-
|
|
66
|
+
`resize` returns no result and sends no result message. Its handler can do nothing if the embed has
|
|
67
|
+
a fixed size. The application enforces authorization and obtains any required approval. Neither
|
|
68
|
+
manifest declarations nor bindings establish access.
|
|
69
|
+
|
|
70
|
+
Full user profiles require `name: string | null` and `avatar_url: string | null`. Use `null` when a
|
|
71
|
+
name is unavailable. Empty strings remain empty strings. The `makeBridgeUser` builder accepts an
|
|
72
|
+
omitted name and supplies `null` before validating the full profile. ID-only user references do not
|
|
73
|
+
promise profile fields.
|
|
63
74
|
|
|
64
75
|
## Handler inputs and results
|
|
65
76
|
|
|
@@ -74,9 +85,9 @@ Asynchronous providers receive `CustomBlockHostRequestContext` with an `AbortSig
|
|
|
74
85
|
sandbox message types and correlation IDs. Named domain arguments such as
|
|
75
86
|
`CustomBlockHostCreatePageArgs`, `CustomBlockHostUpdatePageArgs`, and `CustomBlockHostOpenPageArgs`
|
|
76
87
|
contain only operation data. Handlers receive those arguments combined with
|
|
77
|
-
`CustomBlockHostRequestContext
|
|
78
|
-
|
|
79
|
-
|
|
88
|
+
`CustomBlockHostRequestContext`, which supplies `signal`. Page operations include insertion rules,
|
|
89
|
+
properties, and appearance. Source and page operations use raw IDs. The SDK resolves data source
|
|
90
|
+
keys before sending requests.
|
|
80
91
|
|
|
81
92
|
| Handler | Additional input | Success payload |
|
|
82
93
|
| ----------------- | ---------------------------------- | --------------------------------------- |
|
|
@@ -90,12 +101,11 @@ Source and page operations use raw IDs. The SDK resolves data source keys before
|
|
|
90
101
|
| `openExternalUrl` | `url` | None |
|
|
91
102
|
|
|
92
103
|
`openPage` completes the requested action without echoing its input. The shared host includes the
|
|
93
|
-
requested page ID in the
|
|
104
|
+
requested page ID in the wire response.
|
|
94
105
|
|
|
95
|
-
|
|
96
|
-
`
|
|
97
|
-
`
|
|
98
|
-
synchronous.
|
|
106
|
+
Handlers that return results use promises. `CustomBlockHostHandler<Args, Payload>` combines domain
|
|
107
|
+
arguments with `CustomBlockHostRequestContext` and the shared result type. `subscribeToQuery` and
|
|
108
|
+
`resize` remain synchronous.
|
|
99
109
|
|
|
100
110
|
## Current viewer
|
|
101
111
|
|
|
@@ -105,14 +115,9 @@ contract.
|
|
|
105
115
|
|
|
106
116
|
`getCurrentUser({ signal })` is a required constructor callback returning a promise of a complete
|
|
107
117
|
`BridgeUser` profile directly, without a success envelope or separate field readers. The shared host
|
|
108
|
-
validates the profile and
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
Existing protocols require the full profile in `init`, so initialization invokes the callback and
|
|
113
|
-
waits for it. The callback may run before `connect` when the selected manifest is already available.
|
|
114
|
-
Changing this startup dependency requires a later minimal-init protocol. The host adds no retained
|
|
115
|
-
profile cache or new field-grant behavior.
|
|
118
|
+
validates the profile and checks its ID against `viewerId`. The host invokes the callback for each
|
|
119
|
+
`getCurrentUser` request. A rejected read, mismatched ID, or malformed profile returns a correlated
|
|
120
|
+
`unknown_error`. Diagnostics stay in the host log. The host does not cache the profile.
|
|
116
121
|
|
|
117
122
|
## Metadata and configuration
|
|
118
123
|
|
|
@@ -133,22 +138,20 @@ type CustomBlockHostBindings = {
|
|
|
133
138
|
}
|
|
134
139
|
```
|
|
135
140
|
|
|
136
|
-
The host validates configuration shape. `pages`
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
schema. Initialization and each configuration refresh read metadata independently. The host does not
|
|
141
|
-
reuse metadata promises across reads.
|
|
141
|
+
The host validates configuration shape. `pages` maps page keys to IDs, but the runtime does not use
|
|
142
|
+
those mappings to resolve page requests or include them in `init`. A `getDataSource` request reads
|
|
143
|
+
metadata for one source key declared in the manifest and configured in `dataSources`. The host
|
|
144
|
+
validates its property mappings before returning the binding. Metadata reads do not query rows.
|
|
142
145
|
|
|
143
146
|
`CustomBlockHostDataSourceState` is `{ status: "unavailable" }` or
|
|
144
147
|
`{ status: "available", dataSource: { dataSourceSchema, capabilities } }`. Capabilities contain
|
|
145
|
-
`read`, `create`, `update`, and `archive`.
|
|
146
|
-
|
|
147
|
-
|
|
148
|
+
`read`, `create`, `update`, and `archive`. The runtime does not send these flags to the sandbox. An
|
|
149
|
+
available source's metadata remains available even when `capabilities.read` is false. The
|
|
150
|
+
application handler remains responsible for enforcing viewer permissions on every operation.
|
|
148
151
|
|
|
149
|
-
Missing and
|
|
150
|
-
|
|
151
|
-
|
|
152
|
+
Missing sources and denied access both use `{ status: "unavailable" }`. A `getDataSource` request
|
|
153
|
+
for an unavailable source returns `data_source_inaccessible` without source metadata. Invalid
|
|
154
|
+
property mappings return a binding error.
|
|
152
155
|
|
|
153
156
|
## Queries and cancellation
|
|
154
157
|
|
|
@@ -156,15 +159,17 @@ an unavailable source to `{ inaccessible: true }` without a schema, pointer, or
|
|
|
156
159
|
optional `filter`, `sorts`, and `archive_status`, plus `limit`, `signal`, `onSnapshot`, and
|
|
157
160
|
`onError`. `archive_status` accepts `"active"`, `"archived"`, or `"all"`. See the
|
|
158
161
|
[query semantics](../../bridge/protocol.md#data-sources) for archive selection defaults. A
|
|
159
|
-
`CustomBlockHostQuerySnapshot` contains `items: BridgePage[]` and `
|
|
160
|
-
validates
|
|
162
|
+
`CustomBlockHostQuerySnapshot` contains `items: BridgePage[]`, `hasMore`, and optional `limitClamp`.
|
|
163
|
+
The application validates the limit and enforces its cap. The shared host validates filters and
|
|
164
|
+
sorts against the bound schema before starting the observer. See
|
|
165
|
+
[query limits](../../bridge/protocol.md#host-applied-query-limits) for the metadata contract.
|
|
161
166
|
|
|
162
167
|
The signal controls the subscription lifetime, including asynchronous setup. The application checks
|
|
163
168
|
for an already-aborted signal and cancels pending setup and observers on abort. Replacement,
|
|
164
169
|
unsubscribe, invalidation, non-retryable errors, and shutdown abort the signal. Retryable errors can
|
|
165
|
-
leave the observer active. Callbacks may run synchronously
|
|
166
|
-
|
|
167
|
-
returns its own unsubscribe function, which sends the cancellation request to the host.
|
|
170
|
+
leave the observer active. Callbacks may run synchronously. The host ignores late callbacks after
|
|
171
|
+
cancellation. There is no returned cleanup function or top-level query-unsubscribed callback. The
|
|
172
|
+
SDK returns its own unsubscribe function, which sends the cancellation request to the host.
|
|
168
173
|
|
|
169
174
|
`resize({ height })` requests an iframe height in CSS pixels. The application applies the height.
|
|
170
175
|
The [lifecycle reference](lifecycle.md#callbacks) describes when to size and reveal the iframe.
|
|
@@ -172,22 +177,17 @@ The [lifecycle reference](lifecycle.md#callbacks) describes when to size and rev
|
|
|
172
177
|
## Updates
|
|
173
178
|
|
|
174
179
|
`stop()`, `setTheme()`, `setContrastMode()`, `setParent()`, and `setContainingPage()` return `void`.
|
|
175
|
-
`setBindings()` and `refreshDataSource()` return promises of `CustomBlockHostHandlerResult
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
manifest is available, `setBindings()` stores the bindings and returns success. Initialization
|
|
187
|
-
validates those bindings later. Once the manifest is available, a successful update supplies the
|
|
188
|
-
metadata used for initialization, even if the initial metadata read failed while user loading was
|
|
189
|
-
pending. Malformed input to `setBindings()` rejects its promise with a schema validation error
|
|
190
|
-
rather than returning an error result.
|
|
180
|
+
`setBindings()` and `refreshDataSource()` return promises of `CustomBlockHostHandlerResult`.
|
|
181
|
+
|
|
182
|
+
`setBindings(nextBindings)` validates and stores the configuration without reading metadata.
|
|
183
|
+
`refreshDataSource({ dataSourceId })` requests a metadata refresh. Once the manifest is available,
|
|
184
|
+
both methods clear all cached source metadata, abort pending operations and queries, and notify the
|
|
185
|
+
sandbox with `dataSourcesInvalidated`. Neither method fetches replacement metadata. The next source
|
|
186
|
+
read validates its property mappings.
|
|
187
|
+
|
|
188
|
+
Invalidation affects every source, including unchanged bindings and sources other than the supplied
|
|
189
|
+
`dataSourceId`. Before the manifest is available, both methods return success without invalidation.
|
|
190
|
+
Malformed `setBindings()` input rejects with a schema validation error.
|
|
191
191
|
|
|
192
192
|
A successful configuration change cancels outstanding one-shot host operations, including unrelated
|
|
193
193
|
reads. A late completion returns non-retryable `host_state_changed`. A dispatched write may already
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Host initialization and lifecycle
|
|
2
2
|
|
|
3
|
-
The host prepares
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
The host prepares setup values and manages the connection until the iframe is removed. The
|
|
4
|
+
[embed example](../README.md#create-a-host) shows how to use the lifecycle callbacks. See
|
|
5
|
+
[Connection compatibility](compatibility.md) for protocol negotiation and version requirements.
|
|
6
6
|
|
|
7
7
|
## Manifest and initial state
|
|
8
8
|
|
|
@@ -18,52 +18,61 @@ messages and target outgoing messages. `CustomBlockManifestSource` selects the m
|
|
|
18
18
|
`CustomBlockHostHandlerResult` with either `{ status: "success", manifest }` or
|
|
19
19
|
`{ status: "error", error }`. The manifest follows `manifestSchema` from the protocol subpath. The
|
|
20
20
|
callback must not resolve to `null` or `undefined`. A definition that is still loading keeps the
|
|
21
|
-
promise pending
|
|
22
|
-
the manifest before
|
|
23
|
-
|
|
21
|
+
promise pending. A failed load returns an error result. The host validates the result and normalizes
|
|
22
|
+
the manifest before data reads. Omitted `dataSources` and each source's omitted `properties` default
|
|
23
|
+
to `{}`.
|
|
24
24
|
|
|
25
25
|
The sandbox loads independently and sends `connect`. In sandbox mode, the SDK reads the manifest
|
|
26
26
|
from JSON metadata injected into the local block HTML by dev tooling. The host validates the
|
|
27
|
-
declaration in `connect`. The
|
|
28
|
-
|
|
27
|
+
declaration in `connect`. The host does not wait for the unselected manifest source. Sandbox mode
|
|
28
|
+
does not fall back to the persisted manifest. The
|
|
29
29
|
[wire reference](../../bridge/protocol.md#initialization) describes the declaration and its
|
|
30
30
|
validation errors.
|
|
31
31
|
|
|
32
32
|
Supply initial `theme`, `contrastMode`, `containingPage`, and `parent` as required constructor
|
|
33
33
|
options, using `null` for values that have not loaded yet. Set resolved values with the
|
|
34
|
-
corresponding setters.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
corresponding setters.
|
|
35
|
+
|
|
36
|
+
Setup waits for the selected manifest, theme, and contrast mode. The host sends the fixed `instance`
|
|
37
|
+
identity, the manifest in `init.manifest`, and appearance values in `init.preferences`.
|
|
38
|
+
|
|
39
|
+
Parent and containing page values do not delay setup. After the sandbox acknowledges setup, the host
|
|
40
|
+
sends any resolved parent and containing page values. The host sends unresolved values when their
|
|
41
|
+
setters supply them, then sends later changes. Setters accept resolved values only. For
|
|
42
|
+
`containingPage`, `{ type: "unavailable" }` means that the containing page is inaccessible. It is
|
|
43
|
+
distinct from `null`, which means that the value has not loaded.
|
|
44
|
+
|
|
45
|
+
Profile and source metadata reads run independently after setup. Their failures do not fail setup or
|
|
46
|
+
unrelated operations. See [Current viewer](host-contract.md#current-viewer) and
|
|
47
|
+
[Metadata and configuration](host-contract.md#metadata-and-configuration) for the provider
|
|
48
|
+
contracts.
|
|
43
49
|
|
|
44
50
|
Errors from the selected manifest source retain their `code`, `message`, and `isRetryable`. A
|
|
45
|
-
missing sandbox declaration produces `manifest_unavailable`.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
Diagnostics go to `onLog("warn", payload)`. Stopping aborts preparation and suppresses late results
|
|
49
|
-
without a cancellation warning.
|
|
51
|
+
missing sandbox declaration produces `manifest_unavailable`. Unexpected exceptions or invalid
|
|
52
|
+
results during preparation produce `unknown_error`. Diagnostics go to `onLog("warn", payload)`.
|
|
53
|
+
Stopping aborts preparation and suppresses late results without a cancellation warning.
|
|
50
54
|
|
|
51
55
|
## Timeouts
|
|
52
56
|
|
|
53
|
-
| Option | Waits for | Default
|
|
54
|
-
| ----------------------- | ------------------------------------- |
|
|
55
|
-
| `noConnectTimeoutMs` | `connect` after the first iframe load | 5 seconds
|
|
56
|
-
| `initialStateTimeoutMs` | State preparation after `connect` | 5 seconds
|
|
57
|
-
| `noInitResultTimeoutMs` | `initResult` after `init` | 5 seconds
|
|
57
|
+
| Option | Waits for | Default | Failure code |
|
|
58
|
+
| ----------------------- | ------------------------------------- | ---------- | ----------------------- |
|
|
59
|
+
| `noConnectTimeoutMs` | `connect` after the first iframe load | 5 seconds | `no_connect` |
|
|
60
|
+
| `initialStateTimeoutMs` | State preparation after `connect` | 5 seconds | `initial_state_timeout` |
|
|
61
|
+
| `noInitResultTimeoutMs` | `initResult` after `init` | 5 seconds | `no_init_result` |
|
|
62
|
+
| `noReadyTimeoutMs` | `ready` after successful `initResult` | 60 seconds | `ready_timeout` |
|
|
63
|
+
|
|
64
|
+
`initialStateTimeoutMs` starts when the host accepts `connect`. It includes the remaining wait for
|
|
65
|
+
the selected manifest, theme, and contrast mode. Parent and containing page loading do not count
|
|
66
|
+
toward this timeout.
|
|
58
67
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
68
|
+
A successful `initResult` permits data operations while the host waits for `ready`. The callbacks
|
|
69
|
+
`getPersistedManifest`, `getCurrentUser`, and `getDataSource` must respect their `signal`. Stopping
|
|
70
|
+
the host aborts pending work and suppresses late results.
|
|
62
71
|
|
|
63
72
|
## Live state
|
|
64
73
|
|
|
65
|
-
`setTheme()`, `setContrastMode()`, `setParent()`, and `setContainingPage()`
|
|
66
|
-
|
|
74
|
+
`setTheme()`, `setContrastMode()`, `setParent()`, and `setContainingPage()` retain the latest value
|
|
75
|
+
during setup and send updates after a successful `initResult`. Use `setBindings()` and
|
|
67
76
|
`refreshDataSource()` to refresh source configuration. Each host instance belongs to one viewer.
|
|
68
77
|
Stop it and create a fresh host and iframe when the viewer changes. See
|
|
69
78
|
[updates](host-contract.md#updates) for their results and cancellation behavior.
|
|
@@ -72,40 +81,42 @@ Stop it and create a fresh host and iframe when the viewer changes. See
|
|
|
72
81
|
|
|
73
82
|
The required `onStatusChange(state)` callback receives the `CustomBlockHostStatus` union:
|
|
74
83
|
|
|
75
|
-
| Status | Behavior
|
|
76
|
-
| ---------------------- |
|
|
77
|
-
| `waitingForConnect` | The host is listening
|
|
78
|
-
| `preparingInit` | The host accepted
|
|
79
|
-
| `waitingForInitResult` |
|
|
80
|
-
| `
|
|
81
|
-
| `
|
|
82
|
-
| `
|
|
84
|
+
| Status | Behavior | Payload |
|
|
85
|
+
| ---------------------- | ------------------------------------------------------------- | ------------------------------------------------ |
|
|
86
|
+
| `waitingForConnect` | The host is listening, reported synchronously during creation | None |
|
|
87
|
+
| `preparingInit` | The host accepted the protocol offer and is preparing setup | `localManifest`, `sdkVersion`, `protocolVersion` |
|
|
88
|
+
| `waitingForInitResult` | The host sent `init` and is waiting for setup acknowledgment | None |
|
|
89
|
+
| `waitingForReady` | Setup succeeded and the host is waiting for the first render | None |
|
|
90
|
+
| `ready` | The sandbox reported that its first render is ready | `resolvedManifest`, optional `initialHeight` |
|
|
91
|
+
| `failed` | Initialization or runtime failed | `error` |
|
|
92
|
+
| `stopped` | The application explicitly disposed of the host | None |
|
|
83
93
|
|
|
84
94
|
`localManifest` is optional and comes only from a permitted local sandbox. It is available before
|
|
85
95
|
initialization completes, so the application can use its requirements to prepare bindings.
|
|
86
96
|
`resolvedManifest` is the selected declaration sent in `init`. Rejected connections can skip
|
|
87
|
-
intermediate statuses. Both `failed` and `stopped` are terminal
|
|
97
|
+
intermediate statuses. Both `failed` and `stopped` are terminal. Stopping a failed host releases
|
|
88
98
|
resources without replacing its failure status.
|
|
89
99
|
|
|
90
100
|
Connection failures contain `{ phase, source, code, message, isRetryable }`. The phase is `connect`,
|
|
91
|
-
`init`, `initResult`, or `runtime`. The source identifies who reported the failure.
|
|
92
|
-
occur after
|
|
101
|
+
`init`, `initResult`, `ready`, or `runtime`. The source identifies who reported the failure.
|
|
102
|
+
Failures can occur after setup succeeds.
|
|
93
103
|
|
|
94
|
-
At `
|
|
95
|
-
height is absent, use your application's default size.
|
|
96
|
-
|
|
104
|
+
At `ready`, apply a supplied `initialHeight` in CSS pixels before revealing the iframe. If the
|
|
105
|
+
height is absent, use your application's default size. Resize messages can arrive after setup
|
|
106
|
+
succeeds. Apply height changes without revealing the iframe until `ready`. Reveal, sizing, and
|
|
107
|
+
failure UI belong to the embedding application.
|
|
97
108
|
|
|
98
109
|
The optional `onLog(direction, payload)` callback receives bridge messages and warnings.
|
|
99
110
|
|
|
100
111
|
## Iframe lifetime
|
|
101
112
|
|
|
102
113
|
Each host handles one handshake. Create a new host and iframe to retry or replace the block URL. The
|
|
103
|
-
[wire reference](../../bridge/protocol.md#initialization) defines handshake and
|
|
104
|
-
|
|
114
|
+
[wire reference](../../bridge/protocol.md#initialization) defines handshake and validation
|
|
115
|
+
errors.
|
|
105
116
|
|
|
106
117
|
The first observed iframe `load` is allowed. A second load stops the host and reports retryable
|
|
107
|
-
`iframe_reloaded`.
|
|
108
|
-
document at the same origin can receive messages and invoke handlers
|
|
118
|
+
`iframe_reloaded`. The host detects navigation at the `load` event. Until that event, a replacement
|
|
119
|
+
document at the same origin can receive messages and invoke handlers.
|
|
109
120
|
|
|
110
121
|
`stop()` removes listeners, cancels preparation, clears timers, ends subscriptions, and suppresses
|
|
111
122
|
pending responses. Call it when removing the iframe.
|
|
@@ -117,6 +128,6 @@ pending responses. Call it when removing the iframe.
|
|
|
117
128
|
`hostOrigin` must be nonempty. Pass the embedding page's serialized origin.
|
|
118
129
|
|
|
119
130
|
The protocol helper `isLocalBlockServerUrl(url)` checks the server URL without requiring origin
|
|
120
|
-
isolation. The host adds the embedding
|
|
121
|
-
policy before the host starts. An invalid sandbox
|
|
122
|
-
with code `invalid_local_preview_url`.
|
|
131
|
+
isolation. The host adds the restriction on the embedding origin. `manifestSource: "sandbox"`
|
|
132
|
+
enforces this policy before the host starts. An invalid URL for sandbox mode throws
|
|
133
|
+
`CustomBlockInitializationError` with code `invalid_local_preview_url`.
|
package/package.json
CHANGED
package/data/radar.json
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "built-in",
|
|
3
|
-
"name": "Radar",
|
|
4
|
-
"icon": "📡",
|
|
5
|
-
"schema": {
|
|
6
|
-
"name": {
|
|
7
|
-
"name": "Name",
|
|
8
|
-
"type": "title"
|
|
9
|
-
},
|
|
10
|
-
"speed": {
|
|
11
|
-
"name": "Speed",
|
|
12
|
-
"type": "number"
|
|
13
|
-
},
|
|
14
|
-
"quality": {
|
|
15
|
-
"name": "Quality",
|
|
16
|
-
"type": "number"
|
|
17
|
-
},
|
|
18
|
-
"focus": {
|
|
19
|
-
"name": "Focus",
|
|
20
|
-
"type": "number"
|
|
21
|
-
},
|
|
22
|
-
"collaboration": {
|
|
23
|
-
"name": "Collaboration",
|
|
24
|
-
"type": "number"
|
|
25
|
-
},
|
|
26
|
-
"execution": {
|
|
27
|
-
"name": "Execution",
|
|
28
|
-
"type": "number"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"rows": [
|
|
32
|
-
{
|
|
33
|
-
"id": "radar-1",
|
|
34
|
-
"name": "Engineering",
|
|
35
|
-
"speed": 82,
|
|
36
|
-
"quality": 91,
|
|
37
|
-
"focus": 74,
|
|
38
|
-
"collaboration": 68,
|
|
39
|
-
"execution": 88
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"id": "radar-2",
|
|
43
|
-
"name": "Design",
|
|
44
|
-
"speed": 70,
|
|
45
|
-
"quality": 95,
|
|
46
|
-
"focus": 85,
|
|
47
|
-
"collaboration": 80,
|
|
48
|
-
"execution": 76
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"id": "radar-3",
|
|
52
|
-
"name": "Product",
|
|
53
|
-
"speed": 78,
|
|
54
|
-
"quality": 72,
|
|
55
|
-
"focus": 66,
|
|
56
|
-
"collaboration": 90,
|
|
57
|
-
"execution": 81
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"id": "radar-4",
|
|
61
|
-
"name": "Research",
|
|
62
|
-
"speed": 60,
|
|
63
|
-
"quality": 88,
|
|
64
|
-
"focus": 92,
|
|
65
|
-
"collaboration": 64,
|
|
66
|
-
"execution": 70
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"id": "radar-5",
|
|
70
|
-
"name": "Marketing",
|
|
71
|
-
"speed": 85,
|
|
72
|
-
"quality": 69,
|
|
73
|
-
"focus": 58,
|
|
74
|
-
"collaboration": 83,
|
|
75
|
-
"execution": 79
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"id": "radar-6",
|
|
79
|
-
"name": "Operations",
|
|
80
|
-
"speed": 73,
|
|
81
|
-
"quality": 77,
|
|
82
|
-
"focus": 80,
|
|
83
|
-
"collaboration": 75,
|
|
84
|
-
"execution": 84
|
|
85
|
-
}
|
|
86
|
-
]
|
|
87
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-ink:#32302c;--color-ink-muted:#6b6b68;--color-ink-faint:#9b9a97;--color-ink-fainter:#b3b3b0;--color-nav-ink:#2c2c2b;--color-paper:#fbfbfa;--color-hairline:#e6e5e3;--color-ui-hover:#3b14000d;--color-panel:#42230308;--color-canvas:#fff;--color-pill:#0000000d;--color-pill-dark:#ffffff0e;--color-dark-ink:#ffffffcf;--color-dark-ink-muted:#ffffff75;--color-sidebar:#f7f7f5;--color-sidebar-active:#00000008;--color-sidebar-ink:#5f5e59;--color-sidebar-ink-strong:#1d1b16;--color-sidebar-ink-muted:#7d7a75;--color-hairline-soft:#f0efed;--color-toggle:#e9e9e7;--color-accent:#2383e2;--color-match:#dcf3e3;--color-match-ink:#1f6d3d;--color-mismatch:#fbe4e4;--color-mismatch-ink:#a33}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}body{background:var(--color-paper);color:var(--color-ink);margin:0}[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-ink:#ffffffcf;--color-ink-muted:#ffffff94;--color-ink-faint:#ffffff6b;--color-ink-fainter:#ffffff52;--color-nav-ink:#ffffffcf;--color-paper:#202020;--color-hairline:#3a3a3a;--color-ui-hover:#ffffff14;--color-panel:#ffffff0e;--color-canvas:#191919;--color-pill:#ffffff14;--color-sidebar:#191919;--color-sidebar-active:#ffffff14;--color-sidebar-ink:#ffffffb8;--color-sidebar-ink-strong:#ffffffe6;--color-sidebar-ink-muted:#ffffff80;--color-hairline-soft:#2b2b2b;--color-hover:#2a2a2a;--color-toggle:#303030;--color-tooltip:#f7f7f5;--color-match:#46b47838;--color-match-ink:#7bd59d;--color-mismatch:#dc505033;--color-mismatch-ink:#f08b8b}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.top-0{top:0}.top-1\/2{top:50%}.top-full{top:100%}.right-0{right:0}.right-1\.5{right:calc(var(--spacing) * 1.5)}.bottom-full{bottom:100%}.left-0{left:0}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.row-1{grid-row:1}.row-2{grid-row:2}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.m-6{margin:calc(var(--spacing) * 6)}.mx-auto{margin-inline:auto}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mb-1{margin-bottom:var(--spacing)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-9{height:calc(var(--spacing) * 9)}.h-100{height:calc(var(--spacing) * 100)}.h-\[30px\]{height:30px}.h-\[38px\]{height:38px}.h-full{height:100%}.h-screen{height:100vh}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-\[85vh\]{max-height:85vh}.max-h-full{max-height:100%}.max-h-none{max-height:none}.min-h-0{min-height:0}.w-70{width:calc(var(--spacing) * 70)}.w-\[172px\]{width:172px}.w-full{width:100%}.max-w-120{max-width:calc(var(--spacing) * 120)}.max-w-160{max-width:calc(var(--spacing) * 160)}.max-w-190{max-width:calc(var(--spacing) * 190)}.max-w-\[560px\]{max-width:560px}.max-w-\[720px\]{max-width:720px}.max-w-\[960px\]{max-width:960px}.max-w-full{max-width:100%}.max-w-none{max-width:none}.min-w-0{min-width:0}.min-w-40{min-width:calc(var(--spacing) * 40)}.flex-1{flex:1}.flex-none{flex:none}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-disc{list-style-type:disc}.appearance-none{appearance:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-px{gap:1px}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[6px\]{border-radius:6px}.rounded-\[10px\]{border-radius:10px}.rounded-\[12px\]{border-radius:12px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-hairline{border-color:var(--color-hairline)}.border-hairline-soft{border-color:var(--color-hairline-soft)}.border-mismatch{border-color:var(--color-mismatch)}.bg-accent{background-color:var(--color-accent)}.bg-black\/40{background-color:#0006}@supports (color:color-mix(in lab, red, red)){.bg-black\/40{background-color:color-mix(in oklab, var(--color-black) 40%, transparent)}}.bg-canvas{background-color:var(--color-canvas)}.bg-match{background-color:var(--color-match)}.bg-panel{background-color:var(--color-panel)}.bg-paper{background-color:var(--color-paper)}.bg-pill{background-color:var(--color-pill)}.bg-pill-dark{background-color:var(--color-pill-dark)}.bg-sidebar{background-color:var(--color-sidebar)}.bg-sidebar-active{background-color:var(--color-sidebar-active)}.bg-transparent{background-color:#0000}.bg-ui-hover{background-color:var(--color-ui-hover)}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-10{padding-inline:calc(var(--spacing) * 10)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pr-1{padding-right:var(--spacing)}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pb-1{padding-bottom:var(--spacing)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-0\.5{padding-left:calc(var(--spacing) * .5)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.text-body{letter-spacing:-.154px;font-size:14px;line-height:20px}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-caption{font-size:12px;line-height:16px}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[17px\]{font-size:17px}.text-\[32px\]{font-size:32px}.text-\[40px\]{font-size:40px}.leading-4{--tw-leading:calc(var(--spacing) * 4);line-height:calc(var(--spacing) * 4)}.leading-10{--tw-leading:calc(var(--spacing) * 10);line-height:calc(var(--spacing) * 10)}.leading-\[1\.2\]{--tw-leading:1.2;line-height:1.2}.leading-\[20px\]{--tw-leading:20px;line-height:20px}.leading-\[22px\]{--tw-leading:22px;line-height:22px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[-0\.442px\]{--tw-tracking:-.442px;letter-spacing:-.442px}.tracking-\[-1\.55px\]{--tw-tracking:-1.55px;letter-spacing:-1.55px}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-dark-ink{color:var(--color-dark-ink)}.text-dark-ink-muted{color:var(--color-dark-ink-muted)}.text-ink{color:var(--color-ink)}.text-ink-faint{color:var(--color-ink-faint)}.text-ink-fainter{color:var(--color-ink-fainter)}.text-ink-muted{color:var(--color-ink-muted)}.text-match-ink{color:var(--color-match-ink)}.text-mismatch-ink{color:var(--color-mismatch-ink)}.text-nav-ink{color:var(--color-nav-ink)}.text-sidebar-ink{color:var(--color-sidebar-ink)}.text-sidebar-ink-muted{color:var(--color-sidebar-ink-muted)}.text-sidebar-ink-strong{color:var(--color-sidebar-ink-strong)}.text-white{color:var(--color-white)}.lowercase{text-transform:lowercase}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_4px_12px_rgb\(0_0_0\/10\%\)\]{--tw-shadow:0 4px 12px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_12px_40px_rgb\(0_0_0\/25\%\)\]{--tw-shadow:0 12px 40px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.select-all{-webkit-user-select:all;user-select:all}.select-text{-webkit-user-select:text;user-select:text}@media (hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.backdrop\:bg-black\/40::backdrop{background-color:#0006}@supports (color:color-mix(in lab, red, red)){.backdrop\:bg-black\/40::backdrop{background-color:color-mix(in oklab, var(--color-black) 40%, transparent)}}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.open\:flex:is([open],:popover-open,:open){display:flex}@media (hover:hover){.hover\:bg-sidebar-active:hover{background-color:var(--color-sidebar-active)}.hover\:bg-ui-hover:hover{background-color:var(--color-ui-hover)}.hover\:opacity-90:hover{opacity:.9}}.focus-visible\:opacity-100:focus-visible{opacity:1}.disabled\:cursor-default:disabled{cursor:default}.disabled\:bg-toggle:disabled{background-color:var(--color-toggle)}.disabled\:text-ink-faint:disabled{color:var(--color-ink-faint)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
|