@swell/apps-sdk 1.0.157 → 1.0.159
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.cjs +81 -164
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +81 -164
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +81 -164
- package/dist/index.mjs.map +4 -4
- package/dist/src/theme/theme-loader.d.ts +9 -0
- package/dist/types/shopify.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ import type { SwellThemeConfig, SwellThemePreload } from 'types/swell';
|
|
|
6
6
|
* Uses a single batch loading strategy for optimal performance.
|
|
7
7
|
*/
|
|
8
8
|
export declare class ThemeLoader {
|
|
9
|
+
private static cache;
|
|
9
10
|
private swell;
|
|
10
11
|
private configs;
|
|
11
12
|
constructor(swell: Swell);
|
|
@@ -69,4 +70,12 @@ export declare class ThemeLoader {
|
|
|
69
70
|
* Generate a Swell API query filter for this theme version.
|
|
70
71
|
*/
|
|
71
72
|
private themeVersionQueryFilter;
|
|
73
|
+
/**
|
|
74
|
+
* Build cache key with tenant isolation for metadata
|
|
75
|
+
*/
|
|
76
|
+
private buildMetadataCacheKey;
|
|
77
|
+
/**
|
|
78
|
+
* Get or create the theme cache instance
|
|
79
|
+
*/
|
|
80
|
+
private getCache;
|
|
72
81
|
}
|
package/dist/types/shopify.d.ts
CHANGED
|
@@ -616,7 +616,7 @@ export interface ShopifyArticle {
|
|
|
616
616
|
}
|
|
617
617
|
export interface ShopifyBlog {
|
|
618
618
|
all_tags: string[];
|
|
619
|
-
articles: ShopifyArticle
|
|
619
|
+
articles: SwellStorefrontCollection<ShopifyResource<ShopifyArticle>>;
|
|
620
620
|
articles_count: number;
|
|
621
621
|
'comments_enabled?': boolean;
|
|
622
622
|
handle: string;
|