@alfadocs/ui-kit-debug 1.69.0 → 1.70.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.
- package/dist/_chunks/workflow-webhook-action-D6K7Jgc2.js +832 -0
- package/dist/_chunks/workflow-webhook-action-D6K7Jgc2.js.map +1 -0
- package/dist/agent-catalog.json +12 -2
- package/dist/agent-i18n/en.json +2 -1
- package/dist/i18n/locales/ar.d.ts +13 -1
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +13 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +13 -1
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +13 -1
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +13 -1
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +13 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +13 -1
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +13 -1
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +13 -1
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +13 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +13 -1
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +13 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +13 -1
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +13 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +13 -1
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +13 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +13 -1
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +13 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +13 -1
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +13 -1
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +13 -1
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +13 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +13 -1
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +13 -1
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +13 -1
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +13 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +13 -1
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +13 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +13 -1
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +13 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +13 -1
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +13 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +13 -1
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +13 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +13 -1
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +13 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/ar.json +13 -1
- package/dist/locales/de.json +13 -1
- package/dist/locales/el.json +13 -1
- package/dist/locales/en.json +13 -1
- package/dist/locales/es.json +13 -1
- package/dist/locales/fr.json +13 -1
- package/dist/locales/hi.json +13 -1
- package/dist/locales/it.json +13 -1
- package/dist/locales/ja.json +13 -1
- package/dist/locales/nl.json +13 -1
- package/dist/locales/pl.json +13 -1
- package/dist/locales/pt.json +13 -1
- package/dist/locales/ro.json +13 -1
- package/dist/locales/ru.json +13 -1
- package/dist/locales/sq.json +13 -1
- package/dist/locales/sv.json +13 -1
- package/dist/locales/tr.json +13 -1
- package/dist/locales/zh.json +13 -1
- package/dist/patterns/workflow-webhook-action/index.d.ts +1 -1
- package/dist/patterns/workflow-webhook-action/index.d.ts.map +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/workflow-webhook-action.d.ts +29 -3
- package/dist/patterns/workflow-webhook-action/workflow-webhook-action.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/_chunks/workflow-webhook-action-Ct8tFYi7.js +0 -691
- package/dist/_chunks/workflow-webhook-action-Ct8tFYi7.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/workflow-webhook-action/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,8BAA8B,GAC/B,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,+BAA+B,EAC/B,2BAA2B,EAC3B,kCAAkC,EAClC,2BAA2B,EAC3B,gCAAgC,EAChC,6BAA6B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/workflow-webhook-action/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,8BAA8B,GAC/B,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,+BAA+B,EAC/B,2BAA2B,EAC3B,kCAAkC,EAClC,2BAA2B,EAC3B,gCAAgC,EAChC,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC"}
|
|
@@ -27,13 +27,28 @@ export type WorkflowWebhookActionInitialValues = Partial<Omit<WorkflowWebhookAct
|
|
|
27
27
|
export type WorkflowWebhookActionErrors = Partial<Record<WorkflowWebhookActionField, string>>;
|
|
28
28
|
/** The host's own form field names, for a native form post. */
|
|
29
29
|
export type WorkflowWebhookActionFieldNames = Record<WorkflowWebhookActionField, string>;
|
|
30
|
-
/** A
|
|
30
|
+
/** A variable the user can insert into a parameter value. */
|
|
31
31
|
export interface WorkflowWebhookActionPlaceholder {
|
|
32
32
|
/** The code the server replaces, such as `[[NOME]]`. */
|
|
33
33
|
value: string;
|
|
34
34
|
/** What the user reads, translated, such as "First name". */
|
|
35
35
|
label: string;
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* What a test message got back, as the host's server saw it.
|
|
39
|
+
* `answered`: the app replied with this HTTP status. `unreachable`: no
|
|
40
|
+
* reply at all (the address does not resolve, refuses, times out or has
|
|
41
|
+
* no valid certificate). `message` replaces the fields' own words, already
|
|
42
|
+
* translated, when the server knows better.
|
|
43
|
+
*/
|
|
44
|
+
export type WorkflowWebhookTestResult = {
|
|
45
|
+
outcome: 'answered';
|
|
46
|
+
status: number;
|
|
47
|
+
message?: string;
|
|
48
|
+
} | {
|
|
49
|
+
outcome: 'unreachable';
|
|
50
|
+
message?: string;
|
|
51
|
+
};
|
|
37
52
|
export interface WorkflowWebhookActionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onChange'> {
|
|
38
53
|
/**
|
|
39
54
|
* Host content above the fields, such as the plan notice ("Included in
|
|
@@ -70,10 +85,21 @@ export interface WorkflowWebhookActionProps extends Omit<HTMLAttributes<HTMLDivE
|
|
|
70
85
|
*/
|
|
71
86
|
fieldNames?: WorkflowWebhookActionFieldNames;
|
|
72
87
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
88
|
+
* The variables the user can insert into a parameter value, listed in
|
|
89
|
+
* Advanced with a copy button each. Default: the three the platform
|
|
90
|
+
* replaces in a webhook step (salutation, first name, last name), with
|
|
91
|
+
* the kit's own labels. An empty list hides the menu and the list.
|
|
75
92
|
*/
|
|
76
93
|
placeholders?: ReadonlyArray<WorkflowWebhookActionPlaceholder>;
|
|
94
|
+
/**
|
|
95
|
+
* Shows "Send test". Called with the values when the user asks for a
|
|
96
|
+
* test, once the address and the secret pass their checks; the host's
|
|
97
|
+
* server sends a sample message (invented IDs, no patient data, marked
|
|
98
|
+
* as a test) signed with that secret, or with the saved one when
|
|
99
|
+
* `secret` is empty, and resolves with what came back. A rejected
|
|
100
|
+
* promise reads as "the test could not be sent". Without it, no button.
|
|
101
|
+
*/
|
|
102
|
+
onSendTest?: (values: WorkflowWebhookActionValues) => Promise<WorkflowWebhookTestResult>;
|
|
77
103
|
/** For React hosts: called with the values after each change. */
|
|
78
104
|
onValueChange?: (values: WorkflowWebhookActionValues) => void;
|
|
79
105
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-webhook-action.d.ts","sourceRoot":"","sources":["../../../src/patterns/workflow-webhook-action/workflow-webhook-action.tsx"],"names":[],"mappings":"AAaA,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAuBf,wDAAwD;AACxD,eAAO,MAAM,8BAA8B,iEAKjC,CAAC;AAEX,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,oEAAoE;AACpE,MAAM,MAAM,6BAA6B,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAE7E;0CAC0C;AAC1C,MAAM,WAAW,2BAA2B;IAC1C,8CAA8C;IAC9C,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAC;IAC1D,uDAAuD;IACvD,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED;iEACiE;AACjE,MAAM,MAAM,kCAAkC,GAAG,OAAO,CACtD,IAAI,CAAC,2BAA2B,EAAE,QAAQ,CAAC,CAC5C,CAAC;AAEF,mEAAmE;AACnE,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,MAAM,CAAC,0BAA0B,EAAE,MAAM,CAAC,CAC3C,CAAC;AAEF,+DAA+D;AAC/D,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAClD,0BAA0B,EAC1B,MAAM,CACP,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"workflow-webhook-action.d.ts","sourceRoot":"","sources":["../../../src/patterns/workflow-webhook-action/workflow-webhook-action.tsx"],"names":[],"mappings":"AAaA,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAuBf,wDAAwD;AACxD,eAAO,MAAM,8BAA8B,iEAKjC,CAAC;AAEX,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,oEAAoE;AACpE,MAAM,MAAM,6BAA6B,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAE7E;0CAC0C;AAC1C,MAAM,WAAW,2BAA2B;IAC1C,8CAA8C;IAC9C,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAC;IAC1D,uDAAuD;IACvD,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED;iEACiE;AACjE,MAAM,MAAM,kCAAkC,GAAG,OAAO,CAC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AAE,2BAA2B,KAAK,IAAI,CAAC;IAC9D;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;CACtC;AAqOD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,uHAugCjC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit-debug",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.70.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe. (debug build — identical runtime to @alfadocs/ui-kit, ships source maps for symbolication).",
|
|
6
6
|
"license": "BUSL-1.1",
|