@shipengine/elements-sdk 2.22.0 → 2.24.1
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 +521 -0
- package/{elements-root.d.ts → dist/elements-root.d.ts} +2 -2
- package/{helper.d.ts → dist/helper.d.ts} +1 -2
- package/{public-sdk.d.ts → dist/public-sdk.d.ts} +15 -14
- package/{shipengine-element.d.ts → dist/shipengine-element.d.ts} +1 -1
- package/dist/shipengine-elements-sdk.mjs +83883 -0
- package/{styles.d.ts → dist/styles.d.ts} +6 -6
- package/{utils.d.ts → dist/utils.d.ts} +3 -2
- package/package.json +26 -9
- package/shipengine-elements-sdk.mjs +0 -71320
- /package/{index.d.ts → dist/index.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const styles: {
|
|
2
|
-
sidepanelHeaderStyles: (theme: import("
|
|
2
|
+
sidepanelHeaderStyles: (theme: import("@emotion/react").Theme) => {
|
|
3
3
|
backgroundColor: string;
|
|
4
|
-
display:
|
|
5
|
-
justifyContent:
|
|
4
|
+
display: string;
|
|
5
|
+
justifyContent: string;
|
|
6
6
|
padding: string;
|
|
7
7
|
"& > *:first-of-type": {
|
|
8
8
|
marginTop: number;
|
|
@@ -16,14 +16,14 @@ export declare const styles: {
|
|
|
16
16
|
backgroundColor: string;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
sidepanelStyles: (theme: import("
|
|
19
|
+
sidepanelStyles: (theme: import("@emotion/react").Theme) => {
|
|
20
20
|
backgroundColor: string;
|
|
21
21
|
"&[role=dialog]": {
|
|
22
22
|
backgroundColor: string;
|
|
23
|
-
display:
|
|
23
|
+
display: string;
|
|
24
24
|
height: string;
|
|
25
25
|
marginLeft: number;
|
|
26
|
-
position:
|
|
26
|
+
position: string;
|
|
27
27
|
right: number;
|
|
28
28
|
zIndex: number;
|
|
29
29
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ShipEngineAPIConfig
|
|
1
|
+
import type { ShipEngineAPIConfig } from "@shipengine/js-api";
|
|
2
|
+
import { ShipEngineAPI } from "@shipengine/js-api";
|
|
2
3
|
export type CleanShipengineAPI = {
|
|
3
|
-
readonly [Property in keyof typeof ShipEngineAPI.prototype]: Property extends "client" | "token" ? never : Omit<typeof ShipEngineAPI.prototype[Property], "client">;
|
|
4
|
+
readonly [Property in keyof typeof ShipEngineAPI.prototype]: Property extends "client" | "token" ? never : Omit<(typeof ShipEngineAPI.prototype)[Property], "client">;
|
|
4
5
|
};
|
|
5
6
|
export declare const getDomNode: (node: HTMLElement | string) => HTMLElement;
|
|
6
7
|
export declare const initClient: (token: string, config: ShipEngineAPIConfig) => CleanShipengineAPI;
|
package/package.json
CHANGED
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipengine/elements-sdk",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"types": "./public-sdk.d.ts",
|
|
3
|
+
"version": "2.24.1",
|
|
4
|
+
"types": "./dist/public-sdk.d.ts",
|
|
5
|
+
"main": "./dist/shipengine-elements-sdk.mjs",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "vite build",
|
|
8
|
+
"tsc": "tsc --noEmit --project tsconfig.json"
|
|
9
|
+
},
|
|
5
10
|
"module": "shipengine-elements-sdk.mjs",
|
|
6
|
-
"
|
|
7
|
-
"@emotion/react": "11.
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"react
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@emotion/react": "^11.13.5",
|
|
13
|
+
"@shipengine/giger": "^1.20.18",
|
|
14
|
+
"axios": "^1.8.4",
|
|
15
|
+
"i18next": "22.5.1",
|
|
16
|
+
"react": "^18.2.0",
|
|
17
|
+
"react-dom": "^18.2.0",
|
|
18
|
+
"react-i18next": "11.18.6",
|
|
19
|
+
"uuid": "^11.1.0"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"import": "./dist/shipengine-elements-sdk.mjs",
|
|
27
|
+
"types": "./dist/public-sdk.d.ts"
|
|
28
|
+
}
|
|
12
29
|
}
|
|
13
|
-
}
|
|
30
|
+
}
|