Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/skills/writing-tests/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The file extension is the discriminator, never a `.browser` suffix:
- `*.test-d.ts` is type-level, using `expectTypeOf` from vitest
- `gherkin-tests/*.feature` + racejar for behavior specs (`Feature({featureText, stepDefinitions, parameterTypes})`)

When scaffolding a new package, mirror `plugin-sdk-value`'s vitest config: a `browser` project including `src/**/*.test.tsx` and a `unit` project including `src/**/*.test.ts`.
When scaffolding a new package, mirror `plugin-paste-link`'s vitest config: a `browser` project including `src/**/*.test.tsx` and a `unit` project including `src/**/*.test.ts`.

## Choosing the form

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ For documentation and guides, visit [portabletext.org](https://www.portabletext.
| [`@portabletext/plugin-markdown-shortcuts`](./packages/plugin-markdown-shortcuts/) | Add helpful Markdown shortcuts to the editor |
| [`@portabletext/plugin-one-line`](./packages/plugin-one-line/) | Restrict the Portable Text Editor to a single line |
| [`@portabletext/plugin-paste-link`](./packages/plugin-paste-link/) | Allow pasting links in the Portable Text Editor |
| [`@portabletext/plugin-sdk-value`](./packages/plugin-sdk-value/) | Connect a Portable Text Editor with a Sanity document using the SDK |
| [`@portabletext/plugin-sdk-value`](https://github.com/portabletext/plugin-sdk-value) | Connect a Portable Text Editor with a Sanity document using the SDK |
| [`@portabletext/plugin-table`](./packages/plugin-table/) | Tables as real Portable Text, edited with spreadsheet-grade selection |
| [`@portabletext/plugin-typeahead-picker`](./packages/plugin-typeahead-picker/) | Build typeahead pickers (emoji, mentions, slash commands) |
| [`@portabletext/plugin-typography`](./packages/plugin-typography/) | Automatically transform text to typographic variants |
Expand Down
1 change: 0 additions & 1 deletion apps/doc-examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"@portabletext/plugin-markdown-shortcuts": "workspace:*",
"@portabletext/plugin-one-line": "workspace:*",
"@portabletext/plugin-paste-link": "workspace:*",
"@portabletext/plugin-sdk-value": "workspace:*",
"@portabletext/plugin-table": "workspace:*",
"@portabletext/plugin-typeahead-picker": "workspace:*",
"@portabletext/plugin-typography": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/content/docs/ecosystem/packages.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Serializers convert Portable Text JSON into your target output.
| [`@portabletext/plugin-markdown-shortcuts`](https://github.com/portabletext/editor/tree/main/packages/plugin-markdown-shortcuts) | Markdown-style shortcuts in the editor | `npm i @portabletext/plugin-markdown-shortcuts` |
| [`@portabletext/plugin-one-line`](https://github.com/portabletext/editor/tree/main/packages/plugin-one-line) | Restrict editor to a single line | `npm i @portabletext/plugin-one-line` |
| [`@portabletext/plugin-paste-link`](https://github.com/portabletext/editor/tree/main/packages/plugin-paste-link) | Paste URLs as links | `npm i @portabletext/plugin-paste-link` |
| [`@portabletext/plugin-sdk-value`](https://github.com/portabletext/editor/tree/main/packages/plugin-sdk-value) | Syncs editor value with the Sanity SDK | `npm i @portabletext/plugin-sdk-value` |
| [`@portabletext/plugin-sdk-value`](https://github.com/portabletext/plugin-sdk-value) | Syncs editor value with the Sanity SDK | `npm i @portabletext/plugin-sdk-value` |
| [`@portabletext/plugin-table`](https://github.com/portabletext/editor/tree/main/packages/plugin-table) | Table editing with spreadsheet-grade selection | `npm i @portabletext/plugin-table` |
| [`@portabletext/plugin-typeahead-picker`](https://github.com/portabletext/editor/tree/main/packages/plugin-typeahead-picker) | Typeahead/autocomplete picker infrastructure | `npm i @portabletext/plugin-typeahead-picker` |
| [`@portabletext/plugin-typography`](https://github.com/portabletext/editor/tree/main/packages/plugin-typography) | Smart quotes, em dashes, ellipses | `npm i @portabletext/plugin-typography` |
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/content/docs/editor/reference/plugins.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function LogImagesPlugin() {
<LinkCard
title="@portabletext/plugin-sdk-value"
description="Connect a Portable Text Editor with a Sanity document using the SDK."
href="https://github.com/portabletext/editor/tree/main/packages/plugin-sdk-value"
href="https://github.com/portabletext/plugin-sdk-value"
/>
<LinkCard
title="@portabletext/plugin-table"
Expand Down
1 change: 0 additions & 1 deletion bundle-stats.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export default defineConfig({
'packages/plugin-markdown-shortcuts',
'packages/plugin-one-line',
'packages/plugin-paste-link',
'packages/plugin-sdk-value',
'packages/plugin-typeahead-picker',
'packages/plugin-typography',
].map((root) => ({root, importTime: false})),
Expand Down
1 change: 0 additions & 1 deletion knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@
"@portabletext/plugin-markdown-shortcuts",
"@portabletext/plugin-one-line",
"@portabletext/plugin-paste-link",
"@portabletext/plugin-sdk-value",
"@portabletext/plugin-table",
"@portabletext/plugin-typeahead-picker",
"@portabletext/plugin-typography",
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/test-utils/diff-value-patches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
* `diffValue`-into-patches through the one applier).
*
* Keep in sync with `convertPatches`/`arrayifyPath` in
* `packages/plugin-sdk-value/src/plugin.sdk-value.tsx`, the same translation
* `@portabletext/plugin-sdk-value` (`src/plugin.sdk-value.tsx`), the same translation
* used by the SDK plugin's repair path. Deliberately duplicated (test-only,
* for now) instead of exported.
*/
Expand Down
Loading
Loading