@pega/cosmos-react-core 9.0.0-build.9.4 → 9.0.0-build.9.6

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 (57) hide show
  1. package/lib/components/DateTime/Input/DateInput.d.ts.map +1 -1
  2. package/lib/components/DateTime/Input/DateInput.js +6 -4
  3. package/lib/components/DateTime/Input/DateInput.js.map +1 -1
  4. package/lib/components/DateTime/Input/DateTimeInput.d.ts.map +1 -1
  5. package/lib/components/DateTime/Input/DateTimeInput.js +5 -3
  6. package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
  7. package/lib/components/DateTime/Input/WeekInput.d.ts.map +1 -1
  8. package/lib/components/DateTime/Input/WeekInput.js +6 -4
  9. package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
  10. package/lib/components/Dialog/InfoDialog.js +1 -1
  11. package/lib/components/Dialog/InfoDialog.js.map +1 -1
  12. package/lib/components/FieldGroup/FieldGroupList.d.ts.map +1 -1
  13. package/lib/components/FieldGroup/FieldGroupList.js +4 -2
  14. package/lib/components/FieldGroup/FieldGroupList.js.map +1 -1
  15. package/lib/components/FieldGroup/FieldGroupList.utils.d.ts +1 -1
  16. package/lib/components/FieldGroup/FieldGroupList.utils.js +2 -2
  17. package/lib/components/FieldGroup/FieldGroupList.utils.js.map +1 -1
  18. package/lib/components/MetaList/MetaList.js +1 -1
  19. package/lib/components/MetaList/MetaList.js.map +1 -1
  20. package/lib/components/Popover/Popover.styles.d.ts.map +1 -1
  21. package/lib/components/Popover/Popover.styles.js +18 -1
  22. package/lib/components/Popover/Popover.styles.js.map +1 -1
  23. package/lib/components/Popover/modifiers.d.ts.map +1 -1
  24. package/lib/components/Popover/modifiers.js +10 -0
  25. package/lib/components/Popover/modifiers.js.map +1 -1
  26. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  27. package/lib/components/Tooltip/Tooltip.js +3 -1
  28. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  29. package/lib/hooks/useI18n.d.ts +25 -0
  30. package/lib/hooks/useI18n.d.ts.map +1 -1
  31. package/lib/hooks/useItemIntersection.d.ts +2 -1
  32. package/lib/hooks/useItemIntersection.d.ts.map +1 -1
  33. package/lib/hooks/useItemIntersection.js +10 -6
  34. package/lib/hooks/useItemIntersection.js.map +1 -1
  35. package/lib/i18n/default.d.ts +25 -0
  36. package/lib/i18n/default.d.ts.map +1 -1
  37. package/lib/i18n/default.js +26 -0
  38. package/lib/i18n/default.js.map +1 -1
  39. package/lib/i18n/i18n.d.ts +25 -0
  40. package/lib/i18n/i18n.d.ts.map +1 -1
  41. package/lib/styles/animations.d.ts +9 -0
  42. package/lib/styles/animations.d.ts.map +1 -0
  43. package/lib/styles/animations.js +78 -0
  44. package/lib/styles/animations.js.map +1 -0
  45. package/lib/styles/index.d.ts +1 -0
  46. package/lib/styles/index.d.ts.map +1 -1
  47. package/lib/styles/index.js +1 -0
  48. package/lib/styles/index.js.map +1 -1
  49. package/lib/utils/getFocusables.d.ts +4 -2
  50. package/lib/utils/getFocusables.d.ts.map +1 -1
  51. package/lib/utils/getFocusables.js +9 -7
  52. package/lib/utils/getFocusables.js.map +1 -1
  53. package/lib/utils/isInstance.d.ts +4 -4
  54. package/lib/utils/isInstance.d.ts.map +1 -1
  55. package/lib/utils/isInstance.js +20 -8
  56. package/lib/utils/isInstance.js.map +1 -1
  57. package/package.json +1 -1
@@ -143,6 +143,7 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
143
143
  select_noun: string;
144
144
  actions_for: string;
145
145
  edited: string;
146
+ deleted: string;
146
147
  done: string;
147
148
  uploading: string;
148
149
  loading: string;
@@ -316,6 +317,7 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
316
317
  choose_week: string;
