@best-bundles/bundle-ui 0.0.4 → 0.0.5
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/adapters/LiquidAdapter.d.ts +3 -0
- package/dist/adapters/LiquidAdapter.d.ts.map +1 -0
- package/dist/components/BundleBuilderDrawer.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +655 -562
- package/dist/index.js.map +1 -1
- package/dist/liquid/bundle-ui.iife.js +67 -0
- package/dist/liquid/bundle-ui.iife.js.map +1 -0
- package/dist/liquid/iife.d.ts +34 -0
- package/dist/liquid/iife.d.ts.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { BundleCartAdapter } from "../types";
|
|
2
|
+
type LiquidMountOptions = {
|
|
3
|
+
container: string | HTMLElement;
|
|
4
|
+
apiBaseUrl: string;
|
|
5
|
+
shop: string;
|
|
6
|
+
configHandle?: string;
|
|
7
|
+
configEndpoint?: string;
|
|
8
|
+
cartAdapter?: BundleCartAdapter;
|
|
9
|
+
openOnMount?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type MountReturn = {
|
|
12
|
+
open: () => void;
|
|
13
|
+
close: () => void;
|
|
14
|
+
toggle: () => void;
|
|
15
|
+
unmount: () => void;
|
|
16
|
+
};
|
|
17
|
+
export declare function mount(options: LiquidMountOptions): MountReturn;
|
|
18
|
+
export declare function open(): void;
|
|
19
|
+
export declare function close(): void;
|
|
20
|
+
export declare function toggle(): void;
|
|
21
|
+
export declare function unmount(): void;
|
|
22
|
+
declare global {
|
|
23
|
+
interface Window {
|
|
24
|
+
BestBundlesUI?: {
|
|
25
|
+
mount: typeof mount;
|
|
26
|
+
open: typeof open;
|
|
27
|
+
close: typeof close;
|
|
28
|
+
toggle: typeof toggle;
|
|
29
|
+
unmount: typeof unmount;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=iife.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iife.d.ts","sourceRoot":"","sources":["../../src/liquid/iife.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGlD,KAAK,kBAAkB,GAAG;IACxB,SAAS,EAAE,MAAM,GAAG,WAAW,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AA8BF,wBAAgB,KAAK,CAAC,OAAO,EAAE,kBAAkB,GAAG,WAAW,CAgD9D;AAED,wBAAgB,IAAI,SAEnB;AAED,wBAAgB,KAAK,SAEpB;AAED,wBAAgB,MAAM,SAErB;AAED,wBAAgB,OAAO,SAItB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,aAAa,CAAC,EAAE;YACd,KAAK,EAAE,OAAO,KAAK,CAAC;YACpB,IAAI,EAAE,OAAO,IAAI,CAAC;YAClB,KAAK,EAAE,OAAO,KAAK,CAAC;YACpB,MAAM,EAAE,OAAO,MAAM,CAAC;YACtB,OAAO,EAAE,OAAO,OAAO,CAAC;SACzB,CAAC;KACH;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@best-bundles/bundle-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
"main": "./dist/index.js",
|
|
19
19
|
"types": "./dist/index.d.ts",
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "npm run build:js && npm run build:types",
|
|
21
|
+
"build": "npm run build:js && npm run build:iife && npm run build:types",
|
|
22
22
|
"build:js": "vite build",
|
|
23
|
+
"build:iife": "vite build --config vite.iife.config.ts",
|
|
23
24
|
"build:types": "tsc -p tsconfig.build.json",
|
|
24
25
|
"prepack": "npm run build",
|
|
25
26
|
"storybook": "STORYBOOK_DISABLE_TELEMETRY=1 CI=1 storybook dev -p 6007",
|