@stackable-labs/sdk-extension-contracts 2.4.0 → 2.6.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 +11 -1
- package/dist/index.js +14 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -254,6 +254,16 @@ declare const UI_TAG_DEFINITIONS: {
|
|
|
254
254
|
};
|
|
255
255
|
readonly selfClosing: true;
|
|
256
256
|
};
|
|
257
|
+
readonly 'ui-video': {
|
|
258
|
+
readonly description: "Embedded video player (YouTube, etc.)";
|
|
259
|
+
readonly icon: "circle-play";
|
|
260
|
+
readonly category: "composite";
|
|
261
|
+
readonly attributes: readonly ["videoId", "autoPlay", "showControls", "allowTracking", "shape", "className", "title"];
|
|
262
|
+
readonly attributeValues: {
|
|
263
|
+
readonly shape: readonly ["horizontal", "vertical", "square", "auto"];
|
|
264
|
+
};
|
|
265
|
+
readonly selfClosing: true;
|
|
266
|
+
};
|
|
257
267
|
readonly 'ui-link': {
|
|
258
268
|
readonly description: "Hyperlink element";
|
|
259
269
|
readonly icon: "link";
|
|
@@ -379,7 +389,7 @@ declare const tagToComponentName: (tag: UITag) => string;
|
|
|
379
389
|
* • storybook stories, site-developers content, dist/index.d.ts, studio bundle
|
|
380
390
|
* Grep `ICON REGISTRY` to find every spot.
|
|
381
391
|
*/
|
|
382
|
-
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", "x-circle", "alert-circle", "book-open", "qr-code", "image-off"];
|
|
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"];
|
|
383
393
|
type AllowedIconName = (typeof ALLOWED_ICONS)[number];
|
|
384
394
|
|
|
385
395
|
/**
|
package/dist/index.js
CHANGED
|
@@ -242,6 +242,16 @@ var UI_TAG_DEFINITIONS = {
|
|
|
242
242
|
},
|
|
243
243
|
selfClosing: true
|
|
244
244
|
},
|
|
245
|
+
"ui-video": {
|
|
246
|
+
description: "Embedded video player (YouTube, etc.)",
|
|
247
|
+
icon: "circle-play",
|
|
248
|
+
category: "composite",
|
|
249
|
+
attributes: ["videoId", "autoPlay", "showControls", "allowTracking", "shape", "className", "title"],
|
|
250
|
+
attributeValues: {
|
|
251
|
+
shape: ["horizontal", "vertical", "square", "auto"]
|
|
252
|
+
},
|
|
253
|
+
selfClosing: true
|
|
254
|
+
},
|
|
245
255
|
"ui-link": {
|
|
246
256
|
description: "Hyperlink element",
|
|
247
257
|
icon: "link",
|
|
@@ -364,11 +374,14 @@ var ALLOWED_ICONS = [
|
|
|
364
374
|
"sparkles",
|
|
365
375
|
"truck",
|
|
366
376
|
"user",
|
|
377
|
+
"video",
|
|
367
378
|
"x-circle",
|
|
368
379
|
"alert-circle",
|
|
369
380
|
"book-open",
|
|
370
381
|
"qr-code",
|
|
371
|
-
"image-off"
|
|
382
|
+
"image-off",
|
|
383
|
+
"circle-play",
|
|
384
|
+
"tv-minimal-play"
|
|
372
385
|
];
|
|
373
386
|
|
|
374
387
|
// src/capabilities.ts
|