@aptly-as/sdk-web 0.0.3 → 0.1.0

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.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './media/Media.js';
1
+ export * from './media/Media.js';
2
2
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export * from './media/Media.js';
1
+ export * from './media/Media.js';
@@ -1,23 +1,23 @@
1
- import { AptlyMediaSrc } from "@aptly-as/types";
2
- import { MediaWidth } from './media.sets.js';
3
- import { MediaOption } from './media.options.js';
4
- export * from './media.options.js';
5
- export { MediaWidth };
6
- export declare type AptlyMediaUrl = AptlyMediaSrc | string | undefined;
7
- export interface MediaSrcSetProps {
8
- src: string;
9
- srcSet: string;
10
- sizes: string;
11
- }
12
- export declare class Media {
13
- private cloudinaryKey;
14
- constructor(cloudinaryKey: string);
15
- srcSet(url: AptlyMediaUrl, width: MediaWidth, baseOptions?: MediaOption[]): MediaSrcSetProps | undefined;
16
- css(url: AptlyMediaUrl, width: MediaWidth, baseOptions?: MediaOption[]): string | undefined;
17
- private getSrcSetsAndOptions;
18
- private getOptions;
19
- private areaOptions;
20
- private createSrcWithOptions;
21
- private getUrl;
22
- }
1
+ import { AptlyMediaSrc } from "@aptly-as/types";
2
+ import { MediaWidth } from './media.sets.js';
3
+ import { MediaOption } from './media.options.js';
4
+ export * from './media.options.js';
5
+ export { MediaWidth };
6
+ export type AptlyMediaUrl = AptlyMediaSrc | string | undefined;
7
+ export interface MediaSrcSetProps {
8
+ src: string;
9
+ srcSet: string;
10
+ sizes: string;
11
+ }
12
+ export declare class Media {
13
+ private cloudinaryKey;
14
+ constructor(cloudinaryKey: string);
15
+ srcSet(url: AptlyMediaUrl, width: MediaWidth, baseOptions?: MediaOption[]): MediaSrcSetProps | undefined;
16
+ css(url: AptlyMediaUrl, width: MediaWidth, baseOptions?: MediaOption[]): string | undefined;
17
+ private getSrcSetsAndOptions;
18
+ private getOptions;
19
+ private areaOptions;
20
+ private createSrcWithOptions;
21
+ private getUrl;
22
+ }
23
23
  //# sourceMappingURL=Media.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Media.d.ts","sourceRoot":"","sources":["../../lib/media/Media.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAyB,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAE/C,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,CAAC;AAKtB,oBAAY,aAAa,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,CAAC;AAC/D,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,KAAK;IACJ,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,MAAM;IAIzC,MAAM,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,GAAE,WAAW,EAAO,GAAG,gBAAgB,GAAG,SAAS;IAoB5G,GAAG,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,GAAE,WAAW,EAAO,GAAG,MAAM,GAAG,SAAS;IA8B/F,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,oBAAoB;IAK5B,OAAO,CAAC,MAAM;CAoBf"}
