@diagonal-hq/pages 0.6.2 → 0.7.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/README.md +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ The package must not depend on `@diagonal-hq/workflows` or `@diagonal-hq/cli`. I
|
|
|
38
38
|
|
|
39
39
|
## Build the package
|
|
40
40
|
|
|
41
|
-
`npm run build:pages-package` (`scripts/build-pages-package.mjs`) writes `dist/index.d.ts` and `dist/index.js` from the generated Page SDK contract and the export table, and packs `scripts/dist/npm/diagonal-hq-pages-<version>.tgz`. TypeScript checks the declarations, and a type error fails the build. `npm run generate-typescript` runs the script after `generate-page-sdk-types`.
|
|
41
|
+
`npm run build:pages-package` (`scripts/build-pages-package.mjs`) writes `dist/index.d.ts` and `dist/index.js` from the generated Page SDK contract and the export table, and packs `scripts/dist/npm/diagonal-hq-pages-<version>.tgz`. TypeScript checks the declarations, and a type error fails the build. `npm run generate-typescript` runs the script with `--declarations-only` after `generate-page-sdk-types`. That mode writes only `dist/index.d.ts`, which the Files editor and the draft editors bundle. It does not write `dist/index.js` or the tarball. `npm run build:npm-packages` builds and packs all the packages.
|
|
42
42
|
|
|
43
43
|
`node scripts/smoke-pages-package.mjs [tarball]` installs the packed tarball in a consumer outside the repository, with the React, React DOM, and Inertia versions of the platform. It checks the packed file list, the peer dependencies, the package boundaries of the packed manifest and of the installed dependency tree, the error that the package root throws, the `exports` map, and a `tsc` check of a `.tsx` file that imports and renders named exports with `@types/react`. The `tsc` check also loads a `generated/catalog.d.ts` and checks that `SdkInternal` is not an export. `node scripts/check-runtime-templates.mjs` runs `diagonal check` and `tsc` on each workspace template with the packed packages. The `generated-assets` job of PR CI runs both.
|
|
44
44
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2068,7 +2068,7 @@ export type ApiError = Error & {
|
|
|
2068
2068
|
readonly body: any;
|
|
2069
2069
|
};
|
|
2070
2070
|
|
|
2071
|
-
export type SdkCalendarUnavailableReason = 'signed_out' | '
|
|
2071
|
+
export type SdkCalendarUnavailableReason = 'signed_out' | 'branch' | 'not_schedulable';
|
|
2072
2072
|
|
|
2073
2073
|
export type SdkCalendarLinkState = 'active' | 'waiting_for_write_access' | 'broken';
|
|
2074
2074
|
|
|
@@ -7397,7 +7397,7 @@ export type SdkHooks = {
|
|
|
7397
7397
|
* signed-in identity's own calendars and needs no permission. Another staff record needs
|
|
7398
7398
|
* "Manage calendar connections" and Show access to the record. A viewer connects Google
|
|
7399
7399
|
* accounts and adds calendars only through their own accounts. Nothing is available
|
|
7400
|
-
*
|
|
7400
|
+
* in a branch, for a signed-out visitor (no request
|
|
7401
7401
|
* is made), and for an identity that is not a Schedulable record: check `available` and
|
|
7402
7402
|
* render nothing. Every write refreshes the data and rejects with an `ApiError` on a
|
|
7403
7403
|
* refusal: read its text with `Sdk.utils.error.apiErrorMessage(error)`.
|