@bacano/sdk 1.2.5 → 1.2.7
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/CONTENT_ICONS.md +113 -0
- package/CONTENT_TYPE_MANAGEMENT.md +8 -2
- package/README.md +11 -7
- package/STOREFRONT_PAYMENTS.md +8 -0
- package/STOREFRONT_PERFORMANCE.md +47 -5
- package/content-management-types.d.ts +9 -1
- package/graphql.cjs +59 -0
- package/graphql.js +59 -0
- package/icons.cjs +5515 -0
- package/icons.d.ts +20 -0
- package/icons.js +5496 -0
- package/index.cjs +102 -11
- package/index.js +102 -11
- package/package.json +11 -1
- package/react/icon.cjs +5555 -0
- package/react/icon.d.ts +10 -0
- package/react/icon.js +5534 -0
- package/react.cjs +102 -11
- package/react.js +102 -11
- package/skills/bacano-web/references/common.md +13 -0
- package/skills/bacano-web/references/storefront.md +16 -0
- package/transport/documents.d.ts +10 -10
- package/types.d.ts +5 -2
package/icons.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface BacanoIcon {
|
|
2
|
+
id: string;
|
|
3
|
+
concept: string;
|
|
4
|
+
label: string;
|
|
5
|
+
category: string;
|
|
6
|
+
keywords: string[];
|
|
7
|
+
provenance: "original-bacano" | "official-brand";
|
|
8
|
+
asset: string;
|
|
9
|
+
}
|
|
10
|
+
export interface BacanoResolvedIcon extends BacanoIcon {
|
|
11
|
+
url: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const BACANO_ICON_CATALOG_VERSION: number;
|
|
14
|
+
export declare function isBacanoIconId(id: unknown): id is string;
|
|
15
|
+
/** Looks up published metadata without creating a URL or requesting an asset. */
|
|
16
|
+
export declare function getBacanoIcon(id: unknown): BacanoIcon | null;
|
|
17
|
+
/** Returns metadata only. Icon assets are requested individually when rendered. */
|
|
18
|
+
export declare function listBacanoIcons(): readonly BacanoIcon[];
|
|
19
|
+
/** Invalid or unknown IDs return null; never interpolate an untrusted ID in a URL. */
|
|
20
|
+
export declare function resolveBacanoIcon(id: unknown, apiUrl: string): BacanoResolvedIcon | null;
|