317
318
  set_current_week_ally: string;
318
319
  auto_focus_next_input_description: string;
320
+ year_input_description: string;
319
321
  boolean_display_true_label: string;
320
322
  boolean_display_false_label: string;
321
323
  step_changed_to_name: string;
@@ -604,12 +606,15 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
604
606
  rte_edit_image: string;
605
607
  rte_delete_image: string;
606
608
  rte_image_key_command: string;
609
+ important: string;
607
610
  expand_trail: string;
608
611
  collapse_trail: string;
609
612
  copy_to: string;
610
613
  subject_label: string;
611
614
  search_results: string;
612
615
  get_next_email: string;
616
+ mark_email_as_important: string;
617
+ email_attachment: string;
613
618
  feed_post_type: string;
614
619
  feed_new_post: string;
615
620
  feed_new_post_submit: string;
@@ -1346,6 +1351,26 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
1346
1351
  download_app: string;
1347
1352
  qr_code_not_available: string;
1348
1353
  qr_code: string;
1354
+ expand_all: string;
1355
+ collapse_all: string;
1356
+ expand_steps: string;
1357
+ collapse_steps: string;
1358
+ expand_step: string;
1359
+ collapse_step: string;
1360
+ expanded_step: string;
1361
+ collapsed_step: string;
1362
+ add_step: string;
1363
+ generate_comments: string;
1364
+ action_set: string;
1365
+ action_when: string;
1366
+ action_append: string;
1367
+ action_call: string;
1368
+ action_create: string;
1369
+ action_for_each: string;
1370
+ action_exit: string;
1371
+ action_return: string;
1372
+ action_remove: string;
1373
+ action_error_handler: string;
1349
1374
  app_header_notifications_empty: string;
1350
1375
  app_header_notifications_loading: string;
1351
1376
  open_app_header_notifications: string;
@@ -1 +1 @@
1
- {"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC"}
@@ -5,8 +5,9 @@ import type { RefObject } from 'react';
5
5
  * @param offset Index of the list item which needs to be observed.
6
6
  * @param cb Callback that needs to be fired on intersect
7
7
  * @param itemSelector Selector used to get the node list of items
8
+ * @param boundingRef Ref to use as the bounding root for querying items. Required for use when selected items are rendered within a ShadowRoot.
8
9
  * @returns void.
9
10
  */
10
- declare const useItemIntersection: (containerRef: RefObject<HTMLElement>, offset: number, cb: () => void, itemSelector: string) => void;
11
+ declare const useItemIntersection: (containerRef: RefObject<HTMLElement>, offset: number, cb: () => void, itemSelector: string, boundingRef?: RefObject<HTMLElement>) => void;
11
12
  export default useItemIntersection;
12
13
  //# sourceMappingURL=useItemIntersection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useItemIntersection.d.ts","sourceRoot":"","sources":["../../src/hooks/useItemIntersection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;;GAOG;AAEH,QAAA,MAAM,mBAAmB,GACvB,cAAc,SAAS,CAAC,WAAW,CAAC,EACpC,QAAQ,MAAM,EACd,IAAI,MAAM,IAAI,EACd,cAAc,MAAM,SA6BrB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"useItemIntersection.d.ts","sourceRoot":"","sources":["../../src/hooks/useItemIntersection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC;;;;;;;;GAQG;AAEH,QAAA,MAAM,mBAAmB,GACvB,cAAc,SAAS,CAAC,WAAW,CAAC,EACpC,QAAQ,MAAM,EACd,IAAI,MAAM,IAAI,EACd,cAAc,MAAM,EACpB,cAAc,SAAS,CAAC,WAAW,CAAC,SAmCrC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1,19 +1,23 @@
1
1
  import { useEffect } from 'react';
2
+ import { isInstance } from '../utils';
2
3
  /**
3
4
  * @example useItemIntersection(listRef,offset,() => { do_some_thing; });
4
5
  * @param containerRef The ref of the List.
5
6
  * @param offset Index of the list item which needs to be observed.
6
7
  * @param cb Callback that needs to be fired on intersect
7
8
  * @param itemSelector Selector used to get the node list of items
9
+ * @param boundingRef Ref to use as the bounding root for querying items. Required for use when selected items are rendered within a ShadowRoot.
8
10
  * @returns void.
9
11
  */