1
+ {"version":3,"file":"Media.d.ts","sourceRoot":"","sources":["../../lib/media/Media.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAyB,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAE/C,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,CAAC;AAKtB,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,CAAC;AAC/D,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,KAAK;IACJ,OAAO,CAAC,aAAa;IAAjC,YAAoB,aAAa,EAAE,MAAM,EAExC;IAED,MAAM,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,GAAE,WAAW,EAAO,GAAG,gBAAgB,GAAG,SAAS,CAkB3G;IAED,GAAG,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,GAAE,WAAW,EAAO,GAAG,MAAM,GAAG,SAAS,CA4B9F;IAED,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,oBAAoB;IAK5B,OAAO,CAAC,MAAM;CAoBf"}
@@ -1,100 +1,100 @@
1
- import { getImageSets } from './media.sets.js';
2
- export * from './media.options.js';
3
- export class Media {
4
- constructor(cloudinaryKey) {
5
- this.cloudinaryKey = cloudinaryKey;
6
- }
7
- srcSet(url, width, baseOptions = []) {
8
- const opts = this.getSrcSetsAndOptions(url, width, baseOptions);
9
- if (!opts)
10
- return opts;
11
- const { src, sets, options, area } = opts;
12
- const [srcSet, sizes] = sets.reduce(([_sets, _sizes], x, i) => {
13
- _sets.push(`${this.createSrcWithOptions(src, x.width, options, area)} ${x.width}w`);
14
- const min = sets[i - 1] ? sets[i - 1].maxWidth : 0;
15
- const max = x.maxWidth;
16
- _sizes.push(max
17
- ? `(min-width: ${min}px) and (max-width: ${max}px) ${x.width}px`
18
- : `(min-width: ${min}px) ${x.width}px`);
19
- return [_sets, _sizes];
20
- }, [[], []]);
21
- return { src, srcSet: srcSet.join(','), sizes: sizes.join(',') };
22
- }
23
- css(url, width, baseOptions = []) {
24
- const opts = this.getSrcSetsAndOptions(url, width, baseOptions);
25
- if (!opts)
26
- return opts;
27
- const { src, sets, options, area } = opts;
28
- return sets.map((x, i) => {
29
- const url = this.createSrcWithOptions(src, x.width, options, area);
30
- const url2x = this.createSrcWithOptions(src, x.width2x, options, area);
31
- const min = sets[i - 1] ? sets[i - 1].maxWidth : 0;
32
- const max = x.maxWidth;
33
- return max
34
- ? `
35
- @media all and (min-width: ${min}px) and (max-width: ${max}px) {
36
- background-image: url("${url}");
37
- }
38
- @media all and (min-width: ${min}px) and (max-width: ${max}px)
39
- and (-webkit-min-device-pixel-ratio: 2) {
40
- background-image: url("${url2x}");
41
- }
42
- `
43
- : `
44
- background-image: url("${url}");
45
- @media all and (min-width: ${min}px) and (-webkit-min-device-pixel-ratio: 2) {
46
- background-image: url("${url2x}");
47
- }
48
- `;
49
- }).join(`
50
- `);
51
- }
52
- getSrcSetsAndOptions(url, width, baseOptions) {
53
- if (!url)
54
- return undefined;
55
- const src = this.getUrl(url);
56
- if (!src)
57
- return undefined;
58
- const sets = getImageSets(width);
59
- const { options, area } = this.getOptions(url, baseOptions);
60
- return { src, sets, options, area };
61
- }
62
- getOptions(media, baseOptions) {
63
- return {
64
- options: baseOptions,
65
- area: typeof media === 'object' ? this.areaOptions(media) : '',
66
- };
67
- }
68
- areaOptions(media) {
69
- if (media?.area) {
70
- const { width = 1980, height = 1080, x = 0, y = 0 } = media.area;
71
- return `w_${width},h_${height},x_${x},y_${y},c_crop/`;
72
- }
73
- return '';
74
- }
75
- createSrcWithOptions(cloudUrl, width, urlOptions, areaOptions) {
76
- const replace = [`w_${width}`, ...urlOptions].join(',');
77
- return cloudUrl.replace(/\/upload\//, `/upload/${areaOptions}${replace}/`);
78
- }
79
- getUrl(url) {
80
- if (!url)
81
- return undefined;
82
- const cloudUrl = typeof url === 'object'
83
- ? url.url || url.src || url.image : url;
84
- if (!cloudUrl)
85
- return undefined;
86
- let key = this.cloudinaryKey;
87
- let id = cloudUrl;
88
- if (cloudUrl.startsWith('http')) {
89
- const match = cloudUrl.match(/cloudinary.com\/([^\/]*)\//);
90
- if (match) {
91
- key = match[1];
92
- id = cloudUrl.substring(cloudUrl.lastIndexOf('/') + 1);
93
- }
94
- else {
95
- return cloudUrl;
96
- }
97
- }
98
- return `https://res.cloudinary.com/${key}/image/upload/${id}`;
99
- }
100
- }
1
+ import { getImageSets } from './media.sets.js';
2
+ export * from './media.options.js';
3
+ export class Media {
4
+ constructor(cloudinaryKey) {
5
+ this.cloudinaryKey = cloudinaryKey;
6
+ }
7
+ srcSet(url, width, baseOptions = []) {
8
+ const opts = this.getSrcSetsAndOptions(url, width, baseOptions);
9
+ if (!opts)
10
+ return opts;
11
+ const { src, sets, options, area } = opts;
12
+ const [srcSet, sizes] = sets.reduce(([_sets, _sizes], x, i) => {
13
+ _sets.push(`${this.createSrcWithOptions(src, x.width, options, area)} ${x.width}w`);
14
+ const min = sets[i - 1] ? sets[i - 1].maxWidth : 0;
15
+ const max = x.maxWidth;
16
+ _sizes.push(max
17
+ ? `(min-width: ${min}px) and (max-width: ${max}px) ${x.width}px`
18
+ : `(min-width: ${min}px) ${x.width}px`);
19
+ return [_sets, _sizes];
20
+ }, [[], []]);
21
+ return { src, srcSet: srcSet.join(','), sizes: sizes.join(',') };
22
+ }
23
+ css(url, width, baseOptions = []) {
24
+ const opts = this.getSrcSetsAndOptions(url, width, baseOptions);
25
+ if (!opts)
26
+ return opts;
27
+ const { src, sets, options, area } = opts;
28
+ return sets.map((x, i) => {
29
+ const url = this.createSrcWithOptions(src, x.width, options, area);
30
+ const url2x = this.createSrcWithOptions(src, x.width2x, options, area);
31
+ const min = sets[i - 1] ? sets[i - 1].maxWidth : 0;
32
+ const max = x.maxWidth;
33
+ return max
34
+ ? `
35
+ @media all and (min-width: ${min}px) and (max-width: ${max}px) {
36
+ background-image: url("${url}");
37
+ }
38
+ @media all and (min-width: ${min}px) and (max-width: ${max}px)
39
+ and (-webkit-min-device-pixel-ratio: 2) {
40
+ background-image: url("${url2x}");
41
+ }
42
+ `
43
+ : `
44
+ background-image: url("${url}");
45
+ @media all and (min-width: ${min}px) and (-webkit-min-device-pixel-ratio: 2) {
46
+ background-image: url("${url2x}");
47
+ }
48
+ `;
49
+ }).join(`
50
+ `);
51
+ }
52
+ getSrcSetsAndOptions(url, width, baseOptions) {
53
+ if (!url)
54
+ return undefined;
55
+ const src = this.getUrl(url);
56
+ if (!src)
57
+ return undefined;
58
+ const sets = getImageSets(width);
59
+ const { options, area } = this.getOptions(url, baseOptions);
60
+ return { src, sets, options, area };
61
+ }
62
+ getOptions(media, baseOptions) {
63
+ return {
64
+ options: baseOptions,
65
+ area: typeof media === 'object' ? this.areaOptions(media) : '',
66
+ };
67
+ }
68
+ areaOptions(media) {
69
+ if (media?.area) {
70
+ const { width = 1980, height = 1080, x = 0, y = 0 } = media.area;
71
+ return `w_${width},h_${height},x_${x},y_${y},c_crop/`;
72
+ }
73
+ return '';
74
+ }
75
+ createSrcWithOptions(cloudUrl, width, urlOptions, areaOptions) {
76
+ const replace = [`w_${width}`, ...urlOptions].join(',');
77
+ return cloudUrl.replace(/\/upload\//, `/upload/${areaOptions}${replace}/`);
78
+ }
79
+ getUrl(url) {
80
+ if (!url)
81
+ return undefined;
82
+ const cloudUrl = typeof url === 'object'
83
+ ? url.url || url.src || url.image : url;
84
+ if (!cloudUrl)
85
+ return undefined;
86
+ let key = this.cloudinaryKey;
87
+ let id = cloudUrl;
88
+ if (cloudUrl.startsWith('http')) {
89
+ const match = cloudUrl.match(/cloudinary.com\/([^\/]*)\//);
90
+ if (match) {
91
+ key = match[1];
92
+ id = cloudUrl.substring(cloudUrl.lastIndexOf('/') + 1);
93
+ }
94
+ else {
95
+ return cloudUrl;
96
+ }
97
+ }
98
+ return `https://res.cloudinary.com/${key}/image/upload/${id}`;
99
+ }
100
+ }
@@ -1,8 +1,8 @@
1
- export declare type MediaOptionFormats = 'f_auto';
2
- export declare type MediaOptionCrop = 'c_fill' | 'c_fit' | 'c_pad' | 'c_crop';
3
- export declare type MediaOptionHeight = `h_${number}`;
4
- export declare type MediaOption = MediaOptionFormats | MediaOptionCrop | MediaOptionHeight;
5
- export declare const mediaSquare: MediaOption[];
6
- export declare const mediaThumbnail: MediaOption[];
7
- export declare const mediaBackground: MediaOption[];
1
+ export type MediaOptionFormats = 'f_auto';
2
+ export type MediaOptionCrop = 'c_fill' | 'c_fit' | 'c_pad' | 'c_crop';
3
+ export type MediaOptionHeight = `h_${number}`;
4
+ export type MediaOption = MediaOptionFormats | MediaOptionCrop | MediaOptionHeight;
5
+ export declare const mediaSquare: MediaOption[];
6
+ export declare const mediaThumbnail: MediaOption[];
7
+ export declare const mediaBackground: MediaOption[];
8
8
  //# sourceMappingURL=media.options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"media.options.d.ts","sourceRoot":"","sources":["../../lib/media/media.options.ts"],"names":[],"mappings":"AACA,oBAAY,kBAAkB,GAAG,QAAQ,CAAC;AAC1C,oBAAY,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AACtE,oBAAY,iBAAiB,GAAG,KAAK,MAAM,EAAE,CAAC;AAC9C,oBAAY,WAAW,GACnB,kBAAkB,GAClB,eAAe,GACf,iBAAiB,CAAC;AAEtB,eAAO,MAAM,WAAW,EAAE,WAAW,EAAwB,CAAC;AAC9D,eAAO,MAAM,cAAc,EAAE,WAAW,EAAwB,CAAC;AACjE,eAAO,MAAM,eAAe,EAAE,WAAW,EAAyB,CAAC"}
1
+ {"version":3,"file":"media.options.d.ts","sourceRoot":"","sources":["../../lib/media/media.options.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC;AAC1C,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,KAAK,MAAM,EAAE,CAAC;AAC9C,MAAM,MAAM,WAAW,GACnB,kBAAkB,GAClB,eAAe,GACf,iBAAiB,CAAC;AAEtB,eAAO,MAAM,WAAW,EAAE,WAAW,EAAwB,CAAC;AAC9D,eAAO,MAAM,cAAc,EAAE,WAAW,EAAwB,CAAC;AACjE,eAAO,MAAM,eAAe,EAAE,WAAW,EAAyB,CAAC"}
@@ -1,3 +1,3 @@
1
- export const mediaSquare = ['f_auto', 'c_pad'];
2
- export const mediaThumbnail = ['f_auto', 'c_pad'];
3
- export const mediaBackground = ['f_auto', 'c_fill'];
1
+ export const mediaSquare = ['f_auto', 'c_pad'];
2
+ export const mediaThumbnail = ['f_auto', 'c_pad'];
3
+ export const mediaBackground = ['f_auto', 'c_fill'];
@@ -1,8 +1,8 @@
1
- export declare type MediaWidth = 40 | 80 | 160 | 320 | 540 | 720 | 1080;
2
- export interface MediaSet {
3
- width: number;
4
- width2x: number;
5
- maxWidth?: number;
6
- }
7
- export declare function getImageSets(width: MediaWidth): MediaSet[];
1
+ export type MediaWidth = 40 | 80 | 160 | 320 | 540 | 720 | 1080;
2
+ export interface MediaSet {
3
+ width: number;
4
+ width2x: number;
5
+ maxWidth?: number;
6
+ }
7
+ export declare function getImageSets(width: MediaWidth): MediaSet[];
8
8
  //# sourceMappingURL=media.sets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"media.sets.d.ts","sourceRoot":"","sources":["../../lib/media/media.sets.ts"],"names":[],"mappings":"AACA,oBAAY,UAAU,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AAChE,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AA2BD,wBAAgB,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,QAAQ,EAAE,CAY1D"}
1
+ {"version":3,"file":"media.sets.d.ts","sourceRoot":"","sources":["../../lib/media/media.sets.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,UAAU,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AAChE,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AA2BD,wBAAgB,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,QAAQ,EAAE,CAY1D"}
@@ -1,34 +1,34 @@
1
- const MEDIA_SIZES_LARGE = [
2
- { width: 540, width2x: 1080, maxWidth: 500 },
3
- { width: 720, width2x: 1440, maxWidth: 720 },
4
- { width: 1080, width2x: 2160, maxWidth: 1080 },
5
- { width: 1440, width2x: 2880, maxWidth: 1440 },
6
- { width: 1920, width2x: 3840, maxWidth: 1920 },
7
- { width: 2560, width2x: 3840 }
8
- ];
9
- const MEDIA_SIZES_MEDIUM = [
10
- { width: 320, width2x: 540, maxWidth: 500 },
11
- { width: 540, width2x: 1080, maxWidth: 500 },
12
- { width: 720, width2x: 1440 }
13
- ];
14
- const MEDIA_SIZES_SMALL = [
15
- { width: 320, width2x: 540, maxWidth: 500 },
16
- { width: 540, width2x: 1080 }
17
- ];
18
- const MEDIA_SIZES_TINY = [{ width: 320, width2x: 640 }];
19
- const MEDIA_SIZES_PREVIEW = [{ width: 160, width2x: 320 }];
20
- const MEDIA_SIZES_LARGE_ICON = [{ width: 80, width2x: 160 }];
21
- const MEDIA_SIZES_ICON = [{ width: 40, width2x: 80 }];
22
- export function getImageSets(width) {
23
- switch (width) {
24
- case 1080: return MEDIA_SIZES_LARGE;
25
- case 720: return MEDIA_SIZES_MEDIUM;
26
- case 540: return MEDIA_SIZES_SMALL;
27
- case 320: return MEDIA_SIZES_TINY;
28
- case 160: return MEDIA_SIZES_PREVIEW;
29
- case 80: return MEDIA_SIZES_LARGE_ICON;
30
- case 40: return MEDIA_SIZES_ICON;
31
- default:
32
- return MEDIA_SIZES_LARGE;
33
- }
34
- }
1
+ const MEDIA_SIZES_LARGE = [
2
+ { width: 540, width2x: 1080, maxWidth: 500 },
3
+ { width: 720, width2x: 1440, maxWidth: 720 },
4
+ { width: 1080, width2x: 2160, maxWidth: 1080 },
5
+ { width: 1440, width2x: 2880, maxWidth: 1440 },
6
+ { width: 1920, width2x: 3840, maxWidth: 1920 },
7
+ { width: 2560, width2x: 3840 }
8
+ ];
9
+ const MEDIA_SIZES_MEDIUM = [
10
+ { width: 320, width2x: 540, maxWidth: 500 },
11
+ { width: 540, width2x: 1080, maxWidth: 500 },
12
+ { width: 720, width2x: 1440 }
13
+ ];
14
+ const MEDIA_SIZES_SMALL = [
15
+ { width: 320, width2x: 540, maxWidth: 500 },
16
+ { width: 540, width2x: 1080 }
17
+ ];
18
+ const MEDIA_SIZES_TINY = [{ width: 320, width2x: 640 }];
19
+ const MEDIA_SIZES_PREVIEW = [{ width: 160, width2x: 320 }];
20
+ const MEDIA_SIZES_LARGE_ICON = [{ width: 80, width2x: 160 }];
21
+ const MEDIA_SIZES_ICON = [{ width: 40, width2x: 80 }];
22
+ export function getImageSets(width) {
23
+ switch (width) {
24
+ case 1080: return MEDIA_SIZES_LARGE;
25
+ case 720: return MEDIA_SIZES_MEDIUM;
26
+ case 540: return MEDIA_SIZES_SMALL;
27
+ case 320: return MEDIA_SIZES_TINY;
28
+ case 160: return MEDIA_SIZES_PREVIEW;
29
+ case 80: return MEDIA_SIZES_LARGE_ICON;
30
+ case 40: return MEDIA_SIZES_ICON;
31
+ default:
32
+ return MEDIA_SIZES_LARGE;
33
+ }
34
+ }
package/package.json CHANGED
@@ -1,45 +1,36 @@
1
1
  {
2
2
  "name": "@aptly-as/sdk-web",
3
- "version": "0.0.3",
3
+ "version": "0.1.0",
4
4
  "description": "Aptly SDK library for web applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
- "engines": {
8
- "node": ">14.0.0 <17.0.0"
9
- },
10
- "scripts": {
11
- "start": "tsc --incremental --watch",
12
- "build": "tsc",
13
- "test:watch": "mocha --parallel --watch",
14
- "test:active": "mocha --watch --parallel --grep active:",
15
- "test": "mocha",
16
- "prepublish": "yarn build",
17
- "postversion": "git push && git push --tags"
18
- },
7
+ "types": "dist/index.d.ts",
19
8
  "files": [
20
9
  "dist"
21
10
  ],
11
+ "engines": {
12
+ "node": "24.22.3"
13
+ },
22
14
  "author": "Emil Andreas Olsen <emil@aptly.as>",
23
15
  "license": "ISC",
24
16
  "devDependencies": {
25
- "@aptly-as/types": "*",
26
- "@types/chai": "^4.3.0",
27
- "@types/mocha": "^9.1.0",
28
- "@types/node": "^17.0.21",
29
- "chai": "^4.3.6",
30
- "husky": "^7.0.4",
31
- "lint-staged": "^12.3.4",
32
- "mocha": "^9.2.1",
33
- "prettier": "^2.5.1",
34
- "source-map-support": "^0.5.21",
35
- "ts-node": "^10.5.0",
36
- "typescript": "^4.5.5"
17
+ "@aptly-as/types": "^4.2.0",
18
+ "@vitest/ui": "^5.1.0",
19
+ "prettier": "^3.10.1",
20
+ "typescript": "7.0.2",
21
+ "vitest": "^5.1.0"
37
22
  },
38
23
  "dependencies": {},
39
24
  "peerDependencies": {
40
25
  "@aptly-as/types": "*"
41
26
  },
42
- "lint-staged": {
43
- "**/*": "prettier --write --ignore-unknown"
27
+ "scripts": {
28
+ "start": "tsc --incremental --watch",
29
+ "build": "tsc",
30
+ "test": "vitest",
31
+ "test:ui": "vitest --ui --api 9527",
32
+ "test:run": "vitest run",
33
+ "prepublish": "pnpm run build",
34
+ "postversion": "git push && git push --tags"
44
35
  }
45
- }
36
+ }
@@ -1,20 +0,0 @@
1
- export class AptlyMedia {
2
- constructor(cloudinaryId) {
3
- this.cloudinaryId = cloudinaryId;
4
- }
5
- srcSet(url, options) {
6
- if (!url)
7
- return undefined;
8
- const cloudUrl = typeof url === 'object'
9
- ? url.url || url.src || url.image : url;
10
- if (!cloudUrl)
11
- return undefined;
12
- const option = new Set([...options]);
13
- option.add('f_auto');
14
- const urlOptions = [...option].join(',');
15
- if (cloudUrl.startsWith('http')) {
16
- return cloudUrl.replace(/\/(v[^\/]*)\//, `/${urlOptions}/`);
17
- }
18
- return `https://res.cloudinary.com/${this._config.media.cloudinaryKey}/image/upload/${urlOptions}/${cloudUrl}`;
19
- }
20
- }
@@ -1,8 +0,0 @@
1
- export declare type ImageSizes = 40 | 80 | 160 | 320 | 540 | 720 | 1080;
2
- export interface ImageSize {
3
- width: number;
4
- width2x: number;
5
- maxWidth?: number;
6
- }
7
- export declare function getImageSet(width: ImageSizes): ImageSize[];
8
- //# sourceMappingURL=media.sets.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"media.sets.d.ts","sourceRoot":"","sources":["../lib/media.sets.ts"],"names":[],"mappings":"AACA,oBAAY,UAAU,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AAChE,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AA2BD,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,EAAE,CAU1D"}
@@ -1,32 +0,0 @@
1
- const IMAGE_SIZES_LARGE = [
2
- { width: 540, width2x: 1080, maxWidth: 500 },
3
- { width: 720, width2x: 1440, maxWidth: 720 },
4
- { width: 1080, width2x: 2160, maxWidth: 1080 },
5
- { width: 1440, width2x: 2880, maxWidth: 1440 },
6
- { width: 1920, width2x: 3840, maxWidth: 1920 },
7
- { width: 2560, width2x: 3840 }
8
- ];
9
- const IMAGE_SIZES_MEDIUM = [
10
- { width: 540, width2x: 1080, maxWidth: 500 },
11
- { width: 640, width2x: 1280, maxWidth: 720 },
12
- { width: 720, width2x: 1440 }
13
- ];
14
- const IMAGE_SIZES_SMALL = [
15
- { width: 320, width2x: 540, maxWidth: 500 },
16
- { width: 540, width2x: 1080 }
17
- ];
18
- const IMAGE_SIZES_TINY = [{ width: 320, width2x: 640 }];
19
- const IMAGE_SIZES_PREVIEW = [{ width: 160, width2x: 320 }];
20
- const IMAGE_SIZES_LARGE_ICON = [{ width: 80, width2x: 160 }];
21
- const IMAGE_SIZES_ICON = [{ width: 40, width2x: 80 }];
22
- export function getImageSet(width) {
23
- switch (width) {
24
- case 1080: return IMAGE_SIZES_LARGE;
25
- case 720: return IMAGE_SIZES_MEDIUM;
26
- case 540: return IMAGE_SIZES_SMALL;
27
- case 320: return IMAGE_SIZES_TINY;
28
- case 160: return IMAGE_SIZES_PREVIEW;
29
- case 80: return IMAGE_SIZES_LARGE_ICON;
30
- case 40: return IMAGE_SIZES_ICON;
31
- }
32
- }
@@ -1 +0,0 @@
1
- {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.es2021.full.d.ts","../../types/enums/document.ts","../../types/enums/fields.ts","../../types/enums/unit-template.ts","../../types/enums/webhook.ts","../../types/enums/index.ts","../../types/core/cloudinary.ts","../../types/core/api.ts","../../types/core/permission.ts","../../types/core/scope.ts","../../types/models/user.ts","../../types/models/extends.ts","../../types/models/document.ts","../../types/models/producer.ts","../../types/models/product.ts","../../types/models/upsell-template.ts","../../types/models/unit-template.ts","../../types/models/unit.ts","../../types/models/project.ts","../../types/models/department.ts","../../types/models/organization.ts","../../types/models/media.ts","../../types/models/app.ts","../../types/models/booking.ts","../../types/models/client.ts","../../types/models/inquiry.ts","../../types/models/notification-trigger.ts","../../types/models/option-label.ts","../../types/models/order.ts","../../types/models/page.ts","../../types/models/product-stats.ts","../../types/models/queue-download.ts","../../types/models/recommendation.ts","../../types/models/supplier.ts","../../types/models/tag.ts","../../types/models/unit-email.ts","../../types/models/webhook.ts","../../types/models/webhook-event.ts","../../types/models/index.ts","../../types/core/app.ts","../../types/core/error.ts","../../types/core/fields.ts","../../types/core/signage.ts","../../types/core/webhook-event-data.ts","../../types/core/index.ts","../../types/index.d.ts","../lib/media/media.sets.ts","../lib/media/media.options.ts","../lib/media/media.ts","../lib/index.ts","../node_modules/@types/chai/index.d.ts","../node_modules/@types/mocha/index.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"927cb2b60048e1395b183bf74b2b80a75bdb1dbe384e1d9fac654313ea2fb136","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"0ce99fa68940b918945c445a958e2568a5b7593f7e3a0eeef9f0f79d45651b91","9d7027bb3eba4aa622f2485cbc9ccbecd6d9305686184370f831c3d93d9a3113","144d6e55c3b5ba84c596a8c2302287d4719ebfc9c4f62bb81c19bc58a9c4cc79","318d4269ba60fa39d1f35626a0c6b1b732c7a28f3db90b8a41d2d80be09b9b4d","66265594537a3dc2a3efcae815cdd8983d09def8b316e404a91048eaa77ad91b","edd7097d5b95bc8e544c0c495500d2bc1ee770e0490bb3b6eaf68920e212c5f4","60bc5c9942471941f0e882e3b772e5fb624436446538285bd5bf9b568b03a147","27c930edf942f778e28c74a36093f5d28fe8d381ea2891ccb8e30cf6dfc654de","b78359da67ec3ab68165b8a5f4eb3bde8d7ce06a7bddfb3e16f4d975b44e9f7b","aee43b53d6f15ba0f2bd36f737c9fa3bc643bf6026d1f8278454d3a8b04e45f5","1555f48771d0357356a7f8ffd0756cb218d2af1420591041f9b59b033e63ed6c","9d0f21b51ea1be6476efd23875b69915e2d78ab32de74fa59cb0398c4857b8bd","f794bb57ffa3593f16b45b4e6d4495dd43017c8289a8f2d839c872dadefadba5","315feff86ec3b92bb762241a9e93e6455745dd4f51ebd697bcfc4b86dfed51e3","5344899cc61d0981cedf72e56edb1cf81f742795923449b17040dfff4b2389d7","2129ad73930b3e31560328037fd5b970a5371a19893d59df803be260418004bf","e867073a6a91bce359e9ee4ffc26b3eec1e966ad8414e4f267378720076bcab7","b2e72a37102826143e5a35997d6434bd59b122d82dcf65ccc9dd329d556fee3c","21c85cb63421b70eed228136bbfa13ce8ba1ec63c13aeaae62c73abc478ce645","66a177ebc54d90d06984d01e231ee06392e66d9c4c4c5fee7e2d1fb26cae5ec6","d9ea50c403ade4106f464cc87d3385fea588e329821415e38f1b976683b59ca2","b0b82131c16908d9862487dcc5406f076f9436dcd344ba2cc713983aff9b231d","d329dba4b21ea38e41329837f1c167cf246d99b74af188ecb7ec975b1fa37715","e3b62fad0c3b6a7304eb87eda95cc0afaa19022722873808ce1dd2cf9aafbcb6","bb7728c6ff6b430df6cd40923d250ed9959d328545099c5d4cae58ef8a4849da","b629b8f68ea5039cc9ab4ba25dad5b343349fbc363f29d8889f81bb0a5569c0b","fb81d431628391971843624b47f0da6b45c38de95a55c31f6d165645437718c5","797e6ec04bc5814bfe7dc14ffa989204abf1a74a8b057d3f792b78c91b60793a","b273d9c41ff9d2d7bde3f168439b4581c14cc177551f441546913cf2fb52bb93","b033b1f6bb20d9e682f2585171b9c1e4f8eed93f36772ab3f20634405d5a93b1","6135b888343c7bb5bdf1f156be317468c44dccd424cf3b880d5c2ad4247e0f70","265ab3816dcd27357a8f2d1d7f2c736fcee6113920ed846f7cacf04bbd04bc19","d0af13c5902dbd629f095a5310dd4dc15fd7535c49ff20d9cf9f477b56ae9b88","07cfd209c1486293000bfe7ae55a78feef11450ad987cfd89c3acbc66caefea9","da5b265debf794ab07f41830da308542a1d78b8e8328b1d60e00d8974c2a147a","f64819d661d9d91a58761a70197ede5646b8b4d693eb73d3cb3fd087e0331337","3355b2d57edf62376a8d9681fc2b7a3a672bed70138ff327b005ff6dc44c22de","d5f34ac543162996f20ab73bf7d17327b30a9eddebf59c8ed5d57c55b18b9f99","ef8f68fea379b2c9f231c2d30303b7d8b48cf346ff1d69beccd40b18e3e3a192","a4cdb88eaa4adfbbbfca2367893dd8c6a293d5a0d031d498f4435f6e09229d90","262d7f23a617695579f8d3ef47d5dcd0b4fe82683c8637313d392a1b6089a47e","8eb9c10ba90db4b75a9c2bfa58821802477518c0b1d6743752a1b17d428b82e0","cee76c666b590b3f0d5a5427c11c8f4e288573aa075202371021b3eeec9a5126","7febabcffe7ae0a13214ae1d49ce5eff699515c4e226e4ef5c910040e247c697","2b5332093232b6aa330664f4d07110e697bbe31d488a5069e68f1dd7a7c3d28a","2a5b89ed49f1345ac1645fd48d678fbdbf164614a5f35e1467c677d7dcfbe114",{"version":"497a70c1623b9bebfac5096a2d087b6dd48f2b0cbccbb83d182177b700daa0a5","signature":"47d0345544fa6add5700268c74fec2ccf1f7d293a210a1d09ea2b069418d231c"},{"version":"c229a720110ca63b82ee23dc7edfd9d2a4942c1f460a80fb0d696dc0cd830286","signature":"49f5677c80606cb51b0c34df611cf042cda304616e9a591a22a7f487dfa2214a"},{"version":"ac2146fc3ab2df54cc7fa8d16130d513d44f9cfdfea668e2f518219a4dd89b4e","signature":"628abd71122dcdf55582d545bf3e4c9ffd6d6556fb5007784984e8e6f46332f7"},"8b0415c203933ae038d220f80eb8fc3eda3712fca288b0284163b7e2065048cd",{"version":"c8747693e5872ad5ef3aa016731a06915e1c34dae987829d9aa5bd40c7a2c54b","affectsGlobalScope":true},{"version":"30bf01dd2e284098445264c8d71c608890cc11c142f36d0193aa655bdc0a40cb","affectsGlobalScope":true},"0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"c2ab70bbc7a24c42a790890739dd8a0ba9d2e15038b40dff8163a97a5d148c00","affectsGlobalScope":true},"422dbb183fdced59425ca072c8bd09efaa77ce4e2ab928ec0d8a1ce062d2a45a",{"version":"712ba0d43b44d144dfd01593f61af6e2e21cfae83e834d297643e7973e55ed61","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","98a3ebfa494b46265634a73459050befba5da8fdc6ca0ef9b7269421780f4ff3","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","cc0b61316c4f37393f1f9595e93b673f4184e9d07f4c127165a490ec4a928668","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"7a5459efa09ea82088234e6533a203d528c594b01787fb90fba148885a36e8b6","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","ad41bb744149e92adb06eb953da195115620a3f2ad48e7d3ae04d10762dae197","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"5d0a9ea09d990b5788f867f1c79d4878f86f7384cb7dab38eecbf22f9efd063d","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"4cd4cff679c9b3d9239fd7bf70293ca4594583767526916af8e5d5a47d0219c7","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","00fa7ce8bc8acc560dc341bbfdf37840a8c59e6a67c9bfa3fa5f36254df35db2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"3345c276cab0e76dda86c0fb79104ff915a4580ba0f3e440870e183b1baec476","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","e383ff72aabf294913f8c346f5da1445ae6ad525836d28efd52cbadc01a361a6","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8"],"options":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"jsx":2,"module":99,"noImplicitAny":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","removeComments":true,"skipLibCheck":true,"strict":true,"target":8},"fileIdsList":[[96,143],[143],[93,94,95,143],[100,143],[103,143],[104,109,143],[105,115,116,123,132,142,143],[105,106,115,123,143],[107,143],[108,109,116,124,143],[109,132,139,143],[110,112,115,123,143],[111,143],[112,113,143],[114,115,143],[115,143],[115,116,117,132,142,143],[115,116,117,132,143],[118,123,132,142,143],[115,116,118,119,123,132,139,142,143],[118,120,132,139,142,143],[100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149],[115,121,143],[122,142,143],[112,115,123,132,143],[124,143],[125,143],[103,126,143],[127,141,143,147],[128,143],[129,143],[115,130,143],[130,131,143,145],[115,132,133,134,143],[132,134,143],[132,133,143],[135,143],[136,143],[115,137,138,143],[137,138,143],[109,123,132,139,143],[140,143],[123,141,143],[104,118,129,142,143],[109,143],[132,143,144],[143,145],[143,146],[104,109,115,117,126,132,142,143,145,147],[132,143,148],[57,86,143],[53,143],[54,55,56,57,87,88,89,90,91,143],[56,143],[86,143],[49,50,51,52,143],[53,86,92,143],[53,59,69,92,143],[59,92,143],[58,59,65,66,68,92,143],[53,59,143],[53,58,143],[58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,143],[53,58,65,66,68,92,143],[59,68,143],[59,143],[53,59,65,143],[58,59,61,67,69,70,92,143],[59,69,143],[59,61,69,143],[58,59,60,65,68,69,92,143],[53,59,60,69,143],[59,65,66,68,71,73,143],[53,59,61,62,63,66,69,143],[53,58,59,64,66,68,143],[93,94,95]],"referencedMap":[[97,1],[95,2],[94,2],[96,3],[98,2],[99,2],[100,4],[101,4],[103,5],[104,6],[105,7],[106,8],[107,9],[108,10],[109,11],[110,12],[111,13],[112,14],[113,14],[114,15],[115,16],[116,17],[117,18],[102,2],[149,2],[118,19],[119,20],[120,21],[150,22],[121,23],[122,24],[123,25],[124,26],[125,27],[126,28],[127,29],[128,30],[129,31],[130,32],[131,33],[132,34],[134,35],[133,36],[135,37],[136,38],[137,39],[138,40],[139,41],[140,42],[141,43],[142,44],[143,45],[144,46],[145,47],[146,48],[147,49],[148,50],[9,2],[10,2],[14,2],[13,2],[2,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[3,2],[4,2],[26,2],[23,2],[24,2],[25,2],[27,2],[28,2],[29,2],[5,2],[30,2],[31,2],[32,2],[33,2],[6,2],[34,2],[35,2],[36,2],[37,2],[7,2],[42,2],[38,2],[39,2],[40,2],[41,2],[8,2],[48,2],[46,2],[43,2],[44,2],[45,2],[1,2],[47,2],[12,2],[11,2],[55,2],[87,51],[54,52],[88,52],[89,52],[92,53],[56,2],[57,54],[90,52],[91,55],[49,2],[50,2],[53,56],[51,2],[52,2],[93,57],[70,58],[71,2],[72,59],[67,60],[60,61],[59,62],[86,63],[73,64],[69,65],[74,2],[75,66],[76,67],[68,68],[77,61],[61,69],[78,66],[62,70],[66,71],[79,72],[80,69],[81,69],[82,66],[83,73],[64,74],[65,75],[63,66],[58,66],[85,61],[84,61]],"exportedModulesMap":[[97,1],[96,76],[98,2],[99,2],[100,4],[101,4],[103,5],[104,6],[105,7],[106,8],[107,9],[108,10],[109,11],[110,12],[111,13],[112,14],[113,14],[114,15],[115,16],[116,17],[117,18],[102,2],[149,2],[118,19],[119,20],[120,21],[150,22],[121,23],[122,24],[123,25],[124,26],[125,27],[126,28],[127,29],[128,30],[129,31],[130,32],[131,33],[132,34],[134,35],[133,36],[135,37],[136,38],[137,39],[138,40],[139,41],[140,42],[141,43],[142,44],[143,45],[144,46],[145,47],[146,48],[147,49],[148,50],[47,2],[55,2],[87,51],[54,52],[88,52],[89,52],[92,53],[56,2],[57,54],[90,52],[91,55],[49,2],[50,2],[53,56],[51,2],[52,2],[93,57],[70,58],[71,2],[72,59],[67,60],[60,61],[59,62],[86,63],[73,64],[69,65],[74,2],[75,66],[76,67],[68,68],[77,61],[61,69],[78,66],[62,70],[66,71],[79,72],[80,69],[81,69],[82,66],[83,73],[64,74],[65,75],[63,66],[58,66],[85,61],[84,61]],"semanticDiagnosticsPerFile":[97,95,94,96,98,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,102,149,118,119,120,150,121,122,123,124,125,126,127,128,129,130,131,132,134,133,135,136,137,138,139,140,141,142,143,144,145,146,147,148,9,10,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,34,35,36,37,7,42,38,39,40,41,8,48,46,43,44,45,1,47,12,11,55,87,54,88,89,92,56,57,90,91,49,50,53,51,52,93,70,71,72,67,60,59,86,73,69,74,75,76,68,77,61,78,62,66,79,80,81,82,83,64,65,63,58,85,84]},"version":"4.5.5"}