@plitzi/plitzi-sdk 0.38.6 → 0.38.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +210 -0
- package/dist/assets/sdk/elementDefaults.test.d.ts +1 -0
- package/dist/index.html +8 -4
- package/dist/{plitzi-sdk-devtools-DdY_8y58.js → plitzi-sdk-devtools-8TF3uHjh.js} +35 -35
- package/dist/plitzi-sdk-devtools-8TF3uHjh.js.gz +0 -0
- package/dist/plitzi-sdk.css +1 -1
- package/dist/plitzi-sdk.css.gz +0 -0
- package/dist/plitzi-sdk.js +131 -131
- package/dist/plitzi-sdk.js.gz +0 -0
- package/package.json +13 -13
- package/dist/plitzi-sdk-devtools-DdY_8y58.js.gz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,215 @@
|
|
|
1
1
|
# @plitzi/plitzi-sdk
|
|
2
2
|
|
|
3
|
+
## 0.38.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c7bbc2b: ## A server project's `src/main.ts` is a few lines
|
|
8
|
+
|
|
9
|
+
- **`serveProject` from `@plitzi/sdk-server/project`**: the generated `src/main.ts` hands the space, its actions and
|
|
10
|
+
its options to the server, and the rest comes with the package — the port, the plugins of `src/plugins` and
|
|
11
|
+
`vendor/plugins`, the functions and runtime, `public/`, `src/data/`, the `kv` in `state/kv.json`, `/health`,
|
|
12
|
+
`tmp/dev-server.json` and the reloads while developing. A fix there arrives with `npm update`, not `plitzi upgrade`.
|
|
13
|
+
- **No more `tmp/space.json` while developing**: a saved space is authored again in its own process and handed to the
|
|
14
|
+
server over IPC (`plitzi/author.ts --ipc`, in place of `--out`); the server swaps it in memory and the open pages
|
|
15
|
+
reload, and a refused space keeps the last one that authored. `plitzi doctor` reports a leftover `tmp/space.json`.
|
|
16
|
+
- **`projectAuthoring()` in `@plitzi/sdk-authoring/node`**: what a project's space is checked against — its plugins'
|
|
17
|
+
declarations, its built plugins, its data files — once, for the server and `npm run author` alike. Neither it nor
|
|
18
|
+
`serveProject` takes a root: it is the working directory, where every script runs (`projectAuthoringAt(root)` for a
|
|
19
|
+
tool working on another folder).
|
|
20
|
+
- **`authorProjectSpace` and `projectSpace()` in `@plitzi/sdk-authoring/node`**: the project's space read from
|
|
21
|
+
`src/space/index.ts` — `dist/space/index.js` when the server runs built — once its root and layout are checked, and
|
|
22
|
+
authored. `src/main.ts` is `serveProject({ space: authorProjectSpace, actions, connectors, serverOptions })`, with no
|
|
23
|
+
import of the space; `plitzi/author.ts`, the visual tests and the CLI's checks read it the same way. A module that
|
|
24
|
+
exports no `space` is refused saying what to export (`ProjectSpaceError`).
|
|
25
|
+
- **`.env` lives at the root and Node reads it** as each script starts (`--env-file-if-exists=.env`; `start:dev`
|
|
26
|
+
preloads `@plitzi/sdk-server/env`, since a watched process would restart on every change beside the file). Settings
|
|
27
|
+
read at the top level of `src/config/serverOptions.ts` or the actions are set. Every project gets `.env` and
|
|
28
|
+
`.env.example`; `plitzi upgrade` removes the old `src/env.ts`.
|
|
29
|
+
- **One check of a project's layout** (`@plitzi/sdk-shared/project/layout`): a plugin folder with no entry, a
|
|
30
|
+
JavaScript entry, `src/plugin/` for `src/plugins/`, a `.env` inside `src/`, a space exported by default, a broken
|
|
31
|
+
`vendor/` plugin… The server refuses to boot listing every error with its fix, `npm run author` and the CLI's checks
|
|
32
|
+
refuse with the same words, `plitzi doctor` lists them under `layout` and `--fix` makes the ones with a single fix,
|
|
33
|
+
and `plitzi lint` points at doctor. A plugin folder added broken while developing is reported in the terminal
|
|
34
|
+
instead of failing in esbuild. Plugins may start at `index.tsx`.
|
|
35
|
+
- **`createJsonAdapters` serves documents held in memory**: `offlineData` may be a function returning them, not only a
|
|
36
|
+
path.
|
|
37
|
+
- **One source for a project's layout**, `@plitzi/sdk-shared/project/paths`; `src/config/serverOptions.ts` is typed
|
|
38
|
+
`ProjectServerOptions`. `plitzi upgrade files --write` brings an existing project's `main.ts` and `author.ts` up.
|
|
39
|
+
- **`npm run build` no longer fails on a plugin's stylesheet**: `tsconfig.build.json` includes `plitzi/assets.d.ts`,
|
|
40
|
+
which a space importing a plugin's declaration reaches through its component.
|
|
41
|
+
|
|
42
|
+
## A write refreshes what shows it
|
|
43
|
+
- **Writes now refresh server-driven providers.** `runServerAction`, `webHook`, `writeRecord` and the
|
|
44
|
+
`invalidateQueries` step reach `runtime: 'server'` api containers by id, by `query` URL, or all of them, just as
|
|
45
|
+
they reach cached browser requests. Before, they reached only the browser's query cache, so a saved write left the
|
|
46
|
+
page showing the old value until a reload. Hidden providers refresh when they are shown.
|
|
47
|
+
- **A refresh because something changed asks around every cache.** `performQuery`, writes and invalidations send
|
|
48
|
+
`Cache-Control: no-cache`; `/_rsc` resolves such a request again instead of serving its cached slice, and keeps the
|
|
49
|
+
new answer. A `refreshSeconds` timer and a "load more" page still go through the caches.
|
|
50
|
+
- **`refreshRsc`'s fourth argument is an options object**, `{ location?, fresh? }`.
|
|
51
|
+
|
|
52
|
+
## A space's functions read its data
|
|
53
|
+
- **`ctx.data('products.json')`** reads one file of the space's data (a project's `src/data/`), parsed and read-only,
|
|
54
|
+
as of the run's version. Plugins' functions are refused it.
|
|
55
|
+
- **Self-hosted servers read `dataDir` through the same lookup as the platform**, so `/data/<file>` providers and
|
|
56
|
+
`ctx.data` read the same files; `plitzi functions dev` reads `src/data`. `/data/../x.json` is now the provider's
|
|
57
|
+
error state instead of falling through to `publicDir`.
|
|
58
|
+
- **Importing a file outside `functions/` names the boundary and the fix**: read the space's data with
|
|
59
|
+
`ctx.data('<file>')`.
|
|
60
|
+
|
|
61
|
+
## Signing in on a self-hosted server
|
|
62
|
+
- **`createServer({ auth })` tells the pages it renders where to sign in** (`server.auth`: provider, endpoints and
|
|
63
|
+
the session hint cookie), so a space signs in with no auth settings declared. Settings a space does declare still
|
|
64
|
+
win, and a space that names another provider ignores the server's description. New `pageAuth` server option, for a
|
|
65
|
+
deployment whose `/auth` flows are served by another host.
|
|
66
|
+
- **A page with no auth provider no longer offers `auth.login` / `auth.logout`**, and a sign-in that cannot work says
|
|
67
|
+
why in the console (`[plitzi] auth.login: …`) instead of failing silently. What a visitor keeps there
|
|
68
|
+
(`keepState`, `paintedState`) is the browser's, as on any space without accounts: what was kept as a guest's on such
|
|
69
|
+
a page before is let go once, on the first visit after the upgrade.
|
|
70
|
+
- **Renewal verifies the refresh token itself.** `findByRefreshToken` no longer has to report `refreshExpiresAt`; when
|
|
71
|
+
it does, it overrides the token's own expiry.
|
|
72
|
+
- **New authoring reference `auth.md`**: providers, `authLogin` and its result, `authLogout`, `{{ auth.* }}`,
|
|
73
|
+
`accessLevel`, visitor roles, action `access` and `ctx.user`.
|
|
74
|
+
|
|
75
|
+
## Flows
|
|
76
|
+
- **Authoring refuses a `when` that asks a step for a key it never publishes** (`condition-field-unpublished`).
|
|
77
|
+
`whenSucceeded` / `whenFailed` after `authLogin` always ran the failure branch: they read a server action's
|
|
78
|
+
`status`. The message names what the step publishes and suggests testing `signedIn.ok` with `when`.
|
|
79
|
+
- **`explain` lists what a step publishes** (`Reads:`) and finds the auth steps by their builders (`authLogin`,
|
|
80
|
+
`authLogout`, `authRefreshDetails`). `authLogin({ username, password })` no longer needs `mode`.
|
|
81
|
+
|
|
82
|
+
## Elements
|
|
83
|
+
- **Images no longer default to a 140×140 square**: they are 140px wide and as tall as their ratio, so `width` or
|
|
84
|
+
`aspect-ratio` on a class just works. `object-fit` shows in the builder too.
|
|
85
|
+
- **`formControl` with `subType: 'switch'` renders an on/off switch** (`role="switch"`) — it rendered only its label.
|
|
86
|
+
Checkboxes and switches show a `true` default or binding as ticked.
|
|
87
|
+
- **The theme toggle drops the native button look**, and the **`current` style state covers the chosen item of any
|
|
88
|
+
set**: the link to the page shown, a pressed toggle, a selected tab. The exported `CURRENT_PAGE_SELECTOR` is now
|
|
89
|
+
`CURRENT_SELECTOR`.
|
|
90
|
+
- **Element defaults in the style inspector and the MCP catalogue match what the SDK renders**, held by a test. The
|
|
91
|
+
dialog's `bodyContainer` and `headerCloseButton` slots now reach the page; pagination lays out as declared.
|
|
92
|
+
- **Markdown takes a class for each part of the document** through its own slot (`heading`, `paragraph`, `link`,
|
|
93
|
+
`list`, `listItem`, `quote`, `code`, `codeBlock`, `image`, `table`, `anchor`), and `headingLinks: false` drops the
|
|
94
|
+
link each heading offers to itself while keeping its id, so `/page#anchor` links still work. Its description spells
|
|
95
|
+
out the HTML it outputs.
|
|
96
|
+
- **Tabs show every trigger.** The SDK hid every inactive tab item, the header's included, so a set of tabs showed
|
|
97
|
+
one tab and no way to the others; only the body's panels take turns now.
|
|
98
|
+
- **A link that names a query is current only on that query**: of `/?window=6h` and `/?window=24h`, the one shown
|
|
99
|
+
carries `aria-current` — with the path alone, every one of them did. A link with no query is still current on its
|
|
100
|
+
page whatever the query.
|
|
101
|
+
|
|
102
|
+
## The style language says what `customCss` used to
|
|
103
|
+
- **Pseudo-elements on a class**: `pseudos: { after: { css: { content: '"→"' }, states: { hover: { … } } } }` —
|
|
104
|
+
`before`, `after`, `marker`, `placeholder`, `first-letter`, `first-line`, `selection`, each in the class's states and
|
|
105
|
+
variants. Authoring refuses what draws nothing: a `before`/`after` with no `content`, a `content` without its quotes,
|
|
106
|
+
a property the browser drops on that pseudo-element.
|
|
107
|
+
- **Conditions on a class**: `conditions: { 'motion-reduce': { … }, 'container card (max-width: 30rem)': { … } }` —
|
|
108
|
+
reduced or allowed motion, and container widths, each with its states and pseudo-elements.
|
|
109
|
+
- **The space's `keyframes`**, validated and written at the top of `customCss`; an `animation-name` no keyframes declare
|
|
110
|
+
is warned (`animation-name-unknown`).
|
|
111
|
+
- **New states**: `expanded` (`aria-expanded`), `first`, `last`, `odd`, `even`; the tab panel on show is `current`, and
|
|
112
|
+
the theme toggle's icon of the scheme in use is `current` on its `icon` slot.
|
|
113
|
+
- **`ancestors['>']`** is the parent, whatever it wears — a closed component's part reacting to the element around it.
|
|
114
|
+
- The builder's style inspector, the MCP's definition ops (`pseudos`, `conditions`, and variants with their states) and
|
|
115
|
+
the export to code read and write all of it; an MCP `patchDefinition` no longer drops what it did not name. Rules in
|
|
116
|
+
`customCss` a class can hold now — `.link::after`, one under `@media (prefers-reduced-motion: reduce)`, `.row:first-child`,
|
|
117
|
+
`.row:nth-child(even)`, `.toggle[aria-expanded='true']` — are folded into the class on export and suggested by
|
|
118
|
+
`custom-css-class`.
|
|
119
|
+
|
|
120
|
+
## Elements take a class for each part
|
|
121
|
+
- **`formControl`**: `field` (the `<input>` itself), `icon` (the show-password button) and `requiredMark` slots; a switch's
|
|
122
|
+
knob reads in dark mode and takes `--plitzi-switch-thumb`, `--plitzi-switch-thumb-checked`, `--plitzi-switch-thumb-shadow`.
|
|
123
|
+
- **`pagination`**: `previous`, `page` (the one shown is its `current` state), `next`, `loadMore`.
|
|
124
|
+
- **`richText`** and **`markdown`**: a slot per part — `heading` and `heading1`…`heading6`, `strong`, `emphasis`,
|
|
125
|
+
`divider`, `tableHead`, `tableRow`, `tableHeaderCell`, `tableCell`, and the code block's frame, header, language and
|
|
126
|
+
copy button. Both heading slots dress one `<h3>`, so `heading-level-overridden` warns when they set the same property
|
|
127
|
+
and the stylesheet's order makes the general one win. A document is drawn by the SDK's own renderer
|
|
128
|
+
(`MarkdownDocument` in `@plitzi/sdk-elements`) — plitzi-ui's `Markdown` keeps GitHub's stylesheet for a library's
|
|
129
|
+
consumers — and reads as a document unstyled: headings, lists, code, tables and quotes get their type from the SDK's
|
|
130
|
+
base layer, at no weight (`:where()`), so a class on a part's slot replaces what it sets property by property. A
|
|
131
|
+
`richText` body reads the same.
|
|
132
|
+
- `custom-css-slot` suggests the slot for a `customCss` rule on a part's SDK class — only where a class on the slot can
|
|
133
|
+
say the rest of the selector (a state, a pseudo-element); `element-slot-unknown` warns of a slot an element does not
|
|
134
|
+
have.
|
|
135
|
+
|
|
136
|
+
## Links, refreshes and toasts
|
|
137
|
+
- **`current: 'section'` on a link** keeps it current on its page and every page under its path (`aria-current="true"`
|
|
138
|
+
there), styled by the `current` state — no `activeOn` binding for a section.
|
|
139
|
+
- **A refresh asks only about elements the page shown holds**: a provider on the page being left no longer sends a
|
|
140
|
+
`/_rsc` about the new address.
|
|
141
|
+
- **The toasts' parts are `notifications` fields**: `minHeight`, `fontWeight`, `lineHeight`, `iconSize`, `iconGap`,
|
|
142
|
+
`closeColor`, `closeOpacity`, `progressHeight`.
|
|
143
|
+
- **A page asked for with its space's token hydrates its own space.** On a host serving many spaces
|
|
144
|
+
(`?access-token=`), the space document fetched beside the page went without the token, so the host's own space
|
|
145
|
+
answered it and the browser hydrated another space's document over the page — a hydration error, and its tree
|
|
146
|
+
rebuilt. The document's address now carries the token the page was asked for with.
|
|
147
|
+
- **The SDK's stylesheet carries the space's variables from the server's HTML.** It read them from what a provider
|
|
148
|
+
below it publishes while the page renders, which the server had not done yet when it wrote the sheet; it now
|
|
149
|
+
resolves them from the document itself (`useResolvedVariables` of `@plitzi/sdk-shared/dataSource/hooks`), the same
|
|
150
|
+
on both sides.
|
|
151
|
+
- **A realtime message the pub/sub cannot deliver is answered, not fatal.** A publish that Redis refuses — a timeout under
|
|
152
|
+
load — is answered `503` with `reason: 'unavailable'`, by the `POST` and in the WebSocket's `ack` alike; a connect,
|
|
153
|
+
a disconnect or a revoke that fails is logged, on either transport. Each used to reject with nobody waiting, and the server's `unhandledRejection` handler
|
|
154
|
+
shut the whole process down.
|
|
155
|
+
|
|
156
|
+
## Reporting to Plitzi
|
|
157
|
+
- **`plitzi feedback`** starts a report of what broke, misled or cost time: it writes the page the report is laid out
|
|
158
|
+
in (`tmp/feedback/`) with the installed versions, the project and what `doctor` finds already in it, and tells the
|
|
159
|
+
agent how to fill it — each finding reproduced first, with evidence, impact, workaround and fix, no secrets — and to
|
|
160
|
+
publish it as an artifact whose link the developer sends. `--previous <url>` continues an earlier report.
|
|
161
|
+
|
|
162
|
+
## Pages that load on every browser
|
|
163
|
+
- **The import map comes before anything that loads a module**, in the page server's HTML, a published site's
|
|
164
|
+
(`index.hbs` on the platform), the SDK's and the builder's. React's `modulepreload` links came first, and a browser
|
|
165
|
+
that had fetched a module already — Chrome before 133 — ignored the map: every bare `import "react"` failed
|
|
166
|
+
("Failed to resolve module specifier") and the page never hydrated.
|
|
167
|
+
|
|
168
|
+
## The dev tools
|
|
169
|
+
- **A page loads the React its dev tools need.** The development build only while the visitor has the dev tools on
|
|
170
|
+
(shift+F12, within what the deployment allows); turned off, the next load is a production page, React included. It
|
|
171
|
+
followed the authorization alone, so a space that allowed debugging always shipped development React.
|
|
172
|
+
|
|
173
|
+
## check and lint
|
|
174
|
+
- **`plitzi check`, `push`, `lint` and `fix` hold the space to what `npm run author` and the server do**: its data
|
|
175
|
+
files too, so `push` no longer sends a space whose browser provider reads `src/data/` (`server-data-in-browser`).
|
|
176
|
+
- **`plitzi check` lists each list's rows as drawn and as held in its source** (`feed 4 of 8 rows`,
|
|
177
|
+
`hits not rendered (16 in its source)`). In `--json`, `lists` is now `{ id: { rendered, source } }`.
|
|
178
|
+
- **`plitzi check` no longer reports bindings inside a container the page isn't showing**, nor text "in the colour
|
|
179
|
+
behind it" because of a bar painted over it or a pane that clips it.
|
|
180
|
+
- **`window.__plitzi.sources()` no longer turns a shared array into `'[…]'`**, and a list row no longer replaces its
|
|
181
|
+
list's `items`.
|
|
182
|
+
- **`plitzi lint` says authoring suggestions are quieted with `quiet` on the element**, and reports a
|
|
183
|
+
`plitzi-lint-disable` comment that names one (`disable-names-suggestion`).
|
|
184
|
+
- **`plitzi check` says when a page sent the browser elsewhere** (a page for signed-in visitors, to the sign-in) instead
|
|
185
|
+
of reporting every element missing, and `--as <username>` signs in first through the server's `/auth` routes, the
|
|
186
|
+
password from `PLITZI_CHECK_PASSWORD`.
|
|
187
|
+
- **`plitzi upgrade` never replaces @plitzi packages installed locally** — a tarball, a link, a portal, an override: it
|
|
188
|
+
leaves them and the install, and says which and the command that would install the registry's.
|
|
189
|
+
- **`plitzi explain` covers every code**: authoring's, `plitzi lint`'s and the project layout's.
|
|
190
|
+
- **Authoring reads the global sources' fields**: `auth.authenticated` in a condition is refused with "did you mean
|
|
191
|
+
`isAuthenticated`?" (`global-field-unknown`), and `invalidateElements` must name providers that exist
|
|
192
|
+
(`element-ids-target`). A template's reads of `computed`, `flags` and the global sources come off the parsed
|
|
193
|
+
template: a string inside it (`'https://auth.acme.com'`) is no longer read as `auth.acme`.
|
|
194
|
+
- **`custom-css-notifications` no longer reads the rules `notifications` itself writes** as toasts dressed by hand.
|
|
195
|
+
- **A refused space or layout is a report, not a stack**: the server's entry point imports the space once the layout is
|
|
196
|
+
checked, and `npm start` and `npm run author` print every problem and exit with 1.
|
|
197
|
+
- **New authoring suggestion `class-overrides-class`**: one class's shorthand (`padding`) silently erases a longhand
|
|
198
|
+
(`padding-top`) another class on the same element writes out.
|
|
199
|
+
|
|
200
|
+
- Updated dependencies [c7bbc2b]
|
|
201
|
+
- @plitzi/sdk-auth@0.38.7
|
|
202
|
+
- @plitzi/sdk-dev-tools@0.38.7
|
|
203
|
+
- @plitzi/sdk-elements@0.38.7
|
|
204
|
+
- @plitzi/sdk-event-bridge@0.38.7
|
|
205
|
+
- @plitzi/sdk-interactions@0.38.7
|
|
206
|
+
- @plitzi/sdk-navigation@0.38.7
|
|
207
|
+
- @plitzi/sdk-plugins@0.38.7
|
|
208
|
+
- @plitzi/sdk-schema@0.38.7
|
|
209
|
+
- @plitzi/sdk-shared@0.38.7
|
|
210
|
+
- @plitzi/sdk-style@0.38.7
|
|
211
|
+
- @plitzi/sdk-variables@0.38.7
|
|
212
|
+
|
|
3
213
|
## 0.38.6
|
|
4
214
|
|
|
5
215
|
### Patch Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.html
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
<link rel="preconnect" href="https://api.plitzi.local" />
|
|
14
14
|
<link rel="preconnect" href="https://ssr.plitzi.local" />
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
<!--
|
|
17
|
+
The import map before anything that loads a module: a browser that fetched one already (a modulepreload counts)
|
|
18
|
+
ignores a map that comes after it, and the SDK's `import "react"` then resolves to nothing.
|
|
19
|
+
-->
|
|
20
20
|
<script type="importmap">
|
|
21
21
|
{
|
|
22
22
|
"imports": {
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
}
|
|
31
31
|
</script>
|
|
32
32
|
|
|
33
|
+
<link rel="modulepreload" href="/plitzi-sdk-vendor.js" crossorigin />
|
|
34
|
+
<link rel="modulepreload" href="/plitzi-sdk-vendor.js" crossorigin />
|
|
35
|
+
<link rel="modulepreload" href="/plitzi-sdk.js" />
|
|
36
|
+
|
|
33
37
|
<link href="/plitzi-sdk.css" rel="preload" as="style" />
|
|
34
38
|
<link href="/plitzi-sdk.css" rel="stylesheet" />
|
|
35
39
|
<link href="/plitzi-sdk-icons.css" rel="stylesheet" />
|
|
@@ -23,54 +23,54 @@ return re("button",{onClick:o(a.id),"aria-pressed":n,className:t("flex h-6 items
|
|
|
23
23
|
/* @__PURE__ */ae("input",{type:"search",value:a,onChange:d,placeholder:"Filter by action, step or run id",className:"h-6 min-w-0 grow rounded border border-zinc-200 bg-white px-2 text-xs text-zinc-700 placeholder:text-zinc-400 dark:border-zinc-700 dark:bg-zinc-800 dark:text-zinc-200"}),
|
|
24
24
|
/* @__PURE__ */re("span",{className:"shrink-0 text-[10px] text-zinc-400 tabular-nums dark:text-zinc-500",children:[n," runs"]}),
|
|
25
25
|
/* @__PURE__ */re("button",{onClick:s,className:"flex h-6 shrink-0 items-center gap-1 rounded px-2 text-xs font-medium text-zinc-600 hover:bg-zinc-200 dark:text-zinc-300 dark:hover:bg-zinc-700",children:[/* @__PURE__ */ae("i",{className:"fa-solid fa-trash"}),"Clear"]})]})},Wt=({children:e})=>{let[t,a]=V("plitzi-sdk.dev-tools.actions.detail-width",280),r=K(e=>{Number.isFinite(e)&&a(e)},[a]);/* @__PURE__ */
|
|
26
|
-
return ae(A,{className:"shrink-0 border-l border-zinc-200 dark:border-zinc-800",resizeHandles:["w"],axis:"x",autoGrow:!1,width:t,minConstraintsX:200,maxConstraintsX:520,onChange:r,children:/* @__PURE__ */ae("aside",{className:"flex h-full w-full flex-col gap-1.5 overflow-auto bg-zinc-50 px-3 py-2 text-[10px] dark:bg-zinc-900/50",children:e})})},Ut=e=>void 0===e.endedAt,Ht=e=>void 0===e.endedAt?void 0:e.endedAt-e.startedAt,Kt=e=>e<1e3?`${Math.round(e)}ms`:`${(e/1e3).toFixed(2)}s`,Qt=e=>new Date(e).toLocaleTimeString(),_t={running:"info",streaming:"info",accepted:"info",completed:"success",failed:"danger",aborted:"warning",skipped:"custom"},Xt=e=>_t[e]??"custom",Zt={success:"success",failed:"danger",skipped:"custom",disabled:"custom"},Gt=e=>Zt[e],Yt={success:"fa-solid fa-check",failed:"fa-solid fa-xmark",skipped:"fa-solid fa-forward",disabled:"fa-solid fa-ban"},ea={success:"bg-emerald-500/70",failed:"bg-red-500/80",skipped:"bg-zinc-400/40",disabled:"bg-zinc-400/30"},ta={await:"await",detached:"detached",stream:"stream",render:"render"},aa={await:"fa-solid fa-right-left",detached:"fa-solid fa-paper-plane",stream:"fa-solid fa-wave-square",render:"fa-solid fa-server"},ra=e=>`${e} ${1===e?"step":"steps"}`,na=e=>e?.find(e=>"failed"===e.status),ia={},la=/*#__PURE__*/q(ia),sa=(e,t)=>
|
|
27
|
-
return ae(la.Provider,{value:t,children:/*#__PURE__*/ae(oa.Provider,{value:a,children:r})})};ca.displayName="JVR.ShowTools";var ma={},pa=/*#__PURE__*/q(ma),ua=(e,t)=>
|
|
28
|
-
return ae(pa.Provider,{value:t,children:/*#__PURE__*/ae(fa.Provider,{value:a,children:r})})};xa.displayName="JVR.Expands";var ga={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},va=/*#__PURE__*/q(ga),ba=(e,t)=>
|
|
29
|
-
return ae(va.Provider,{value:t,children:/*#__PURE__*/ae(ka.Provider,{value:a,children:r})})}ka.displayName="JVR.DispatchTypes",Na.displayName="JVR.Types";var za=["style"];function wa(e){var t=e.style,a=
|
|
30
|
-
return ae("svg",
|
|
31
|
-
return ae(Ca.Provider,{value:t,children:/*#__PURE__*/ae(Ta.Provider,{value:a,children:r})})};Ia.displayName="JVR.Symbols";var La={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Ra=/*#__PURE__*/q(La),Ea=(e,t)=>
|
|
32
|
-
return ae(Ra.Provider,{value:t,children:/*#__PURE__*/ae(Aa.Provider,{value:a,children:r})})};Ma.displayName="JVR.Section";var Da={objectSortKeys:!1,indentWidth:15},Oa=/*#__PURE__*/q(Da);Oa.displayName="JVR.Context";var Fa=/*#__PURE__*/q(()=>{});function Ja(e,t){return
|
|
33
|
-
return ae("div",{style:{paddingLeft:4},children:/*#__PURE__*/ae(rr,
|
|
34
|
-
return re(P,{children:[o&&(
|
|
26
|
+
return ae(A,{className:"shrink-0 border-l border-zinc-200 dark:border-zinc-800",resizeHandles:["w"],axis:"x",autoGrow:!1,width:t,minConstraintsX:200,maxConstraintsX:520,onChange:r,children:/* @__PURE__ */ae("aside",{className:"flex h-full w-full flex-col gap-1.5 overflow-auto bg-zinc-50 px-3 py-2 text-[10px] dark:bg-zinc-900/50",children:e})})},Ut=e=>void 0===e.endedAt,Ht=e=>void 0===e.endedAt?void 0:e.endedAt-e.startedAt,Kt=e=>e<1e3?`${Math.round(e)}ms`:`${(e/1e3).toFixed(2)}s`,Qt=e=>new Date(e).toLocaleTimeString(),_t={running:"info",streaming:"info",accepted:"info",completed:"success",failed:"danger",aborted:"warning",skipped:"custom"},Xt=e=>_t[e]??"custom",Zt={success:"success",failed:"danger",skipped:"custom",disabled:"custom"},Gt=e=>Zt[e],Yt={success:"fa-solid fa-check",failed:"fa-solid fa-xmark",skipped:"fa-solid fa-forward",disabled:"fa-solid fa-ban"},ea={success:"bg-emerald-500/70",failed:"bg-red-500/80",skipped:"bg-zinc-400/40",disabled:"bg-zinc-400/30"},ta={await:"await",detached:"detached",stream:"stream",render:"render"},aa={await:"fa-solid fa-right-left",detached:"fa-solid fa-paper-plane",stream:"fa-solid fa-wave-square",render:"fa-solid fa-server"},ra=e=>`${e} ${1===e?"step":"steps"}`,na=e=>e?.find(e=>"failed"===e.status),ia={},la=/*#__PURE__*/q(ia),sa=(e,t)=>I({},e,t),oa=/*#__PURE__*/q(()=>{});function da(){return Q(oa)}oa.displayName="JVR.DispatchShowTools";var ca=e=>{var t=e.initial,a=e.dispatch,r=e.children;/*#__PURE__*/
|
|
27
|
+
return ae(la.Provider,{value:t,children:/*#__PURE__*/ae(oa.Provider,{value:a,children:r})})};ca.displayName="JVR.ShowTools";var ma={},pa=/*#__PURE__*/q(ma),ua=(e,t)=>I({},e,t),ha=()=>Q(pa),fa=/*#__PURE__*/q(()=>{});fa.displayName="JVR.DispatchExpands";var xa=e=>{var t=e.initial,a=e.dispatch,r=e.children;/*#__PURE__*/
|
|
28
|
+
return ae(pa.Provider,{value:t,children:/*#__PURE__*/ae(fa.Provider,{value:a,children:r})})};xa.displayName="JVR.Expands";var ga={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},va=/*#__PURE__*/q(ga),ba=(e,t)=>I({},e,t),ya=()=>Q(va),ka=/*#__PURE__*/q(()=>{});function Na(e){var t=e.initial,a=e.dispatch,r=e.children;/*#__PURE__*/
|
|
29
|
+
return ae(va.Provider,{value:t,children:/*#__PURE__*/ae(ka.Provider,{value:a,children:r})})}ka.displayName="JVR.DispatchTypes",Na.displayName="JVR.Types";var za=["style"];function wa(e){var t=e.style,a=E(e,za),r=I({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);/*#__PURE__*/
|
|
30
|
+
return ae("svg",I({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:r},a,{children:/*#__PURE__*/ae("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}wa.displayName="JVR.TriangleArrow";var Sa={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:/*#__PURE__*/ae(wa,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},Ca=/*#__PURE__*/q(Sa),$a=(e,t)=>I({},e,t),ja=()=>Q(Ca),Ta=/*#__PURE__*/q(()=>{});Ta.displayName="JVR.DispatchSymbols";var Ia=e=>{var t=e.initial,a=e.dispatch,r=e.children;/*#__PURE__*/
|
|
31
|
+
return ae(Ca.Provider,{value:t,children:/*#__PURE__*/ae(Ta.Provider,{value:a,children:r})})};Ia.displayName="JVR.Symbols";var La={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Ra=/*#__PURE__*/q(La),Ea=(e,t)=>I({},e,t),Va=()=>Q(Ra),Aa=/*#__PURE__*/q(()=>{});Aa.displayName="JVR.DispatchSection";var Ma=e=>{var t=e.initial,a=e.dispatch,r=e.children;/*#__PURE__*/
|
|
32
|
+
return ae(Ra.Provider,{value:t,children:/*#__PURE__*/ae(Aa.Provider,{value:a,children:r})})};Ma.displayName="JVR.Section";var Da={objectSortKeys:!1,indentWidth:15},Oa=/*#__PURE__*/q(Da);Oa.displayName="JVR.Context";var Fa=/*#__PURE__*/q(()=>{});function Ja(e,t){return I({},e,t)}Fa.displayName="JVR.DispatchContext";var Ba=()=>Q(Oa),Pa=e=>{var t=e.children,a=e.initialState,r=e.initialTypes,n=Z(Ja,Object.assign({},Da,a)),i=n[0],l=n[1],s=Z(sa,ia),o=s[0],d=s[1],c=Z(ua,ma),m=c[0],p=c[1],u=Z(ba,ga),h=u[0],f=u[1],x=Z($a,Sa),g=x[0],v=x[1],b=Z(Ea,La),y=b[0],k=b[1];return _(()=>l(I({},a)),[a]),/*#__PURE__*/ae(Oa.Provider,{value:i,children:/*#__PURE__*/ae(Fa.Provider,{value:l,children:/*#__PURE__*/ae(ca,{initial:o,dispatch:d,children:/*#__PURE__*/ae(xa,{initial:m,dispatch:p,children:/*#__PURE__*/ae(Na,{initial:I({},h,r),dispatch:f,children:/*#__PURE__*/ae(Ia,{initial:g,dispatch:v,children:/*#__PURE__*/ae(Ma,{initial:y,dispatch:k,children:t})})})})})})})};Pa.displayName="JVR.Provider";var qa=["isNumber","value","parentValue","keyName","keys"],Wa=["as","render"],Ua=["as","render"],Ha=["as","render"],Ka=["as","style","render"],Qa=["as","render"],_a=["as","render"],Xa=["as","render"],Za=["as","render"],Ga=e=>{var t=ja().Quote,a=void 0===t?{}:t,r=e.isNumber,n=e.value,i=e.parentValue,l=e.keyName,s=e.keys,o=E(e,qa);if(r)return null;var d=a.as,c=a.render,m=E(a,Wa),p=d||"span",u=I({},o,m);return"string"==typeof u.children&&(u.children=u.children.trim()||void 0),c&&"function"==typeof c&&c(u,{value:n,parentValue:i,keyName:l,keys:s||(l?[l]:[])})||/*#__PURE__*/ae(p,I({},u))};Ga.displayName="JVR.Quote";var Ya=e=>{var t=ja().ValueQuote,a=void 0===t?{}:t,r=I({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e)),n=a.as,i=a.render,l=E(a,Ua),s=n||"span",o=I({},r,l);return i&&"function"==typeof i&&i(o,{})||/*#__PURE__*/ae(s,I({},o))};Ya.displayName="JVR.ValueQuote";var er=e=>{var t=e.value,a=e.parentValue,r=e.keyName,n=e.keys,i=ja().Colon,l=void 0===i?{}:i,s=l.as,o=l.render,d=E(l,Ha),c=s||"span";return o&&"function"==typeof o&&o(d,{value:t,parentValue:a,keyName:r,keys:n||(r?[r]:[])})||/*#__PURE__*/ae(c,I({},d))};er.displayName="JVR.Colon";var tr=e=>{var t=ja().Arrow,a=void 0===t?{}:t,r=ha(),n=e.expandKey,i=e.style,l=e.value,s=e.parentValue,o=e.keyName,d=e.keys,c=!!r[n],m=a.as,p=a.style,u=a.render,h=E(a,Ka),f=m||"span",x=u&&"function"==typeof u,g=I({},h,{"data-expanded":c,style:I({},p,i)});return x&&u(g,{value:l,parentValue:s,keyName:o,keys:d||(o?[o]:[])})||/*#__PURE__*/ae(f,I({},h,{style:I({},p,i)}))};tr.displayName="JVR.Arrow";var ar=e=>{var t=e.isBrackets,a=e.value,r=e.parentValue,n=e.keyName,i=e.keys,l=ja(),s=l.BracketsLeft,o=void 0===s?{}:s,d=l.BraceLeft,c=void 0===d?{}:d,m={value:a,parentValue:r,keyName:n,keys:i||(n?[n]:[])};if(t){var p=o.as,u=o.render,h=E(o,Qa),f=p||"span";return u&&"function"==typeof u&&u(h,m)||/*#__PURE__*/ae(f,I({},h))}var x=c.as,g=c.render,v=E(c,_a),b=x||"span";return g&&"function"==typeof g&&g(v,m)||/*#__PURE__*/ae(b,I({},v))};ar.displayName="JVR.BracketsOpen";var rr=e=>{var t=e.isBrackets,a=e.isVisiable,r=e.value,n=e.parentValue,i=e.keyName,l={value:r,parentValue:n,keyName:i,keys:e.keys||(i?[i]:[])};if(!a)return null;var s=ja(),o=s.BracketsRight,d=void 0===o?{}:o,c=s.BraceRight,m=void 0===c?{}:c;if(t){var p=d.as,u=d.render,h=E(d,Xa),f=p||"span";return u&&"function"==typeof u&&u(h,l)||/*#__PURE__*/ae(f,I({},h))}var x=m.as,g=m.render,v=E(m,Za),b=x||"span";return g&&"function"==typeof g&&g(v,l)||/*#__PURE__*/ae(b,I({},v))};rr.displayName="JVR.BracketsClose";var nr=e=>{var t,a=e.keyName,r=e.value,n=e.expandKey,i=e.parentValue,l=e.level,s=e.keys,o=void 0===s?[]:s,d=ha(),c=Ba(),m=c.collapsed,p=c.shouldExpandNodeInitially,u="boolean"==typeof m?m:"number"==typeof m&&l>m,h=null!=(t=d[n])?t:!p&&u,f=p&&p(!h,{value:r,keys:o,level:l,keyName:a,parentValue:i});if(p&&!1===m){if(void 0===d[n]&&!f)return null}else if(void 0===d[n]&&f)return null;var x=Object.keys(r).length;if(h||0===x)return null;var g={keyName:a,value:r,keys:o,parentValue:i},v=Array.isArray(r),b=r instanceof Set;/*#__PURE__*/
|
|
33
|
+
return ae("div",{style:{paddingLeft:4},children:/*#__PURE__*/ae(rr,I({isBrackets:v||b},g,{isVisiable:!0}))})};nr.displayName="JVR.NestedClose";var ir=["as","render"],lr=["as","render"],sr=["as","render"],or=["as","render"],dr=["as","render"],cr=["as","render"],mr=["as","render"],pr=["as","render"],ur=["as","render"],hr=["as","render"],fr=["as","render"],xr=["as","render"],gr=["as","render"],vr=e=>{if(void 0===e)return"0n";if("string"==typeof e)try{e=BigInt(e)}catch(ys){return"0n"}return e?e.toString()+"n":"0n"},br=e=>{var t=e.value,a=e.keyName,r=ya(),n=r.Set,i=void 0===n?{}:n,l=r.displayDataTypes;if(!(t instanceof Set&&l))return null;var s=i.as,o=i.render,d=E(i,ir);return o&&"function"==typeof o&&o(d,{type:"type",value:t,keyName:a})||/*#__PURE__*/ae(s||"span",I({},d))};br.displayName="JVR.SetComp";var yr=e=>{var t=e.value,a=e.keyName,r=ya(),n=r.Map,i=void 0===n?{}:n,l=r.displayDataTypes;if(!(t instanceof Map&&l))return null;var s=i.as,o=i.render,d=E(i,lr);return o&&"function"==typeof o&&o(d,{type:"type",value:t,keyName:a})||/*#__PURE__*/ae(s||"span",I({},d))};yr.displayName="JVR.MapComp";var kr={opacity:.75,paddingRight:4},Nr=e=>{var t=e.children,a=void 0===t?"":t,r=e.keyName,n=e.keys,i=ya(),l=i.Str,s=void 0===l?{}:l,o=i.displayDataTypes,d=Ba(),c=d.shortenTextAfterLength,m=void 0===c?30:c,p=d.stringEllipsis,u=void 0===p?"...":p,h=s.as,f=s.render,x=E(s,sr),g=a,v=Y(m&&g.length>m),b=v[0],y=v[1];_(()=>y(m&&g.length>m),[m]);var k=h||"span",N=I({},kr,s.style||{});m>0&&(x.style=I({},x.style,{cursor:g.length<=m?"initial":"pointer"}),g.length>m&&(x.onClick=()=>{y(!b)}));var z=b?""+g.slice(0,m)+u:g,w=f&&"function"==typeof f,S=w&&f(I({},x,{style:N}),{type:"type",value:a,keyName:r,keys:n}),C=b?"w-rjv-value w-rjv-value-short":"w-rjv-value",$=w&&f(I({},x,{children:z,className:C}),{type:"value",value:a,keyName:r,keys:n});/*#__PURE__*/
|
|
34
|
+
return re(P,{children:[o&&(S||/*#__PURE__*/ae(k,I({},x,{style:N}))),$||/*#__PURE__*/re(P,{children:[
|
|
35
35
|
/*#__PURE__*/ae(Ya,{}),
|
|
36
|
-
/*#__PURE__*/ae(
|
|
37
|
-
/*#__PURE__*/ae(Ya,{})]})]})};Nr.displayName="JVR.TypeString";var zr=e=>{var t=e.children,a=e.keyName,r=e.keys,n=ya(),i=n.True,l=void 0===i?{}:i,s=n.displayDataTypes,o=l.as,d=l.render,c=
|
|
38
|
-
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,
|
|
39
|
-
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,
|
|
40
|
-
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,
|
|
41
|
-
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,
|
|
42
|
-
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,
|
|
43
|
-
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,
|
|
36
|
+
/*#__PURE__*/ae(k,I({},x,{className:C,children:z})),
|
|
37
|
+
/*#__PURE__*/ae(Ya,{})]})]})};Nr.displayName="JVR.TypeString";var zr=e=>{var t=e.children,a=e.keyName,r=e.keys,n=ya(),i=n.True,l=void 0===i?{}:i,s=n.displayDataTypes,o=l.as,d=l.render,c=E(l,or),m=o||"span",p=I({},kr,l.style||{}),u=d&&"function"==typeof d,h=u&&d(I({},c,{style:p}),{type:"type",value:t,keyName:a,keys:r}),f=u&&d(I({},c,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:a,keys:r});/*#__PURE__*/
|
|
38
|
+
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,I({},c,{style:p}))),f||/*#__PURE__*/ae(m,I({},c,{className:"w-rjv-value",children:null==t?void 0:t.toString()}))]})};zr.displayName="JVR.TypeTrue";var wr=e=>{var t=e.children,a=e.keyName,r=e.keys,n=ya(),i=n.False,l=void 0===i?{}:i,s=n.displayDataTypes,o=l.as,d=l.render,c=E(l,dr),m=o||"span",p=I({},kr,l.style||{}),u=d&&"function"==typeof d,h=u&&d(I({},c,{style:p}),{type:"type",value:t,keyName:a,keys:r}),f=u&&d(I({},c,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:a,keys:r});/*#__PURE__*/
|
|
39
|
+
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,I({},c,{style:p}))),f||/*#__PURE__*/ae(m,I({},c,{className:"w-rjv-value",children:null==t?void 0:t.toString()}))]})};wr.displayName="JVR.TypeFalse";var Sr=e=>{var t=e.children,a=e.keyName,r=e.keys,n=ya(),i=n.Float,l=void 0===i?{}:i,s=n.displayDataTypes,o=l.as,d=l.render,c=E(l,cr),m=o||"span",p=I({},kr,l.style||{}),u=d&&"function"==typeof d,h=u&&d(I({},c,{style:p}),{type:"type",value:t,keyName:a,keys:r}),f=u&&d(I({},c,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:a,keys:r});/*#__PURE__*/
|
|
40
|
+
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,I({},c,{style:p}))),f||/*#__PURE__*/ae(m,I({},c,{className:"w-rjv-value",children:null==t?void 0:t.toString()}))]})};Sr.displayName="JVR.TypeFloat";var Cr=e=>{var t=e.children,a=e.keyName,r=e.keys,n=ya(),i=n.Int,l=void 0===i?{}:i,s=n.displayDataTypes,o=l.as,d=l.render,c=E(l,mr),m=o||"span",p=I({},kr,l.style||{}),u=d&&"function"==typeof d,h=u&&d(I({},c,{style:p}),{type:"type",value:t,keyName:a,keys:r}),f=u&&d(I({},c,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:a,keys:r});/*#__PURE__*/
|
|
41
|
+
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,I({},c,{style:p}))),f||/*#__PURE__*/ae(m,I({},c,{className:"w-rjv-value",children:null==t?void 0:t.toString()}))]})};Cr.displayName="JVR.TypeInt";var $r=e=>{var t=e.children,a=e.keyName,r=e.keys,n=ya(),i=n.Bigint,l=void 0===i?{}:i,s=n.displayDataTypes,o=l.as,d=l.render,c=E(l,pr),m=o||"span",p=I({},kr,l.style||{}),u=d&&"function"==typeof d,h=u&&d(I({},c,{style:p}),{type:"type",value:t,keyName:a,keys:r}),f=u&&d(I({},c,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:a,keys:r});/*#__PURE__*/
|
|
42
|
+
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,I({},c,{style:p}))),f||/*#__PURE__*/ae(m,I({},c,{className:"w-rjv-value",children:vr(null==t?void 0:t.toString())}))]})};$r.displayName="JVR.TypeFloat";var jr=e=>{var t=e.children,a=e.keyName,r=e.keys,n=ya(),i=n.Url,l=void 0===i?{}:i,s=n.displayDataTypes,o=l.as,d=l.render,c=E(l,ur),m=o||"span",p=I({},kr,l.style),u=d&&"function"==typeof d,h=u&&d(I({},c,{style:p}),{type:"type",value:t,keyName:a,keys:r}),f=u&&d(I({},c,{children:null==t?void 0:t.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:a,keys:r});/*#__PURE__*/
|
|
43
|
+
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,I({},c,{style:p}))),f||/*#__PURE__*/re("a",I({href:null==t?void 0:t.href,target:"_blank"},c,{className:"w-rjv-value",children:[
|
|
44
44
|
/*#__PURE__*/ae(Ya,{}),null==t?void 0:t.href,
|
|
45
|
-
/*#__PURE__*/ae(Ya,{})]}))]})};jr.displayName="JVR.TypeUrl";var Tr=e=>{var t=e.children,a=e.keyName,r=e.keys,n=ya(),i=n.Date,l=void 0===i?{}:i,s=n.displayDataTypes,o=l.as,d=l.render,c=
|
|
46
|
-
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,
|
|
47
|
-
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,
|
|
48
|
-
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,
|
|
49
|
-
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,
|
|
45
|
+
/*#__PURE__*/ae(Ya,{})]}))]})};jr.displayName="JVR.TypeUrl";var Tr=e=>{var t=e.children,a=e.keyName,r=e.keys,n=ya(),i=n.Date,l=void 0===i?{}:i,s=n.displayDataTypes,o=l.as,d=l.render,c=E(l,hr),m=o||"span",p=I({},kr,l.style||{}),u=d&&"function"==typeof d,h=u&&d(I({},c,{style:p}),{type:"type",value:t,keyName:a,keys:r}),f=t instanceof Date?t.toLocaleString():t,x=u&&d(I({},c,{children:f,className:"w-rjv-value"}),{type:"value",value:t,keyName:a,keys:r});/*#__PURE__*/
|
|
46
|
+
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,I({},c,{style:p}))),x||/*#__PURE__*/ae(m,I({},c,{className:"w-rjv-value",children:f}))]})};Tr.displayName="JVR.TypeDate";var Ir=e=>{var t=e.children,a=e.keyName,r=e.keys,n=ya(),i=n.Undefined,l=void 0===i?{}:i,s=n.displayDataTypes,o=l.as,d=l.render,c=E(l,fr),m=o||"span",p=I({},kr,l.style||{}),u=d&&"function"==typeof d,h=u&&d(I({},c,{style:p}),{type:"type",value:t,keyName:a,keys:r}),f=u&&d(I({},c,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:a,keys:r});/*#__PURE__*/
|
|
47
|
+
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,I({},c,{style:p}))),f||/*#__PURE__*/ae(m,I({},c,{className:"w-rjv-value",children:"undefined"}))]})};Ir.displayName="JVR.TypeUndefined";var Lr=e=>{var t=e.children,a=e.keyName,r=e.keys,n=ya(),i=n.Null,l=void 0===i?{}:i,s=n.displayDataTypes,o=l.as,d=l.render,c=E(l,xr),m=o||"span",p=I({},kr,l.style||{}),u=d&&"function"==typeof d,h=u&&d(I({},c,{style:p}),{type:"type",value:t,keyName:a,keys:r}),f=u&&d(I({},c,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:a,keys:r});/*#__PURE__*/
|
|
48
|
+
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,I({},c,{style:p}))),f||/*#__PURE__*/ae(m,I({},c,{className:"w-rjv-value",children:"null"}))]})};Lr.displayName="JVR.TypeNull";var Rr=e=>{var t=e.children,a=e.keyName,r=e.keys,n=ya(),i=n.Nan,l=void 0===i?{}:i,s=n.displayDataTypes,o=l.as,d=l.render,c=E(l,gr),m=o||"span",p=I({},kr,l.style||{}),u=d&&"function"==typeof d,h=u&&d(I({},c,{style:p}),{type:"type",value:t,keyName:a,keys:r}),f=u&&d(I({},c,{children:null==t?void 0:t.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:a,keys:r});/*#__PURE__*/
|
|
49
|
+
return re(P,{children:[s&&(h||/*#__PURE__*/ae(m,I({},c,{style:p}))),f||/*#__PURE__*/ae(m,I({},c,{className:"w-rjv-value",children:"NaN"}))]})};Rr.displayName="JVR.TypeNan";var Er=e=>{var t=e.value,a={keyName:e.keyName,keys:e.keys};return t instanceof URL?/*#__PURE__*/ae(jr,I({},a,{children:t})):"string"==typeof t?/*#__PURE__*/ae(Nr,I({},a,{children:t})):!0===t?/*#__PURE__*/ae(zr,I({},a,{children:t})):!1===t?/*#__PURE__*/ae(wr,I({},a,{children:t})):null===t?/*#__PURE__*/ae(Lr,I({},a,{children:t})):void 0===t?/*#__PURE__*/ae(Ir,I({},a,{children:t})):t instanceof Date?/*#__PURE__*/ae(Tr,I({},a,{children:t})):"number"==typeof t&&isNaN(t)?/*#__PURE__*/ae(Rr,I({},a,{children:t})):"number"==typeof t&&(e=>Number(e)===e&&e%1!=0||isNaN(e))(t)?/*#__PURE__*/ae(Sr,I({},a,{children:t})):"bigint"==typeof t?/*#__PURE__*/ae($r,I({},a,{children:t})):"number"==typeof t?/*#__PURE__*/ae(Cr,I({},a,{children:t})):null};function Vr(e,t,a){var r=Q(Ta),n=[e.className,t.className].filter(Boolean).join(" "),i=I({},e,t,{className:n,style:I({},e.style,t.style),children:t.children||e.children});_(()=>r({[a]:i}),[t])}function Ar(e,t,a){var r=Q(ka),n=[e.className,t.className].filter(Boolean).join(" "),i=I({},e,t,{className:n,style:I({},e.style,t.style),children:t.children||e.children});_(()=>r({[a]:i}),[t])}function Mr(e,t,a){var r=Q(Aa),n=[e.className,t.className].filter(Boolean).join(" "),i=I({},e,t,{className:n,style:I({},e.style,t.style),children:t.children||e.children});_(()=>r({[a]:i}),[t])}Er.displayName="JVR.Value";var Dr=["as","render"],Or=e=>{var t=Va().KeyName;return Mr(void 0===t?{}:t,e,"KeyName"),null};Or.displayName="JVR.KeyName";var Fr=e=>{var t=e.children,a=e.value,r=e.parentValue,n=e.keyName,i=e.keys,l={color:"number"==typeof t?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},s=Va().KeyName,o=void 0===s?{}:s,d=o.as,c=o.render,m=E(o,Dr);m.style=I({},m.style,l);var p=d||"span";return c&&"function"==typeof c&&c(I({},m,{children:t}),{value:a,parentValue:r,keyName:n,keys:i||(n?[n]:[])})||/*#__PURE__*/ae(p,I({},m,{children:t}))};Fr.displayName="JVR.KeyNameComp";var Jr=["children","value","parentValue","keyName","keys"],Br=["as","render","children"],Pr=e=>{var t=Va().Row;return Mr(void 0===t?{}:t,e,"Row"),null};Pr.displayName="JVR.Row";var qr=e=>{var t=e.children,a=e.value,r=e.parentValue,n=e.keyName,i=e.keys,l=E(e,Jr),s=Va().Row,o=void 0===s?{}:s,d=o.as,c=o.render;o.children;var m=E(o,Br),p=d||"div";return c&&"function"==typeof c&&c(I({},l,m,{children:t}),{value:a,keyName:n,parentValue:r,keys:i})||/*#__PURE__*/ae(p,I({},l,m,{children:t}))};qr.displayName="JVR.RowComp";var Wr=["keyName","value","parentValue","expandKey","keys","beforeCopy"],Ur=["as","render"],Hr=e=>{var t=e.keyName,a=e.value,r=e.parentValue,n=e.expandKey,i=e.keys,l=e.beforeCopy,s=E(e,Wr),o=Ba(),d=o.onCopied,c=o.enableClipboard,m=o.beforeCopy,p=Q(la)[n],u=Y(!1),h=u[0],f=u[1],x=Va().Copied,g=void 0===x?{}:x,v=null==g?void 0:g.beforeCopy;if(!1===c||!p)return null;var b={style:{display:"inline-flex"},fill:h?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:e=>{e.stopPropagation();var s="";s="number"==typeof a&&a===1/0?"Infinity":"number"==typeof a&&isNaN(a)?"NaN":"bigint"==typeof a?vr(a):a instanceof Date?a.toLocaleString():JSON.stringify(a,(e,t)=>"bigint"==typeof t?vr(t):t,2);var o=l||v||m;o&&"function"==typeof o&&(s=o(s,t,a,r,n,i)),d&&d(s,a),f(!0),(navigator.clipboard||{writeText:e=>new Promise((t,a)=>{var r=document.createElement("textarea");r.style.position="absolute",r.style.opacity="0",r.style.left="-99999999px",r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy")?t():a(),r.remove()})}).writeText(s).then(()=>{var e=setTimeout(()=>{f(!1),clearTimeout(e)},3e3)}).catch(e=>{})}};g.as;var y=g.render,k=E(g,Ur),N=I({},k,s,b,{style:I({},k.style,s.style,b.style)});return y&&"function"==typeof y&&y(I({},N,{"data-copied":h}),{value:a,keyName:t,keys:i,parentValue:r})||/*#__PURE__*/ae("svg",I({viewBox:"0 0 32 36"},N,h?{children:/*#__PURE__*/ae("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})}:{children:/*#__PURE__*/ae("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})}))};function Kr(){var e=G(null);return null===e.current&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}Hr.displayName="JVR.Copied";var Qr=e=>{var t,a=e.keyName,r=e.value,n=e.expandKey,i=void 0===n?"":n,l=e.level,s=e.keys,o=void 0===s?[]:s,d=e.parentValue,c=ha(),m=Ba(),p=m.objectSortKeys,u=m.indentWidth,h=m.collapsed,f=m.shouldExpandNodeInitially,x="boolean"==typeof h?h:"number"==typeof h&&l>h,g=null!=(t=c[i])?t:!f&&x,v=f&&f(!g,{value:r,keys:o,level:l,keyName:a,parentValue:d});if(f&&!1===h){if(void 0===c[i]&&!v)return null}else if(void 0===c[i]&&v)return null;if(g)return null;var b=Array.isArray(r)?Object.entries(r).map(e=>[Number(e[0]),e[1]]):Object.entries(r);return p&&(b=!0===p?b.sort((e,t)=>{var a=e[0],r=t[0];return"string"==typeof a&&"string"==typeof r?a.localeCompare(r):0}):b.sort((e,t)=>{var a=e[0],r=e[1],n=t[0],i=t[1];return"string"==typeof a&&"string"==typeof n?p(a,n,r,i):0})),/*#__PURE__*/ae("div",{className:"w-rjv-wrap",style:{borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:u,marginLeft:6},children:b.map((e,t)=>{var a=e[0],n=e[1];/*#__PURE__*/
|
|
50
50
|
return ae(Xr,{parentValue:r,keyName:a,keys:[...o,a],value:n,level:l},t)})})};Qr.displayName="JVR.KeyValues";var _r=e=>{var t=e.keyName,a=e.parentValue,r=e.keys,n=e.value,i=Ba().highlightUpdates,l="number"==typeof t,s=G(null);!function(e){var t=e.value,a=e.highlightUpdates,r=e.highlightContainer,n=function(e){var t=G();return _(()=>{t.current=e}),t.current}(t),i=X(()=>!(!a||void 0===n)&&(typeof t!=typeof n||("number"==typeof t?!(isNaN(t)&&isNaN(n)||t===n):Array.isArray(t)!==Array.isArray(n)||"object"!=typeof t&&"function"!=typeof t&&(t!==n||void 0))),[a,t]);_(()=>{r&&r.current&&i&&"animate"in r.current&&r.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[i,t,r])}({value:n,highlightUpdates:i,highlightContainer:s});var o={keyName:t,value:n,keys:r,parentValue:a};/*#__PURE__*/
|
|
51
51
|
return re(P,{children:[/*#__PURE__*/re("span",{ref:s,children:[
|
|
52
|
-
/*#__PURE__*/ae(Ga,
|
|
53
|
-
/*#__PURE__*/ae(Fr,
|
|
54
|
-
/*#__PURE__*/ae(Ga,
|
|
52
|
+
/*#__PURE__*/ae(Ga,I({isNumber:l,"data-placement":"left"},o)),
|
|
53
|
+
/*#__PURE__*/ae(Fr,I({},o,{children:t})),
|
|
54
|
+
/*#__PURE__*/ae(Ga,I({isNumber:l,"data-placement":"right"},o))]}),/*#__PURE__*/ae(er,I({},o))]})};_r.displayName="JVR.KayName";var Xr=e=>{var t=e.keyName,a=e.value,r=e.parentValue,n=e.level,i=void 0===n?0:n,l=e.keys,s=void 0===l?[]:l,o=da(),d=Kr(),c=Array.isArray(a),m=a instanceof Set,p=a instanceof Map,u=a instanceof Date,h=a instanceof URL;if(a&&"object"==typeof a&&!c&&!m&&!p&&!u&&!h||c||m||p){var f=m?Array.from(a):p?Object.fromEntries(a):a;/*#__PURE__*/
|
|
55
55
|
return ae(mn,{keyName:t,value:f,parentValue:r,initialValue:a,keys:s,level:i+1})}/*#__PURE__*/
|
|
56
|
-
return re(qr,
|
|
56
|
+
return re(qr,I({className:"w-rjv-line",value:a,keyName:t,keys:s,parentValue:r},{onMouseEnter:()=>o({[d]:!0}),onMouseLeave:()=>o({[d]:!1})},{children:[
|
|
57
57
|
/*#__PURE__*/ae(_r,{keyName:t,value:a,keys:s,parentValue:r}),
|
|
58
58
|
/*#__PURE__*/ae(Er,{keyName:t,value:a,keys:s}),
|
|
59
|
-
/*#__PURE__*/ae(Hr,{keyName:t,value:a,keys:s,parentValue:r,expandKey:d})]}))};Xr.displayName="JVR.KeyValuesItem";var Zr=["value","keyName"],Gr=["as","render"],Yr=e=>{var t=Va().CountInfoExtra;return Mr(void 0===t?{}:t,e,"CountInfoExtra"),null};Yr.displayName="JVR.CountInfoExtra";var en=e=>{var t=e.value,a=void 0===t?{}:t,r=e.keyName,n=
|
|
60
|
-
return re("span",
|
|
59
|
+
/*#__PURE__*/ae(Hr,{keyName:t,value:a,keys:s,parentValue:r,expandKey:d})]}))};Xr.displayName="JVR.KeyValuesItem";var Zr=["value","keyName"],Gr=["as","render"],Yr=e=>{var t=Va().CountInfoExtra;return Mr(void 0===t?{}:t,e,"CountInfoExtra"),null};Yr.displayName="JVR.CountInfoExtra";var en=e=>{var t=e.value,a=void 0===t?{}:t,r=e.keyName,n=E(e,Zr),i=Va().CountInfoExtra,l=void 0===i?{}:i,s=l.as,o=l.render,d=E(l,Gr);if(!o&&!d.children)return null;var c=s||"span",m=o&&"function"==typeof o,p=I({},d,n);return m&&o(p,{value:a,keyName:r})||/*#__PURE__*/ae(c,I({},p))};en.displayName="JVR.CountInfoExtraComps";var tn=["value","keyName"],an=["as","render"],rn=e=>{var t=Va().CountInfo;return Mr(void 0===t?{}:t,e,"CountInfo"),null};rn.displayName="JVR.CountInfo";var nn=e=>{var t=e.value,a=void 0===t?{}:t,r=e.keyName,n=E(e,tn),i=Ba().displayObjectSize,l=Va().CountInfo,s=void 0===l?{}:l;if(!i)return null;var o=s.as,d=s.render,c=E(s,an),m=o||"span";c.style=I({},c.style,e.style);var p=Object.keys(a).length;c.children||(c.children=p+" item"+(1===p?"":"s"));var u=I({},c,n);return d&&"function"==typeof d&&d(I({},u,{"data-length":p}),{value:a,keyName:r})||/*#__PURE__*/ae(m,I({},u))};nn.displayName="JVR.CountInfoComp";var ln=["as","render"],sn=e=>{var t=Va().Ellipsis;return Mr(void 0===t?{}:t,e,"Ellipsis"),null};sn.displayName="JVR.Ellipsis";var on=e=>{var t=e.isExpanded,a=e.value,r=e.keyName,n=Va().Ellipsis,i=void 0===n?{}:n,l=i.as,s=i.render,o=E(i,ln),d=l||"span";return s&&"function"==typeof s&&s(I({},o,{"data-expanded":t}),{value:a,keyName:r})||(!t||"object"==typeof a&&0==Object.keys(a).length?null:/*#__PURE__*/ae(d,I({},o)))};on.displayName="JVR.EllipsisComp";var dn=e=>{var t,a=e.keyName,r=e.expandKey,n=e.keys,i=void 0===n?[]:n,l=e.initialValue,s=e.value,o=e.parentValue,d=e.level,c=ha(),m=Q(fa),p=Ba(),u=p.onExpand,h=p.collapsed,f=p.shouldExpandNodeInitially,x="boolean"==typeof h?h:"number"==typeof h&&d>h,g=null!=(t=c[r])?t:!f&&x,v=f&&f(!g,{value:s,keys:i,level:d,keyName:a,parentValue:o});void 0===c[r]&&f&&(g=!v);var b={transform:"rotate("+(g?"-90":"0")+"deg)",transition:"all 0.3s"},y=Object.keys(s).length,k="object"==typeof s,N=Array.isArray(s),z=s instanceof Set,w=0!==y&&(N||z||k),S={style:{display:"inline-flex",alignItems:"center"}};w&&(S.onClick=()=>{var e={expand:!g,value:s,keyid:r,keyName:a};u&&u(e),m({[r]:e.expand})});var C={keyName:a,value:s,keys:i,parentValue:o};/*#__PURE__*/
|
|
60
|
+
return re("span",I({},S,{children:[w&&/*#__PURE__*/ae(tr,I({style:b,expandKey:r},C)),(a||"number"==typeof a)&&/*#__PURE__*/ae(_r,I({},C)),
|
|
61
61
|
/*#__PURE__*/ae(br,{value:l,keyName:a}),
|
|
62
62
|
/*#__PURE__*/ae(yr,{value:l,keyName:a}),
|
|
63
|
-
/*#__PURE__*/ae(ar,
|
|
63
|
+
/*#__PURE__*/ae(ar,I({isBrackets:N||z},C)),
|
|
64
64
|
/*#__PURE__*/ae(on,{keyName:a,value:s,isExpanded:g}),
|
|
65
|
-
/*#__PURE__*/ae(rr,
|
|
65
|
+
/*#__PURE__*/ae(rr,I({isVisiable:g||!w,isBrackets:N||z},C)),
|
|
66
66
|
/*#__PURE__*/ae(nn,{value:s,keyName:a}),
|
|
67
67
|
/*#__PURE__*/ae(en,{value:s,keyName:a}),
|
|
68
|
-
/*#__PURE__*/ae(Hr,{keyName:a,value:s,expandKey:r,parentValue:o,keys:i})]}))};dn.displayName="JVR.NestedOpen";var cn=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],mn=/*#__PURE__*/W((e,t)=>{var a=e.className,r=void 0===a?"":a;e.children;var n=e.parentValue;e.keyid;var i=e.level,l=void 0===i?1:i,s=e.value,o=e.initialValue,d=e.keys,c=e.keyName,m=
|
|
69
|
-
return re("div",
|
|
68
|
+
/*#__PURE__*/ae(Hr,{keyName:a,value:s,expandKey:r,parentValue:o,keys:i})]}))};dn.displayName="JVR.NestedOpen";var cn=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],mn=/*#__PURE__*/W((e,t)=>{var a=e.className,r=void 0===a?"":a;e.children;var n=e.parentValue;e.keyid;var i=e.level,l=void 0===i?1:i,s=e.value,o=e.initialValue,d=e.keys,c=e.keyName,m=E(e,cn),p=da(),u=Kr(),h=[r,"w-rjv-inner"].filter(Boolean).join(" ");/*#__PURE__*/
|
|
69
|
+
return re("div",I({className:h,ref:t},m,{onMouseEnter:()=>p({[u]:!0}),onMouseLeave:()=>p({[u]:!1})},{children:[
|
|
70
70
|
/*#__PURE__*/ae(dn,{expandKey:u,value:s,level:l,keys:d,parentValue:n,keyName:c,initialValue:o}),
|
|
71
71
|
/*#__PURE__*/ae(Qr,{expandKey:u,value:s,level:l,keys:d,parentValue:n,keyName:c}),
|
|
72
|
-
/*#__PURE__*/ae(nr,{expandKey:u,value:s,level:l,keys:d,parentValue:n,keyName:c})]}))});mn.displayName="JVR.Container";var pn=e=>{var t=ja().BraceLeft;return Vr(void 0===t?{}:t,e,"BraceLeft"),null};pn.displayName="JVR.BraceLeft";var un=e=>{var t=ja().BraceRight;return Vr(void 0===t?{}:t,e,"BraceRight"),null};un.displayName="JVR.BraceRight";var hn=e=>{var t=ja().BracketsLeft;return Vr(void 0===t?{}:t,e,"BracketsLeft"),null};hn.displayName="JVR.BracketsLeft";var fn=e=>{var t=ja().BracketsRight;return Vr(void 0===t?{}:t,e,"BracketsRight"),null};fn.displayName="JVR.BracketsRight";var xn=e=>{var t=ja().Arrow;return Vr(void 0===t?{}:t,e,"Arrow"),null};xn.displayName="JVR.Arrow";var gn=e=>{var t=ja().Colon;return Vr(void 0===t?{}:t,e,"Colon"),null};gn.displayName="JVR.Colon";var vn=e=>{var t=ja().Quote;return Vr(void 0===t?{}:t,e,"Quote"),null};vn.displayName="JVR.Quote";var bn=e=>{var t=ja().ValueQuote;return Vr(void 0===t?{}:t,e,"ValueQuote"),null};bn.displayName="JVR.ValueQuote";var yn=e=>{var t=ya().Bigint;return Ar(void 0===t?{}:t,e,"Bigint"),null};yn.displayName="JVR.Bigint";var kn=e=>{var t=ya().Date;return Ar(void 0===t?{}:t,e,"Date"),null};kn.displayName="JVR.Date";var Nn=e=>{var t=ya().False;return Ar(void 0===t?{}:t,e,"False"),null};Nn.displayName="JVR.False";var zn=e=>{var t=ya().Float;return Ar(void 0===t?{}:t,e,"Float"),null};zn.displayName="JVR.Float";var wn=e=>{var t=ya().Int;return Ar(void 0===t?{}:t,e,"Int"),null};wn.displayName="JVR.Int";var Sn=e=>{var t=ya().Map;return Ar(void 0===t?{}:t,e,"Map"),null};Sn.displayName="JVR.Map";var Cn=e=>{var t=ya().Nan;return Ar(void 0===t?{}:t,e,"Nan"),null};Cn.displayName="JVR.Nan";var $n=e=>{var t=ya().Null;return Ar(void 0===t?{}:t,e,"Null"),null};$n.displayName="JVR.Null";var jn=e=>{var t=ya().Set;return Ar(void 0===t?{}:t,e,"Set"),null};jn.displayName="JVR.Set";var Tn=e=>{var t=ya().Str;return Ar(void 0===t?{}:t,e,"Str"),null};Tn.displayName="JVR.StringText";var In=e=>{var t=ya().True;return Ar(void 0===t?{}:t,e,"True"),null};In.displayName="JVR.True";var Ln=e=>{var t=ya().Undefined;return Ar(void 0===t?{}:t,e,"Undefined"),null};Ln.displayName="JVR.Undefined";var Rn=e=>{var t=ya().Url;return Ar(void 0===t?{}:t,e,"Url"),null};Rn.displayName="JVR.Url";var En=e=>{var t=Va().Copied;return Mr(void 0===t?{}:t,e,"Copied"),null};En.displayName="JVR.Copied";var Vn=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied","beforeCopy"],An=/*#__PURE__*/W((e,t)=>{var a=e.className,r=void 0===a?"":a,n=e.style,i=e.value,l=e.children,s=e.collapsed,o=void 0!==s&&s,d=e.shouldExpandNodeInitially,c=e.indentWidth,m=void 0===c?15:c,p=e.displayObjectSize,u=void 0===p||p,h=e.shortenTextAfterLength,f=void 0===h?30:h,x=e.stringEllipsis,g=e.highlightUpdates,v=void 0===g||g,
|
|
73
|
-
return re(Pa,{initialState:{value:i,objectSortKeys:
|
|
72
|
+
/*#__PURE__*/ae(nr,{expandKey:u,value:s,level:l,keys:d,parentValue:n,keyName:c})]}))});mn.displayName="JVR.Container";var pn=e=>{var t=ja().BraceLeft;return Vr(void 0===t?{}:t,e,"BraceLeft"),null};pn.displayName="JVR.BraceLeft";var un=e=>{var t=ja().BraceRight;return Vr(void 0===t?{}:t,e,"BraceRight"),null};un.displayName="JVR.BraceRight";var hn=e=>{var t=ja().BracketsLeft;return Vr(void 0===t?{}:t,e,"BracketsLeft"),null};hn.displayName="JVR.BracketsLeft";var fn=e=>{var t=ja().BracketsRight;return Vr(void 0===t?{}:t,e,"BracketsRight"),null};fn.displayName="JVR.BracketsRight";var xn=e=>{var t=ja().Arrow;return Vr(void 0===t?{}:t,e,"Arrow"),null};xn.displayName="JVR.Arrow";var gn=e=>{var t=ja().Colon;return Vr(void 0===t?{}:t,e,"Colon"),null};gn.displayName="JVR.Colon";var vn=e=>{var t=ja().Quote;return Vr(void 0===t?{}:t,e,"Quote"),null};vn.displayName="JVR.Quote";var bn=e=>{var t=ja().ValueQuote;return Vr(void 0===t?{}:t,e,"ValueQuote"),null};bn.displayName="JVR.ValueQuote";var yn=e=>{var t=ya().Bigint;return Ar(void 0===t?{}:t,e,"Bigint"),null};yn.displayName="JVR.Bigint";var kn=e=>{var t=ya().Date;return Ar(void 0===t?{}:t,e,"Date"),null};kn.displayName="JVR.Date";var Nn=e=>{var t=ya().False;return Ar(void 0===t?{}:t,e,"False"),null};Nn.displayName="JVR.False";var zn=e=>{var t=ya().Float;return Ar(void 0===t?{}:t,e,"Float"),null};zn.displayName="JVR.Float";var wn=e=>{var t=ya().Int;return Ar(void 0===t?{}:t,e,"Int"),null};wn.displayName="JVR.Int";var Sn=e=>{var t=ya().Map;return Ar(void 0===t?{}:t,e,"Map"),null};Sn.displayName="JVR.Map";var Cn=e=>{var t=ya().Nan;return Ar(void 0===t?{}:t,e,"Nan"),null};Cn.displayName="JVR.Nan";var $n=e=>{var t=ya().Null;return Ar(void 0===t?{}:t,e,"Null"),null};$n.displayName="JVR.Null";var jn=e=>{var t=ya().Set;return Ar(void 0===t?{}:t,e,"Set"),null};jn.displayName="JVR.Set";var Tn=e=>{var t=ya().Str;return Ar(void 0===t?{}:t,e,"Str"),null};Tn.displayName="JVR.StringText";var In=e=>{var t=ya().True;return Ar(void 0===t?{}:t,e,"True"),null};In.displayName="JVR.True";var Ln=e=>{var t=ya().Undefined;return Ar(void 0===t?{}:t,e,"Undefined"),null};Ln.displayName="JVR.Undefined";var Rn=e=>{var t=ya().Url;return Ar(void 0===t?{}:t,e,"Url"),null};Rn.displayName="JVR.Url";var En=e=>{var t=Va().Copied;return Mr(void 0===t?{}:t,e,"Copied"),null};En.displayName="JVR.Copied";var Vn=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied","beforeCopy"],An=/*#__PURE__*/W((e,t)=>{var a=e.className,r=void 0===a?"":a,n=e.style,i=e.value,l=e.children,s=e.collapsed,o=void 0!==s&&s,d=e.shouldExpandNodeInitially,c=e.indentWidth,m=void 0===c?15:c,p=e.displayObjectSize,u=void 0===p||p,h=e.shortenTextAfterLength,f=void 0===h?30:h,x=e.stringEllipsis,g=e.highlightUpdates,v=void 0===g||g,b=e.enableClipboard,y=void 0===b||b,k=e.displayDataTypes,N=void 0===k||k,z=e.objectSortKeys,w=void 0!==z&&z,S=e.onExpand,C=e.onCopied,$=e.beforeCopy,j=E(e,Vn),T=I({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},n),L=["w-json-view-container","w-rjv",r].filter(Boolean).join(" ");/*#__PURE__*/
|
|
73
|
+
return re(Pa,{initialState:{value:i,objectSortKeys:w,indentWidth:m,shouldExpandNodeInitially:!1===o?d:void 0,displayObjectSize:u,collapsed:o,enableClipboard:y,shortenTextAfterLength:f,stringEllipsis:x,highlightUpdates:v,onCopied:C,onExpand:S,beforeCopy:$},initialTypes:{displayDataTypes:N},children:[/*#__PURE__*/ae(mn,I({value:i},j,{ref:t,className:L,style:T})),l]})});An.Bigint=yn,An.Date=kn,An.False=Nn,An.Float=zn,An.Int=wn,An.Map=Sn,An.Nan=Cn,An.Null=$n,An.Set=jn,An.String=Tn,An.True=In,An.Undefined=Ln,An.Url=Rn,An.ValueQuote=bn,An.Arrow=xn,An.Colon=gn,An.Quote=vn,An.Ellipsis=sn,An.BraceLeft=pn,An.BraceRight=un,An.BracketsLeft=hn,An.BracketsRight=fn,An.Copied=En,An.CountInfo=rn,An.CountInfoExtra=Yr,An.KeyName=Or,An.Row=Pr,An.displayName="JVR.JsonView";var Mn,Dn={"--w-rjv-font-family":"monospace","--w-rjv-color":"#9cdcfe","--w-rjv-key-string":"#9cdcfe","--w-rjv-background-color":"#1e1e1e","--w-rjv-line-color":"#36334280","--w-rjv-arrow-color":"#838383","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#9c9c9c7a","--w-rjv-update-color":"#9cdcfe","--w-rjv-copied-color":"#9cdcfe","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#d4d4d4","--w-rjv-colon-color":"#d4d4d4","--w-rjv-brackets-color":"#d4d4d4","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#ce9178","--w-rjv-type-int-color":"#b5cea8","--w-rjv-type-float-color":"#b5cea8","--w-rjv-type-bigint-color":"#b5cea8","--w-rjv-type-boolean-color":"#569cd6","--w-rjv-type-date-color":"#b5cea8","--w-rjv-type-url-color":"#3b89cf","--w-rjv-type-null-color":"#569cd6","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#569cd6"},On={...Dn,width:"100%",overflow:"auto",padding:"6px",fontSize:"11px"},Fn=({value:e})=>{let{resolvedTheme:t}=z();return"object"==typeof e&&e?/* @__PURE__ */ae(An,{value:e,style:"dark"===t?On:void 0,enableClipboard:!1,displayDataTypes:!1,collapsed:2}):/* @__PURE__ */ae("pre",{className:"overflow-auto p-1.5 font-mono text-[11px] break-words whitespace-pre-wrap text-zinc-600 dark:text-zinc-300",children:JSON.stringify(e)})},Jn=({className:e,logType:a="info",iconClassName:r,title:n,children:i})=>{let l="danger"===a?"fa-regular fa-circle-xmark":"warning"===a?"fa-solid fa-triangle-exclamation":"info"===a?"fa-solid fa-circle-info":"success"===a?"fa-solid fa-check":"fa-solid fa-circle";/* @__PURE__ */
|
|
74
74
|
return re("div",{className:t("flex items-center gap-1",e),title:n,children:[/* @__PURE__ */ae("i",{className:t(r??l,{"text-red-500 dark:text-red-400":"danger"===a,"text-amber-500 dark:text-amber-400":"warning"===a,"text-violet-500 dark:text-violet-400":"info"===a,"text-emerald-500 dark:text-emerald-400":"success"===a,"text-zinc-500 dark:text-zinc-400":!["danger","warning","info","success"].includes(a)},"text-xs")}),i]})},Bn=({bar:e,selected:a,onSelect:r})=>{let{step:n,offset:i,width:l}=e,s=K(()=>r(n.id),[r,n.id]);/* @__PURE__ */
|
|
75
75
|
return re("button",{type:"button",onClick:s,"aria-pressed":a,className:t("flex w-full flex-col gap-1 rounded px-1.5 py-1 text-left transition-colors",{"bg-violet-500/10":a,"hover:bg-zinc-100 dark:hover:bg-zinc-800":!a}),children:[
|
|
76
76
|
/* @__PURE__ */re("div",{className:"flex items-center gap-1.5 text-[11px]",children:[
|
|
@@ -216,7 +216,7 @@ return re("div",{className:"flex h-full grow basis-0 flex-col overflow-y-auto p-
|
|
|
216
216
|
/* @__PURE__ */re("div",{className:"flex flex-col gap-0.5",children:[/* @__PURE__ */ae("span",{className:"text-xs font-medium tracking-wider text-zinc-400 uppercase dark:text-zinc-500",children:"Author"}),/* @__PURE__ */ae("span",{className:"text-xs text-zinc-800 dark:text-zinc-200",children:n??"—"})]}),
|
|
217
217
|
/* @__PURE__ */re("div",{className:"flex flex-col gap-1",children:[/* @__PURE__ */ae("span",{className:"text-xs font-medium tracking-wider text-zinc-400 uppercase dark:text-zinc-500",children:"Settings"}),l?/* @__PURE__ */ae("pre",{className:"overflow-auto rounded bg-zinc-50 p-2 font-mono text-xs leading-5 dark:bg-zinc-800",dangerouslySetInnerHTML:{__html:l}}):/* @__PURE__ */ae("span",{className:"text-xs text-zinc-400 italic dark:text-zinc-500",children:"No settings"})]})]})]})},Pl=({name:e,label:a,id:r,isSelected:n,className:i,onSelect:l})=>{let s=K(()=>l?.(r),[l,r]);/* @__PURE__ */
|
|
218
218
|
return ae("div",{className:t("flex w-full cursor-pointer items-center gap-2 border-l-2 px-2 py-1.5 transition-colors",{"border-l-violet-500 bg-violet-50 text-violet-700 dark:border-l-violet-500 dark:bg-violet-500/15 dark:text-violet-300":n,"border-l-transparent text-zinc-600 hover:bg-zinc-100 hover:text-zinc-900 dark:border-l-transparent dark:text-zinc-300 dark:hover:bg-zinc-800 dark:hover:text-zinc-100":!n},i),onClick:s,children:/* @__PURE__ */ae("div",{className:"truncate",title:e,children:a??e})})},ql=({items:e=[],className:a,value:r,onSelect:n})=>{let[i,l]=Y(""),s=X(()=>e.filter(e=>(e.name??"").toLowerCase().includes(i.toLowerCase())),[e,i]),o=X(()=>"string"==typeof r?e.find(e=>e.id===r):r,[r,e]),d=K(e=>l(e),[]),c=K(t=>n?.(e.find(e=>e.id===t)),[e,n]);/* @__PURE__ */
|
|
219
|
-
return re("div",{className:t("flex h-full flex-col gap-2 border-r border-zinc-200 dark:border-zinc-700",a),children:[/* @__PURE__ */ae("div",{className:"px-2 pt-2",children:/* @__PURE__ */ae(O,{value:i,onChange:d,placeholder:"Search...",size:"sm"})}),/* @__PURE__ */re("div",{className:"flex flex-col overflow-y-auto text-xs text-zinc-700 dark:text-zinc-300",children:[!s.length&&/* @__PURE__ */ae("div",{className:"p-4 text-center text-zinc-400 dark:text-zinc-600",children:"No items"}),s.length>0&&s.map((e,t)=>/* @__PURE__ */ae(Pl,{label:e.label,name:e.name,isSelected:o?.id===e.id,id:e.id,onSelect:c},t))]})]})},Wl={"local-custom":"Shipped with this space",remote:"Installed"},Ul=({className:e})=>{let{plugins:a}=H(
|
|
219
|
+
return re("div",{className:t("flex h-full flex-col gap-2 border-r border-zinc-200 dark:border-zinc-700",a),children:[/* @__PURE__ */ae("div",{className:"px-2 pt-2",children:/* @__PURE__ */ae(O,{value:i,onChange:d,placeholder:"Search...",size:"sm"})}),/* @__PURE__ */re("div",{className:"flex flex-col overflow-y-auto text-xs text-zinc-700 dark:text-zinc-300",children:[!s.length&&/* @__PURE__ */ae("div",{className:"p-4 text-center text-zinc-400 dark:text-zinc-600",children:"No items"}),s.length>0&&s.map((e,t)=>/* @__PURE__ */ae(Pl,{label:e.label,name:e.name,isSelected:o?.id===e.id,id:e.id,onSelect:c},t))]})]})},Wl={"local-custom":"Shipped with this space",remote:"Installed"},Ul=({className:e})=>{let{plugins:a}=H(b),{components:n}=H(r),i=X(()=>{let e=/* @__PURE__ */new Map;return Object.entries(n.current).forEach(([t,a])=>{let{origin:r}=a;("local-custom"===r||"remote"===r)&&e.set(t,{type:t,origin:r,version:a.version})}),Object.entries(a).forEach(([t,a])=>{let r=e.get(t),{manifest:n}=a;e.set(t,{type:t,origin:r?.origin??"remote",version:n.version||r?.version,author:n.author,settings:a.settings})}),[...e.values()].map(e=>({...e,id:e.type,name:e.type,label:/* @__PURE__ */re("div",{className:"flex flex-col gap-0.5",children:[/* @__PURE__ */ae("span",{className:"capitalize",children:e.type}),/* @__PURE__ */ae("span",{className:"text-[10px] text-zinc-400 dark:text-zinc-500",children:e.version??Wl[e.origin]})]})}))},[a,n.current]),[l,s]=Y(),o=K(e=>s(e),[]);/* @__PURE__ */
|
|
220
220
|
return re("div",{className:t("flex h-full w-full",e),children:[/* @__PURE__ */ae(ql,{className:"w-[240px]",items:i,value:l,onSelect:o}),l?/* @__PURE__ */ae(Bl,{entry:l}):/* @__PURE__ */re("div",{className:"flex grow flex-col items-center justify-center gap-2 text-zinc-400 dark:text-zinc-600",children:[/* @__PURE__ */ae("i",{className:"fa-solid fa-puzzle-piece text-2xl opacity-30"}),/* @__PURE__ */ae("span",{children:"Select a plugin"})]})]})},Hl=()=>{let{settings:e,setCheck:t}=H(qe),a=Ee.every(t=>e.checks[t]),r=a?"None":"Run all",n=K(()=>Ee.forEach(e=>t(e,!a)),[t,a]);/* @__PURE__ */
|
|
221
221
|
return ae("button",{type:"button",className:"rounded px-1.5 py-0.5 font-medium normal-case hover:bg-zinc-100 dark:hover:bg-zinc-800",onClick:n,children:r})},Kl="devtools-element-hovered",Ql=({finding:{element:e,note:t}})=>{let a=e.getAttribute("data-plitzi-el"),r=K(()=>{e.scrollIntoView({block:"center",behavior:"smooth"}),e.classList.add(Kl),setTimeout(()=>e.classList.remove(Kl),1600)},[e]);/* @__PURE__ */
|
|
222
222
|
return re("button",{type:"button",className:"flex w-full cursor-pointer items-center gap-2 px-3 py-1 pl-6 text-left hover:bg-zinc-50 dark:hover:bg-zinc-800/60",onClick:r,children:[
|
|
Binary file
|