@pactor-app/skills 1.24.0 → 1.25.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pactor-app/skills",
3
- "version": "1.24.0",
3
+ "version": "1.25.0",
4
4
  "description": "Agent skills for rapidly building pactor Server-Driven UI applications",
5
5
  "keywords": [
6
6
  "pactor",
package/pactor/SKILL.md CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pactor
3
3
  description: |
4
4
  Use when working with Pactor — any @pactor-app/* package or the pactor-app meta package. Especially when writing, generating, editing, or debugging Pactor DSL files (*.page.yaml: pages, state, dataSources, components, events, actions, expressions); also when bootstrapping a Pactor app (createPactorApplication, StaticDslLoader), registering custom components/actions/services, building AI chat pages (Chat, ChatShell), configuring themes/layouts/routing/resources/permissions, or using @pactor-app/vite-plugin / @pactor-app/cli (pactor validate).
5
- version: 1.9.0
5
+ version: 1.10.0
6
6
  ---
7
7
 
8
8
  # pactor-app
@@ -125,7 +125,7 @@ For YAML imports add `@pactor-app/vite-plugin` to `vite.config.ts` and declare `
125
125
 
126
126
  The built-in shadcn-style UI (`@pactor-app/ui`) registers these DSL component types — reference them by `type` in pages:
127
127
 
128
- - **Page & layout**: `Page`, `Layout` / `Header` / `Sider` / `Content` / `Footer`, `Grid`, `Flex`, `Card`, `Sidebar`
128
+ - **Page & layout**: `Page`, `Layout` / `Header` / `Sider` / `Content` / `Footer`, `Grid`, `Flex`, `Card`, `Sidebar`, `For`(数据驱动循环渲染,行作用域 `${row}`/`${rowIndex}`)
129
129
  - **Basic**: `Button`, `Alert`, `Statistic`, `Menu`, `Link`, `Text`, `Typography`, `Icon`
130
130
  - **Data**: `Table`, `Tabs`, `DataTable`, `Chart`
131
131
  - **Form**: `Form`, `Input`, `NumberInput`, `Select`, `Textarea`, `Checkbox`, `RadioGroup`, `Switch`, `Slider`, `Label`, `Field`, `ChatInput`, `DatePicker`
@@ -165,7 +165,7 @@ Global scope keys:
165
165
  | `actions` | results of named actions (by `id`) | `${actions.editResult.success}` |
166
166
  | `locale` / `t` | current locale / translate fn | `${t('menu.home')}` |
167
167
 
168
- Local scope keys (only where produced): `event` (event payload), `row` / `rowIndex` (Table `cell` templates), `parent` (parent page snapshot inside overlays).
168
+ Local scope keys (only where produced): `event` (event payload), `row` / `rowIndex` (Table `cell` templates and `For` item templates), `parent` (parent page snapshot inside overlays).
169
169
 
170
170
  ## 6. Events and actions
171
171