@snowcone-app/ui 0.10.9 → 0.10.11
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/CHANGELOG.md +15 -0
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/composed/HeroProductImage.tsx +2 -0
- package/src/patterns/RealtimeProvider.tsx +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snowcone-app/ui",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.11",
|
|
4
4
|
"description": "React components for merchandise visualization and customization",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"react-instantsearch": "^7.15.5",
|
|
104
104
|
"react-zoom-pan-pinch": "^3.6.4",
|
|
105
105
|
"tailwind-merge": "^3.0.0",
|
|
106
|
-
"@snowcone-app/sdk": "0.29.
|
|
106
|
+
"@snowcone-app/sdk": "0.29.1"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@chromatic-com/storybook": "^4.1.2",
|
|
@@ -1228,6 +1228,8 @@ export const HeroProductImage = memo(function HeroProductImage({
|
|
|
1228
1228
|
className={`relative overflow-hidden ${className || ""}`}
|
|
1229
1229
|
style={style}
|
|
1230
1230
|
data-hero-image="true"
|
|
1231
|
+
// Which picture this is (machine-readable: the canary and verify-www name pictures by it, never by DOM order).
|
|
1232
|
+
data-mockup-id={actualMockupId || undefined}
|
|
1231
1233
|
data-fit={fit}
|
|
1232
1234
|
data-picture-failed={imgFailed ? "E_PICTURE_UNDISPLAYED" : undefined}
|
|
1233
1235
|
data-picture-failed-src={failedSrc}
|
|
@@ -761,6 +761,7 @@ export function RealtimeProvider({
|
|
|
761
761
|
console.error(
|
|
762
762
|
`[RealtimeProvider] E_BLOB_PICTURE_BOUND: ${owner} has more than ${MAX_FRAMES_PER_PICTURE} frames waiting to be shown; dropping its oldest unshown frame (the picture on screen is kept).`
|
|
763
763
|
);
|
|
764
|
+
ackUrl(victim); // never drawn: done with it (frame flow control), else the box waits on it until its ack timeout
|
|
764
765
|
revokeBlobUrl(victim);
|
|
765
766
|
}
|
|
766
767
|
blobsByOwnerRef.current.set(owner, list);
|
|
@@ -772,7 +773,7 @@ export function RealtimeProvider({
|
|
|
772
773
|
}
|
|
773
774
|
registeredBlobUrlsRef.current.add(url);
|
|
774
775
|
return url;
|
|
775
|
-
}, [revokeBlobUrl]);
|
|
776
|
+
}, [revokeBlobUrl, ackUrl]);
|
|
776
777
|
|
|
777
778
|
/** Release a picture's frames that are older than what EVERY one of its elements shows. */
|
|
778
779
|
const releaseOlderFrames = useCallback((owner: string) => {
|