@fluid-app/fluid-cli-theme-dev 0.1.29 → 0.1.31
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.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/dist/skills/themes-cart-feedback/SKILL.md +452 -0
- package/dist/skills/themes-cart-feedback/references/cart-operation-events.md +209 -0
- package/dist/skills/themes-review/references/fairshare-attributes.md +2 -0
- package/package.json +3 -3
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
These are the **runtime behavioral attributes** consumed by the FairShare web-widget SDK (loaded from `https://assets.fluid.app/scripts/fluid-sdk/latest/web-widgets/index.js`). Theme authors hand-write them on buttons, links, and elements to wire up commerce behavior — add to cart, open cart drawer, add enrollment packs, etc.
|
|
17
17
|
|
|
18
|
+
> These attributes **trigger** cart mutations. The **result** — confirming the change with a toast, spinning the button, or reacting in custom UI via the `CART_OPERATION_SUCCESS` / `CART_OPERATION_ERROR` events — is the `themes-cart-feedback` skill (installed as a sibling: [`../../themes-cart-feedback/SKILL.md`](../../themes-cart-feedback/SKILL.md), when present). Reach for it when reviewing product cards, shop grids, cart sections, or enrollment flows that add to cart.
|
|
19
|
+
|
|
18
20
|
**This is different from `section.fluid_attributes` above.** The editor attributes are emitted by Liquid drops in editor mode. These are static HTML attributes you write into the template that the runtime SDK scans for on `DOMContentLoaded`.
|
|
19
21
|
|
|
20
22
|
### Naming convention
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-app/fluid-cli-theme-dev",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"description": "Fluid CLI plugin for theme developer workflows — dev server, push, pull, init",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"jest": "^29.7.0",
|
|
39
39
|
"tsdown": "^0.21.0",
|
|
40
40
|
"typescript": "^5",
|
|
41
|
-
"@fluid-app/
|
|
41
|
+
"@fluid-app/typescript-config": "0.0.0",
|
|
42
42
|
"@fluid-app/themes-api-client": "0.1.0",
|
|
43
43
|
"@fluid-app/theme-schema": "0.1.0",
|
|
44
|
-
"@fluid-app/
|
|
44
|
+
"@fluid-app/api-client-core": "0.1.0"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=18.0.0"
|