@drawbridge/components 0.0.19 → 0.0.21

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.
@@ -36,13 +36,13 @@ var DefaultImage = ({ alt, className, src }) => /* @__PURE__ */ (0, import_jsx_r
36
36
  }
37
37
  }
38
38
  );
39
- var DefaultVideo = ({ className, hsl, mp4, poster }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
39
+ var DefaultVideo = ({ className, hls, mp4, poster }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
40
40
  "video",
41
41
  {
42
42
  ...{
43
43
  className,
44
44
  poster,
45
- src: mp4 || hsl
45
+ src: mp4 || hls
46
46
  }
47
47
  }
48
48
  );
@@ -166,7 +166,7 @@ var CardAdvertisement = ({
166
166
  {
167
167
  ...{
168
168
  className: "w-full h-full",
169
- hsl: (0, import_cdn2.cdnSrc)(asset, "hsl", asset == null ? void 0 : asset.updatedAt),
169
+ hls: (0, import_cdn2.cdnSrc)(asset, "hls", asset == null ? void 0 : asset.updatedAt),
170
170
  mp4: (0, import_cdn2.cdnSrc)(asset, "original", asset == null ? void 0 : asset.updatedAt),
171
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)
172
172
  }
@@ -203,24 +203,24 @@ var CardAdvertisement = ({
203
203
  ...{
204
204
  className: "w-full text-xs rounded border px-2 py-1 bg-transparent",
205
205
  onChange: (e) => {
206
- const variant = variants.find((v) => v.providerId === e.target.value);
206
+ const variant = variants.find((v) => v.id === e.target.value);
207
207
  if (variant) setSelectedVariant(variant);
208
208
  },
209
209
  style: {
210
210
  borderColor: (_p = (_o = style == null ? void 0 : style.background) == null ? void 0 : _o.color) == null ? void 0 : _p.rgb.replace(")", ", 0.3)"),
211
211
  color: (_r = (_q = style == null ? void 0 : style.background) == null ? void 0 : _q.color) == null ? void 0 : _r.hex
212
212
  },
213
- value: (selectedVariant == null ? void 0 : selectedVariant.providerId) || ""
213
+ value: (selectedVariant == null ? void 0 : selectedVariant.id) || ""
214
214
  },
215
215
  children: variants.map((variant) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
216
216
  "option",
217
217
  {
218
218
  ...{
219
- value: variant.providerId
219
+ value: variant.id
220
220
  },
221
221
  children: variant.title
222
222
  },
223
- variant.providerId
223
+ variant.id
224
224
  ))
225
225
  }
226
226
  )
@@ -13,13 +13,13 @@ var DefaultImage = ({ alt, className, src }) => /* @__PURE__ */ jsx(
13
13
  }
14
14
  }
15
15
  );
16
- var DefaultVideo = ({ className, hsl, mp4, poster }) => /* @__PURE__ */ jsx(
16
+ var DefaultVideo = ({ className, hls, mp4, poster }) => /* @__PURE__ */ jsx(
17
17
  "video",
18
18
  {
19
19
  ...{
20
20
  className,
21
21
  poster,
22
- src: mp4 || hsl
22
+ src: mp4 || hls
23
23
  }
24
24
  }
25
25
  );
@@ -143,7 +143,7 @@ var CardAdvertisement = ({
143
143
  {
144
144
  ...{
145
145
  className: "w-full h-full",
146
- hsl: cdnSrc(asset, "hsl", asset == null ? void 0 : asset.updatedAt),
146
+ hls: cdnSrc(asset, "hls", asset == null ? void 0 : asset.updatedAt),
147
147
  mp4: cdnSrc(asset, "original", asset == null ? void 0 : asset.updatedAt),
148
148
  poster: 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) || 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)
149
149
  }
@@ -180,24 +180,24 @@ var CardAdvertisement = ({
180
180
  ...{
181
181
  className: "w-full text-xs rounded border px-2 py-1 bg-transparent",
182
182
  onChange: (e) => {
183
- const variant = variants.find((v) => v.providerId === e.target.value);
183
+ const variant = variants.find((v) => v.id === e.target.value);
184
184
  if (variant) setSelectedVariant(variant);
185
185
  },
186
186
  style: {
187
187
  borderColor: (_p = (_o = style == null ? void 0 : style.background) == null ? void 0 : _o.color) == null ? void 0 : _p.rgb.replace(")", ", 0.3)"),
188
188
  color: (_r = (_q = style == null ? void 0 : style.background) == null ? void 0 : _q.color) == null ? void 0 : _r.hex
189
189
  },
190
- value: (selectedVariant == null ? void 0 : selectedVariant.providerId) || ""
190
+ value: (selectedVariant == null ? void 0 : selectedVariant.id) || ""
191
191
  },
192
192
  children: variants.map((variant) => /* @__PURE__ */ jsx(
193
193
  "option",
194
194
  {
195
195
  ...{
196
- value: variant.providerId
196
+ value: variant.id
197
197
  },
198
198
  children: variant.title
199
199
  },
200
- variant.providerId
200
+ variant.id
201
201
  ))
202
202
  }
203
203
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drawbridge/components",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "overrides": {
5
5
  "postcss": "8.5.15"
6
6
  },
@@ -21,7 +21,7 @@
21
21
  "access": "public"
22
22
  },
23
23
  "scripts": {
24
- "sync": ". \"$HOME/.nvm/nvm.sh\" && nvm use && npm prune && npm install",
24
+ "sync": ". \"$HOME/.nvm/nvm.sh\" && nvm use && npm prune && npm install && npx drawbridge-agents-sync",
25
25
  "build": "tsup && npm publish"
26
26
  },
27
27
  "peerDependencies": {
@@ -33,5 +33,8 @@
33
33
  "devDependencies": {
34
34
  "@types/react": "18.0.0",
35
35
  "tsup": "8.5.1"
36
+ },
37
+ "dependencies": {
38
+ "@drawbridge/drawbridge-agents": "0.0.6"
36
39
  }
37
40
  }