@artstorefronts/arthelper-nav 0.1.0 → 0.1.2

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.
@@ -24,9 +24,11 @@ import type { NavConfigPayload } from './types.js';
24
24
  * These are the production domains, which is why they can live in compiled code at all.
25
25
  * Changing this list requires a package release, so it is deliberately the stable
26
26
  * first-party set — anything situational (a stage host, a locally-run satellite) belongs
27
- * in the config row, where an admin can edit it without a release. `enabled` states drift
28
- * from the row over time; that is expected and harmless, since the row wins whenever the
29
- * endpoint is reachable.
27
+ * in the config row, where an admin can edit it without a release. The row wins whenever the
28
+ * endpoint is reachable, but this list is all a first-ever visit, an outage first-visit, and
29
+ * any session whose API does not serve `/rest/nav-config` ever sees — so a stale href here
30
+ * is a dead link for them. Refresh the hrefs and `enabled` states from the live production
31
+ * payload on each release.
30
32
  */
31
33
  declare const FALLBACK_CONFIG: NavConfigPayload;
32
34
  export { FALLBACK_CONFIG };
@@ -1 +1 @@
1
- {"version":3,"file":"fallback.d.ts","sourceRoot":"","sources":["../src/fallback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,QAAA,MAAM,eAAe,EAAE,gBAuBtB,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"fallback.d.ts","sourceRoot":"","sources":["../src/fallback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,QAAA,MAAM,eAAe,EAAE,gBA0CtB,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
package/dist/fallback.js CHANGED
@@ -23,30 +23,51 @@
23
23
  * These are the production domains, which is why they can live in compiled code at all.
24
24
  * Changing this list requires a package release, so it is deliberately the stable
25
25
  * first-party set — anything situational (a stage host, a locally-run satellite) belongs
26
- * in the config row, where an admin can edit it without a release. `enabled` states drift
27
- * from the row over time; that is expected and harmless, since the row wins whenever the
28
- * endpoint is reachable.
26
+ * in the config row, where an admin can edit it without a release. The row wins whenever the
27
+ * endpoint is reachable, but this list is all a first-ever visit, an outage first-visit, and
28
+ * any session whose API does not serve `/rest/nav-config` ever sees — so a stale href here
29
+ * is a dead link for them. Refresh the hrefs and `enabled` states from the live production
30
+ * payload on each release.
29
31
  */
30
32
  const FALLBACK_CONFIG = {
31
33
  schema_version: 1,
32
34
  apps: [
33
35
  { id: 'home', label: 'Home', icon: 'house', href: 'https://www.arthelper.com/community', enabled: true },
34
36
  { id: 'the-daily', label: 'The Daily', icon: 'sunrise', href: 'https://thedaily.arthelper.com', enabled: false },
35
- { id: 'art-review', label: 'Art Review', icon: 'star', href: 'https://artreview.arthelper.com', enabled: true },
37
+ {
38
+ id: 'art-review',
39
+ label: 'Art Review',
40
+ icon: 'star',
41
+ href: 'https://artreview.arthelper.com/reports',
42
+ enabled: true,
43
+ },
36
44
  {
37
45
  id: 'creative-sparks',
38
46
  label: 'Creative Sparks',
39
47
  icon: 'sparkles',
40
48
  href: 'https://sparks.arthelper.com',
41
- enabled: false,
49
+ enabled: true,
50
+ },
51
+ { id: 'mockups', label: 'Mockups', icon: 'frame', href: 'https://mockups.arthelper.com', enabled: true },
52
+ {
53
+ id: 'art-books',
54
+ label: 'Art Books',
55
+ icon: 'book-open',
56
+ href: 'https://artbooks.arthelper.com/books',
57
+ enabled: true,
42
58
  },
43
- { id: 'mockups', label: 'Mockups', icon: 'frame', href: 'https://mockups.arthelper.com', enabled: false },
44
- { id: 'art-books', label: 'Art Books', icon: 'book-open', href: 'https://artbooks.arthelper.com', enabled: false },
45
59
  {
46
60
  id: 'social-posting',
47
- label: 'Social Posting',
61
+ label: 'Social Autoposter',
48
62
  icon: 'megaphone',
49
- href: 'https://copilot.arthelper.com',
63
+ href: 'https://autoposter.arthelper.com',
64
+ enabled: true,
65
+ },
66
+ {
67
+ id: 'playbooks',
68
+ label: 'Playbooks',
69
+ icon: 'clipboard-list',
70
+ href: 'https://playbooks.arthelper.com',
50
71
  enabled: false,
51
72
  },
52
73
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"fallback.js","sourceRoot":"","sources":["../src/fallback.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,eAAe,GAAqB;IACxC,cAAc,EAAE,CAAC;IACjB,IAAI,EAAE;QACJ,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,qCAAqC,EAAE,OAAO,EAAE,IAAI,EAAE;QACxG,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,gCAAgC,EAAE,OAAO,EAAE,KAAK,EAAE;QAChH,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAiC,EAAE,OAAO,EAAE,IAAI,EAAE;QAC/G;YACE,EAAE,EAAE,iBAAiB;YACrB,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,8BAA8B;YACpC,OAAO,EAAE,KAAK;SACf;QACD,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,+BAA+B,EAAE,OAAO,EAAE,KAAK,EAAE;QACzG,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,gCAAgC,EAAE,OAAO,EAAE,KAAK,EAAE;QAClH;YACE,EAAE,EAAE,gBAAgB;YACpB,KAAK,EAAE,gBAAgB;YACvB,IAAI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E,IAAI;SACd;QACD;YACE,EAAE,EAAE,WAAW;YACf,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,iCAAiC;YACvC,OAAO,EAAE,KAAK;SACf;KACF;CACF,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.tsx"],"names":[],"mappings":"AA+BA,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wFAAwF;AACxF,iBAAS,OAAO,CAAC,EAAE,IAAI,EAAE,IAAS,EAAE,SAA0B,EAAE,EAAE,YAAY,2CAG7E;AAED,6EAA6E;AAC7E,iBAAS,UAAU,CAAC,EAAE,IAAS,EAAE,SAA0B,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAEnG;AAED,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.tsx"],"names":[],"mappings":"AAiCA,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wFAAwF;AACxF,iBAAS,OAAO,CAAC,EAAE,IAAI,EAAE,IAAS,EAAE,SAA0B,EAAE,EAAE,YAAY,2CAG7E;AAED,6EAA6E;AAC7E,iBAAS,UAAU,CAAC,EAAE,IAAS,EAAE,SAA0B,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAEnG;AAED,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC"}
package/dist/icons.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { BookOpen, Circle, Frame, House, LayoutGrid, Megaphone, Sparkles, Star, Sunrise, } from 'lucide-react';
3
+ import { BookOpen, Circle, ClipboardList, Frame, House, LayoutGrid, Megaphone, Sparkles, Star, Sunrise, } from 'lucide-react';
4
4
  /**
5
5
  * The catalog's icon names, keyed exactly as the seed spells them. lucide emits
6
6
  * inline stroke SVGs with viewBox="0 0 24 24", stroke-width 2 and round caps,
@@ -14,6 +14,7 @@ const ICONS = {
14
14
  frame: Frame,
15
15
  'book-open': BookOpen,
16
16
  megaphone: Megaphone,
17
+ 'clipboard-list': ClipboardList,
17
18
  'layout-grid': LayoutGrid,
18
19
  };
19
20
  /** An unrecognised icon name degrades to a neutral circle rather than an empty chip. */
package/dist/icons.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"icons.js","sourceRoot":"","sources":["../src/icons.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EACL,QAAQ,EACR,MAAM,EACN,KAAK,EACL,KAAK,EACL,UAAU,EACV,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,OAAO,GAER,MAAM,cAAc,CAAC;AAEtB;;;;GAIG;AACH,MAAM,KAAK,GAA+B;IACxC,KAAK,EAAE,KAAK;IACZ,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,IAAI;IACV,QAAQ,EAAE,QAAQ;IAClB,KAAK,EAAE,KAAK;IACZ,WAAW,EAAE,QAAQ;IACrB,SAAS,EAAE,SAAS;IACpB,aAAa,EAAE,UAAU;CAC1B,CAAC;AAQF,wFAAwF;AACxF,SAAS,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,EAAE,SAAS,GAAG,cAAc,EAAgB;IAC5E,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC;IACnC,OAAO,KAAC,IAAI,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WAAW,EAAE,CAAC,GAAI,CAAC;AACtG,CAAC;AAED,6EAA6E;AAC7E,SAAS,UAAU,CAAC,EAAE,IAAI,GAAG,EAAE,EAAE,SAAS,GAAG,cAAc,EAAyC;IAClG,OAAO,KAAC,UAAU,mBAAa,MAAM,EAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,GAAI,CAAC;AAC5G,CAAC;AAED,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC"}
package/dist/index.css CHANGED
@@ -313,9 +313,19 @@
313
313
  align-items: center;
314
314
  justify-content: center;
315
315
  gap: 4px;
316
- width: 88px;
316
+ /* Sized to its label between two bounds, not fixed. Labels are admin-editable, so a
317
+ * fixed width only holds until someone types a longer one: at 88px "Social Autoposter"
318
+ * (~95px, ~97px in the active weight) overflowed its tile, and as the last tile the
319
+ * row's `overflow: hidden` cut its final letter. Every shorter label still lands on the
320
+ * 88px floor (border-box, so the padding is inside it); past the 128px cap the label
321
+ * ellipsises instead of spilling into its neighbour or being clipped mid-glyph. No
322
+ * padding: a tile grows only by its label's actual overflow, and the row's 4px gap
323
+ * already separates two widened neighbours. */
324
+ width: auto;
325
+ min-width: 88px;
326
+ max-width: 128px;
317
327
  height: 52px;
318
- flex: 0 0 88px;
328
+ flex: 0 0 auto;
319
329
  padding: 0;
320
330
  margin: 0;
321
331
  background: transparent;
@@ -359,11 +369,14 @@ span.ahsuite-row {
359
369
  }
360
370
 
361
371
  .ahsuite-label {
372
+ max-width: 100%;
373
+ overflow: hidden;
362
374
  font-size: 11px;
363
375
  font-weight: 500;
364
376
  line-height: 1;
365
377
  color: var(--ahsuite-label);
366
378
  white-space: nowrap;
379
+ text-overflow: ellipsis;
367
380
  }
368
381
 
369
382
  /* The active chip's two-stop gradient is fixed. It used to be overridable by a single
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artstorefronts/arthelper-nav",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "The ArtHelper suite navigation bar — a config-driven, cross-origin app switcher.",
5
5
  "license": "ISC",
6
6
  "type": "module",