@swell/apps-sdk 1.0.71 → 1.0.74
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 +41 -41
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +41 -41
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +41 -41
- package/dist/index.mjs.map +4 -4
- package/dist/src/compatibility/shopify-objects/index.d.ts +2 -1
- package/dist/src/compatibility/shopify-objects/recommendations.d.ts +4 -0
- package/dist/src/liquid/color.d.ts +3 -6
- package/dist/src/liquid/filters/color_extract.d.ts +1 -1
- package/dist/src/liquid/filters/color_to_hsl.d.ts +1 -1
- package/package.json +1 -1
|
@@ -15,12 +15,13 @@ import ShopifyOrder from './order';
|
|
|
15
15
|
import ShopifyPaginate from './paginate';
|
|
16
16
|
import ShopifyPredictiveSearch from './predictive_search';
|
|
17
17
|
import ShopifyProduct from './product';
|
|
18
|
+
import ShopifyRecommendations from './recommendations';
|
|
18
19
|
import ShopifyPage from './page';
|
|
19
20
|
import { DeferredShopifyResource, ShopifyResource } from './resource';
|
|
20
21
|
import ShopifySearch from './search';
|
|
21
22
|
import ShopifyVariant from './variant';
|
|
22
23
|
import type { SwellMenu, SwellData } from '../../../types/swell';
|
|
23
|
-
export { DeferredShopifyResource, ShopifyResource, ShopifyArticle, ShopifyBlog, ShopifyCart, ShopifyCollection, ShopifyCollections, ShopifyCustomer, ShopifyFont, ShopifyForm, ShopifyOrder, ShopifyPaginate, ShopifyPredictiveSearch, ShopifyProduct, ShopifyPage, ShopifyLink, ShopifyLocalization, ShopifySearch, ShopifyVariant, };
|
|
24
|
+
export { DeferredShopifyResource, ShopifyResource, ShopifyArticle, ShopifyBlog, ShopifyCart, ShopifyCollection, ShopifyCollections, ShopifyCustomer, ShopifyFont, ShopifyForm, ShopifyOrder, ShopifyPaginate, ShopifyPredictiveSearch, ShopifyProduct, ShopifyRecommendations, ShopifyPage, ShopifyLink, ShopifyLocalization, ShopifySearch, ShopifyVariant, };
|
|
24
25
|
export declare function adaptShopifyMenuData(instance: ShopifyCompatibility, menu: SwellMenu): SwellData;
|
|
25
26
|
export declare function adaptShopifyFontData(instance: ShopifyCompatibility, font: ThemeFont): SwellData;
|
|
26
27
|
export declare function adaptShopifyFormData(instance: ShopifyCompatibility, form: ThemeForm): SwellData;
|
|
@@ -6,7 +6,7 @@ export declare class ThemeColor {
|
|
|
6
6
|
red: number;
|
|
7
7
|
green: number;
|
|
8
8
|
blue: number;
|
|
9
|
-
constructor(value: string);
|
|
9
|
+
constructor(value: ThemeColor | string);
|
|
10
10
|
static get(colorVal: string | ThemeColor): ThemeColor;
|
|
11
11
|
toString(): string;
|
|
12
12
|
lighten(percent: number): string;
|
|
@@ -17,8 +17,8 @@ export declare class ThemeColor {
|
|
|
17
17
|
hex(): string;
|
|
18
18
|
saturate(value: number): string;
|
|
19
19
|
desaturate(value: number): string;
|
|
20
|
-
modify(field: string, value: number):
|
|
21
|
-
extract(field: string):
|
|
20
|
+
modify(field: string, value: number): string;
|
|
21
|
+
extract(field: string): string;
|
|
22
22
|
mix(color2: ThemeColor, ratio: number): string;
|
|
23
23
|
contrast(color2: ThemeColor): string;
|
|
24
24
|
/**
|
|
@@ -28,6 +28,3 @@ export declare class ThemeColor {
|
|
|
28
28
|
brightness(): number;
|
|
29
29
|
brightnessDifference(color2: ThemeColor): number;
|
|
30
30
|
}
|
|
31
|
-
export declare function mix(a: number, b: number, r: number): number;
|
|
32
|
-
export declare function diff(v1: number, v2: number): number;
|
|
33
|
-
export declare function brightness(colorStr: string): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LiquidSwell, ThemeColor } from
|
|
1
|
+
import { LiquidSwell, ThemeColor } from '..';
|
|
2
2
|
type ColorField = 'red' | 'green' | 'blue' | 'alpha' | 'hue' | 'saturation' | 'lightness';
|
|
3
3
|
export default function bind(_liquidSwell: LiquidSwell): (color: string | ThemeColor, field: ColorField) => string;
|
|
4
4
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LiquidSwell, ThemeColor } from
|
|
1
|
+
import { LiquidSwell, ThemeColor } from '..';
|
|
2
2
|
export default function bind(_liquidSwell: LiquidSwell): (color: string | ThemeColor) => string;
|