@gem-sdk/plugin-sticky-add-to-cart 1.11.1-experimental-f662f2d9 → 1.11.1-experimental-d7cbfa75
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/components/StickyAddToCart.d.ts +7 -0
- package/dist/components/StickyAddToCart.d.ts.map +1 -0
- package/dist/components/StickyAddToCart.js +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/setting/StickyAddToCart.d.ts +5 -0
- package/dist/setting/StickyAddToCart.d.ts.map +1 -0
- package/dist/{esm/setting → setting}/StickyAddToCart.js +1 -2
- package/dist/setting/index.d.ts +5 -0
- package/dist/setting/index.d.ts.map +1 -0
- package/dist/setting/index.js +2 -0
- package/package.json +8 -16
- package/dist/cjs/components/StickyAddToCart.js +0 -13
- package/dist/cjs/index.js +0 -11
- package/dist/cjs/setting/StickyAddToCart.js +0 -10
- package/dist/cjs/setting/index.js +0 -9
- package/dist/esm/components/StickyAddToCart.js +0 -9
- package/dist/esm/index.js +0 -6
- package/dist/esm/setting/index.js +0 -5
- package/dist/types/index.d.ts +0 -11
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import type { BaseProps } from '@gem-sdk/core';
|
|
4
|
+
export type StickyAddToCartProps = BaseProps;
|
|
5
|
+
declare const StickyAddToCart: React.FC<StickyAddToCartProps>;
|
|
6
|
+
export default StickyAddToCart;
|
|
7
|
+
//# sourceMappingURL=StickyAddToCart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StickyAddToCart.d.ts","sourceRoot":"","sources":["../../src/components/StickyAddToCart.tsx"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAS/C,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC;AAE7C,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgBnD,CAAC;AAIF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ProductButton, ProductImages, ProductPrice, ProductQuantity, ProductTitle, } from '@gem-sdk/components';
|
|
3
|
+
const StickyAddToCart = () => {
|
|
4
|
+
return (_jsxs("div", Object.assign({ className: "fixed inset-x-0 bottom-0 z-90 flex items-center gap-4 bg-white p-4" }, { children: [_jsx("div", Object.assign({ className: "w-20" }, { children: _jsx(ProductImages, {}) })), _jsxs("div", Object.assign({ className: "flex flex-col gap-2" }, { children: [_jsx(ProductTitle, {}), _jsx(ProductPrice, {})] })), _jsxs("div", Object.assign({ className: "ml-auto flex gap-4" }, { children: [_jsx(ProductQuantity, {}), _jsx(ProductButton, { setting: { actionEffect: 'open-cart-drawer' } })] }))] })));
|
|
5
|
+
};
|
|
6
|
+
StickyAddToCart.defaultProps = {};
|
|
7
|
+
export default StickyAddToCart;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC;AAEtD,eAAe,eAAe,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StickyAddToCart.d.ts","sourceRoot":"","sources":["../../src/setting/StickyAddToCart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,QAAA,MAAM,MAAM,EAAE,gBAAgB,CAAC,oBAAoB,CAGlD,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/setting/index.ts"],"names":[],"mappings":";;;AAEA,wBAAmC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/plugin-sticky-add-to-cart",
|
|
3
|
-
"version": "1.11.1-experimental-
|
|
3
|
+
"version": "1.11.1-experimental-d7cbfa75",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
|
-
"main": "dist/
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
7
8
|
"files": [
|
|
8
9
|
"dist"
|
|
9
10
|
],
|
|
@@ -13,28 +14,19 @@
|
|
|
13
14
|
"pre:publish": "node ./../../helpers/convert-publish.js -p",
|
|
14
15
|
"post:publish": "node ./../../helpers/convert-publish.js",
|
|
15
16
|
"watch": "rollup -c ./../../helpers/rollup.config.mjs -w",
|
|
16
|
-
"build": "rollup -c ./../../helpers/rollup.config.mjs --environment NODE_ENV:production",
|
|
17
|
+
"build:rollup": "rollup -c ./../../helpers/rollup.config.mjs --environment NODE_ENV:production",
|
|
18
|
+
"build": "tsc -p tsconfig.build.json",
|
|
17
19
|
"lint": "eslint ./src --ext .tsx,.ts",
|
|
18
20
|
"type-check": "yarn tsc --noEmit",
|
|
19
21
|
"test": "jest -c ./../../helpers/jest.config.ts"
|
|
20
22
|
},
|
|
21
23
|
"devDependencies": {
|
|
22
|
-
"@gem-sdk/components": "1.12.0-experimental-
|
|
23
|
-
"@gem-sdk/core": "1.12.0-experimental-
|
|
24
|
-
"@gem-sdk/styles": "1.12.0-experimental-
|
|
24
|
+
"@gem-sdk/components": "1.12.0-experimental-d7cbfa75",
|
|
25
|
+
"@gem-sdk/core": "1.12.0-experimental-d7cbfa75",
|
|
26
|
+
"@gem-sdk/styles": "1.12.0-experimental-d7cbfa75"
|
|
25
27
|
},
|
|
26
28
|
"peerDependencies": {
|
|
27
29
|
"react": "^17 || ^18",
|
|
28
30
|
"react-dom": "^17 || ^18"
|
|
29
|
-
},
|
|
30
|
-
"module": "dist/esm/index.js",
|
|
31
|
-
"types": "dist/types/index.d.ts",
|
|
32
|
-
"exports": {
|
|
33
|
-
"./package.json": "./package.json",
|
|
34
|
-
".": {
|
|
35
|
-
"import": "./dist/esm/index.js",
|
|
36
|
-
"require": "./dist/cjs/index.js",
|
|
37
|
-
"types": "./dist/types/index.d.ts"
|
|
38
|
-
}
|
|
39
31
|
}
|
|
40
32
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var components = require('@gem-sdk/components');
|
|
7
|
-
|
|
8
|
-
const StickyAddToCart = () => {
|
|
9
|
-
return (jsxRuntime.jsxs("div", { className: "fixed inset-x-0 bottom-0 z-90 flex items-center gap-4 bg-white p-4", children: [jsxRuntime.jsx("div", { className: "w-20", children: jsxRuntime.jsx(components.ProductImages, {}) }), jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [jsxRuntime.jsx(components.ProductTitle, {}), jsxRuntime.jsx(components.ProductPrice, {})] }), jsxRuntime.jsxs("div", { className: "ml-auto flex gap-4", children: [jsxRuntime.jsx(components.ProductQuantity, {}), jsxRuntime.jsx(components.ProductButton, { setting: { actionEffect: 'open-cart-drawer' } })] })] }));
|
|
10
|
-
};
|
|
11
|
-
StickyAddToCart.defaultProps = {};
|
|
12
|
-
|
|
13
|
-
exports.default = StickyAddToCart;
|
package/dist/cjs/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var StickyAddToCart = require('./components/StickyAddToCart.js');
|
|
6
|
-
var index = require('./setting/index.js');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.default = StickyAddToCart.default;
|
|
11
|
-
exports.builderSetting = index.default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { ProductImages, ProductTitle, ProductPrice, ProductQuantity, ProductButton } from '@gem-sdk/components';
|
|
3
|
-
|
|
4
|
-
const StickyAddToCart = () => {
|
|
5
|
-
return (jsxs("div", { className: "fixed inset-x-0 bottom-0 z-90 flex items-center gap-4 bg-white p-4", children: [jsx("div", { className: "w-20", children: jsx(ProductImages, {}) }), jsxs("div", { className: "flex flex-col gap-2", children: [jsx(ProductTitle, {}), jsx(ProductPrice, {})] }), jsxs("div", { className: "ml-auto flex gap-4", children: [jsx(ProductQuantity, {}), jsx(ProductButton, { setting: { actionEffect: 'open-cart-drawer' } })] })] }));
|
|
6
|
-
};
|
|
7
|
-
StickyAddToCart.defaultProps = {};
|
|
8
|
-
|
|
9
|
-
export { StickyAddToCart as default };
|
package/dist/esm/index.js
DELETED
package/dist/types/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as _gem_sdk_core from '@gem-sdk/core';
|
|
2
|
-
import { BaseProps } from '@gem-sdk/core';
|
|
3
|
-
|
|
4
|
-
type StickyAddToCartProps = BaseProps;
|
|
5
|
-
declare const StickyAddToCart: React.FC<StickyAddToCartProps>;
|
|
6
|
-
|
|
7
|
-
declare const _default: {
|
|
8
|
-
StickyAddToCart: _gem_sdk_core.ComponentSetting<StickyAddToCartProps>;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export { _default as builderSetting, StickyAddToCart as default };
|