10
- const useItemIntersection = (containerRef, offset, cb, itemSelector) => {
12
+ const useItemIntersection = (containerRef, offset, cb, itemSelector, boundingRef) => {
11
13
  useEffect(() => {
12
- if (!containerRef.current)
13
- return;
14
14
  let item = null;
15
15
  if (offset > 0) {
16
- const items = containerRef.current.querySelectorAll(itemSelector);
16
+ const elementToQuery = containerRef?.current ?? boundingRef?.current?.getRootNode() ?? document;
17
+ if (!isInstance(elementToQuery, HTMLElement, SVGElement, ShadowRoot, Document)) {
18
+ return;
19
+ }
20
+ const items = elementToQuery.querySelectorAll(itemSelector);
17
21
  if (items.length > offset) {
18
22
  item = items[offset];
19
23
  }
@@ -24,14 +28,14 @@ const useItemIntersection = (containerRef, offset, cb, itemSelector) => {
24
28
  cb();
25
29
  }
26
30
  }, {
27
- root: containerRef.current
31
+ root: containerRef.current ?? null
28
32
  });
29
33
  intersectionObserver.observe(item);
30
34
  return () => {
31
35
  intersectionObserver.disconnect();
32
36
  };
33
37
  }
34
- }, [cb, containerRef.current, offset]);
38
+ }, [cb, offset]);
35
39
  };
36
40
  export default useItemIntersection;
37
41
  //# sourceMappingURL=useItemIntersection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useItemIntersection.js","sourceRoot":"","sources":["../../src/hooks/useItemIntersection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC;;;;;;;GAOG;AAEH,MAAM,mBAAmB,GAAG,CAC1B,YAAoC,EACpC,MAAc,EACd,EAAc,EACd,YAAoB,EACpB,EAAE;IACF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,YAAY,CAAC,OAAO;YAAE,OAAO;QAClC,IAAI,IAAI,GAAuB,IAAI,CAAC;QACpC,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;YACf,MAAM,KAAK,GAA4B,YAAY,CAAC,OAAO,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;YAE3F,IAAI,KAAK,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC;gBAC1B,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;YACvB,CAAC;QACH,CAAC;QACD,IAAI,IAAI,EAAE,CAAC;YACT,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,CACnD,CAAC,OAAoC,EAAE,EAAE;gBACvC,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC;oBAC9B,EAAE,EAAE,CAAC;gBACP,CAAC;YACH,CAAC,EACD;gBACE,IAAI,EAAE,YAAY,CAAC,OAAO;aAC3B,CACF,CAAC;YACF,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnC,OAAO,GAAG,EAAE;gBACV,oBAAoB,CAAC,UAAU,EAAE,CAAC;YACpC,CAAC,CAAC;QACJ,CAAC;IACH,CAAC,EAAE,CAAC,EAAE,EAAE,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AACzC,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["import { useEffect } from 'react';\nimport type { RefObject } from 'react';\n\n/**\n * @example useItemIntersection(listRef,offset,() => { do_some_thing; });\n * @param containerRef The ref of the List.\n * @param offset Index of the list item which needs to be observed.\n * @param cb Callback that needs to be fired on intersect\n * @param itemSelector Selector used to get the node list of items\n * @returns void.\n */\n\nconst useItemIntersection = (\n containerRef: RefObject<HTMLElement>,\n offset: number,\n cb: () => void,\n itemSelector: string\n) => {\n useEffect(() => {\n if (!containerRef.current) return;\n let item: HTMLElement | null = null;\n if (offset > 0) {\n const items: NodeListOf<HTMLElement> = containerRef.current.querySelectorAll(itemSelector);\n\n if (items.length > offset) {\n item = items[offset];\n }\n }\n if (item) {\n const intersectionObserver = new IntersectionObserver(\n (entries: IntersectionObserverEntry[]) => {\n if (entries[0].isIntersecting) {\n cb();\n }\n },\n {\n root: containerRef.current\n }\n );\n intersectionObserver.observe(item);\n return () => {\n intersectionObserver.disconnect();\n };\n }\n }, [cb, containerRef.current, offset]);\n};\n\nexport default useItemIntersection;\n"]}
