@gem-sdk/plugin-sticky-add-to-cart 1.11.1-experimental-8f483e48 → 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.
@@ -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;
@@ -0,0 +1,4 @@
1
+ import StickyAddToCart from './components/StickyAddToCart';
2
+ export { default as builderSetting } from './setting';
3
+ export default StickyAddToCart;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ import StickyAddToCart from './components/StickyAddToCart';
2
+ export { default as builderSetting } from './setting';
3
+ export default StickyAddToCart;
@@ -0,0 +1,5 @@
1
+ import type { StickyAddToCartProps } from '../components/StickyAddToCart';
2
+ import type { ComponentSetting } from '@gem-sdk/core';
3
+ declare const config: ComponentSetting<StickyAddToCartProps>;
4
+ export default config;
5
+ //# sourceMappingURL=StickyAddToCart.d.ts.map
@@ -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"}
@@ -2,5 +2,4 @@ const config = {
2
2
  tag: 'StickyAddToCart',
3
3
  label: 'Sticky Add To Cart',
4
4
  };
5
-
6
- export { config as default };
5
+ export default config;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ StickyAddToCart: import("@gem-sdk/core").ComponentSetting<import("../components/StickyAddToCart").StickyAddToCartProps>;
3
+ };
4
+ export default _default;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/setting/index.ts"],"names":[],"mappings":";;;AAEA,wBAAmC"}
@@ -0,0 +1,2 @@
1
+ import StickyAddToCart from './StickyAddToCart';
2
+ export default { StickyAddToCart };
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-8f483e48",
3
+ "version": "1.11.1-experimental-d7cbfa75",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
- "main": "dist/cjs/index.js",
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-8f483e48",
23
- "@gem-sdk/core": "1.12.0-experimental-8f483e48",
24
- "@gem-sdk/styles": "1.12.0-experimental-8f483e48"
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,10 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const config = {
6
- tag: 'StickyAddToCart',
7
- label: 'Sticky Add To Cart',
8
- };
9
-
10
- exports.default = config;
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var StickyAddToCart = require('./StickyAddToCart.js');
6
-
7
- var index = { StickyAddToCart: StickyAddToCart.default };
8
-
9
- exports.default = index;
@@ -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
@@ -1,6 +0,0 @@
1
- import StickyAddToCart from './components/StickyAddToCart.js';
2
- export { default as builderSetting } from './setting/index.js';
3
-
4
-
5
-
6
- export { StickyAddToCart as default };
@@ -1,5 +0,0 @@
1
- import config from './StickyAddToCart.js';
2
-
3
- var index = { StickyAddToCart: config };
4
-
5
- export { index as default };
@@ -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 };