@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.
Files changed (103) hide show
  1. package/dist/_chunks/workflow-webhook-action-D6K7Jgc2.js +832 -0
  2. package/dist/_chunks/workflow-webhook-action-D6K7Jgc2.js.map +1 -0
  3. package/dist/agent-catalog.json +12 -2
  4. package/dist/agent-i18n/en.json +2 -1
  5. package/dist/i18n/locales/ar.d.ts +13 -1
  6. package/dist/i18n/locales/ar.d.ts.map +1 -1
  7. package/dist/i18n/locales/ar.js +13 -1
  8. package/dist/i18n/locales/ar.js.map +1 -1
  9. package/dist/i18n/locales/de.d.ts +13 -1
  10. package/dist/i18n/locales/de.d.ts.map +1 -1
  11. package/dist/i18n/locales/de.js +13 -1
  12. package/dist/i18n/locales/de.js.map +1 -1
  13. package/dist/i18n/locales/el.d.ts +13 -1
  14. package/dist/i18n/locales/el.d.ts.map +1 -1
  15. package/dist/i18n/locales/el.js +13 -1
  16. package/dist/i18n/locales/el.js.map +1 -1
  17. package/dist/i18n/locales/en.d.ts +13 -1
  18. package/dist/i18n/locales/en.d.ts.map +1 -1
  19. package/dist/i18n/locales/en.js +13 -1
  20. package/dist/i18n/locales/en.js.map +1 -1
  21. package/dist/i18n/locales/es.d.ts +13 -1
  22. package/dist/i18n/locales/es.d.ts.map +1 -1
  23. package/dist/i18n/locales/es.js +13 -1
  24. package/dist/i18n/locales/es.js.map +1 -1
  25. package/dist/i18n/locales/fr.d.ts +13 -1
  26. package/dist/i18n/locales/fr.d.ts.map +1 -1
  27. package/dist/i18n/locales/fr.js +13 -1
  28. package/dist/i18n/locales/fr.js.map +1 -1
  29. package/dist/i18n/locales/hi.d.ts +13 -1
  30. package/dist/i18n/locales/hi.d.ts.map +1 -1
  31. package/dist/i18n/locales/hi.js +13 -1
  32. package/dist/i18n/locales/hi.js.map +1 -1
  33. package/dist/i18n/locales/it.d.ts +13 -1
  34. package/dist/i18n/locales/it.d.ts.map +1 -1
  35. package/dist/i18n/locales/it.js +13 -1
  36. package/dist/i18n/locales/it.js.map +1 -1
  37. package/dist/i18n/locales/ja.d.ts +13 -1
  38. package/dist/i18n/locales/ja.d.ts.map +1 -1
  39. package/dist/i18n/locales/ja.js +13 -1
  40. package/dist/i18n/locales/ja.js.map +1 -1
  41. package/dist/i18n/locales/nl.d.ts +13 -1
  42. package/dist/i18n/locales/nl.d.ts.map +1 -1
  43. package/dist/i18n/locales/nl.js +13 -1
  44. package/dist/i18n/locales/nl.js.map +1 -1
  45. package/dist/i18n/locales/pl.d.ts +13 -1
  46. package/dist/i18n/locales/pl.d.ts.map +1 -1
  47. package/dist/i18n/locales/pl.js +13 -1
  48. package/dist/i18n/locales/pl.js.map +1 -1
  49. package/dist/i18n/locales/pt.d.ts +13 -1
  50. package/dist/i18n/locales/pt.d.ts.map +1 -1
  51. package/dist/i18n/locales/pt.js +13 -1
  52. package/dist/i18n/locales/pt.js.map +1 -1
  53. package/dist/i18n/locales/ro.d.ts +13 -1
  54. package/dist/i18n/locales/ro.d.ts.map +1 -1
  55. package/dist/i18n/locales/ro.js +13 -1
  56. package/dist/i18n/locales/ro.js.map +1 -1
  57. package/dist/i18n/locales/ru.d.ts +13 -1
  58. package/dist/i18n/locales/ru.d.ts.map +1 -1
  59. package/dist/i18n/locales/ru.js +13 -1
  60. package/dist/i18n/locales/ru.js.map +1 -1
  61. package/dist/i18n/locales/sq.d.ts +13 -1
  62. package/dist/i18n/locales/sq.d.ts.map +1 -1
  63. package/dist/i18n/locales/sq.js +13 -1
  64. package/dist/i18n/locales/sq.js.map +1 -1
  65. package/dist/i18n/locales/sv.d.ts +13 -1
  66. package/dist/i18n/locales/sv.d.ts.map +1 -1
  67. package/dist/i18n/locales/sv.js +13 -1
  68. package/dist/i18n/locales/sv.js.map +1 -1
  69. package/dist/i18n/locales/tr.d.ts +13 -1
  70. package/dist/i18n/locales/tr.d.ts.map +1 -1
  71. package/dist/i18n/locales/tr.js +13 -1
  72. package/dist/i18n/locales/tr.js.map +1 -1
  73. package/dist/i18n/locales/zh.d.ts +13 -1
  74. package/dist/i18n/locales/zh.d.ts.map +1 -1
  75. package/dist/i18n/locales/zh.js +13 -1
  76. package/dist/i18n/locales/zh.js.map +1 -1
  77. package/dist/index.js +1 -1
  78. package/dist/locales/ar.json +13 -1
  79. package/dist/locales/de.json +13 -1
  80. package/dist/locales/el.json +13 -1
  81. package/dist/locales/en.json +13 -1
  82. package/dist/locales/es.json +13 -1
  83. package/dist/locales/fr.json +13 -1
  84. package/dist/locales/hi.json +13 -1
  85. package/dist/locales/it.json +13 -1
  86. package/dist/locales/ja.json +13 -1
  87. package/dist/locales/nl.json +13 -1
  88. package/dist/locales/pl.json +13 -1
  89. package/dist/locales/pt.json +13 -1
  90. package/dist/locales/ro.json +13 -1
  91. package/dist/locales/ru.json +13 -1
  92. package/dist/locales/sq.json +13 -1
  93. package/dist/locales/sv.json +13 -1
  94. package/dist/locales/tr.json +13 -1
  95. package/dist/locales/zh.json +13 -1
  96. package/dist/patterns/workflow-webhook-action/index.d.ts +1 -1
  97. package/dist/patterns/workflow-webhook-action/index.d.ts.map +1 -1
  98. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  99. package/dist/patterns/workflow-webhook-action/workflow-webhook-action.d.ts +29 -3
  100. package/dist/patterns/workflow-webhook-action/workflow-webhook-action.d.ts.map +1 -1
  101. package/package.json +1 -1
  102. package/dist/_chunks/workflow-webhook-action-Ct8tFYi7.js +0 -691
  103. 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,GAC9B,MAAM,2BAA2B,CAAC"}
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"}
@@ -1,4 +1,4 @@
1
- import { W as O, a } from "../../_chunks/workflow-webhook-action-Ct8tFYi7.js";
1
+ import { W as O, a } from "../../_chunks/workflow-webhook-action-D6K7Jgc2.js";
2
2
  export {
3
3
  O as WORKFLOW_WEBHOOK_ACTION_FIELDS,
4
4
  a as WorkflowWebhookAction
@@ -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 patient detail the user can insert into a parameter value. */
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
- * Patient details the user can insert into a parameter value. Without
74
- * them, no insert menu shows.
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,GAA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AAC,MAAM,EAAE,2BAA2B,KAAK,IAAI,CAAC;IAC9D;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;CACtC;AA2MD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,uHA60BjC,CAAC"}
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,6DAA6D;AAC7D,MAAM,WAAW,gCAAgC;IAC/C,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,GACjC;IAAE,OAAO,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GACzD;IAAE,OAAO,EAAE,aAAa,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjD,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CACtD,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,GAAG,UAAU,CACxB;IACC;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,kCAAkC,CAAC;IACnD;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,+BAA+B,CAAC;IAC7C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC,gCAAgC,CAAC,CAAC;IAC/D;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,CACX,MAAM,EAAE,2BAA2B,KAChC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACxC,iEAAiE;IACjE,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,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.69.0",
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",