1
+ {"version":3,"file":"useItemIntersection.js","sourceRoot":"","sources":["../../src/hooks/useItemIntersection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC;;;;;;;;GAQG;AAEH,MAAM,mBAAmB,GAAG,CAC1B,YAAoC,EACpC,MAAc,EACd,EAAc,EACd,YAAoB,EACpB,WAAoC,EACpC,EAAE;IACF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,IAAI,GAAuB,IAAI,CAAC;QACpC,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;YACf,MAAM,cAAc,GAClB,YAAY,EAAE,OAAO,IAAI,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,QAAQ,CAAC;YAE3E,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC;gBAC/E,OAAO;YACT,CAAC;YAED,MAAM,KAAK,GAA4B,cAAc,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;YAErF,IAAI,KAAK,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC;gBAC1B,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;YACvB,CAAC;QACH,CAAC;QACD,IAAI,IAAI,EAAE,CAAC;YACT,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,CACnD,CAAC,OAAoC,EAAE,EAAE;gBACvC,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC;oBAC9B,EAAE,EAAE,CAAC;gBACP,CAAC;YACH,CAAC,EACD;gBACE,IAAI,EAAE,YAAY,CAAC,OAAO,IAAI,IAAI;aACnC,CACF,CAAC;YACF,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnC,OAAO,GAAG,EAAE;gBACV,oBAAoB,CAAC,UAAU,EAAE,CAAC;YACpC,CAAC,CAAC;QACJ,CAAC;IACH,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;AACnB,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["import { useEffect } from 'react';\nimport type { RefObject } from 'react';\n\nimport { isInstance } from '../utils';\n\n/**\n * @example useItemIntersection(listRef,offset,() => { do_some_thing; });\n * @param containerRef The ref of the List.\n * @param offset Index of the list item which needs to be observed.\n * @param cb Callback that needs to be fired on intersect\n * @param itemSelector Selector used to get the node list of items\n * @param boundingRef Ref to use as the bounding root for querying items. Required for use when selected items are rendered within a ShadowRoot.\n * @returns void.\n */\n\nconst useItemIntersection = (\n containerRef: RefObject<HTMLElement>,\n offset: number,\n cb: () => void,\n itemSelector: string,\n boundingRef?: RefObject<HTMLElement>\n) => {\n useEffect(() => {\n let item: HTMLElement | null = null;\n if (offset > 0) {\n const elementToQuery =\n containerRef?.current ?? boundingRef?.current?.getRootNode() ?? document;\n\n if (!isInstance(elementToQuery, HTMLElement, SVGElement, ShadowRoot, Document)) {\n return;\n }\n\n const items: NodeListOf<HTMLElement> = elementToQuery.querySelectorAll(itemSelector);\n\n if (items.length > offset) {\n item = items[offset];\n }\n }\n if (item) {\n const intersectionObserver = new IntersectionObserver(\n (entries: IntersectionObserverEntry[]) => {\n if (entries[0].isIntersecting) {\n cb();\n }\n },\n {\n root: containerRef.current ?? null\n }\n );\n intersectionObserver.observe(item);\n return () => {\n intersectionObserver.disconnect();\n };\n }\n }, [cb, offset]);\n};\n\nexport default useItemIntersection;\n"]}
@@ -139,6 +139,7 @@ declare const _default: {
139
139
  select_noun: string;
140
140
  actions_for: string;
141
141
  edited: string;
142
+ deleted: string;
142
143
  done: string;
143
144
  uploading: string;
144
145
  loading: string;
@@ -312,6 +313,7 @@ declare const _default: {
312
313
  choose_week: string;
313
314
  set_current_week_ally: string;
314
315
  auto_focus_next_input_description: string;
316
+ year_input_description: string;
315
317
  boolean_display_true_label: string;
316
318
  boolean_display_false_label: string;
317
319
  step_changed_to_name: string;
@@ -600,12 +602,15 @@ declare const _default: {
600
602
  rte_edit_image: string;
601
603
  rte_delete_image: string;
602
604
  rte_image_key_command: string;
605
+ important: string;
603
606
  expand_trail: string;
604
607
  collapse_trail: string;
605
608
  copy_to: string;
606
609
  subject_label: string;
607
610
  search_results: string;
608
611
  get_next_email: string;
612
+ mark_email_as_important: string;
613
+ email_attachment: string;
609
614
  feed_post_type: string;
610
615
  feed_new_post: string;
611
616
  feed_new_post_submit: string;
@@ -1343,6 +1348,26 @@ declare const _default: {
1343
1348
  download_app: string;
1344
1349
  qr_code_not_available: string;
1345
1350
  qr_code: string;
1351
+ expand_all: string;
1352
+ collapse_all: string;
1353
+ expand_steps: string;
1354
+ collapse_steps: string;
1355
+ expand_step: string;
1356
+ collapse_step: string;
1357
+ expanded_step: string;
1358
+ collapsed_step: string;
1359
+ add_step: string;
1360
+ generate_comments: string;
1361
+ action_set: string;
1362
+ action_when: string;
1363
+ action_append: string;
1364
+ action_call: string;
1365
+ action_create: string;
1366
+ action_for_each: string;
1367
+ action_exit: string;
1368
+ action_return: string;
1369
+ action_remove: string;
1370
+ action_error_handler: string;
1346
1371
  app_header_notifications_empty: string;
1347
1372
  app_header_notifications_loading: string;
1348
1373
  open_app_header_notifications: string;
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/i18n/default.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqMxB,6CAA6C;;;;IAK7C,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0F5C,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA7xDzC,wBAg1DE"}
@@ -148,6 +148,7 @@ export default {
148
148
  actions_for: 'Actions - {0}',
149
149
  /* States */
150
150
  edited: 'Edited {0}',
151
+ deleted: '{0} deleted',
151
152
  done: 'Done',
152
153
  uploading: 'Uploading',
153
154
  loading: 'Loading…',
@@ -341,6 +342,7 @@ export default {
341
342
  choose_week: 'Choose week',
342
343
  set_current_week_ally: 'Set to current week',
343
344
  auto_focus_next_input_description: 'Automatically moves focus to next input when current input is completed.',
345
+ year_input_description: 'You may also enter a four-digit year manually.',
344
346
  /* core:Boolean */
345
347
  boolean_display_true_label: 'Yes',
346
348
  boolean_display_false_label: 'No',
@@ -665,12 +667,15 @@ export default {
665
667
  rte_delete_image: 'Delete image {0}',
666
668
  rte_image_key_command: 'Press enter to edit the image',
667
669
  /* social:Email */
670
+ important: 'Important',
668
671
  expand_trail: 'Expand trail',
669
672
  collapse_trail: 'Collapse trail',
670
673
  copy_to: 'Copy to',
671
674
  subject_label: 'Subject: {0}',
672
675
  search_results: 'Search results',
673
676
  get_next_email: 'Get next email',
677
+ mark_email_as_important: 'Mark email as important',
678
+ email_attachment: '{0} with {1}',
674
679
  /* social:Feed */
675
680
  feed_post_type: 'Post type',
676
681
  feed_new_post: 'Message',
@@ -1433,6 +1438,27 @@ export default {
1433
1438
  download_app: 'Download app',
1434
1439
  qr_code_not_available: 'No QR code available yet',
1435
1440
  qr_code: 'QR code',
1441
+ /* build: Automation */
1442
+ expand_all: 'Expand all',
1443
+ collapse_all: 'Collapse all',
1444
+ expand_steps: 'Expand all steps',
1445
+ collapse_steps: 'Collapse all steps',
1446
+ expand_step: 'Expand step {0}',
1447
+ collapse_step: 'Collapse step {0}',
1448
+ expanded_step: 'Expanded step {0}',
1449
+ collapsed_step: 'Collapsed step {0}',
1450
+ add_step: 'Add step',
1451
+ generate_comments: 'Generate comments',
1452
+ action_set: 'Set',
1453
+ action_when: 'When',
1454
+ action_append: 'Append',
1455
+ action_call: 'Call',
1456
+ action_create: 'Create',
1457
+ action_for_each: 'For each',
1458
+ action_exit: 'Exit',
1459
+ action_return: 'Return',
1460
+ action_remove: 'Remove',
1461
+ action_error_handler: 'Error handler',
1436
1462
  /* wss:AppHeader */
1437
1463
  app_header_notifications_empty: 'No notifications',
1438
1464
  app_header_notifications_loading: 'Loading notifications',