@cloudgrid-io/ui 0.29.2 → 0.31.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 +63 -0
- package/dist/blocks/agent-prompt.d.ts +17 -1
- package/dist/blocks/agent-prompt.d.ts.map +1 -1
- package/dist/blocks/agent-prompt.js +33 -3
- package/dist/blocks/agent-prompt.js.map +1 -1
- package/dist/blocks/cloudgrid-install.d.ts +67 -0
- package/dist/blocks/cloudgrid-install.d.ts.map +1 -0
- package/dist/blocks/cloudgrid-install.js +192 -0
- package/dist/blocks/cloudgrid-install.js.map +1 -0
- package/dist/blocks/command-field.d.ts +38 -0
- package/dist/blocks/command-field.d.ts.map +1 -0
- package/dist/blocks/command-field.js +70 -0
- package/dist/blocks/command-field.js.map +1 -0
- package/dist/blocks/drop-zone.d.ts +2 -1
- package/dist/blocks/drop-zone.d.ts.map +1 -1
- package/dist/blocks/drop-zone.js.map +1 -1
- package/dist/blocks/entity-card.d.ts +81 -24
- package/dist/blocks/entity-card.d.ts.map +1 -1
- package/dist/blocks/entity-card.js +235 -126
- package/dist/blocks/entity-card.js.map +1 -1
- package/dist/blocks/icons.d.ts +23 -1
- package/dist/blocks/icons.d.ts.map +1 -1
- package/dist/blocks/icons.js +23 -1
- package/dist/blocks/icons.js.map +1 -1
- package/dist/blocks/install-content.d.ts +228 -0
- package/dist/blocks/install-content.d.ts.map +1 -0
- package/dist/blocks/install-content.js +464 -0
- package/dist/blocks/install-content.js.map +1 -0
- package/dist/blocks/logo.d.ts +70 -1
- package/dist/blocks/logo.d.ts.map +1 -1
- package/dist/blocks/logo.js +75 -2
- package/dist/blocks/logo.js.map +1 -1
- package/dist/blocks/phosphor-marks.d.ts +6 -0
- package/dist/blocks/phosphor-marks.d.ts.map +1 -1
- package/dist/blocks/phosphor-marks.js +9 -0
- package/dist/blocks/phosphor-marks.js.map +1 -1
- package/dist/blocks/prompt-block.d.ts +57 -0
- package/dist/blocks/prompt-block.d.ts.map +1 -0
- package/dist/blocks/prompt-block.js +219 -0
- package/dist/blocks/prompt-block.js.map +1 -0
- package/dist/blocks/stage-panel.d.ts +19 -0
- package/dist/blocks/stage-panel.d.ts.map +1 -1
- package/dist/blocks/stage-panel.js +2 -4
- package/dist/blocks/stage-panel.js.map +1 -1
- package/dist/blocks/step-item.d.ts +21 -1
- package/dist/blocks/step-item.d.ts.map +1 -1
- package/dist/blocks/step-item.js +27 -2
- package/dist/blocks/step-item.js.map +1 -1
- package/dist/blocks/tool-logo.d.ts.map +1 -1
- package/dist/blocks/tool-logo.js +10 -6
- package/dist/blocks/tool-logo.js.map +1 -1
- package/dist/blocks/tool-setup.d.ts +95 -9
- package/dist/blocks/tool-setup.d.ts.map +1 -1
- package/dist/blocks/tool-setup.js +129 -49
- package/dist/blocks/tool-setup.js.map +1 -1
- package/dist/brand/mark-180.png +0 -0
- package/dist/brand/mark-192.png +0 -0
- package/dist/brand/mark-32.png +0 -0
- package/dist/brand/mark-512.png +0 -0
- package/dist/brand/mark-inverted-180.png +0 -0
- package/dist/brand/mark-inverted-192.png +0 -0
- package/dist/brand/mark-inverted-32.png +0 -0
- package/dist/brand/mark-inverted-512.png +0 -0
- package/dist/brand/mark-inverted.svg +8 -0
- package/dist/brand/mark.svg +7 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -2
- package/dist/blocks/plug-method.d.ts +0 -76
- package/dist/blocks/plug-method.d.ts.map +0 -1
- package/dist/blocks/plug-method.js +0 -30
- package/dist/blocks/plug-method.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drop-zone.js","sourceRoot":"","sources":["../../src/blocks/drop-zone.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,q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;wBACzB,CAAC,CAAC,QAAQ,GAAG,CAAC;4BACZ,CAAC,CAAC,GAAG,QAAQ,qBAAqB;4BAClC,CAAC,CAAC,EAAE,GACL,IACH,CACP,CAAA;AACH,CAAC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -140,10 +140,29 @@ import * as React from "react";
|
|
|
140
140
|
* an `sr-only` span, because "agent" is information and a decorative mark is not
|
|
141
141
|
* a way to convey it.
|
|
142
142
|
*
|
|
143
|
+
* ## A click opens the details page (#268)
|
|
144
|
+
*
|
|
145
|
+
* Founder, 2026-10-05: *clicking an app card on any page opens the app's page
|
|
146
|
+
* in the console*, not the live app. So when `dashboardHref` is set, the
|
|
147
|
+
* DETAILS link owns the card's one stretched hit area — the whole card,
|
|
148
|
+
* thumbnail included — whether or not the entity is live, and the live link is
|
|
149
|
+
* the small secondary arrow, still `target="_blank"`, named "Open live app".
|
|
150
|
+
* The details link is named "Details" and wears `EntityDetailsIcon`
|
|
151
|
+
* (`list-magnifying-glass`); it renders through `linkComponent` when one is
|
|
152
|
+
* passed, so a router can navigate client-side.
|
|
153
|
+
*
|
|
154
|
+
* Two things did not change. With no `dashboardHref` the live link owns the
|
|
155
|
+
* click as it always did, and `primaryAction="live"` restores the whole
|
|
156
|
+
* pre-#268 model for a consumer that wants it. Much of the history below
|
|
157
|
+
* describes the live link as "Open" and the details link as "Dashboard"; those
|
|
158
|
+
* are the same two doors under their old names, and every rule about them — the
|
|
159
|
+
* new tab, the `rel`, the #171 gating of whichever door is secondary, the #193
|
|
160
|
+
* disabled state — carries over unchanged.
|
|
161
|
+
*
|
|
143
162
|
* ## The panel, and the rule it supersedes
|
|
144
163
|
*
|
|
145
164
|
* `reveal` puts a WHITE panel over the bottom of the card carrying the title,
|
|
146
|
-
* the state dot, two real links (
|
|
165
|
+
* the state dot, two real links (details and live), the description, the
|
|
147
166
|
* creator and the card's own controls. It shows on hover and on `:focus-within`,
|
|
148
167
|
* and it respects `prefers-reduced-motion` by arriving without the fade rather
|
|
149
168
|
* than not at all.
|
|
@@ -154,16 +173,18 @@ import * as React from "react";
|
|
|
154
173
|
* laid over the lower half of the picture, the type is the page's own ink, and
|
|
155
174
|
* the picture above it stays a picture.
|
|
156
175
|
*
|
|
157
|
-
* **The
|
|
176
|
+
* **The details action is not a gear.** Founder direction
|
|
158
177
|
* 2026-09-08 (#182). The door it opens is the entity's page in the console,
|
|
159
178
|
* which shows analytics and what runs under the hood — so what it promises is
|
|
160
179
|
* "look inside", and a gear promises "change how this is configured". Those are
|
|
161
180
|
* different pages and a reader who takes one for the other has been misled by
|
|
162
|
-
* the icon rather than by the label. The mark
|
|
181
|
+
* the icon rather than by the label. The mark was `EntityDashboardIcon`
|
|
163
182
|
* (Phosphor `chart-line-up` since #221 — `gauge` at #182, `engine` at #200, and
|
|
164
183
|
* each was unpicked by looking at it: a dial reads as a speed, an engine reads
|
|
165
|
-
* as machinery, and neither is the number a person opened the page for)
|
|
166
|
-
*
|
|
184
|
+
* as machinery, and neither is the number a person opened the page for), and
|
|
185
|
+
* since #268 it is `EntityDetailsIcon`, a list under a lens, because the page
|
|
186
|
+
* is findings rather than a chart. `SettingsIcon` is still exported for the
|
|
187
|
+
* surfaces that really are settings.
|
|
167
188
|
*
|
|
168
189
|
* The prop is `dashboardHref`. `settingsHref` is kept as a deprecated alias for
|
|
169
190
|
* this minor and maps straight to it, so no caller breaks on the rename — see
|
|
@@ -233,19 +254,23 @@ import * as React from "react";
|
|
|
233
254
|
* instead of on a wrapper, because an `<a>` inside an `<a>` is invalid HTML and
|
|
234
255
|
* browsers repair it by closing the outer one — which silently unlinks the card
|
|
235
256
|
* and leaves the actions where the parser decides to put them. The panel is the
|
|
236
|
-
* link surface instead:
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
* reveal
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
257
|
+
* link surface instead: the door that owns the click (details since #268,
|
|
258
|
+
* live without a `dashboardHref`) stretches across the whole card with an
|
|
259
|
+
* `::after`, and the other door sits above it. Until #268 that stretch covered
|
|
260
|
+
* only the panel, so the top of the thumbnail was dead; the panel now sits in a
|
|
261
|
+
* transparent full-card layer, which is what the stretch sizes to. Every
|
|
262
|
+
* existing caller is unaffected — `reveal` defaults off and the wrapper behaves
|
|
263
|
+
* exactly as it did. (With no `href` at all, the live link is disabled — see
|
|
264
|
+
* "The reveal never depends on data" below.)
|
|
265
|
+
*
|
|
266
|
+
* **The panel stays clickable while it is invisible — except the secondary
|
|
267
|
+
* door.** `opacity-0` is a paint state, not a pointer state, so a touch user
|
|
268
|
+
* with no hover at all still gets the card's door by tapping the thumbnail.
|
|
269
|
+
* Gating the stretched link's pointer events on hover would make the card do
|
|
270
|
+
* nothing on a phone.
|
|
271
|
+
*
|
|
272
|
+
* The secondary door (Dashboard, below, before #268; the live arrow since) is
|
|
273
|
+
* the one exception, and it has to be. It is `relative`, so it
|
|
249
274
|
* stacks above Open's stretched hit area; live at rest, that made a pill-sized
|
|
250
275
|
* region of an invisible panel go to that link on a tap — different from every
|
|
251
276
|
* pixel around it, and impossible to see (#171). So it carries
|
|
@@ -445,7 +470,7 @@ declare function EntityKindBadge({ kind, size, className, ...props }: Omit<React
|
|
|
445
470
|
kind: EntityKind;
|
|
446
471
|
size?: "sm" | "md";
|
|
447
472
|
}): React.JSX.Element;
|
|
448
|
-
declare function EntityCard({ title, slug, description, size, titleLines, descriptionLines, status, statusDot, headerActions, stats, seed, previewUrl, kind, reveal, openDisabledReason, dashboardHref, settingsHref, creator, panelMeta, href, ariaLabel, meta, footer, className, children, ...props }: Omit<React.ComponentProps<"div">, "ref" | "title"> & {
|
|
473
|
+
declare function EntityCard({ title, slug, description, size, titleLines, descriptionLines, status, statusDot, headerActions, stats, seed, previewUrl, kind, reveal, openDisabledReason, dashboardHref, settingsHref, primaryAction, linkComponent, creator, panelMeta, href, ariaLabel, meta, footer, className, children, ...props }: Omit<React.ComponentProps<"div">, "ref" | "title"> & {
|
|
449
474
|
title: string;
|
|
450
475
|
/** The entity's address, in the mono utility face. */
|
|
451
476
|
slug?: string;
|
|
@@ -551,13 +576,17 @@ declare function EntityCard({ title, slug, description, size, titleLines, descri
|
|
|
551
576
|
*/
|
|
552
577
|
openDisabledReason?: React.ReactNode;
|
|
553
578
|
/**
|
|
554
|
-
* The
|
|
555
|
-
*
|
|
579
|
+
* The details action's target: the entity's page in the console — Overview,
|
|
580
|
+
* insights, and what runs under the hood.
|
|
581
|
+
*
|
|
582
|
+
* Since #268 this is the card's CLICK. When it is set, the details link owns
|
|
583
|
+
* the stretched hit area, so a click or tap anywhere on the card, thumbnail
|
|
584
|
+
* included, goes here; the live entity becomes the small secondary icon. See
|
|
585
|
+
* `primaryAction` for the one way to keep the old live-first behaviour.
|
|
556
586
|
*
|
|
557
587
|
* Read wherever the action pair renders — the panel on a stacked card, the end
|
|
558
|
-
* of the cluster on a `row` (#182).
|
|
559
|
-
*
|
|
560
|
-
* takes the stretched hit area (#193).
|
|
588
|
+
* of the cluster on a `row` (#182). The prop keeps its #182 name: renaming it
|
|
589
|
+
* would break every caller for a word, and what it points at did not move.
|
|
561
590
|
*/
|
|
562
591
|
dashboardHref?: string;
|
|
563
592
|
/**
|
|
@@ -569,6 +598,34 @@ declare function EntityCard({ title, slug, description, size, titleLines, descri
|
|
|
569
598
|
* next major; the fix is one word at each call site.
|
|
570
599
|
*/
|
|
571
600
|
settingsHref?: string;
|
|
601
|
+
/**
|
|
602
|
+
* Which door the card's click opens. `"details"` by default (#268, founder
|
|
603
|
+
* 2026-10-05): a click on an entity card opens its page in the console, and
|
|
604
|
+
* the live entity is the secondary icon, still opening in a new tab.
|
|
605
|
+
*
|
|
606
|
+
* `"live"` restores the pre-#268 model for a consumer that needs it: the live
|
|
607
|
+
* link owns the stretched hit area and the details link is the lifted
|
|
608
|
+
* secondary. The console does not pass it.
|
|
609
|
+
*
|
|
610
|
+
* Only a preference between two doors that both exist. With no
|
|
611
|
+
* `dashboardHref` the live link owns the click whatever this says, and with
|
|
612
|
+
* no `href` the details link does (#193), because a card's one stretched
|
|
613
|
+
* layer always belongs to a door that can be opened.
|
|
614
|
+
*/
|
|
615
|
+
primaryAction?: "details" | "live";
|
|
616
|
+
/**
|
|
617
|
+
* The element the DETAILS link renders as. A plain `<a>` by default.
|
|
618
|
+
*
|
|
619
|
+
* Pass your router's link — Next's `Link`, for the console — so a card click
|
|
620
|
+
* navigates client-side instead of reloading the page. It receives `href`,
|
|
621
|
+
* `className`, `data-*` attributes and children, which is the anchor subset
|
|
622
|
+
* every router link forwards to the `<a>` it renders.
|
|
623
|
+
*
|
|
624
|
+
* Only the details link. The live link stays a plain `<a target="_blank">`:
|
|
625
|
+
* it leaves for a tenant's own app in a new tab, which no client router can
|
|
626
|
+
* or should handle.
|
|
627
|
+
*/
|
|
628
|
+
linkComponent?: React.ElementType;
|
|
572
629
|
/**
|
|
573
630
|
* Who made it, shown on the reveal panel. `avatar` is a node so a consumer can
|
|
574
631
|
* pass its own image, initials tile or `EntityIdentity`; this card does not
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-card.d.ts","sourceRoot":"","sources":["../../src/blocks/entity-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAgB9B
|
|
1
|
+
{"version":3,"file":"entity-card.d.ts","sourceRoot":"","sources":["../../src/blocks/entity-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAgB9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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