@fayz-ai/plugin-shop 0.19.1 → 0.20.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/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +137 -5
- package/dist/index.js.map +1 -1
- package/dist/views/ProductListingTab.d.ts +20 -0
- package/dist/views/ProductListingTab.d.ts.map +1 -0
- package/package.json +7 -7
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ShopProvider } from '@fayz-ai/shop';
|
|
3
|
+
/**
|
|
4
|
+
* Loja — whether a CATALOGUE product is sold in the store, and the one thing
|
|
5
|
+
* the listing owns that the record does not: its category in the store menu.
|
|
6
|
+
*
|
|
7
|
+
* Mounted on the product record of whichever plugin owns the catalogue (stock,
|
|
8
|
+
* in the Control app), where the shop's own Produtos screen is off. Without it
|
|
9
|
+
* a product created in the stock had no way into the store: the listing row
|
|
10
|
+
* (`plg_shop_products`) was only ever born from the shop's screen.
|
|
11
|
+
*
|
|
12
|
+
* Name, price, SKU and description are NOT edited here: the database mirrors
|
|
13
|
+
* them from the record both ways, and so does the status — the record's Ativo
|
|
14
|
+
* switch is what takes a product out of the store and puts it back.
|
|
15
|
+
*/
|
|
16
|
+
export declare function ProductListingTab({ item, getProvider }: {
|
|
17
|
+
item: unknown;
|
|
18
|
+
getProvider: () => ShopProvider;
|
|
19
|
+
}): React.JSX.Element;
|
|
20
|
+
//# sourceMappingURL=ProductListingTab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductListingTab.d.ts","sourceRoot":"","sources":["../../src/views/ProductListingTab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAqB,YAAY,EAAE,MAAM,eAAe,CAAA;AAsBpE;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE;IACvD,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,MAAM,YAAY,CAAA;CAChC,qBA6HA"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"status": "preview",
|
|
5
5
|
"dependencies": []
|
|
6
6
|
},
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.20.0",
|
|
8
8
|
"description": "[experimental] Fayz SDK — plugin-shop plugin",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"sideEffects": false,
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@tanstack/react-table": "^8.20.0",
|
|
31
|
-
"@fayz-ai/admin": "^0.
|
|
32
|
-
"@fayz-ai/core": "^0.
|
|
33
|
-
"@fayz-ai/financial": "^0.1.
|
|
34
|
-
"@fayz-ai/inventory": "^0.1.
|
|
35
|
-
"@fayz-ai/shop": "^0.
|
|
36
|
-
"@fayz-ai/ui": "^0.
|
|
31
|
+
"@fayz-ai/admin": "^0.49.0",
|
|
32
|
+
"@fayz-ai/core": "^0.49.0",
|
|
33
|
+
"@fayz-ai/financial": "^0.1.1",
|
|
34
|
+
"@fayz-ai/inventory": "^0.1.1",
|
|
35
|
+
"@fayz-ai/shop": "^0.49.0",
|
|
36
|
+
"@fayz-ai/ui": "^0.49.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^20.0.0",
|