@crossworks/share-ui 0.232.81 → 0.232.83
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/package.json +3 -3
- package/src/avatar.test.ts +1 -2
- package/src/file-presenter.tsx +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossworks/share-ui",
|
|
3
|
-
"version": "0.232.
|
|
3
|
+
"version": "0.232.83",
|
|
4
4
|
"description": "The server-rendered share surface — the /s/<token> presenters, view-payload contract, mini-app sandbox, and the few primitives they need. Lives in MANTLE (the server renders these), published for jackdaw to consume; may depend only on @mantle/{client-types,content-core} (the jackdaw-repo-split boundary).",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./app-presenter": "./src/app-presenter.tsx",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@firecms/neat": "1.0.2",
|
|
39
|
-
"@mantle/client-types": "npm:@crossworks/client-types@0.232.
|
|
40
|
-
"@mantle/content-core": "npm:@crossworks/content-core@0.232.
|
|
39
|
+
"@mantle/client-types": "npm:@crossworks/client-types@0.232.83",
|
|
40
|
+
"@mantle/content-core": "npm:@crossworks/content-core@0.232.83",
|
|
41
41
|
"@radix-ui/react-label": "^2.1.12",
|
|
42
42
|
"@radix-ui/react-slot": "^1.3.0",
|
|
43
43
|
"class-variance-authority": "^0.7.1",
|
package/src/avatar.test.ts
CHANGED
|
@@ -241,8 +241,7 @@ describe('parts (avatar builder choices)', () => {
|
|
|
241
241
|
|
|
242
242
|
it('a pinned variant is deterministic and actually changes the avatar', async () => {
|
|
243
243
|
const loaded = await loadAvatarStyle('adventurer');
|
|
244
|
-
const [component, names] =
|
|
245
|
-
Object.entries(loaded.variants).find(([, v]) => v.length >= 2) ?? [];
|
|
244
|
+
const [component, names] = Object.entries(loaded.variants).find(([, v]) => v.length >= 2) ?? [];
|
|
246
245
|
if (!component || !names) throw new Error('adventurer lost its multi-variant components');
|
|
247
246
|
const base = { style: 'adventurer', seed: 'Remy', size: 40 };
|
|
248
247
|
const a1 = await renderAvatarSvg({ ...base, parts: { [component]: names[0]! } });
|
package/src/file-presenter.tsx
CHANGED
|
@@ -50,6 +50,7 @@ export function FilePresenter({
|
|
|
50
50
|
<a href={src} target="_blank" rel="noreferrer" className="block">
|
|
51
51
|
{/* A plain <img> on purpose: share assets are token-scoped bytes,
|
|
52
52
|
not next/image-optimizable public files. */}
|
|
53
|
+
{/* eslint-disable-next-line @next/next/no-img-element -- see above */}
|
|
53
54
|
<img
|
|
54
55
|
src={src}
|
|
55
56
|
alt={view.filename}
|