@stackable-labs/sdk-extension-contracts 1.98.1 → 1.100.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 CHANGED
@@ -228,6 +228,17 @@ declare const UI_TAG_DEFINITIONS: {
228
228
  readonly size: readonly ["sm", "md", "lg"];
229
229
  };
230
230
  };
231
+ readonly 'ui-qr-code': {
232
+ readonly description: "QR code rendered from a string payload";
233
+ readonly icon: "qr-code";
234
+ readonly category: "composite";
235
+ readonly attributes: readonly ["value", "size", "variant", "level", "alt", "className"];
236
+ readonly attributeValues: {
237
+ readonly size: readonly ["sm", "md", "lg"];
238
+ readonly variant: readonly ["default", "inverted"];
239
+ readonly level: readonly ["low", "medium", "quartile", "high"];
240
+ };
241
+ };
231
242
  readonly 'ui-link': {
232
243
  readonly description: "Hyperlink element";
233
244
  readonly icon: "link";
@@ -322,16 +333,12 @@ declare const UI_TAG_CHILDREN: Partial<Record<UITag, readonly UITag[]>>;
322
333
  declare const UI_TAG_COMPOUND: Partial<Record<UITag, readonly UITag[]>>;
323
334
  /** Category for each UI tag — used for grouping in stories and palettes. */
324
335
  declare const UI_TAG_CATEGORIES: Record<UITag, UITagCategory>;
325
- /**
326
- * Convert a UI tag to its PascalCase component name.
327
- * e.g., 'ui-card-content' → 'CardContent'
328
- */
329
336
  declare const tagToComponentName: (tag: UITag) => string;
330
337
  /**
331
338
  * Supported icon names (subset of lucide-react).
332
339
  * Extensions reference icons by name; host renders the actual icon component.
333
340
  */
334
- 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"];
341
+ 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"];
335
342
  type AllowedIconName = (typeof ALLOWED_ICONS)[number];
336
343
 
337
344
  /**
package/dist/index.js CHANGED
@@ -229,6 +229,17 @@ var UI_TAG_DEFINITIONS = {
229
229
  size: ["sm", "md", "lg"]
230
230
  }
231
231
  },
232
+ "ui-qr-code": {
233
+ description: "QR code rendered from a string payload",
234
+ icon: "qr-code",
235
+ category: "composite",
236
+ attributes: ["value", "size", "variant", "level", "alt", "className"],
237
+ attributeValues: {
238
+ size: ["sm", "md", "lg"],
239
+ variant: ["default", "inverted"],
240
+ level: ["low", "medium", "quartile", "high"]
241
+ }
242
+ },
232
243
  "ui-link": {
233
244
  description: "Hyperlink element",
234
245
  icon: "link",
@@ -313,7 +324,10 @@ var UI_TAG_COMPOUND = {
313
324
  var UI_TAG_CATEGORIES = Object.fromEntries(
314
325
  UI_TAGS.map((tag) => [tag, defs[tag].category])
315
326
  );
316
- var tagToComponentName = (tag) => tag.replace(/^ui-/, "").split("-").map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join("");
327
+ var TAG_NAME_OVERRIDES = {
328
+ "ui-qr-code": "QRCode"
329
+ };
330
+ var tagToComponentName = (tag) => TAG_NAME_OVERRIDES[tag] ?? tag.replace(/^ui-/, "").split("-").map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join("");
317
331
  var ALLOWED_ICONS = [
318
332
  "arrow-left",
319
333
  "calendar",
@@ -339,7 +353,8 @@ var ALLOWED_ICONS = [
339
353
  "user",
340
354
  "x-circle",
341
355
  "alert-circle",
342
- "book-open"
356
+ "book-open",
357
+ "qr-code"
343
358
  ];
344
359
 
345
360
  // src/capabilities.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackable-labs/sdk-extension-contracts",
3
- "version": "1.98.1",
3
+ "version": "1.100.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",