@plitzi/plitzi-builder 0.35.5 → 0.35.7

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.7
4
+
5
+ ### Patch Changes
6
+
7
+ - An SMTP failure says which credential it was, and a credential's values can be replaced from the builder.
8
+
9
+ - **`email.send` names the credential it could not send through:** `Could not send through the SMTP credential
10
+ "ceniza-smtp": its SMTP host is on a private network…`. The host used to be in the sentence, and a run's trace
11
+ redacts every value of a credential it resolved, so the message read `The SMTP host "«redacted»"…`.
12
+ - **Credentials can be edited in the builder.** A pencil on each row opens the form with the name and the provider
13
+ fixed and nothing it holds shown: every value is entered again, and saving replaces all of them. SMTP credentials
14
+ are also labelled in the list.
15
+
16
+ - Updated dependencies
17
+ - @plitzi/plitzi-sdk@0.35.7
18
+ - @plitzi/sdk-auth@0.35.7
19
+ - @plitzi/sdk-dev-tools@0.35.7
20
+ - @plitzi/sdk-elements@0.35.7
21
+ - @plitzi/sdk-event-bridge@0.35.7
22
+ - @plitzi/sdk-interactions@0.35.7
23
+ - @plitzi/sdk-navigation@0.35.7
24
+ - @plitzi/sdk-plugins@0.35.7
25
+ - @plitzi/sdk-schema@0.35.7
26
+ - @plitzi/sdk-shared@0.35.7
27
+ - @plitzi/sdk-style@0.35.7
28
+ - @plitzi/sdk-variables@0.35.7
29
+
30
+ ## 0.35.6
31
+
32
+ ### Patch Changes
33
+
34
+ - A failed server action can give back what it already did.
35
+
36
+ - **`flow.onFailure` ("On Failure") marks where the undo begins.** A run that reaches it has succeeded and ends there.
37
+ A run whose step failed jumps to it and runs the steps after it, in order, each still asking its own `when` — the
38
+ failure may have come before the thing to undo was ever done — with `{{ failure.step }}` and `{{ failure.message }}`
39
+ in scope. The run still ends failed, with the failure it had; an undo step that fails too is added to it.
40
+ - **The undo runs on its own clock and budget:** 5 seconds (or the run's own timeout if shorter) and its own outbound
41
+ request budget, because the run's may be exactly what ran out, and a caller closing the connection does not stop it.
42
+ A run that hit its deadline is undone too.
43
+ - **`defineAction` writes it from `onFailure: [...]`**, after the answer. `validateActionDocument` refuses an output
44
+ step or a second handler after one, warns about a handler with nothing to undo or nothing that undoes, and reserves
45
+ `failure` as a step id. `FAILURE_HANDLER_TASK` is exported from `@plitzi/sdk-shared/actions`.
46
+
47
+ - Updated dependencies
48
+ - @plitzi/plitzi-sdk@0.35.6
49
+ - @plitzi/sdk-auth@0.35.6
50
+ - @plitzi/sdk-dev-tools@0.35.6
51
+ - @plitzi/sdk-elements@0.35.6
52
+ - @plitzi/sdk-event-bridge@0.35.6
53
+ - @plitzi/sdk-interactions@0.35.6
54
+ - @plitzi/sdk-navigation@0.35.6
55
+ - @plitzi/sdk-plugins@0.35.6
56
+ - @plitzi/sdk-schema@0.35.6
57
+ - @plitzi/sdk-shared@0.35.6
58
+ - @plitzi/sdk-style@0.35.6
59
+ - @plitzi/sdk-variables@0.35.6
60
+
3
61
  ## 0.35.5
4
62
 
5
63
  ### Patch Changes
@@ -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.5",
3
+ "version": "0.35.7",
4
4
  "homepage": "./",
5
5
  "license": "AGPL-3.0",
6
6
  "files": [