@payfit/unity-illustrations 2.55.21 → 2.55.23

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 (38) hide show
  1. package/package.json +18 -11
  2. package/skills/unity-illustrations/SKILL.md +39 -0
  3. package/src/agent-references/illustrations-catalog.json +1996 -0
  4. package/src/agent-references/manifest.json +16 -0
  5. package/dist/esm/scripts/agent-references/illustration-reference.d.ts +0 -17
  6. package/src/agent-references/README.mdx +0 -17
  7. package/src/agent-references/illustrations.mdx +0 -74
  8. package/src/components/illustration/Illustration.stories.tsx +0 -362
  9. package/src/components/illustration/Illustration.tsx +0 -169
  10. package/src/components/illustration/figma/IllustrationLarge.figma.ts +0 -258
  11. package/src/components/illustration/figma/IllustrationMedium.figma.ts +0 -258
  12. package/src/components/illustration/figma/IllustrationSmall.figma.ts +0 -258
  13. package/src/components/lazy-illustration/LazyIllustration.stories.tsx +0 -204
  14. package/src/components/lazy-illustration/LazyIllustration.tsx +0 -125
  15. package/src/components/lazy-illustration/figma/LazyIllustrationLarge.figma.ts +0 -255
  16. package/src/components/lazy-illustration/figma/LazyIllustrationMedium.figma.ts +0 -255
  17. package/src/components/lazy-illustration/figma/LazyIllustrationSmall.figma.ts +0 -255
  18. package/src/docs/1-Introduction/1-Welcome.mdx +0 -111
  19. package/src/docs/1-Introduction/2-Getting Started.mdx +0 -25
  20. package/src/docs/1-Introduction/3-Usage.mdx +0 -114
  21. package/src/docs/1-Introduction/4-Changelog.mdx +0 -6
  22. package/src/docs/2-Reference/1-Find my illustration.mdx +0 -12
  23. package/src/docs/2-Reference/2-Find my animation.mdx +0 -14
  24. package/src/docs/2-Reference/3-Multi brand support.mdx +0 -146
  25. package/src/docs/blocks/AnimationLibrary.tsx +0 -181
  26. package/src/docs/blocks/BrandSupportBadge.tsx +0 -190
  27. package/src/docs/blocks/BrandSupportFilter.tsx +0 -72
  28. package/src/docs/blocks/Cards.tsx +0 -74
  29. package/src/docs/blocks/IllustrationLibrary.tsx +0 -179
  30. package/src/docs/blocks/useStorybookTheme.ts +0 -73
  31. package/src/index.ts +0 -4
  32. package/src/scripts/agent-references/illustration-reference.test.ts +0 -100
  33. package/src/scripts/agent-references/illustration-reference.ts +0 -140
  34. package/src/scripts/generate-assets.ts +0 -649
  35. package/src/scripts/templates/assetTemplate.ts +0 -224
  36. package/src/scripts/templates/baseTypes.ts +0 -45
  37. package/src/scripts/templates/indexTemplate.ts +0 -109
  38. 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.55.21",
3
+ "version": "2.55.23",
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
- "src"
45
+ "skills",
46
+ "src/agent-references",
47
+ "src/generated"
41
48
  ],
42
49
  "dependencies": {
43
50
  "image-size": "1.0.2",
@@ -45,18 +52,18 @@
45
52
  },
46
53
  "devDependencies": {
47
54
  "@figma/code-connect": "1.4.9",
48
- "@storybook/addon-a11y": "10.5.0",
49
- "@storybook/addon-docs": "10.5.0",
50
- "@storybook/addon-links": "10.5.0",
51
- "@storybook/addon-mcp": "0.6.0",
52
- "@storybook/addon-themes": "10.5.0",
53
- "@storybook/react-vite": "10.5.0",
55
+ "@storybook/addon-a11y": "10.5.2",
56
+ "@storybook/addon-docs": "10.5.2",
57
+ "@storybook/addon-links": "10.5.2",
58
+ "@storybook/addon-mcp": "0.7.0",
59
+ "@storybook/addon-themes": "10.5.2",
60
+ "@storybook/react-vite": "10.5.2",
54
61
  "@types/react": "18.3.18",
55
62
  "@types/react-dom": "18.3.5",
56
63
  "image-size": "1.0.2",
57
64
  "react": "18.3.1",
58
65
  "react-dom": "18.3.1",
59
- "storybook": "10.5.0",
66
+ "storybook": "10.5.2",
60
67
  "svgo": "3.3.3",
61
68
  "tailwindcss": "4.3.3",
62
69
  "tsx": "4.20.5",
@@ -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.55.21",
75
+ "@payfit/unity-themes": "2.55.23",
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.55.21"
81
+ "@payfit/unity-themes": "2.55.23"
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).