apirocket 0.0.5 → 0.0.9

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/package.json CHANGED
@@ -1,39 +1,43 @@
1
1
  {
2
2
  "name": "apirocket",
3
- "version": "0.0.5",
3
+ "version": "0.0.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
+ "prepublish": "rollup -c",
8
9
  "build": "rollup -c",
9
10
  "dev": "rollup -c -w",
10
- "start": "sirv dist --no-clear",
11
- "check": "svelte-check --tsconfig ./tsconfig.json"
11
+ "start": "sirv dev --host --no-clear",
12
+ "check": "svelte-check --tsconfig ./tsconfig.json",
13
+ "sync": "fswatch -o ./dev | while read f; do rsync -rtzuv dev/ s11:/home/web/payments.apirocket.io; done"
12
14
  },
13
15
  "keywords": [],
14
16
  "author": "",
15
17
  "license": "ISC",
16
18
  "devDependencies": {
17
- "@rollup/plugin-commonjs": "^19.0.0",
18
- "@rollup/plugin-node-resolve": "^13.0.0",
19
- "@rollup/plugin-typescript": "^8.2.1",
19
+ "@rollup/plugin-commonjs": "^20.0.0",
20
+ "@rollup/plugin-node-resolve": "^13.0.4",
21
+ "@rollup/plugin-typescript": "^8.2.5",
20
22
  "@tsconfig/svelte": "^2.0.1",
21
- "@types/node": "^15.12.4",
22
- "@types/uuid": "^8.3.0",
23
- "rollup": "^2.52.2",
23
+ "@types/node": "^16.7.13",
24
+ "@types/uuid": "^8.3.1",
25
+ "rollup": "^2.56.3",
26
+ "rollup-plugin-copy": "^3.4.0",
24
27
  "rollup-plugin-css-only": "^3.1.0",
25
28
  "rollup-plugin-livereload": "^2.0.0",
26
29
  "rollup-plugin-svelte": "^7.1.0",
27
30
  "rollup-plugin-terser": "^7.0.2",
28
- "sirv-cli": "^1.0.12",
29
- "svelte": "^3.38.3",
30
- "svelte-check": "^2.2.0",
31
- "svelte-preprocess": "^4.7.3",
32
- "tslib": "^2.3.0",
33
- "typescript": "^4.3.4"
31
+ "sirv-cli": "^1.0.14",
32
+ "svelte": "^3.42.4",
33
+ "svelte-check": "2.2.5",
34
+ "svelte-preprocess": "4.7.3",
35
+ "tslib": "^2.3.1",
36
+ "typescript": "4.3.4"
34
37
  },
35
38
  "dependencies": {
36
- "rxjs": "^7.1.0",
39
+ "@e-xisto/form-control": "^0.0.4",
40
+ "rxjs": "^7.4.0",
37
41
  "uuid": "^8.3.2"
38
42
  }
39
43
  }
package/dist/index.html DELETED
@@ -1,86 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <head>
4
- <link rel="stylesheet" href="/ecommerce.css">
5
- </head>
6
-
7
- <body>
8
- <div class="product">
9
- <div class="product__content">
10
- <h2 class="product__title">Starry Night xxx</h2>
11
- <p class="product__description">High-quality replica of The Starry Night by the Dutch post-impressionist
12
- painter Vincent van Gogh.</p>
13
- <div class="product__summary">
14
- <div>
15
- <label for="quantity">QUANTITY</label>
16
- <input type="number" name="quantity" id="quantity" value="1" min="1">
17
- </div>
18
- <div>
19
- <label for="format">FORMAT</label>
20
- <select name="format" id="format">
21
- <option value="physical">Physical copy</option>
22
- <option value="digital">Digital copy (.jpg)</option>
23
- </select>
24
- </div>
25
- <div class="product__price">$79.95</div>
26
- <button data-item-id="demo-starry-night"
27
- data-item-price="79.95"
28
- data-item-url="https://demo.snipcart.com/"
29
- data-item-description="High-quality replica of The Starry Night by the Dutch post-impressionist painter Vincent van Gogh."
30
- data-item-image="https://demo.snipcart.com/images/starry-night.jpg"
31
- data-item-name="Starry Night"
32
- data-item-quantity="1"
33
- data-hola-item-caracola="33"
34
- class="product__button apirocket-cart-add-item">Add to cart</button>
35
- <button
36
- data-item-id="demo-starry-night-digital" data-item-price="29.75"
37
- data-item-url="https://demo.snipcart.com/"
38
- data-item-description="High-quality replica of The Starry Night by the Dutch post-impressionist painter Vincent van Gogh."
39
- data-item-image="https://demo.snipcart.com/images/starry-night.jpg"
40
- data-item-name="Starry Night (.jpg)"
41
- data-item-quantity="a"
42
- data-item-file-guid="09e589c7-3d18-4c2e-9cee-4f447e9f054a"
43
- data-item-1caracola="34"
44
- data-item-hola-caracola="34"
45
- data-item-Caracola="34"
46
- class="product__button apirocket-cart-add-item product__button">Add to cart digital
47
- </button>
48
- </div>
49
- </div>
50
- </div>
51
- <div>
52
- <button onclick="remove ()">remove</button>
53
- </div>
54
- <div>
55
- <button onclick="items ()">Ver items</button>
56
- </div>
57
- <div>
58
- <button onclick="svelte ()">Svelte</button>
59
- </div>
60
-
61
-
62
- <p>Hola caracolas</p>
63
- <div hidden id="apirocket-ecommerce" data-config-cart-summary="left">ddddd</div>
64
- <script src="./ecommerce.js" defer></script>
65
- <script>
66
- // let cart;
67
- let cart;
68
-
69
-
70
- document.addEventListener('apirocket.ecommerce.ready', (e) => {
71
- console.log('APIROCKET ECOMMERCE READY', e.type);
72
- cart = e.detail.cart;
73
- unsubscribe = cart.subscribe (cart => {
74
- console.log ('total', cart.total, 'count', cart.count);
75
- });
76
- });
77
-
78
-
79
- function svelte () {
80
- cart.open ();
81
- }
82
-
83
- </script>
84
- </body>
85
-
86
- </html>