@avocadostudio-ai/preview-adapter 0.22.0 → 0.24.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 +2 -2
- package/src/styles.css +6 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avocadostudio-ai/preview-adapter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"NOTICE"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@avocadostudio-ai/shared": "^0.
|
|
42
|
+
"@avocadostudio-ai/shared": "^0.24.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"next": ">=15.0.0",
|
package/src/styles.css
CHANGED
|
@@ -312,13 +312,15 @@
|
|
|
312
312
|
position: absolute;
|
|
313
313
|
inset: 0;
|
|
314
314
|
background: var(--aifx-sweep);
|
|
315
|
-
transform: translateX(120%);
|
|
315
|
+
transform: translateX(-120%);
|
|
316
316
|
animation: aifx-shimmer-slide 2.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
+
/* Left to right, the direction text is read in — and the direction every
|
|
320
|
+
other shimmer in the editor already ran. */
|
|
319
321
|
@keyframes aifx-shimmer-slide {
|
|
320
|
-
0% { transform: translateX(120%); }
|
|
321
|
-
100% { transform: translateX(
|
|
322
|
+
0% { transform: translateX(-120%); }
|
|
323
|
+
100% { transform: translateX(120%); }
|
|
322
324
|
}
|
|
323
325
|
|
|
324
326
|
/* Fixed, so it frames what the user is looking at wherever they scroll. */
|
|
@@ -403,7 +405,7 @@ body:has(.aifx-shimmer-overlay) > .aifx-page-shimmer::before {
|
|
|
403
405
|
animation: none !important;
|
|
404
406
|
}
|
|
405
407
|
|
|
406
|
-
/* A stopped sweep rests off-canvas at translateX(120%), which left nothing
|
|
408
|
+
/* A stopped sweep rests off-canvas at translateX(-120%), which left nothing
|
|
407
409
|
on screen at all. Hold a still tint instead; the page frame's border
|
|
408
410
|
already reads without motion. */
|
|
409
411
|
.aifx-shimmer-overlay::before {
|