@diagonal-hq/pages 0.7.2 → 0.8.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +13 -7
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2995,7 +2995,6 @@ export type SdkSystemSettingsPage =
2995
2995
  | 'workspace-fields'
2996
2996
  | 'workspace-files'
2997
2997
  | 'workspace-onboarding'
2998
- | 'workspace-records'
2999
2998
  | 'workspace-runs'
3000
2999
  | 'workspace-workflows'
3001
3000
  | 'workspaces';
@@ -10982,12 +10981,19 @@ export type EmailComposerContentProps =
10982
10981
  * only this email, never the template. Requires `send_emails`, not
10983
10982
  * `manage_notifications`.
10984
10983
  *
10985
- * The composer shows a loading state, then the draft. A failed load shows the
10986
- * reason with a "Try again" button; templates that only a notification send can
10987
- * render fail this way. The draft is read once per mount and is not refreshed
10988
- * in the background, so it never replaces the viewer's edits. A different ID
10989
- * discards the edits and loads that template. A new `key` reloads the same
10990
- * template. "Send another" restores the template's copy.
10984
+ * While the template loads, the recipient row, the Subject field, the toolbar,
10985
+ * and the preview frame stay in place: the frame shows the loading state and
10986
+ * Send is disabled. A failed load shows the reason with a "Try again" button
10987
+ * under the frame; templates that only a notification send can render fail this
10988
+ * way. The draft is read once per selection and is not refreshed in the
10989
+ * background, so it never replaces the viewer's edits.
10990
+ *
10991
+ * A different ID discards the edits and loads that template in place, so do
10992
+ * not change the `key` with the ID. The composer does the same when the page
10993
+ * renders it with an ID in one branch and without one in the other, at the same
10994
+ * place in the tree. The recipients, the "Preview as" pick, and the view stay.
10995
+ * A new `key` is a full reset that reads the same template again. "Send
10996
+ * another" restores the template's copy.
10991
10997
  */
10992
10998
  notificationTemplateId: string;
10993
10999
  emailLayoutId?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/pages",
3
- "version": "0.7.2",
3
+ "version": "0.8.0",
4
4
  "description": "The Page SDK for the pages of file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {