@staging-apiplus/ecommerce 0.0.1 → 0.0.2
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/README.md +2 -2
- package/dist/app-package.json +48 -45
- package/dist/npm-package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,9 +7,9 @@ A first-party QuickPage **app** (`app.kind: "app"`). It supports the **site** su
|
|
|
7
7
|
## What it adds
|
|
8
8
|
|
|
9
9
|
- **Connection:** `commerce-store`. Platform-only; the host runs connect, create and unlink.
|
|
10
|
-
- **UI:** the
|
|
10
|
+
- **UI:** the E-commerce card in the app detail: the connected store with its avatar, Go to store and Unlink store, or an Add store popover that lists the stores to connect (click one to connect it) and creates a new store. The create-store dialog collects the business name, country, currency and, optionally, the address, invoice details (company name, tax ID) and phone, with `phone` and `province` fields the host renders with its country-aware pickers.
|
|
11
11
|
- **Setup guide:** connect the store, enable sign-in, then create the product and cart pages.
|
|
12
|
-
- **Requires:** `@staging-apiplus/platform-login` (
|
|
12
|
+
- **Requires:** `@staging-apiplus/platform-login` (`>=0.0.1`), installed together with the app.
|
|
13
13
|
|
|
14
14
|
## Permissions
|
|
15
15
|
|
package/dist/app-package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"kind": "app",
|
|
3
3
|
"id": "@staging-apiplus/ecommerce",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2",
|
|
5
5
|
"engine": "^1.0.0",
|
|
6
6
|
"modules": {},
|
|
7
7
|
"app": {
|
|
@@ -9,21 +9,22 @@
|
|
|
9
9
|
"description": "Sell online: connect your store and manage products, orders and payments.",
|
|
10
10
|
"messages": {
|
|
11
11
|
"en": {
|
|
12
|
-
"store_title": "
|
|
12
|
+
"store_title": "E-commerce",
|
|
13
|
+
"description_connected": "Create and manage your products and store data in the commerce backend.",
|
|
14
|
+
"description_disconnected": "Connect your commerce data to your website to display your store information.",
|
|
15
|
+
"add_store": "Add store",
|
|
16
|
+
"select_store": "Select Store",
|
|
13
17
|
"connected": "Connected",
|
|
14
|
-
"
|
|
18
|
+
"go_to_store": "Go to store",
|
|
15
19
|
"unlink_store": "Unlink store",
|
|
16
20
|
"unlink_description": "Unlink {store} from this QuickPage? The store and its products will remain unchanged.",
|
|
17
21
|
"unlink_failed": "Could not unlink the store. Please try again.",
|
|
18
|
-
"connect_prompt": "Connect a store to this QuickPage.",
|
|
19
22
|
"create_store": "Create new store",
|
|
20
23
|
"search_store": "Search stores",
|
|
21
24
|
"store_picker": "Available stores",
|
|
22
|
-
"no_stores": "No
|
|
25
|
+
"no_stores": "No store yet",
|
|
23
26
|
"no_matches": "No stores match your search.",
|
|
24
27
|
"load_error": "Could not load stores.",
|
|
25
|
-
"load_more": "Load more stores",
|
|
26
|
-
"connect": "Connect",
|
|
27
28
|
"business_name": "Business name",
|
|
28
29
|
"country": "Country",
|
|
29
30
|
"currency": "Currency",
|
|
@@ -84,21 +85,22 @@
|
|
|
84
85
|
"step_publish_hint": "Publish from the top bar when your pages are ready."
|
|
85
86
|
},
|
|
86
87
|
"th": {
|
|
87
|
-
"store_title": "
|
|
88
|
+
"store_title": "อีคอมเมิร์ซ",
|
|
89
|
+
"description_connected": "สร้างและจัดการสินค้าและข้อมูลร้านค้าในระบบหลังบ้านของร้านค้า",
|
|
90
|
+
"description_disconnected": "เชื่อมต่อข้อมูลการขายกับเว็บไซต์ของคุณเพื่อแสดงข้อมูลร้านค้า",
|
|
91
|
+
"add_store": "เพิ่มร้านค้า",
|
|
92
|
+
"select_store": "เลือกร้านค้า",
|
|
88
93
|
"connected": "เชื่อมต่อแล้ว",
|
|
89
|
-
"
|
|
94
|
+
"go_to_store": "ไปที่ร้านค้า",
|
|
90
95
|
"unlink_store": "ยกเลิกการเชื่อมต่อร้านค้า",
|
|
91
96
|
"unlink_description": "ยกเลิกการเชื่อมต่อ {store} กับ QuickPage นี้หรือไม่ ร้านค้าและสินค้าจะยังคงอยู่",
|
|
92
97
|
"unlink_failed": "ไม่สามารถยกเลิกการเชื่อมต่อร้านค้าได้ โปรดลองอีกครั้ง",
|
|
93
|
-
"connect_prompt": "เชื่อมต่อร้านค้ากับ QuickPage นี้",
|
|
94
98
|
"create_store": "สร้างร้านค้าใหม่",
|
|
95
99
|
"search_store": "ค้นหาร้านค้า",
|
|
96
100
|
"store_picker": "ร้านค้าที่พร้อมใช้งาน",
|
|
97
|
-
"no_stores": "
|
|
101
|
+
"no_stores": "ยังไม่มีร้านค้า",
|
|
98
102
|
"no_matches": "ไม่พบร้านค้าที่ตรงกับการค้นหา",
|
|
99
103
|
"load_error": "ไม่สามารถโหลดร้านค้าได้",
|
|
100
|
-
"load_more": "โหลดร้านค้าเพิ่มเติม",
|
|
101
|
-
"connect": "เชื่อมต่อ",
|
|
102
104
|
"business_name": "ชื่อธุรกิจ",
|
|
103
105
|
"country": "ประเทศ",
|
|
104
106
|
"currency": "สกุลเงิน",
|
|
@@ -173,20 +175,38 @@
|
|
|
173
175
|
"ui": {
|
|
174
176
|
"title": "store_title",
|
|
175
177
|
"body": [
|
|
178
|
+
{
|
|
179
|
+
"type": "text",
|
|
180
|
+
"when": {
|
|
181
|
+
"connection": "connected"
|
|
182
|
+
},
|
|
183
|
+
"text": "description_connected",
|
|
184
|
+
"tone": "muted"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"type": "text",
|
|
188
|
+
"when": {
|
|
189
|
+
"connection": "disconnected"
|
|
190
|
+
},
|
|
191
|
+
"text": "description_disconnected",
|
|
192
|
+
"tone": "muted"
|
|
193
|
+
},
|
|
176
194
|
{
|
|
177
195
|
"type": "card",
|
|
178
196
|
"when": {
|
|
179
197
|
"connection": "connected"
|
|
180
198
|
},
|
|
199
|
+
"layout": "row",
|
|
181
200
|
"children": [
|
|
182
201
|
{
|
|
183
202
|
"type": "value",
|
|
184
203
|
"label": "connected",
|
|
185
|
-
"value": "connection.account.title"
|
|
204
|
+
"value": "connection.account.title",
|
|
205
|
+
"avatar": true
|
|
186
206
|
},
|
|
187
207
|
{
|
|
188
208
|
"type": "button",
|
|
189
|
-
"label": "
|
|
209
|
+
"label": "go_to_store",
|
|
190
210
|
"variant": "secondary",
|
|
191
211
|
"action": {
|
|
192
212
|
"type": "open-connection-admin"
|
|
@@ -214,38 +234,21 @@
|
|
|
214
234
|
]
|
|
215
235
|
},
|
|
216
236
|
{
|
|
217
|
-
"type": "
|
|
237
|
+
"type": "store-picker",
|
|
218
238
|
"when": {
|
|
219
239
|
"connection": "disconnected"
|
|
220
240
|
},
|
|
221
|
-
"
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
"dialog": "create-store"
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"type": "account-picker",
|
|
237
|
-
"when": {
|
|
238
|
-
"connection": "disconnected"
|
|
239
|
-
},
|
|
240
|
-
"searchLabel": "search_store",
|
|
241
|
-
"listLabel": "store_picker",
|
|
242
|
-
"emptyText": "no_stores",
|
|
243
|
-
"noMatchesText": "no_matches",
|
|
244
|
-
"loadErrorText": "load_error",
|
|
245
|
-
"loadMoreLabel": "load_more",
|
|
246
|
-
"connectLabel": "connect"
|
|
247
|
-
}
|
|
248
|
-
]
|
|
241
|
+
"triggerLabel": "add_store",
|
|
242
|
+
"title": "select_store",
|
|
243
|
+
"searchLabel": "search_store",
|
|
244
|
+
"listLabel": "store_picker",
|
|
245
|
+
"emptyText": "no_stores",
|
|
246
|
+
"noMatchesText": "no_matches",
|
|
247
|
+
"loadErrorText": "load_error",
|
|
248
|
+
"create": {
|
|
249
|
+
"label": "create_store",
|
|
250
|
+
"dialog": "create-store"
|
|
251
|
+
}
|
|
249
252
|
}
|
|
250
253
|
],
|
|
251
254
|
"dialogs": {
|
|
@@ -429,7 +432,7 @@
|
|
|
429
432
|
"type": "add-library",
|
|
430
433
|
"actionLabel": "step_library_action",
|
|
431
434
|
"packageId": "@staging-apiplus/essentials",
|
|
432
|
-
"version": "^0.0.
|
|
435
|
+
"version": "^0.0.5"
|
|
433
436
|
},
|
|
434
437
|
{
|
|
435
438
|
"id": "payments",
|
package/dist/npm-package.json
CHANGED