@cesdk/cesdk-js 1.13.0-rc.0 → 1.13.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/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="offscreencanvas" />
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* A11 Settings
|
|
5
3
|
* @public
|
|
@@ -376,6 +374,8 @@ export declare interface AssetResult extends Asset {
|
|
|
376
374
|
};
|
|
377
375
|
}
|
|
378
376
|
|
|
377
|
+
declare type _AssetResult = AssetResult;
|
|
378
|
+
|
|
379
379
|
/** @public */
|
|
380
380
|
declare interface AssetResultContext {
|
|
381
381
|
sourceId: string;
|
|
@@ -456,6 +456,8 @@ export declare interface AssetSource {
|
|
|
456
456
|
getSupportedMimeTypes?(): string[] | undefined;
|
|
457
457
|
}
|
|
458
458
|
|
|
459
|
+
declare type _AssetSource = AssetSource;
|
|
460
|
+
|
|
459
461
|
/**
|
|
460
462
|
* Return type of a `findAssets` query.
|
|
461
463
|
* @public
|
|
@@ -471,6 +473,8 @@ export declare interface AssetsQueryResult<T extends AssetResult = AssetResult>
|
|
|
471
473
|
total: number;
|
|
472
474
|
}
|
|
473
475
|
|
|
476
|
+
declare type _AssetsQueryResult = AssetsQueryResult;
|
|
477
|
+
|
|
474
478
|
/**
|
|
475
479
|
* Bleed margin configuration options for a single design unit type.
|
|
476
480
|
* @public
|
|
@@ -2385,6 +2389,12 @@ declare type CameraSettings = {
|
|
|
2385
2389
|
pixelRatio: number;
|
|
2386
2390
|
};
|
|
2387
2391
|
|
|
2392
|
+
/**
|
|
2393
|
+
* An HTML Canvas or an Offscreen Canvas
|
|
2394
|
+
* @public
|
|
2395
|
+
*/
|
|
2396
|
+
export declare type Canvas = HTMLCanvasElement | OffscreenCanvas_2;
|
|
2397
|
+
|
|
2388
2398
|
declare type CardBackground = {
|
|
2389
2399
|
path: string;
|
|
2390
2400
|
type: 'svgVectorPath' | 'image';
|
|
@@ -3130,7 +3140,7 @@ export declare namespace _EngineConfigTypes {
|
|
|
3130
3140
|
* @deprecated This type definition has been moved
|
|
3131
3141
|
* It can instead be imported directly as `HexColorString`
|
|
3132
3142
|
*/
|
|
3133
|
-
export type HexColorString =
|
|
3143
|
+
export type HexColorString = _HexColorString;
|
|
3134
3144
|
/**
|
|
3135
3145
|
* @deprecated
|
|
3136
3146
|
* This type definition has be removed. Please use the asset api at
|
|
@@ -3148,19 +3158,19 @@ export declare namespace _EngineConfigTypes {
|
|
|
3148
3158
|
* @deprecated
|
|
3149
3159
|
* This type definition has been moved and can be imported directly as `AssetResult`.
|
|
3150
3160
|
*/
|
|
3151
|
-
export type AssetResult =
|
|
3161
|
+
export type AssetResult = _AssetResult;
|
|
3152
3162
|
/**
|
|
3153
3163
|
* @deprecated
|
|
3154
3164
|
* This type definition has been moved and can be imported directly as `AssetsQueryResult`.
|
|
3155
3165
|
*/
|
|
3156
|
-
export type AssetsQueryResult =
|
|
3166
|
+
export type AssetsQueryResult = _AssetsQueryResult;
|
|
3157
3167
|
/**
|
|
3158
3168
|
* @deprecated
|
|
3159
3169
|
* This type definition has been moved and can be imported directly as `AssetSource`,
|
|
3160
3170
|
* when working with the asset api.
|
|
3161
3171
|
* @public
|
|
3162
3172
|
*/
|
|
3163
|
-
export type AssetSource = Omit<
|
|
3173
|
+
export type AssetSource = Omit<_AssetSource, 'id'>;
|
|
3164
3174
|
/**
|
|
3165
3175
|
* @deprecated This type definition is not used anymore and will be removed.
|
|
3166
3176
|
*/
|
|
@@ -3582,6 +3592,8 @@ declare type Handler<T> = (v: T) => void;
|
|
|
3582
3592
|
*/
|
|
3583
3593
|
export declare type HexColorString = string;
|
|
3584
3594
|
|
|
3595
|
+
declare type _HexColorString = HexColorString;
|
|
3596
|
+
|
|
3585
3597
|
/**
|
|
3586
3598
|
* A numerical identifier for a history stack
|
|
3587
3599
|
* @public
|
|
@@ -3675,6 +3687,16 @@ declare enum NavigationPosition {
|
|
|
3675
3687
|
Bottom = "bottom"
|
|
3676
3688
|
}
|
|
3677
3689
|
|
|
3690
|
+
/**
|
|
3691
|
+
* A simplified placeholder type for `OffscreenCanvas`, to avoid a dependency on `@types/offscreencanvas`
|
|
3692
|
+
* @public
|
|
3693
|
+
*/
|
|
3694
|
+
declare type OffscreenCanvas_2 = {
|
|
3695
|
+
width: number;
|
|
3696
|
+
height: number;
|
|
3697
|
+
};
|
|
3698
|
+
export { OffscreenCanvas_2 as OffscreenCanvas }
|
|
3699
|
+
|
|
3678
3700
|
/** @public */
|
|
3679
3701
|
declare type OnUploadCallback = (file: File, onProgress: (progress: number) => void) => Promise<AssetDefinition>;
|
|
3680
3702
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cesdk/cesdk-js",
|
|
3
|
-
"version": "1.13.0
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"main": "./cesdk.umd.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"homepage": "https://www.img.ly",
|
|
7
7
|
"author": "img.ly GmbH <contact@img.ly>",
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
9
|
-
"readme": "README.md"
|
|
10
|
-
"devDependencies": {
|
|
11
|
-
"@types/offscreencanvas": "2019.6.4"
|
|
12
|
-
}
|
|
9
|
+
"readme": "README.md"
|
|
13
10
|
}
|
|
File without changes
|