@payfit/unity-illustrations 2.56.0 → 2.56.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-illustrations",
3
- "version": "2.56.0",
3
+ "version": "2.56.1",
4
4
  "module": "./dist/esm/index.js",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -72,12 +72,12 @@
72
72
  "@payfit/hr-app-eslint": "0.0.0-use.local",
73
73
  "@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
74
74
  "@payfit/storybook-config": "0.0.0-use.local",
75
- "@payfit/unity-themes": "2.56.0",
75
+ "@payfit/unity-themes": "2.56.1",
76
76
  "@payfit/vite-configs": "0.0.0-use.local"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "react": "18.3.1",
80
80
  "react-dom": "18.3.1",
81
- "@payfit/unity-themes": "2.56.0"
81
+ "@payfit/unity-themes": "2.56.1"
82
82
  }
83
83
  }
@@ -1,6 +1,6 @@
1
1
  ---
2
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.
3
+ description: Use when selecting or migrating a Unity illustration or animation, checking its category and asset type, choosing eager versus lazy loading, or preserving illustration accessibility. Search the canonical illustration catalog first and inspect source usage only when needed.
4
4
  metadata:
5
5
  type: core
6
6
  library: '@payfit/unity-illustrations'
@@ -36,4 +36,19 @@ import Accounting from '@payfit/unity-illustrations/assets/Accounting'
36
36
  </>
37
37
  ```
38
38
 
39
+ ## Migrate from Midnight
40
+
41
+ Map both `Illustration` and `v2/Illustration` to `Illustration` or
42
+ `LazyIllustration`. Treat the previous asset name as search input and confirm
43
+ the target in the catalog instead of assuming a one-to-one name match.
44
+
45
+ - Use an eager catalog import for immediately visible artwork.
46
+ - Use `LazyIllustration` for below-the-fold or code-split artwork and for an
47
+ asset that should load by catalog name.
48
+ - Re-evaluate `alt` and `isDecorative` from the artwork's role in the migrated
49
+ screen; do not copy inaccessible legacy behavior.
50
+
51
+ Use `unity-migrate-from-midnight` for the surrounding screen migration and
52
+ return here to select and load the asset.
53
+
39
54
  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).