@igstack/app-catalog-frontend-core 4.0.0-alpha-20260920174621 → 4.0.0-alpha-20260921150913

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.
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.css CHANGED
@@ -11,7 +11,7 @@
11
11
  /* Other module imports this css, and we need to tell tailwind to scan our tsx files */
12
12
  @source ".";
13
13
 
14
- /* @import 'tw-animate-css'; */
14
+ @import 'tw-animate-css';
15
15
 
16
16
  @layer base {
17
17
  /* Warm "crayon" palette derived from the hand-drawn app-catalog logo
@@ -248,3 +248,16 @@
248
248
  list-style-type: disc;
249
249
  padding-left: 1.25rem;
250
250
  }
251
+
252
+ /* tw-animate-css ships no reduced-motion rules of its own, so honour the
253
+ preference here — the overlay animations it provides are all decorative. */
254
+ @media (prefers-reduced-motion: reduce) {
255
+ *,
256
+ *::before,
257
+ *::after {
258
+ animation-duration: 0.01ms !important;
259
+ animation-iteration-count: 1 !important;
260
+ transition-duration: 0.01ms !important;
261
+ scroll-behavior: auto !important;
262
+ }
263
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igstack/app-catalog-frontend-core",
3
- "version": "4.0.0-alpha-20260920174621",
3
+ "version": "4.0.0-alpha-20260921150913",
4
4
  "description": "Frontend core library for App Catalog",
5
5
  "homepage": "https://github.com/lislon/app-catalog",
6
6
  "repository": {
@@ -113,7 +113,7 @@
113
113
  "tailwindcss": "^4.1.7",
114
114
  "tiptap-markdown": "^0.8.0",
115
115
  "tslib": "^2.3.0",
116
- "@igstack/app-catalog-shared-core": "4.0.0-alpha-20260920174621"
116
+ "@igstack/app-catalog-shared-core": "4.0.0-alpha-20260921150913"
117
117
  },
118
118
  "devDependencies": {
119
119
  "@tailwindcss/vite": "^4.0.5",
@@ -140,7 +140,7 @@
140
140
  "vite-plugin-static-copy": "^3.1.4",
141
141
  "vite-plugin-svgr": "^4.2.0",
142
142
  "vitest": "^4.1.2",
143
- "@igstack/app-catalog-backend-core": "4.0.0-alpha-20260920174621"
143
+ "@igstack/app-catalog-backend-core": "4.0.0-alpha-20260921150913"
144
144
  },
145
145
  "peerDependencies": {
146
146
  "react": "19.1.2",
@@ -149,7 +149,7 @@
149
149
  "vite": "^6.3.5",
150
150
  "vite-plugin-svgr": "^4.2.0"
151
151
  },
152
- "gitHead": "a297e008f756aa8b200884a84bcb43d999519546",
152
+ "gitHead": "566f4d88adfcd492e6ac4fe0ecccc88a94106f49",
153
153
  "scripts": {
154
154
  "build": "vite build",
155
155
  "build:lenient": "vite build --mode lenient",
@@ -0,0 +1,22 @@
1
+ import { readFileSync } from 'node:fs'
2
+ import { describe, expect, it } from 'vitest'
3
+
4
+ /**
5
+ * The overlay primitives carry `animate-in` / `animate-out` classes, so a unit
6
+ * test that asserts the class is on the element passes whether or not the
7
+ * utilities exist — and this import sat commented out for months with nothing
8
+ * moving on screen. So assert the wiring, like stylesheetFonts does.
9
+ */
10
+ // The path is relative to the package root, which is where vitest runs.
11
+ const css = readFileSync('src/index.css', 'utf8')
12
+ const withoutComments = css.replace(/\/\*[\s\S]*?\*\//g, '')
13
+
14
+ describe('animation utilities', () => {
15
+ it('imports tw-animate-css outside a comment', () => {
16
+ expect(withoutComments).toMatch(/@import\s+['"]tw-animate-css['"]/)
17
+ })
18
+
19
+ it('disables animation for prefers-reduced-motion', () => {
20
+ expect(css).toContain('prefers-reduced-motion: reduce')
21
+ })
22
+ })
package/src/index.css CHANGED
@@ -11,7 +11,7 @@
11
11
  /* Other module imports this css, and we need to tell tailwind to scan our tsx files */
12
12
  @source ".";
13
13
 
14
- /* @import 'tw-animate-css'; */
14
+ @import 'tw-animate-css';
15
15
 
16
16
  @layer base {
17
17
  /* Warm "crayon" palette derived from the hand-drawn app-catalog logo
@@ -248,3 +248,16 @@
248
248
  list-style-type: disc;
249
249
  padding-left: 1.25rem;
250
250
  }
251
+
252
+ /* tw-animate-css ships no reduced-motion rules of its own, so honour the
253
+ preference here — the overlay animations it provides are all decorative. */
254
+ @media (prefers-reduced-motion: reduce) {
255
+ *,
256
+ *::before,
257
+ *::after {
258
+ animation-duration: 0.01ms !important;
259
+ animation-iteration-count: 1 !important;
260
+ transition-duration: 0.01ms !important;
261
+ scroll-behavior: auto !important;
262
+ }
263
+ }