@plitzi/plitzi-builder 0.35.6 → 0.35.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,63 @@
1
1
  # @plitzi/plitzi-builder
2
2
 
3
+ ## 0.35.8
4
+
5
+ ### Patch Changes
6
+
7
+ - A space can switch the dev tools on for its own published site.
8
+
9
+ - **`settings.devTools`** in the space schema, set from the builder's Settings panel ("Dev tools on the published SSR
10
+ site (*.plitzi.app)"). It applies to sites served with SSR — usually a space's `*.plitzi.app` address, or a custom
11
+ domain pointed at it. A page server that left `debugMode` unset now authorizes debugging for a space that asked for it, as it
12
+ already did in `devMode`. A server that sets `debugMode` still decides for every space, and `false` cannot be
13
+ turned around by a space. Preview renders stay undebuggable either way.
14
+ - The space is read from the schema the server loaded, never from the request, and the visitor's cookie can still
15
+ only hide the panel.
16
+ - **The HTML cache keys whether a visitor hid the dev tools.** A cached page on a published environment used to be
17
+ keyed on the theme alone, so on a page authorizing dev tools the first visitor's choice — panel or no panel — was
18
+ served to everybody after them.
19
+
20
+ - Updated dependencies
21
+ - @plitzi/plitzi-sdk@0.35.8
22
+ - @plitzi/sdk-auth@0.35.8
23
+ - @plitzi/sdk-dev-tools@0.35.8
24
+ - @plitzi/sdk-elements@0.35.8
25
+ - @plitzi/sdk-event-bridge@0.35.8
26
+ - @plitzi/sdk-interactions@0.35.8
27
+ - @plitzi/sdk-navigation@0.35.8
28
+ - @plitzi/sdk-plugins@0.35.8
29
+ - @plitzi/sdk-schema@0.35.8
30
+ - @plitzi/sdk-shared@0.35.8
31
+ - @plitzi/sdk-style@0.35.8
32
+ - @plitzi/sdk-variables@0.35.8
33
+
34
+ ## 0.35.7
35
+
36
+ ### Patch Changes
37
+
38
+ - An SMTP failure says which credential it was, and a credential's values can be replaced from the builder.
39
+
40
+ - **`email.send` names the credential it could not send through:** `Could not send through the SMTP credential
41
+ "ceniza-smtp": its SMTP host is on a private network…`. The host used to be in the sentence, and a run's trace
42
+ redacts every value of a credential it resolved, so the message read `The SMTP host "«redacted»"…`.
43
+ - **Credentials can be edited in the builder.** A pencil on each row opens the form with the name and the provider
44
+ fixed and nothing it holds shown: every value is entered again, and saving replaces all of them. SMTP credentials
45
+ are also labelled in the list.
46
+
47
+ - Updated dependencies
48
+ - @plitzi/plitzi-sdk@0.35.7
49
+ - @plitzi/sdk-auth@0.35.7
50
+ - @plitzi/sdk-dev-tools@0.35.7
51
+ - @plitzi/sdk-elements@0.35.7
52
+ - @plitzi/sdk-event-bridge@0.35.7
53
+ - @plitzi/sdk-interactions@0.35.7
54
+ - @plitzi/sdk-navigation@0.35.7
55
+ - @plitzi/sdk-plugins@0.35.7
56
+ - @plitzi/sdk-schema@0.35.7
57
+ - @plitzi/sdk-shared@0.35.7
58
+ - @plitzi/sdk-style@0.35.7
59
+ - @plitzi/sdk-variables@0.35.7
60
+
3
61
  ## 0.35.6
4
62
 
5
63
  ### Patch Changes
