@snaptrude/plugin-core 1.1.0-pbr-20261026.1 → 1.1.0-pbr-20261102.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/AGENTS.md +18 -0
- package/CHANGELOG.md +12 -0
- package/api-manifest.json +10794 -0
- package/dist/api/design/create/bulk-items.d.ts +4 -1
- package/dist/api/design/create/bulk-items.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +12 -0
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/dimensions.d.ts +2 -2
- package/dist/api/design/doors/index.d.ts +37 -0
- package/dist/api/design/doors/index.d.ts.map +1 -1
- package/dist/api/design/family.d.ts +0 -11
- package/dist/api/design/family.d.ts.map +1 -1
- package/dist/api/design/index.d.ts +6 -5
- package/dist/api/design/index.d.ts.map +1 -1
- package/dist/api/design/materials/index.d.ts +1 -15
- package/dist/api/design/materials/index.d.ts.map +1 -1
- package/dist/api/design/opening-placement.d.ts +123 -0
- package/dist/api/design/opening-placement.d.ts.map +1 -0
- package/dist/api/design/text.d.ts +400 -0
- package/dist/api/design/text.d.ts.map +1 -0
- package/dist/api/design/windows/index.d.ts +23 -0
- package/dist/api/design/windows/index.d.ts.map +1 -1
- package/dist/api/presentation/drawings.d.ts +45 -0
- package/dist/api/presentation/drawings.d.ts.map +1 -1
- package/dist/api/presentation/graphics.d.ts +4 -0
- package/dist/api/presentation/graphics.d.ts.map +1 -1
- package/dist/api/presentation/index.d.ts +9 -0
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/lighting.d.ts +469 -0
- package/dist/api/presentation/lighting.d.ts.map +1 -0
- package/dist/api/presentation/placedViews.d.ts +29 -1
- package/dist/api/presentation/placedViews.d.ts.map +1 -1
- package/dist/api/presentation/standards.d.ts +14 -0
- package/dist/api/presentation/standards.d.ts.map +1 -1
- package/dist/errors/codes.d.ts +1 -1
- package/dist/errors/codes.d.ts.map +1 -1
- package/dist/index.cjs +2417 -2261
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2392 -2246
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/design/create/bulk-items.ts +4 -1
- package/src/api/design/create/index.ts +12 -0
- package/src/api/design/doors/index.ts +43 -0
- package/src/api/design/family.ts +0 -11
- package/src/api/design/index.ts +6 -5
- package/src/api/design/materials/index.ts +1 -15
- package/src/api/design/opening-placement.ts +79 -0
- package/src/api/design/text.ts +394 -0
- package/src/api/design/windows/index.ts +29 -0
- package/src/api/presentation/graphics.ts +4 -1
- package/src/api/presentation/index.ts +9 -0
- package/src/api/presentation/lighting.ts +436 -0
- package/src/api/presentation/placedViews.ts +12 -0
- package/src/api/presentation/standards.ts +6 -0
- package/src/errors/codes.ts +6 -0
- package/test/designText.test.mjs +72 -0
- package/test/errors.test.mjs +1 -0
- package/test/paperPensContract.test.mjs +39 -0
- package/dist/api/design/lights/index.d.ts +0 -504
- package/dist/api/design/lights/index.d.ts.map +0 -1
- package/src/api/design/lights/index.ts +0 -406
package/AGENTS.md
CHANGED
|
@@ -169,6 +169,7 @@ These are in-browser integration tests that exercise the plugin API end-to-end.
|
|
|
169
169
|
| `design/query/*` | `tests/designQuery.ts` |
|
|
170
170
|
| `design/selection/*` | `tests/designSelection.ts` |
|
|
171
171
|
| `design/lock.ts` | `tests/designLock.ts` |
|
|
172
|
+
| `design/text.ts` | `tests/designText.ts` |
|
|
172
173
|
| `design/delete/*` | `tests/delete.ts` |
|
|
173
174
|
| `design/erase/*` | `tests/erase.ts` |
|
|
174
175
|
| `design/doors/*` | `tests/doors.ts` |
|
|
@@ -213,6 +214,23 @@ check **all** consumers of `@snaptrude/plugin-client` or `@snaptrude/plugin-core
|
|
|
213
214
|
|
|
214
215
|
Search these directories for usage of the changed API and update accordingly.
|
|
215
216
|
|
|
217
|
+
### 8. snapagents (every API change, breaking or not)
|
|
218
|
+
|
|
219
|
+
The Snap agent (`snapagents` repo) does not install this package. It keeps a synced copy of the
|
|
220
|
+
built `dist/**/*.d.ts` under `plugin-types/plugin-core/` and compiles every script the
|
|
221
|
+
agent writes against them before it runs, so a stale copy means the agent is held
|
|
222
|
+
to an old API. After a plugin-core release, in the snapagents checkout run:
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
npm run sync:plugin-core -- <path to packages/plugin-core>
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
It copies new and changed declaration files, keeps snapagents' agent-only files,
|
|
229
|
+
refuses to overwrite its hand-merged files (and prints what to merge), and stamps
|
|
230
|
+
`plugin-types/plugin-core/.synced.json` with the version. Where the editor validates a
|
|
231
|
+
parameter against a fixed list, declare it as that literal union here, not as
|
|
232
|
+
`string`: the agent's type-check can only reject what the type names.
|
|
233
|
+
|
|
216
234
|
## Adding a new API namespace (end-to-end)
|
|
217
235
|
|
|
218
236
|
When adding an entirely new namespace (e.g. `snaptrude.materials`):
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @snaptrude/plugin-core
|
|
2
2
|
|
|
3
|
+
## 1.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c05661a: Add `design.text` — authored text and annotations (Text / Annotate tools): `create`, `list`, `get`, `update`, `setLeader`; texts are `ComponentHandle`s, so delete / move / rotate / copy / hide / lock use the generic design APIs. Paper Pens gains a `"Text"` annotation category (projection pen = leader weight, `annotationText.Text.textMm` size, resolved `text.annotationMm`; no per-view override), and `presentation.placedViews.updateStyles` gains the `"Text"` and `"Annotation"` categories with `textFontFamily`, `textFontStyle` and `leaderVisible`.
|
|
8
|
+
|
|
9
|
+
## 1.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- b404589: Add design.family.duplicate and design.family.saveToLibrary
|
|
14
|
+
|
|
3
15
|
## 1.0.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|