@kachingappz/bundles-js 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/bundles-js.iife.js +203 -0
- package/dist/bundles-js.js +1228 -0
- package/dist/index.d.ts +25 -0
- package/package.json +44 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DealBlock } from '@kachingappz/bundles-storefront-api';
|
|
2
|
+
import { GlobalConfig } from '@kachingappz/bundles-types';
|
|
3
|
+
import { Product } from '@kachingappz/bundles-storefront-api';
|
|
4
|
+
|
|
5
|
+
export declare interface KachingBundlesData {
|
|
6
|
+
config: GlobalConfig;
|
|
7
|
+
dealBlock: DealBlock;
|
|
8
|
+
product: Product;
|
|
9
|
+
otherProducts: Product[];
|
|
10
|
+
mediaImages: {
|
|
11
|
+
gid: string;
|
|
12
|
+
url: string;
|
|
13
|
+
}[];
|
|
14
|
+
collectionBreaksProducts: Product[];
|
|
15
|
+
translations: {
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export declare interface StorefrontCredentials {
|
|
21
|
+
shopifyDomain: string;
|
|
22
|
+
storefrontAccessToken: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { }
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kachingappz/bundles-js",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/bundles-js.js",
|
|
6
|
+
"module": "./dist/bundles-js.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/bundles-js.js",
|
|
12
|
+
"require": "./dist/bundles-js.iife.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"dev": "vite",
|
|
20
|
+
"build": "vite build",
|
|
21
|
+
"watch": "vite build --watch",
|
|
22
|
+
"lint": "eslint .",
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
24
|
+
"prettier:check": "prettier --check . --ignore-path ../.prettierignore",
|
|
25
|
+
"prettier:fix": "prettier --write . --ignore-path ../.prettierignore"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@eslint/js": "^9.21.0",
|
|
29
|
+
"@kachingappz/bundles-storefront-api": "workspace:^",
|
|
30
|
+
"@kachingappz/bundles-types": "workspace:^",
|
|
31
|
+
"@kachingappz/kaching-bundles-block": "workspace:^",
|
|
32
|
+
"@types/node": "^20.11.24",
|
|
33
|
+
"eslint": "^9.21.0",
|
|
34
|
+
"globals": "^15.15.0",
|
|
35
|
+
"typescript": "~5.7.2",
|
|
36
|
+
"typescript-eslint": "^8.24.1",
|
|
37
|
+
"vite": "^6.2.0",
|
|
38
|
+
"vite-plugin-dts": "^4.5.3"
|
|
39
|
+
},
|
|
40
|
+
"description": "A vanilla JavaScript web component for integrating Kaching Bundles into any Shopify storefront.",
|
|
41
|
+
"author": "Donatas Stundys",
|
|
42
|
+
"license": "ISC",
|
|
43
|
+
"homepage": "https://apps.shopify.com/bundle-deals?utm_source=npm&utm_medium=bundles-js"
|
|
44
|
+
}
|