@drawbridge/components 0.0.17 → 0.0.19
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.
|
@@ -23,7 +23,8 @@ __export(card_advertisement_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(card_advertisement_exports);
|
|
25
25
|
var import_react = require("react");
|
|
26
|
-
var import_cdn = require("@drawbridge/
|
|
26
|
+
var import_cdn = require("@drawbridge/shopify/cdn");
|
|
27
|
+
var import_cdn2 = require("@drawbridge/drawbridge-utils/cdn");
|
|
27
28
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28
29
|
var DefaultImage = ({ alt, className, src }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
29
30
|
"img",
|
|
@@ -135,7 +136,7 @@ var CardAdvertisement = ({
|
|
|
135
136
|
key: asset == null ? void 0 : asset.id,
|
|
136
137
|
priority: false,
|
|
137
138
|
sizes: "100%",
|
|
138
|
-
src: (0,
|
|
139
|
+
src: (0, import_cdn2.cdnSrc)(asset, "400x400", asset == null ? void 0 : asset.updatedAt)
|
|
139
140
|
}
|
|
140
141
|
}
|
|
141
142
|
),
|
|
@@ -165,9 +166,9 @@ var CardAdvertisement = ({
|
|
|
165
166
|
{
|
|
166
167
|
...{
|
|
167
168
|
className: "w-full h-full",
|
|
168
|
-
hsl: (0,
|
|
169
|
-
mp4: (0,
|
|
170
|
-
poster: (0,
|
|
169
|
+
hsl: (0, import_cdn2.cdnSrc)(asset, "hsl", asset == null ? void 0 : asset.updatedAt),
|
|
170
|
+
mp4: (0, import_cdn2.cdnSrc)(asset, "original", asset == null ? void 0 : asset.updatedAt),
|
|
171
|
+
poster: (0, import_cdn2.cdnSrc)((_i = asset == null ? void 0 : asset.frames) == null ? void 0 : _i[asset == null ? void 0 : asset.poster], "500x500", asset == null ? void 0 : asset.updatedAt) || (0, import_cdn2.cdnSrc)((_j = asset == null ? void 0 : asset.frames) == null ? void 0 : _j[asset == null ? void 0 : asset.poster], "1080x1920", asset == null ? void 0 : asset.updatedAt)
|
|
171
172
|
}
|
|
172
173
|
}
|
|
173
174
|
)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// components/card-advertisement.js
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { cdnShopify
|
|
3
|
+
import { cdnShopify } from "@drawbridge/shopify/cdn";
|
|
4
|
+
import { cdnSrc } from "@drawbridge/drawbridge-utils/cdn";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
var DefaultImage = ({ alt, className, src }) => /* @__PURE__ */ jsx(
|
|
6
7
|
"img",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drawbridge/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"overrides": {
|
|
5
5
|
"postcss": "8.5.15"
|
|
6
6
|
},
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
"build": "tsup && npm publish"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@drawbridge/drawbridge-utils": "0.0.
|
|
28
|
+
"@drawbridge/drawbridge-utils": "0.0.25",
|
|
29
|
+
"@drawbridge/shopify": "0.0.3",
|
|
29
30
|
"next": ">=14",
|
|
30
31
|
"react": ">=18"
|
|
31
32
|
},
|