Skip to content

Commit 87cba73

Browse files
chore: merge stable into main (#2778)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent c2f2577 commit 87cba73

File tree

24 files changed

+3181
-5291
lines changed

24 files changed

+3181
-5291
lines changed

apps/cli/platforms/cli-darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@superdoc-dev/cli-darwin-arm64",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"os": [
55
"darwin"
66
],

apps/cli/platforms/cli-darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@superdoc-dev/cli-darwin-x64",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"os": [
55
"darwin"
66
],

apps/cli/platforms/cli-linux-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@superdoc-dev/cli-linux-arm64",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"os": [
55
"linux"
66
],

apps/cli/platforms/cli-linux-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@superdoc-dev/cli-linux-x64",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"os": [
55
"linux"
66
],

apps/cli/platforms/cli-windows-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@superdoc-dev/cli-windows-x64",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"os": [
55
"win32"
66
],

apps/docs/solutions/template-builder/api-reference.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ None - the component works with zero configuration.
2121
Document to load. Can be a URL, File object, or Blob
2222
</ParamField>
2323
<ParamField path="mode" type="'editing' | 'viewing'" default="'editing'">
24-
Document interaction mode
24+
Document interaction mode. Reactive — changing this at runtime switches modes without recreating the editor.
2525
</ParamField>
2626
</Expandable>
2727
</ParamField>

apps/docs/solutions/template-builder/configuration.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ Control which document is loaded and how users interact with it:
2121
**Editing mode** - Users can edit document content and insert fields.
2222
**Viewing mode** - Read-only document display, fields can still be inserted.
2323

24+
Changing `mode` at runtime switches between editing and viewing without recreating the editor — no scroll jump or content flash:
25+
26+
```tsx
27+
<SuperDocTemplateBuilder
28+
document={{ source: file, mode: isEditing ? "editing" : "viewing" }}
29+
/>
30+
```
31+
2432
## Field system
2533

2634
### Available fields

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@superdoc-dev/react",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"description": "Official React wrapper for the SuperDoc document editor",
55
"type": "module",
66
"main": "./dist/index.cjs",

packages/sdk/langs/node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@superdoc-dev/sdk",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"private": false,
55
"type": "module",
66
"main": "./dist/index.cjs",

packages/sdk/langs/node/platforms/sdk-darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@superdoc-dev/sdk-darwin-arm64",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"os": [
55
"darwin"
66
],

0 commit comments

Comments
 (0)