package/dist/index.html CHANGED
@@ -56,10 +56,10 @@
56
56
  render(
57
57
  'plitzi',
58
58
  {
59
- webKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwib3JpZ2lucyI6WyJodHRwczovL3dlYnNpdGUucGxpdHppLmFwcCIsImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHA6Ly9sb2NhbGhvc3Q6MzAwMCIsImh0dHA6Ly9sb2NhbGhvc3Q6ODA4MCIsImh0dHA6Ly8xMjcuMC4wLjE6ODA4MCJdLCJpc3MiOiJodHRwczovL3NlcnZlci5wbGl0emk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WQiOlsiaHR0cHM6Ly9wbGl0emkubG9jYWwiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWwiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMCIsImh0dHBzOi8vYXBwLnBsaXR6aS5sb2NhbDozMDAxIiwiaHR0cHM6Ly9hcGkucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9zc3IucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9zZXJ2ZXIucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9tY3AucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hdXRoLnBsaXR6aS5sb2NhbCIsImh0dHA6Ly8xMjcuMC4wLjE6NTMwMCIsImh0dHA6Ly9sb2NhbGhvc3Q6NTE4MCJdLCJzY29wZSI6InNwYWNlOnJlbmRlciIsImlhdCI6MTc4OTQxODY5NSwianRpIjoiMjJlZTI4YjJlYmMwNjQyOSIsIm5iZiI6MTc4OTQxODY5NX0.vfOSHVMxccFKkTxBE5A0T4N6pijATjLE8cngR6srQLc',
60
60
  // The actor. Without it the builder loads and every write is refused, since authorization is
61
61
  // can(actor, space, permission). Both halves come from `yarn token 1 --user admin` in plitzi-sdk-server.
62
- userKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwiaXNzIjoiaHR0cHM6Ly9zZXJ2ZXIucGxpdHppLmxvY2FsIiwiYXVkIjpbImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vYXBpLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vbWNwLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXV0aC5wbGl0emkubG9jYWwiLCJodHRwOi8vMTI3LjAuMC4xOjUzMDAiLCJodHRwOi8vbG9jYWxob3N0OjUxODAiXSwic2NvcGUiOiJ1c2VyIiwiZXhwIjoxNzg5NDE2NzUwLCJpYXQiOjE3ODkzMzAzNTAsImp0aSI6IjNlM2VhMWMzNzA2ODFkYWIiLCJuYmYiOjE3ODkzMzAzNTB9.U-4fo8Irm7H9F7pZ0qJrFiNUtWDSpO82n1YwmAxen9I',
62
+ userKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwiaXNzIjoiaHR0cHM6Ly9zZXJ2ZXIucGxpdHppLmxvY2FsIiwiYXVkIjpbImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vYXBpLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vbWNwLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXV0aC5wbGl0emkubG9jYWwiLCJodHRwOi8vMTI3LjAuMC4xOjUzMDAiLCJodHRwOi8vbG9jYWxob3N0OjUxODAiXSwic2NvcGUiOiJ1c2VyIiwiZXhwIjoxNzg5NTA1MTI5LCJpYXQiOjE3ODk0MTg3MjksImp0aSI6IjhkODZiNGM0NGY1N2UxNGIiLCJuYmYiOjE3ODk0MTg3Mjl9.xT_Re3lVuVT68s4UnfOXvmf0fW5Hv8Ktu_4XdgMnuBA',
63
63
  environment: 'main',
64
64
  server: {
65
65
  basePath: '',
@@ -51,8 +51,13 @@ export type SpaceCredentialFormProps = {
51
51
  user?: string;
52
52
  pass?: string;
53
53
  token?: string;
54
+ /**
55
+ * Replaces the values of a credential that already exists. Its provider is fixed — a CDN, a deployment or a flow
56
+ * reads its keys as that provider's — and nothing it holds is shown: every value is typed again and all are replaced.
57
+ */
58
+ editing?: boolean;
54
59
  onClose?: (e?: MouseEvent) => void;
55
60
  onSubmit?: (e: MouseEvent | undefined, values: z.infer<typeof spaceCredentialFormSchema>) => void;
56
61
  };
57
- declare const SpaceCredentialForm: ({ name, provider, accessKeyId, secretAccessKey, type, user, pass, token, onSubmit, onClose }: SpaceCredentialFormProps) => import("react").JSX.Element;
62
+ declare const SpaceCredentialForm: ({ name, provider, accessKeyId, secretAccessKey, type, user, pass, token, editing, onSubmit, onClose }: SpaceCredentialFormProps) => import("react").JSX.Element;
58
63
  export default SpaceCredentialForm;
@@ -13,7 +13,8 @@ export type SpaceCredentialProps = {
13
13
  createdAt: number;
14
14
  updatedAt: number;
15
15
  onSelect?: (identifier: string) => void;
16
+ onEdit?: (identifier: string) => void;
16
17
  onRemove?: (identifier: string) => void;
17
18
  };
18
- declare const SpaceCredential: ({ providersSupported, identifier, name, provider, selected, inUse, usedIn, createdAt, onSelect, onRemove }: SpaceCredentialProps) => import("react").JSX.Element;
19
+ declare const SpaceCredential: ({ providersSupported, identifier, name, provider, selected, inUse, usedIn, createdAt, onSelect, onEdit, onRemove }: SpaceCredentialProps) => import("react").JSX.Element;
19
20
  export default SpaceCredential;
@@ -4,7 +4,9 @@ export type SpaceCredentialsProps = {
4
4
  credentials?: TSpaceCredential[];
5
5
  selected?: string;
6
6
  onSelect?: (identifier: string) => void;
7
+ /** Offers replacing a credential's values. Left out, a row offers nothing but selecting and removing it. */
8
+ onEdit?: (identifier: string) => void;
7
9
  onRemove?: (identifier: string) => void;
8
10
  };
9
- declare const SpaceCredentials: ({ providersSupported, credentials, selected, onSelect, onRemove }: SpaceCredentialsProps) => import("react").JSX.Element;
11
+ declare const SpaceCredentials: ({ providersSupported, credentials, selected, onSelect, onEdit, onRemove }: SpaceCredentialsProps) => import("react").JSX.Element;
10
12
  export default SpaceCredentials;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "@plitzi/plitzi-builder",
3
- "version": "0.35.6",
3
+ "version": "0.35.8",
4
4
  "homepage": "./",
5
5
  "license": "AGPL-3.0",
6
6
  "files": [