@wix/agent-skills 1.35.0 → 1.35.1

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": "@wix/agent-skills",
3
- "version": "1.35.0",
3
+ "version": "1.35.1",
4
4
  "description": "Wix Skills for AI coding agents — versioned npm distribution of the wix/skills content.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,6 +1,6 @@
1
1
  # Draft Template — the starting point for every dashboard page
2
2
 
3
- **Start here for any Dashboard Page request, before writing a shell, provider, or router from scratch.** The templates themselves ship inside the installed `@wix/patterns`: whole, working pages that the package type-checks against its own release, so they never drift from the version your code compiles against. This file says how to find one, where its files go in a Wix CLI app, and what this skill adds on top. Which template fits, and the wiring each one must keep, is the package's answer — read it there.
3
+ **Start here for any Dashboard Page request, before writing a shell, provider, or router.** Page templates ship inside the installed `@wix/patterns`. This file covers finding and placing their files in a Wix CLI app; the package's `Page Templates.md` chooses the template and explains its wiring.
4
4
 
5
5
  Go through [WIX_PATTERNS_DOCS.md § Prerequisites](../WIX_PATTERNS_DOCS.md#prerequisites) first for `<pkgRoot>`; every path below is relative to it.
6
6
 
@@ -12,7 +12,7 @@ One call lists every page template with its files, plus the guide that chooses b
12
12
  node <pkgRoot>/bin/patterns-lookup.cjs --templates
13
13
  ```
14
14
 
15
- It also takes names (`--templates Table useTableCollection …`), so the patterns names you already know you'll need can go in the same call ([WIX_PATTERNS_DOCS.md § 1](../WIX_PATTERNS_DOCS.md#1--the-index)). If the script is missing (an older `@wix/patterns`), list those entries from `<pkgRoot>/dist/docs/index.json` in one probe.
15
+ Add known symbols to the same call (`--templates Table useTableCollection`). Without the script, probe the Templates entries in `<pkgRoot>/dist/docs/index.json` once.
16
16
 
17
17
  **No `Templates` entries means the install predates them — upgrade `@wix/patterns`.** Do not rebuild a page from memory or from an older copy of this skill instead: the templates exist so the shell, provider nesting and router wiring come from the package.
18
18
 
@@ -53,6 +53,8 @@ Then copy **every** file `--templates` lists for it into the generated folder (`
53
53
 
54
54
  - **Theme the entry file.** In it, replace the template's `WixDesignSystemProvider` and its `@wix/design-system/styles.global.css` import with the app's `BusinessManagerTheme` — written once per app ([BUSINESS_MANAGER_THEME.md § 2](../BUSINESS_MANAGER_THEME.md#2-the-wrapper--write-this-file-once-per-app)), kept in the entry file so it sits above `WixPatternsProvider`. **Business Manager passes none of the redesign through the extension's iframe**, so the bare provider renders the pre-redesign look while `tsc`, `wix build` and `wix preview` all pass.
55
55
 
56
+ **If the page needs tabs:** Start from a Patterns template. When tabs navigate between different sections, use WDS `Tabs`, reuse the template’s provider and router, and keep Patterns components for managing each section’s entities. Adapt the routes and navigation together so opening an entity and returning selects the correct section. When tabs only filter the same entity list, pass Patterns `TabsFilter` to the Table’s `tabs` prop.
57
+
56
58
  ## 4. Replace the data file
57
59
 
58
60
  Each template's data file (`items-api.ts`, `settings-api.ts`) is an in-memory stand-in with the signatures the pages call. Replace the bodies, keep the signatures:
@@ -79,7 +81,7 @@ npm dedupe
79
81
  find node_modules -path '*@wix/patterns/package.json' -not -path '*/dist/*'
80
82
  ```
81
83
 
82
- More than one line is a bug that `tsc` and `wix build` both pass. Declared ranges produce it when `@wix/patterns` ships ahead of `@wix/patterns-cms`, or a lockfile holds an older one. Run the second `npm install` line above, then the check again.
84
+ More than one copy breaks shared context despite passing `tsc` and build. Align the versions with the second install command above, then check again.
83
85
 
84
86
  ### Turning `query.search` into a query
85
87
 
@@ -3,6 +3,6 @@
3
3
  "@wix/create-new": "0.0.124",
4
4
  "typescript": "5.8.3",
5
5
  "templates": {
6
- "ref": "v1.35.0"
6
+ "ref": "v1.35.1"
7
7
  }
8
8
  }
@@ -476,12 +476,14 @@ If a call fails after publishing, inspect the current snapshot before retrying:
476
476
  the write may have succeeded and only its subsequent verification failed.
477
477
  Avoid repeating a mutation merely because the last call returned an error.
478
478
 
479
- Give the live URL, what changed, what was verified, and any missing assets.
480
- On first authenticated publish (or after claim), also give
481
- `https://manage.wix.com/dashboard/{metaSiteId}` and
482
- [domain connection](../domains/domain-search-purchase-and-connect.md) options
483
- for a Wix-purchased or existing domain. For an unclaimed anonymous site, give
484
- the live URL and private save link instead, not a dashboard link.
479
+ Give the user two links, each on its own line and named for what it is: the
480
+ live site, `{siteUrl}`, and the site's dashboard,
481
+ `https://manage.wix.com/dashboard/{metaSiteId}`. Every publish and every edit
482
+ closes with both. Then what changed, what was verified, any missing assets, and
483
+ [domain connection](../domains/domain-search-purchase-and-connect.md) options:
484
+ a domain bought through Wix, or one the user already owns. For an unclaimed
485
+ anonymous site, give the live URL and private save link instead, not a
486
+ dashboard link.
485
487
 
486
488
  ## Connect a backend
487
489