@bacano/sdk 1.1.0 → 1.1.8
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/README.md +98 -12
- package/STOREFRONT_CONSTRUCTION.md +17 -4
- package/STOREFRONT_MARKETING.md +5 -0
- package/STOREFRONT_PERFORMANCE.md +39 -0
- package/STOREFRONT_PREVIEW.md +25 -0
- package/STOREFRONT_PRODUCT_SPECIFICATIONS.md +127 -0
- package/STOREFRONT_VOLUME_PRICING.md +131 -0
- package/client.d.ts +1 -0
- package/graphql.cjs +203 -3
- package/graphql.d.ts +1 -1
- package/graphql.js +203 -3
- package/index.cjs +474 -44
- package/index.d.ts +1 -1
- package/index.js +474 -44
- package/marketing/attribution.d.ts +2 -0
- package/marketing/types.d.ts +2 -0
- package/modules/cart-errors.d.ts +2 -0
- package/modules/cart.d.ts +1 -0
- package/package.json +1 -1
- package/react/hooks.d.ts +1 -0
- package/react/website-gate.d.ts +1 -1
- package/react.cjs +508 -62
- package/react.js +509 -63
- package/skills/bacano-web/SKILL.md +17 -10
- package/skills/bacano-web/references/architecture-runtime.md +109 -0
- package/skills/bacano-web/references/common.md +2 -1
- package/skills/bacano-web/references/report.md +22 -4
- package/skills/bacano-web/scripts/audit-http.mjs +39 -2
- package/transport/documents.d.ts +21 -18
- package/types.d.ts +136 -0
|
@@ -17,6 +17,7 @@ export declare function serializeWebsiteMarketingAttribution(attribution: Websit
|
|
|
17
17
|
content: string | undefined;
|
|
18
18
|
source_platform: string | undefined;
|
|
19
19
|
campaign_id: string | undefined;
|
|
20
|
+
sales_origin_key: string | undefined;
|
|
20
21
|
gclid: string | undefined;
|
|
21
22
|
gbraid: string | undefined;
|
|
22
23
|
wbraid: string | undefined;
|
|
@@ -35,6 +36,7 @@ export declare function serializeWebsiteMarketingAttribution(attribution: Websit
|
|
|
35
36
|
content: string | undefined;
|
|
36
37
|
source_platform: string | undefined;
|
|
37
38
|
campaign_id: string | undefined;
|
|
39
|
+
sales_origin_key: string | undefined;
|
|
38
40
|
gclid: string | undefined;
|
|
39
41
|
gbraid: string | undefined;
|
|
40
42
|
wbraid: string | undefined;
|
package/marketing/types.d.ts
CHANGED
|
@@ -48,6 +48,8 @@ export interface WebsiteMarketingTouchpoint {
|
|
|
48
48
|
content?: string;
|
|
49
49
|
sourcePlatform?: string;
|
|
50
50
|
campaignId?: string;
|
|
51
|
+
/** Optional stable public key of a custom origin configured in Bacano. */
|
|
52
|
+
salesOriginKey?: string;
|
|
51
53
|
gclid?: string;
|
|
52
54
|
gbraid?: string;
|
|
53
55
|
wbraid?: string;
|
package/modules/cart.d.ts
CHANGED
|
@@ -12,5 +12,6 @@ export interface CartModule {
|
|
|
12
12
|
quantity: number;
|
|
13
13
|
}>;
|
|
14
14
|
removeItem(cartItemId: string): Promise<Cart>;
|
|
15
|
+
clear(): Promise<void>;
|
|
15
16
|
}
|
|
16
17
|
export declare function createCartModule(graphqlUrl: string, getHeaders: RequestHeadersProvider, getContext: () => BacanoClientContext, cartSessionStorage: CartSessionStorage): CartModule;
|
package/package.json
CHANGED
package/react/hooks.d.ts
CHANGED
package/react/website-gate.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface BacanoConstructionScreenProps {
|
|
|
4
4
|
construction: WebsiteConstructionPublicConfig;
|
|
5
5
|
}
|
|
6
6
|
/** Default responsive full-screen construction page. */
|
|
7
|
-
export declare function BacanoConstructionScreen({ construction, }: BacanoConstructionScreenProps): import("react").JSX.Element
|
|
7
|
+
export declare function BacanoConstructionScreen({ construction, }: BacanoConstructionScreenProps): import("react").JSX.Element;
|
|
8
8
|
export interface BacanoWebsiteGateProps {
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
config: GetWebsitePublicConfigOptions;
|