@stackable-labs/sdk-extension-contracts 2.7.0 → 2.8.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/dist/index.d.ts +13 -3
- package/dist/index.js +13 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -248,7 +248,7 @@ declare const UI_TAG_DEFINITIONS: {
|
|
|
248
248
|
readonly category: "composite";
|
|
249
249
|
readonly attributes: readonly ["value", "size", "variant", "level", "alt", "className"];
|
|
250
250
|
readonly attributeValues: {
|
|
251
|
-
readonly size: readonly ["
|
|
251
|
+
readonly size: readonly ["sm", "md", "lg"];
|
|
252
252
|
readonly variant: readonly ["default", "inverted"];
|
|
253
253
|
readonly level: readonly ["medium", "low", "quartile", "high"];
|
|
254
254
|
};
|
|
@@ -258,12 +258,22 @@ declare const UI_TAG_DEFINITIONS: {
|
|
|
258
258
|
readonly description: "Embedded video player (YouTube, etc.)";
|
|
259
259
|
readonly icon: "circle-play";
|
|
260
260
|
readonly category: "composite";
|
|
261
|
-
readonly attributes: readonly ["videoId", "autoPlay", "showControls", "allowTracking", "shape", "
|
|
261
|
+
readonly attributes: readonly ["videoId", "autoPlay", "showControls", "allowTracking", "shape", "title", "className"];
|
|
262
262
|
readonly attributeValues: {
|
|
263
263
|
readonly shape: readonly ["horizontal", "vertical", "square", "auto"];
|
|
264
264
|
};
|
|
265
265
|
readonly selfClosing: true;
|
|
266
266
|
};
|
|
267
|
+
readonly 'ui-image': {
|
|
268
|
+
readonly description: "Image element with lazy loading and a placeholder fallback";
|
|
269
|
+
readonly icon: "image";
|
|
270
|
+
readonly category: "composite";
|
|
271
|
+
readonly attributes: readonly ["src", "alt", "loading", "width", "height", "className"];
|
|
272
|
+
readonly attributeValues: {
|
|
273
|
+
readonly loading: readonly ["lazy", "eager"];
|
|
274
|
+
};
|
|
275
|
+
readonly selfClosing: true;
|
|
276
|
+
};
|
|
267
277
|
readonly 'ui-link': {
|
|
268
278
|
readonly description: "Hyperlink element";
|
|
269
279
|
readonly icon: "link";
|
|
@@ -389,7 +399,7 @@ declare const tagToComponentName: (tag: UITag) => string;
|
|
|
389
399
|
* • storybook stories, site-developers content, dist/index.d.ts, studio bundle
|
|
390
400
|
* Grep `ICON REGISTRY` to find every spot.
|
|
391
401
|
*/
|
|
392
|
-
declare const ALLOWED_ICONS: readonly ["arrow-left", "calendar", "check-circle-2", "chevron-left", "chevron-right", "clock", "credit-card", "external-link", "help-circle", "info", "loader-2", "mail", "map-pin", "message-circle", "message-square", "package", "phone", "search", "shopping-bag", "sparkles", "truck", "user", "video", "x-circle", "alert-circle", "book-open", "qr-code", "image-off", "circle-play", "tv-minimal-play"];
|
|
402
|
+
declare const ALLOWED_ICONS: readonly ["arrow-left", "calendar", "check-circle-2", "chevron-left", "chevron-right", "clock", "credit-card", "external-link", "help-circle", "info", "loader-2", "mail", "map-pin", "message-circle", "message-square", "package", "phone", "search", "shopping-bag", "sparkles", "truck", "user", "video", "x-circle", "alert-circle", "book-open", "qr-code", "image", "image-off", "circle-play", "tv-minimal-play"];
|
|
393
403
|
type AllowedIconName = (typeof ALLOWED_ICONS)[number];
|
|
394
404
|
|
|
395
405
|
/**
|
package/dist/index.js
CHANGED
|
@@ -230,7 +230,7 @@ var UI_TAG_DEFINITIONS = {
|
|
|
230
230
|
category: "composite",
|
|
231
231
|
attributes: ["value", "size", "variant", "level", "alt", "className"],
|
|
232
232
|
attributeValues: {
|
|
233
|
-
size: ["
|
|
233
|
+
size: ["sm", "md", "lg"],
|
|
234
234
|
variant: ["default", "inverted"],
|
|
235
235
|
level: ["medium", "low", "quartile", "high"]
|
|
236
236
|
},
|
|
@@ -240,12 +240,22 @@ var UI_TAG_DEFINITIONS = {
|
|
|
240
240
|
description: "Embedded video player (YouTube, etc.)",
|
|
241
241
|
icon: "circle-play",
|
|
242
242
|
category: "composite",
|
|
243
|
-
attributes: ["videoId", "autoPlay", "showControls", "allowTracking", "shape", "
|
|
243
|
+
attributes: ["videoId", "autoPlay", "showControls", "allowTracking", "shape", "title", "className"],
|
|
244
244
|
attributeValues: {
|
|
245
245
|
shape: ["horizontal", "vertical", "square", "auto"]
|
|
246
246
|
},
|
|
247
247
|
selfClosing: true
|
|
248
248
|
},
|
|
249
|
+
"ui-image": {
|
|
250
|
+
description: "Image element with lazy loading and a placeholder fallback",
|
|
251
|
+
icon: "image",
|
|
252
|
+
category: "composite",
|
|
253
|
+
attributes: ["src", "alt", "loading", "width", "height", "className"],
|
|
254
|
+
attributeValues: {
|
|
255
|
+
loading: ["lazy", "eager"]
|
|
256
|
+
},
|
|
257
|
+
selfClosing: true
|
|
258
|
+
},
|
|
249
259
|
"ui-link": {
|
|
250
260
|
description: "Hyperlink element",
|
|
251
261
|
icon: "link",
|
|
@@ -373,6 +383,7 @@ var ALLOWED_ICONS = [
|
|
|
373
383
|
"alert-circle",
|
|
374
384
|
"book-open",
|
|
375
385
|
"qr-code",
|
|
386
|
+
"image",
|
|
376
387
|
"image-off",
|
|
377
388
|
"circle-play",
|
|
378
389
|
"tv-minimal-play"
|