@open-mercato/content 0.6.3-develop.3810.1.ad92c339f5 → 0.6.3-develop.3811.1.be22750402
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/AGENTS.md +18 -1
- package/package.json +3 -3
package/AGENTS.md
CHANGED
|
@@ -2,12 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
Use `@open-mercato/content` for static content pages (privacy policies, terms, legal pages).
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Always
|
|
6
6
|
|
|
7
7
|
1. **MUST keep content components stateless** — no business logic, no API calls from content pages
|
|
8
8
|
2. **MUST use `useT()` for all user-facing text** — never hard-code strings in content components
|
|
9
9
|
3. **MUST follow the module extensibility contract** from `packages/core/AGENTS.md`
|
|
10
10
|
|
|
11
|
+
## Ask First
|
|
12
|
+
|
|
13
|
+
- Ask before adding behavior that turns a static content page into a dynamic workflow.
|
|
14
|
+
- Ask before changing public legal, privacy, or terms copy unless the task explicitly includes that text.
|
|
15
|
+
|
|
16
|
+
## Never
|
|
17
|
+
|
|
18
|
+
- Never hard-code user-facing strings in content components.
|
|
19
|
+
- Never create custom layout primitives when existing `@open-mercato/ui` components fit.
|
|
20
|
+
|
|
21
|
+
## Validation Commands
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
yarn generate
|
|
25
|
+
yarn workspace @open-mercato/content build
|
|
26
|
+
```
|
|
27
|
+
|
|
11
28
|
## Adding a New Content Page
|
|
12
29
|
|
|
13
30
|
1. Create a new page file in `packages/content/src/modules/content/frontend/<page-name>/page.tsx`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-mercato/content",
|
|
3
|
-
"version": "0.6.3-develop.
|
|
3
|
+
"version": "0.6.3-develop.3811.1.be22750402",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@open-mercato/shared": "0.6.3-develop.
|
|
64
|
+
"@open-mercato/shared": "0.6.3-develop.3811.1.be22750402"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@open-mercato/shared": "0.6.3-develop.
|
|
67
|
+
"@open-mercato/shared": "0.6.3-develop.3811.1.be22750402",
|
|
68
68
|
"@types/jest": "^30.0.0",
|
|
69
69
|
"jest": "^30.4.2",
|
|
70
70
|
"ts-jest": "^29.4.11"
|