@diagonal-hq/pages 0.3.0 → 0.3.2

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/README.md CHANGED
@@ -50,7 +50,7 @@ The `Publish npm package` workflow (`.github/workflows/publish-npm-package.yml`)
50
50
  2. When the files differ, a model reads the diff and the commit subjects since that publish. It classifies the change as breaking, feature, or fix. Before 1.0.0, a breaking change raises the minor part, and other changes raise the patch part. From 1.0.0, the workflow follows semantic versioning.
51
51
  3. The build job packs the package again at the new version and runs the smoke test on the tarball.
52
52
  4. The commit job commits the new version to `main` with an `[automated] release:` commit.
53
- 5. The publish job runs in the `npm-publish` environment and publishes the tested bytes with npm trusted publishing. It does not build again. It refuses a version that npm already has.
53
+ 5. The publish job runs in the `npm-publish` environment and publishes the tested bytes with npm trusted publishing. It does not build again. It skips a version that npm already has when the tarball bytes match. It fails when the bytes differ.
54
54
 
55
55
  To choose a version yourself, such as 1.0.0 or a prerelease, set `version` in `package.json` to a version that npm does not have, and merge the change. The workflow publishes that version as it is. A version with a prerelease part, such as `0.2.0-next.1`, gets the `next` tag. Other versions get `latest`. The workflow does not raise a prerelease version. Set the next version by hand.
56
56
 
package/dist/index.d.ts CHANGED
@@ -6405,7 +6405,7 @@ export type ComponentRegistry = {
6405
6405
  "TwoFactorSetup": SdkComponent<TwoFactorSetupProps>;
6406
6406
  "TwoFactorSmsConsent": SdkComponent<TwoFactorSmsConsentProps>;
6407
6407
  "UpdateResourceRecordForm": <TResource extends UpdateFormResource = UpdateFormResource>(props: UpdateResourceRecordFormProps<TResource>) => any;
6408
- "UserMenu": SdkComponent<UserControlProps>;
6408
+ "UserMenu": SdkComponent<UserMenuProps>;
6409
6409
  "Video": SdkComponent<VideoProps>;
6410
6410
  "WorkflowForm": SdkComponent<WorkflowFormProps>;
6411
6411
  "WorkspaceFieldsForm": SdkComponent<WorkspaceFieldsFormProps>;
@@ -14106,6 +14106,14 @@ export type UpdateResourceRecordFormHandle = SdkResourceForm & {
14106
14106
  relationTableFields: SdkResourceField[];
14107
14107
  };
14108
14108
 
14109
+ export type UserMenuProps = UserControlProps & {
14110
+ /**
14111
+ * Menu items that show above Log out, such as `useMenu(accountMenu).items` in a file-based
14112
+ * layout. An item without a destination, such as a dropdown, is left out.
14113
+ */
14114
+ items?: readonly NavMainItem[];
14115
+ };
14116
+
14109
14117
  export type VideoProps = React.VideoHTMLAttributes<HTMLVideoElement> & {
14110
14118
  /**
14111
14119
  * Video URL.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/pages",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "The Page SDK for the pages of file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {