@artisan-commerce/types 0.12.2-canary.1 → 0.12.2-canary.2
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/CHANGELOG.md +9 -0
- package/build/types/image.types.d.ts +3 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
### [0.12.2-canary.2](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.12.2-canary.1...@artisan-commerce/types@0.12.2-canary.2) (2021-03-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **types:** update image type ([c461609](https://bitbucket.org/tradesystem/artisan_monorepo/commit/c461609e3aab757a4722d7a820a765a96588d94c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
### [0.12.2-canary.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.12.2-canary.0...@artisan-commerce/types@0.12.2-canary.1) (2021-03-18)
|
|
7
16
|
|
|
8
17
|
**Note:** Version bump only for package @artisan-commerce/types
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface CDNImage {
|
|
2
2
|
bucket?: string;
|
|
3
3
|
cloudFrontUrl?: string;
|
|
4
4
|
key?: string;
|
|
@@ -6,9 +6,11 @@ export interface Image {
|
|
|
6
6
|
url: string;
|
|
7
7
|
base64?: string;
|
|
8
8
|
}
|
|
9
|
+
export declare type URLImage = string;
|
|
9
10
|
export interface ImageManipulationConfig {
|
|
10
11
|
width?: number;
|
|
11
12
|
height?: number;
|
|
12
13
|
fit?: "fill" | "cover" | "contain" | "inside" | "outside";
|
|
13
14
|
toFormat?: "jpg" | "jpeg" | "png" | "svg";
|
|
14
15
|
}
|
|
16
|
+
export declare type Image = CDNImage | URLImage;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artisan-commerce/types",
|
|
3
3
|
"description": "Artisan's types and interfaces library",
|
|
4
|
-
"version": "0.12.2-canary.
|
|
4
|
+
"version": "0.12.2-canary.2",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"typescript": "^3.9.7",
|
|
45
45
|
"webpack-bundle-analyzer": "^3.9.0"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "ad89147223346d3d1db97d3fa3db50c80b4beb17"
|
|
48
48
|
}
|