@stackable-labs/sdk-extension-contracts 2.5.0 → 2.7.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 +17 -3
- package/dist/index.js +14 -7
- 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
|
/**
|
|
@@ -709,8 +719,12 @@ interface ExtensionManifest {
|
|
|
709
719
|
events?: EventType[];
|
|
710
720
|
/**
|
|
711
721
|
* Hostnames this extension is permitted to reach via data.fetch.
|
|
712
|
-
*
|
|
713
|
-
*
|
|
722
|
+
* Prefer exact hostnames. Use `*.<suffix>` wildcards only if you need any
|
|
723
|
+
* subdomain; the apex is separate. No paths, no protocols. Wildcards must
|
|
724
|
+
* use a multi-label suffix (e.g., `*.example.com`, not `*.com`); TLD
|
|
725
|
+
* patterns such as `*.co.uk` may pass format checks but will be rejected
|
|
726
|
+
* at submission.
|
|
727
|
+
* Example: ["api.myservice.com", "cdn.myservice.com", "*.myservice.com"]
|
|
714
728
|
* Use an empty array for extensions that do not use data.fetch.
|
|
715
729
|
*/
|
|
716
730
|
allowedDomains: string[];
|
package/dist/index.js
CHANGED
|
@@ -3,12 +3,6 @@ var asISOTimestamp = (value) => value;
|
|
|
3
3
|
var asClerkUserId = (value) => value;
|
|
4
4
|
var asClerkOrgId = (value) => value;
|
|
5
5
|
|
|
6
|
-
// ../../../lib/contracts/src/custom.ts
|
|
7
|
-
var CUSTOM_ROLE = {
|
|
8
|
-
SUPER_ADMIN: "super_admin"
|
|
9
|
-
};
|
|
10
|
-
new Set(Object.values(CUSTOM_ROLE));
|
|
11
|
-
|
|
12
6
|
// ../../../lib/contracts/src/marketplace.ts
|
|
13
7
|
var EXTENSION_CATEGORY = {
|
|
14
8
|
COMMERCE: "commerce",
|
|
@@ -242,6 +236,16 @@ var UI_TAG_DEFINITIONS = {
|
|
|
242
236
|
},
|
|
243
237
|
selfClosing: true
|
|
244
238
|
},
|
|
239
|
+
"ui-video": {
|
|
240
|
+
description: "Embedded video player (YouTube, etc.)",
|
|
241
|
+
icon: "circle-play",
|
|
242
|
+
category: "composite",
|
|
243
|
+
attributes: ["videoId", "autoPlay", "showControls", "allowTracking", "shape", "className", "title"],
|
|
244
|
+
attributeValues: {
|
|
245
|
+
shape: ["horizontal", "vertical", "square", "auto"]
|
|
246
|
+
},
|
|
247
|
+
selfClosing: true
|
|
248
|
+
},
|
|
245
249
|
"ui-link": {
|
|
246
250
|
description: "Hyperlink element",
|
|
247
251
|
icon: "link",
|
|
@@ -364,11 +368,14 @@ var ALLOWED_ICONS = [
|
|
|
364
368
|
"sparkles",
|
|
365
369
|
"truck",
|
|
366
370
|
"user",
|
|
371
|
+
"video",
|
|
367
372
|
"x-circle",
|
|
368
373
|
"alert-circle",
|
|
369
374
|
"book-open",
|
|
370
375
|
"qr-code",
|
|
371
|
-
"image-off"
|
|
376
|
+
"image-off",
|
|
377
|
+
"circle-play",
|
|
378
|
+
"tv-minimal-play"
|
|
372
379
|
];
|
|
373
380
|
|
|
374
381
|
// src/capabilities.ts
|