@40rty/ams-ui 0.5.2 → 0.5.3

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.
Files changed (33) hide show
  1. package/dist/agent.js +1 -1
  2. package/dist/catalog-data.js +1 -1
  3. package/dist/catalog-entries.js +2 -2
  4. package/dist/{chunk-RKPDCXL4.js → chunk-2HM6EVDV.js} +18 -0
  5. package/dist/chunk-2QRYXSCB.js +5344 -0
  6. package/dist/{chunk-CKGGECAQ.js → chunk-KW2DLXHP.js} +1 -1
  7. package/dist/{chunk-LQLOG2V3.js → chunk-N5XACWEX.js} +1 -1
  8. package/dist/conversation/manifests/conversation/explain.md +13 -0
  9. package/dist/conversation/manifests/conversation/facts.md +13 -0
  10. package/dist/conversation/manifests/conversation/guidedPick.md +13 -0
  11. package/dist/conversation/manifests/conversation/note.md +13 -0
  12. package/dist/conversation/manifests/conversation/paths.md +13 -0
  13. package/dist/conversation/manifests/conversation/shortlist.md +13 -0
  14. package/dist/conversation/manifests/conversation/tradeoff.md +13 -0
  15. package/dist/conversation/manifests/conversation/verdict.md +13 -0
  16. package/dist/conversation.js +947 -0
  17. package/dist/css/conversation/conversation.css +20 -0
  18. package/dist/css/shell/mobile/island.css +2 -2
  19. package/dist/index.js +14 -12
  20. package/dist/shell.js +47 -5295
  21. package/dist/types/agent/presence/PresenceFiller.d.ts +1 -1
  22. package/dist/types/agent/presence/folded.d.ts +1 -1
  23. package/dist/types/components/ecommerce/product/AddToRegistry.d.ts +1 -1
  24. package/dist/types/components/ecommerce/product/PresenceProductRail.d.ts +1 -1
  25. package/dist/types/components/ecommerce/product/ProductGrid.d.ts +1 -1
  26. package/dist/types/components/layout/Modal.d.ts +1 -1
  27. package/dist/types/labels.d.ts +21 -2
  28. package/dist/types/shell/MenuDrawer.d.ts +2 -2
  29. package/dist/types/shell/ShellScaffold.d.ts +1 -1
  30. package/dist/types/shell/mobile/MobileChrome.d.ts +1 -1
  31. package/dist/types/shell/mobile/MorphIsland.d.ts +1 -1
  32. package/dist/types/shell/mobile/hero-entry-point.d.ts +1 -1
  33. package/package.json +7 -2
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  *
5
5
  * The band's `working` branch deliberately renders NOTHING when its stream is
6
6
  * empty, on the reasoning that a surface with no bits should stay quiet. On a
7
- * real turn that reads as a stall: measured on Babysense, the strip sat blank
7
+ * real turn that reads as a stall: measured on a live space, the strip sat blank
8
8
  * for 1.4s after the visitor pressed send, then again for 2.7s and 2.2s before
9
9
  * any prose landed.
10
10
  *
