@womp/mcp-ui 0.1.3 → 0.1.5
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 +8 -2
- package/dist/cart/index.html +284 -0
- package/dist/image/index.html +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +24 -6
- package/dist/mesh/index.html +1 -1
- package/dist/order/index.html +187 -0
- package/dist/print/index.html +62 -18
- package/package.json +5 -3
- package/src/cart/index.html +210 -0
- package/src/cart/main.ts +157 -0
- package/src/order/index.html +113 -0
- package/src/order/main.ts +110 -0
- package/src/print/index.html +61 -17
- package/src/print/main.ts +210 -55
- package/src/shared/bridge.ts +22 -1
package/README.md
CHANGED
|
@@ -11,8 +11,12 @@ in a sandboxed iframe, pushing tool data in over postMessage.
|
|
|
11
11
|
generate_image ──► ui://womp/image-<version>.html (280 KB) image card
|
|
12
12
|
image_to_mesh ──► ui://womp/mesh-<version>.html (900 KB) 3D GLB viewer
|
|
13
13
|
get_generation ──► ui://womp/mesh-<version>.html (copes with either)
|
|
14
|
-
estimate_print ──► ui://womp/print-<version>.html (260 KB)
|
|
15
|
-
prepare_print ──► ui://womp/print-<version>.html (
|
|
14
|
+
estimate_print ──► ui://womp/print-<version>.html (260 KB) configurator: re-quotes + add to cart
|
|
15
|
+
prepare_print ──► ui://womp/print-<version>.html (static receipt mode)
|
|
16
|
+
add_to_cart ──► ui://womp/cart-<version>.html (260 KB) cart rows + checkout link-out
|
|
17
|
+
view_cart ──► ui://womp/cart-<version>.html (self-fills thumbnails via app-callable view_cart)
|
|
18
|
+
get_print_order ──► ui://womp/order-<version>.html (258 KB) status chips, tracking, diff-charge strip
|
|
19
|
+
list_print_orders ─► ui://womp/order-<version>.html
|
|
16
20
|
```
|
|
17
21
|
|
|
18
22
|
## What it exports
|
|
@@ -24,6 +28,8 @@ const {
|
|
|
24
28
|
IMAGE_APP_URI, IMAGE_APP_CSP, IMAGE_APP_HTML,
|
|
25
29
|
MESH_APP_URI, MESH_APP_CSP, MESH_APP_HTML,
|
|
26
30
|
PRINT_APP_URI, PRINT_APP_CSP, PRINT_APP_HTML,
|
|
31
|
+
CART_APP_URI, CART_APP_CSP, CART_APP_HTML,
|
|
32
|
+
ORDER_APP_URI, ORDER_APP_CSP, ORDER_APP_HTML,
|
|
27
33
|
APP_MIME_TYPE,
|
|
28
34
|
} = require("@womp/mcp-ui");
|
|
29
35
|
```
|