@payfit/unity-illustrations 2.55.22 → 2.56.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/package.json +11 -4
- package/skills/unity-illustrations/SKILL.md +39 -0
- package/src/agent-references/illustrations-catalog.json +1996 -0
- package/src/agent-references/manifest.json +16 -0
- package/dist/esm/scripts/agent-references/illustration-reference.d.ts +0 -17
- package/src/agent-references/README.mdx +0 -17
- package/src/agent-references/illustrations.mdx +0 -74
- package/src/components/illustration/Illustration.stories.tsx +0 -362
- package/src/components/illustration/Illustration.tsx +0 -169
- package/src/components/illustration/figma/IllustrationLarge.figma.ts +0 -258
- package/src/components/illustration/figma/IllustrationMedium.figma.ts +0 -258
- package/src/components/illustration/figma/IllustrationSmall.figma.ts +0 -258
- package/src/components/lazy-illustration/LazyIllustration.stories.tsx +0 -204
- package/src/components/lazy-illustration/LazyIllustration.tsx +0 -125
- package/src/components/lazy-illustration/figma/LazyIllustrationLarge.figma.ts +0 -255
- package/src/components/lazy-illustration/figma/LazyIllustrationMedium.figma.ts +0 -255
- package/src/components/lazy-illustration/figma/LazyIllustrationSmall.figma.ts +0 -255
- package/src/docs/1-Introduction/1-Welcome.mdx +0 -111
- package/src/docs/1-Introduction/2-Getting Started.mdx +0 -25
- package/src/docs/1-Introduction/3-Usage.mdx +0 -114
- package/src/docs/1-Introduction/4-Changelog.mdx +0 -6
- package/src/docs/2-Reference/1-Find my illustration.mdx +0 -12
- package/src/docs/2-Reference/2-Find my animation.mdx +0 -14
- package/src/docs/2-Reference/3-Multi brand support.mdx +0 -146
- package/src/docs/blocks/AnimationLibrary.tsx +0 -181
- package/src/docs/blocks/BrandSupportBadge.tsx +0 -190
- package/src/docs/blocks/BrandSupportFilter.tsx +0 -72
- package/src/docs/blocks/Cards.tsx +0 -74
- package/src/docs/blocks/IllustrationLibrary.tsx +0 -179
- package/src/docs/blocks/useStorybookTheme.ts +0 -73
- package/src/index.ts +0 -4
- package/src/scripts/agent-references/illustration-reference.test.ts +0 -100
- package/src/scripts/agent-references/illustration-reference.ts +0 -140
- package/src/scripts/generate-assets.ts +0 -649
- package/src/scripts/templates/assetTemplate.ts +0 -224
- package/src/scripts/templates/baseTypes.ts +0 -45
- package/src/scripts/templates/indexTemplate.ts +0 -109
- package/src/unity.css +0 -5
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/unity-illustrations",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.56.0",
|
|
4
4
|
"module": "./dist/esm/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"storybook": {
|
|
8
8
|
"url": "https://unity-illustrations.payfit.io/"
|
|
9
9
|
},
|
|
10
|
+
"intent": {
|
|
11
|
+
"version": 1,
|
|
12
|
+
"repo": "PayFit/hr-apps",
|
|
13
|
+
"docs": "../../../../apps/shared/docsite/src/content/docs"
|
|
14
|
+
},
|
|
10
15
|
"exports": {
|
|
11
16
|
".": {
|
|
12
17
|
"import": {
|
|
@@ -37,7 +42,9 @@
|
|
|
37
42
|
},
|
|
38
43
|
"files": [
|
|
39
44
|
"dist",
|
|
40
|
-
"
|
|
45
|
+
"skills",
|
|
46
|
+
"src/agent-references",
|
|
47
|
+
"src/generated"
|
|
41
48
|
],
|
|
42
49
|
"dependencies": {
|
|
43
50
|
"image-size": "1.0.2",
|
|
@@ -65,12 +72,12 @@
|
|
|
65
72
|
"@payfit/hr-app-eslint": "0.0.0-use.local",
|
|
66
73
|
"@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
|
|
67
74
|
"@payfit/storybook-config": "0.0.0-use.local",
|
|
68
|
-
"@payfit/unity-themes": "2.
|
|
75
|
+
"@payfit/unity-themes": "2.56.0",
|
|
69
76
|
"@payfit/vite-configs": "0.0.0-use.local"
|
|
70
77
|
},
|
|
71
78
|
"peerDependencies": {
|
|
72
79
|
"react": "18.3.1",
|
|
73
80
|
"react-dom": "18.3.1",
|
|
74
|
-
"@payfit/unity-themes": "2.
|
|
81
|
+
"@payfit/unity-themes": "2.56.0"
|
|
75
82
|
}
|
|
76
83
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: unity-illustrations
|
|
3
|
+
description: Use when selecting a Unity illustration or animation, checking its category and asset type, or choosing eager versus lazy loading. Search the canonical illustration catalog first and inspect source usage only when needed.
|
|
4
|
+
metadata:
|
|
5
|
+
type: core
|
|
6
|
+
library: '@payfit/unity-illustrations'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Source of truth
|
|
10
|
+
|
|
11
|
+
Read [src/agent-references/illustrations-catalog.json](../../src/agent-references/illustrations-catalog.json) first. Each entry contains `name`, `category`, `assetType`, and `qualifiedEagerImport`. The catalog is the authoritative index; the Storybook MCP projection is a secondary presentation of the same data.
|
|
12
|
+
|
|
13
|
+
Search the complete catalog and compare plausible matches:
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
jq '.illustrations[] | select(.name | test("empty|success"; "i"))' \
|
|
17
|
+
libs/shared/unity/illustrations/src/agent-references/illustrations-catalog.json
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Standard operating procedure
|
|
21
|
+
|
|
22
|
+
1. Extract the visual intent and expand it into synonyms and adjacent concepts.
|
|
23
|
+
2. Search the full catalog; do not stop at the first plausible result.
|
|
24
|
+
3. Rank matches by semantic fit, `category`, and `assetType`. Distinguish static pictures from animations.
|
|
25
|
+
4. For eager loading, use the catalog's `qualifiedEagerImport` verbatim and pass the imported asset to `Illustration`.
|
|
26
|
+
5. Prefer `LazyIllustration` with the catalog `name` when the artwork is not immediately visible or should be code-split.
|
|
27
|
+
6. Read `src/docs/1-Introduction/3-Usage.mdx` and the component source only when props, loading behavior, or accessibility details are needed.
|
|
28
|
+
7. Always provide meaningful `alt` text for non-decorative artwork. Use `isDecorative` only when the image conveys no information.
|
|
29
|
+
|
|
30
|
+
```tsx
|
|
31
|
+
import { Illustration, LazyIllustration } from '@payfit/unity-illustrations'
|
|
32
|
+
import Accounting from '@payfit/unity-illustrations/assets/Accounting'
|
|
33
|
+
;<>
|
|
34
|
+
<Illustration variant="picture" src={Accounting} alt="Accounting" />
|
|
35
|
+
<LazyIllustration variant="picture" name="Accounting" alt="Accounting" />
|
|
36
|
+
</>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
For broader browsing, use the [static illustration catalog](https://unity-illustrations.payfit.io/?path=/docs/reference-find-my-illustration--docs) or [animation catalog](https://unity-illustrations.payfit.io/?path=/docs/reference-find-my-animation--docs).
|