@@ -17,7 +17,7 @@ export declare function FoldedRead({ label, facts, text }: {
17
17
  *
18
18
  * Its accessible name used to be "Show what the stylist knows" — hard-coded, in
19
19
  * shared infra, in ONE brand's voice. Shared code carries no brand's words; the
20
- * default is neutral and Steve Madden overrides it back to "the stylist"
20
+ * default is neutral and a brand with a stylist overrides it back to "the stylist"
21
21
  * through the `Labels` seam like any other piece of brand copy.
22
22
  */
23
23
  export declare function BriefHandle({ open, onToggle, }: {
@@ -29,7 +29,7 @@ interface AddToRegistryProps {
29
29
  * "Add to Registry" — the third product-detail action. A full-width toggle that
30
30
  * expands a menu of registry partners, each opening its destination in a new
31
31
  * tab. Purely presentational: destinations arrive via `providers`; the brand
32
- * supplies them (see the babysense ProductDetail wrapper). Renders nothing when
32
+ * supplies them (e.g. from its own ProductDetail wrapper). Renders nothing when
33
33
  * `providers` is empty so it stays inert for spaces that don't opt in.
34
34
  */
35
35
  export declare function AddToRegistry({ title, providers, productId }: AddToRegistryProps): import("react/jsx-runtime").JSX.Element | null;
@@ -5,7 +5,7 @@ import * as React from 'react';
5
5
  *
6
6
  * Presentational + token-driven: real `ProductImage` tiles at the brand's
7
7
  * product aspect ratio on the brand surface, sharp-cornered, no invented
8
- * styling — it inherits whatever theme is active (Steve Madden: white tile,
8
+ * styling — it inherits whatever theme is active (e.g. white tile,
9
9
  * `--ar-product` 4/5, sharp). Image-only by design; titles/prices clutter a
10
10
  * band this small. Tiles stream in with the editorial ease.
11
11
  */
@@ -3,7 +3,7 @@ import type { Product } from '../../../types/commerce';
3
3
  export interface ProductGridProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  products: Product[];
5
5
  title?: string;
6
- /** May be a `prose()`-marked field (current-backyard passes `reason` here). */
6
+ /** May be a `prose()`-marked field (a brand may pass `reason` here). */
7
7
  subtitle?: React.ReactNode;
8
8
  /** Optional uppercase eyebrow shown above the title — e.g. "FEATURED", "JUST IN". */
9
9
  eyebrow?: string;
@@ -15,7 +15,7 @@ export interface ModalProps {
15
15
  * spacefront canvas. Responsive by construction via `useFormFactor()`:
16
16
  * mobile renders the existing `DragSheet` (fit to content, drag-to-dismiss);
17
17
  * desktop renders a centered dialog generalized from the pattern `CartDrawer`
18
- * and Steve Madden's `LookSizeSheet` each hand-rolled independently. Portals
18
+ * and a brand's size sheet each hand-rolled independently. Portals
19
19
  * into `useShellRoot()` so it stays scoped to the embed, matching every
20
20
  * other overlay in the canvas — never escapes to the document.
21
21
  *
@@ -186,7 +186,7 @@ export interface Labels {
186
186
  cart: {
187
187
  /** Header title above the drawer body — defaults to "bag" per the
188
188
  * base design language; brands that use "cart" terminology
189
- * (e.g. Steve Madden) override here. */
189
+ * override here. */
190
190
  title: string;
191
191
  /** Empty-state primary line. */
192
192
  empty: string;
@@ -197,7 +197,7 @@ export interface Labels {
197
197
  /** Secondary cart CTA — exits to the merchant's official store with
198
198
  * the cart contents (rendered only when the cart carries a
199
199
  * `storeCartUrl`). Brands override with their store name, e.g.
200
- * "continue on stevemadden.com". */
200
+ * "continue on acme.example". */
201
201
  viewOnStore: string;
202
202
  /** Free-shipping threshold in the store's currency. Brands that
203
203
  * offer free shipping above an amount set this; `null` (default)
@@ -242,5 +242,24 @@ export interface Labels {
242
242
  * last settled ones and do not yet include that line. */
243
243
  totalsPending: string;
244
244
  };
245
+ /** The conversation page (`@fourty/ui/conversation`): its chrome and blocks. */
246
+ conversation: {
247
+ home: string;
248
+ thisPage: string;
249
+ whatIKnow: string;
250
+ startOver: string;
251
+ clearFacts: string;
252
+ searching: (query: string) => string;
253
+ working: string;
254
+ lookedAt: (count: number) => string;
255
+ send: string;
256
+ verdict: string;
257
+ ourPick: string;
258
+ tradeoff: string;
259
+ tradeoffCaveat: (caveat: string) => string;
260
+ pathsTitle: string;
261
+ noteEyebrow: string;
262
+ explainProducts: string;
263
+ };
245
264
  }
246
265
  export declare const DEFAULT_LABELS: Labels;
@@ -2,8 +2,8 @@ import * as React from 'react';
2
2
  import { AgentSignalInput, ShellMenuItem } from '@40rty/ams-sdk';
3
3
  /**
4
4
  * Platform category drawer — the "shop by category" navigation a storefront
5
- * visitor reaches for, extracted out of Steve Madden's shell so any brand can
6
- * mount the same pattern (SM, babysense, …) instead of re-implementing it.
5
+ * visitor reaches for, extracted out of one brand's shell so any brand can
6
+ * mount the same pattern instead of re-implementing it.
7
7
  * Split into dumb pieces so the shell (the common parent) owns open/close state:
8
8
  *
9
9
  * - `MenuTrigger` — the button that opens the drawer. The brand supplies its
@@ -2,7 +2,7 @@
2
2
  * ShellScaffold — the reusable spacefront shell skeleton.
3
3
  *
4
4
  * Extracts the layout structure every brand shell re-implements by hand
5
- * (the 2,808-line Steve Madden shell being the reference): a flex-col
5
+ * (a 2,808-line brand shell being the reference): a flex-col
6
6
  * container → presence notch → a relative canvas region with the agent canvas
7
7
  * scroll, a floating header overlay, the side-dock composer, a floating
8
8
  * launcher row, and drawers — plus the dock open/close state and the mobile
@@ -29,6 +29,6 @@ export interface MobileChromeProps {
29
29
  * content JAMMING into the chrome — a headline sliced mid-glyph with no
30
30
  * separation. So the bar earns a lift exactly while there's something under
31
31
  * it to lift off: `data-scrolled` flips at the first pixel of scroll. Same
32
- * shape as every storefront header, babysense's own included.
32
+ * shape as every storefront header.
33
33
  */
34
34
  export declare function MobileChrome({ logo, launchers }: MobileChromeProps): React.ReactElement;
@@ -75,7 +75,7 @@ export interface MorphIslandProps {
75
75
  * visitor is typing. */
76
76
  onComposeFocusChange?: (focused: boolean) => void;
77
77
  /** The mark the pill carries once it has condensed. Slot-driven because the
78
- * best answer is brand-owned: Babysense passes its own lowercase b, which
78
+ * best answer is brand-owned: a brand passes e.g. its own initial, which
79
79
  * says whose assistant this is in a way no platform glyph can. Omit for
80
80
  * `DEFAULT_COLLAPSED_MARK`.
81
81
  *
@@ -5,7 +5,7 @@ import * as React from 'react';
5
5
  * On a phone the island is normally the only way to talk to the space, so it
6
6
  * is docked on the floor from first paint. But a brand hero can carry its own
7
7
  * entry point — a prompt box sitting in the hero, where the visitor is already
8
- * looking, with the brand's own conversation starters under it (babysense's
8
+ * looking, with the brand's own conversation starters under it (a brand's
9
9
  * `HeroPromptInput`). When it does, two surfaces are asking the same question
10
10
  * at once, and the one at the bottom of the screen is the one the visitor did
11
11
  * not come for.
package/package.json CHANGED
@@ -50,10 +50,15 @@
50
50
  "types": "./dist/types/presence/index.d.ts",
51
51
  "default": "./dist/presence.js"
52
52
  },
53
+ "./conversation": {
54
+ "types": "./dist/types/conversation/index.d.ts",
55
+ "default": "./dist/conversation.js"
56
+ },
53
57
  "./motion.css": "./dist/css/preset/motion.css",
54
58
  "./island.css": "./dist/css/shell/spacefront-island.css",
55
59
  "./thread-panel.css": "./dist/css/shell/spacefront-thread-panel.css",
56
60
  "./presence.css": "./dist/css/shell/spacefront-presence.css",
61
+ "./conversation.css": "./dist/css/conversation/conversation.css",
57
62
  "./preset/tailwind-theme.css": "./dist/css/preset/tailwind-theme.css"
58
63
  },
59
64
  "sideEffects": [
@@ -71,12 +76,12 @@
71
76
  "zod": "^3.23.0"
72
77
  },
73
78
  "peerDependencies": {
74
- "@40rty/ams-sdk": "0.5.2",
79
+ "@40rty/ams-sdk": "0.5.3",
75
80
  "lucide-react": ">=0.400.0",
76
81
  "react": ">=18.0.0",
77
82
  "react-dom": ">=18.0.0"
78
83
  },
79
- "version": "0.5.2",
84
+ "version": "0.5.3",
80
85
  "homepage": "https://docs.40rty.ai",
81
86
  "license": "UNLICENSED",
82
87
  "engines": {