@useinsider/guido 3.19.0-beta.7d287ab → 3.19.0-beta.84c97db

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 (79) hide show
  1. package/dist/@types/config/schemas.js +9 -8
  2. package/dist/components/Guido.vue.js +2 -2
  3. package/dist/components/Guido.vue2.js +80 -67
  4. package/dist/components/organisms/AutoSaveController.vue2.js +18 -8
  5. package/dist/components/organisms/header/AutoSaveStatus.vue.js +17 -0
  6. package/dist/components/organisms/header/AutoSaveStatus.vue2.js +25 -0
  7. package/dist/components/organisms/header/EditorActions.vue.js +13 -13
  8. package/dist/components/organisms/header/EditorActions.vue2.js +37 -52
  9. package/dist/components/organisms/header/EditorActionsMenu.vue.js +20 -0
  10. package/dist/components/organisms/header/EditorActionsMenu.vue2.js +98 -0
  11. package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
  12. package/dist/components/organisms/header/HeaderWrapper.vue2.js +9 -17
  13. package/dist/components/organisms/header/LeftSlot.vue.js +5 -5
  14. package/dist/components/organisms/header/LeftSlot.vue2.js +32 -23
  15. package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
  16. package/dist/components/organisms/header/MiddleSlot.vue2.js +8 -7
  17. package/dist/components/organisms/header/RightSlot.vue.js +9 -8
  18. package/dist/components/organisms/header/RightSlot.vue2.js +13 -18
  19. package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +18 -0
  20. package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +37 -0
  21. package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +22 -0
  22. package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +48 -0
  23. package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +19 -0
  24. package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +90 -0
  25. package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +12 -12
  26. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +56 -38
  27. package/dist/composables/useAccessibilityApi.js +45 -0
  28. package/dist/composables/useCortexBlueprintBridge.js +122 -54
  29. package/dist/composables/useCustomInterfaceAppearance.js +42 -41
  30. package/dist/composables/useEmailTemplateApplier.js +111 -50
  31. package/dist/config/i18n/en/labels.json.js +36 -4
  32. package/dist/config/i18n/en/tooltips.json.js +2 -1
  33. package/dist/config/migrator/itemsBlockMigrator.js +236 -248
  34. package/dist/extensions/Blocks/Items/constants/cardLayout.js +20 -0
  35. package/dist/extensions/Blocks/Items/controls/name/trimming.js +18 -17
  36. package/dist/extensions/Blocks/Items/controls/settingsControl.js +114 -105
  37. package/dist/extensions/Blocks/Items/enums/productEnums.js +14 -9
  38. package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +11 -9
  39. package/dist/extensions/Blocks/Items/template.js +219 -204
  40. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +189 -226
  41. package/dist/guido.css +1 -1
  42. package/dist/sprite.svg +10 -0
  43. package/dist/src/@types/config/schemas.d.ts +2 -0
  44. package/dist/src/components/organisms/AutoSaveController.vue.d.ts +3 -1
  45. package/dist/src/components/organisms/header/EditorActionsMenu.vue.d.ts +2 -0
  46. package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +1 -3
  47. package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -3
  48. package/dist/src/components/organisms/header/accessibility/AccessibilityToolbar.vue.d.ts +2 -0
  49. package/dist/src/components/organisms/header/accessibility/ColorVisionSelect.vue.d.ts +2 -0
  50. package/dist/src/components/organisms/onboarding/EditorTabBarOnboarding.vue.d.ts +2 -0
  51. package/dist/src/composables/useAccessibilityApi.d.ts +13 -0
  52. package/dist/src/composables/useActionsApi.d.ts +2 -2
  53. package/dist/src/composables/useConfig.d.ts +2 -0
  54. package/dist/src/composables/useCortexBlueprintBridge.d.ts +2 -3
  55. package/dist/src/composables/useEmailTemplateApplier.d.ts +18 -5
  56. package/dist/src/extensions/Blocks/Items/constants/cardLayout.d.ts +44 -0
  57. package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +3 -0
  58. package/dist/src/extensions/Blocks/Items/template.d.ts +19 -0
  59. package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +0 -8
  60. package/dist/src/stores/autosave.d.ts +73 -1
  61. package/dist/src/stores/config.d.ts +20 -0
  62. package/dist/src/stores/editor.d.ts +109 -0
  63. package/dist/src/stores/guido-email-editor.d.ts +20 -10
  64. package/dist/src/stores/onboarding.d.ts +952 -21
  65. package/dist/src/stores/version-history.d.ts +1 -1
  66. package/dist/src/utils/timeUtil.d.ts +5 -0
  67. package/dist/static/styles/components/accessibility.css.js +234 -0
  68. package/dist/static/styles/components/version-history.css.js +2 -6
  69. package/dist/static/styles/variables.css.js +2 -0
  70. package/dist/stores/autosave.js +12 -7
  71. package/dist/stores/editor.js +7 -4
  72. package/dist/stores/guido-email-editor.js +3 -1
  73. package/dist/stores/onboarding.js +43 -21
  74. package/dist/utils/pairProductVariables.js +71 -71
  75. package/dist/utils/timeUtil.js +6 -17
  76. package/package.json +1 -1
  77. package/dist/components/organisms/header/AutoSaveToggle.vue.js +0 -22
  78. package/dist/components/organisms/header/AutoSaveToggle.vue2.js +0 -19
  79. /package/dist/src/components/organisms/header/{AutoSaveToggle.vue.d.ts → AutoSaveStatus.vue.d.ts} +0 -0
package/dist/sprite.svg CHANGED
@@ -3107,6 +3107,12 @@
3107
3107
  <symbol viewBox="0 0 24 24" data-token-name="line-replace-dynamic-content" id="line-replace-dynamic-content">
3108
3108
  <path fill-rule="evenodd" clip-rule="evenodd" d="M10.8327 5.42341C11.2222 5.81502 11.221 6.44877 10.8301 6.83894C10.8013 6.86765 10.7712 6.89425 10.74 6.91873L8.70549 8.95706C8.31533 9.34795 7.68275 9.34795 7.29259 8.95706C6.90243 8.56617 6.90243 7.93242 7.29259 7.54153L7.73664 7.09666L7.00053 7.09662C6.44823 7.0966 6.00049 7.54432 6.00049 8.09662V10.0001C6.00049 10.5524 5.55277 11.0001 5.00049 11.0001C4.4482 11.0001 4.00049 10.5524 4.00049 10.0001V8.09662C4.00049 6.43972 5.34372 5.09655 7.00062 5.09662L7.6872 5.09665L7.30179 4.70909C6.91235 4.31748 6.91353 3.68372 7.30442 3.29356C7.69531 2.9034 8.32788 2.90458 8.71732 3.29619L10.8327 5.42341ZM12 6.00024C12 4.89567 12.8954 4.00024 14 4.00024H18C19.1046 4.00024 20 4.89567 20 6.00024V10.0002C20 11.1048 19.1046 12.0002 18 12.0002H14C12.8954 12.0002 12 11.1048 12 10.0002V6.00024ZM14 6.00024H18V10.0002H14V6.00024ZM4 14.0002C4 12.8957 4.89543 12.0002 6 12.0002H10C11.1046 12.0002 12 12.8957 12 14.0002V18.0002C12 19.1048 11.1046 20.0002 10 20.0002H6C4.89543 20.0002 4 19.1048 4 18.0002V14.0002ZM6 14.0002H10V18.0002H6V14.0002ZM13.2939 17.1612C12.9031 17.5513 12.9019 18.1851 13.2913 18.5767L15.4067 20.7039C15.7961 21.0955 16.4287 21.0967 16.8196 20.7065C17.2105 20.3164 17.2117 19.6826 16.8222 19.291L16.4368 18.9034L17.1234 18.9035C18.7803 18.9035 20.1235 17.5604 20.1235 15.9035V14C20.1235 13.4477 19.6758 13 19.1235 13C18.5713 13 18.1235 13.4477 18.1235 14L18.1235 15.9035C18.1235 16.4558 17.6758 16.9035 17.1235 16.9035L16.3874 16.9034L16.8314 16.4586C17.2216 16.0677 17.2216 15.4339 16.8314 15.043C16.4413 14.6522 15.8087 14.6522 15.4185 15.043L13.384 17.0814C13.3528 17.1058 13.3227 17.1324 13.2939 17.1612Z"/>
3109
3109
  </symbol>
3110
+ <symbol viewBox="0 0 24 24" id="line-accessibility">
3111
+ <g transform="translate(2 2)">
3112
+ <rect x="1" y="1" width="18" height="18" rx="9" fill="none" stroke="currentColor" stroke-width="2"/>
3113
+ <path fill="currentColor" d="M14.8125 6.08473C15.332 5.94828 15.6875 6.47668 15.6875 6.95875C15.6873 7.44052 15.2498 7.66778 14.8125 7.8318C14.798 7.83727 14.7826 7.84147 14.7676 7.84547L12.3262 8.69898C12.013 8.81663 11.8784 8.93913 11.8486 8.99391C11.848 8.99533 11.8475 8.9975 11.8467 8.99879C11.8153 9.05489 11.7235 9.29227 11.8379 10.0076L11.9961 11.238L12.8887 16.0154C12.8969 16.0521 12.9036 16.0895 12.9092 16.1267C12.9741 16.5696 12.6498 16.9997 12.0342 16.9998C11.4983 16.9998 11.2617 16.63 11.1592 16.1267C11.1592 16.1267 10.3701 11.8181 9.9873 11.8181C9.60444 11.8205 8.94137 15.6235 8.83887 16.1267C8.7363 16.63 8.49971 16.9998 7.96387 16.9998C7.34999 16.9996 7.02548 16.5711 7.08887 16.1296L7.0957 16.0955C7.09789 16.0818 7.09981 16.0676 7.10254 16.0545L7.9834 11.2371L8.1416 10.0066C8.17359 9.80644 8.26392 9.23379 8.15137 8.9441C8.11665 8.85389 8.0452 8.7492 7.7793 8.64723L5.17962 7.83495C5.17734 7.83424 5.17578 7.83212 5.17578 7.82972C5.17578 7.82745 5.17437 7.82541 5.17224 7.8246C4.74007 7.66146 4.31254 7.43412 4.3125 6.95777C4.31258 6.47553 4.66813 5.9482 5.1875 6.08473C5.26161 6.10405 5.33481 6.12744 5.40625 6.15504C6.12486 6.3593 8.37146 6.9607 9.98828 6.9607C11.7281 6.96068 14.1981 6.26431 14.707 6.115C14.7342 6.10658 14.7619 6.09917 14.7891 6.09156L14.7998 6.08766L14.8125 6.08473ZM9.70117 3.02906C9.99821 2.96998 10.3061 3.00106 10.5859 3.11695C10.8657 3.23286 11.1052 3.42866 11.2734 3.68043C11.4416 3.93217 11.5312 4.22828 11.5312 4.53101C11.5308 4.93693 11.369 5.326 11.082 5.61305C10.795 5.9001 10.406 6.06183 10 6.06226C9.69721 6.06226 9.40119 5.97264 9.14941 5.80445C8.89762 5.63621 8.70086 5.39673 8.58496 5.11695C8.46918 4.83725 8.439 4.52909 8.49805 4.23219C8.55716 3.93526 8.70292 3.6621 8.91699 3.44801C9.13112 3.23391 9.4042 3.08814 9.70117 3.02906Z"/>
3114
+ </g>
3115
+ </symbol>
3110
3116
  <svg viewBox="0 0 24 24" data-token-name="line-advanced-settings" id="line-advanced-settings">
3111
3117
  <path fill-rule="evenodd" clip-rule="evenodd" d="M16 3C15.4477 3 15 3.44772 15 4V6V8C15 8.55228 15.4477 9 16 9C16.5523 9 17 8.55228 17 8V7H20C20.5523 7 21 6.55228 21 6C21 5.44772 20.5523 5 20 5H17V4C17 3.44772 16.5523 3 16 3ZM3 6C3 5.44772 3.44772 5 4 5H12C12.5523 5 13 5.44772 13 6C13 6.55228 12.5523 7 12 7H4C3.44772 7 3 6.55228 3 6ZM16 15C15.4477 15 15 15.4477 15 16V18V20C15 20.5523 15.4477 21 16 21C16.5523 21 17 20.5523 17 20V19H20C20.5523 19 21 18.5523 21 18C21 17.4477 20.5523 17 20 17H17V16C17 15.4477 16.5523 15 16 15ZM3 18C3 17.4477 3.44772 17 4 17H12C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19H4C3.44772 19 3 18.5523 3 18ZM7 10C7 9.44772 7.44772 9 8 9C8.55228 9 9 9.44772 9 10V12V14C9 14.5523 8.55228 15 8 15C7.44772 15 7 14.5523 7 14V13H4C3.44772 13 3 12.5523 3 12C3 11.4477 3.44772 11 4 11H7V10ZM12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13H20C20.5523 13 21 12.5523 21 12C21 11.4477 20.5523 11 20 11H12Z"/>
3112
3118
  </svg>
@@ -3130,4 +3136,8 @@
3130
3136
  </clipPath>
3131
3137
  </defs>
3132
3138
  </svg>
3139
+ <symbol viewBox="0 0 24 24" id="line-no-image-v2">
3140
+ <path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M19.9062 4.1875C20.1565 3.9376 20.5624 3.93741 20.8125 4.1875C21.0626 4.4376 21.0624 4.84353 20.8125 5.09375L19.9062 6L20.8125 6.90625C21.0624 7.15645 21.0626 7.56238 20.8125 7.8125C20.5624 8.06262 20.1565 8.06246 19.9062 7.8125L19 6.90625L18.0938 7.8125C17.8435 8.06241 17.4376 8.0626 17.1875 7.8125C16.9374 7.5624 16.9376 7.15647 17.1875 6.90625L18.0938 6L17.1875 5.09375C16.9376 4.84352 16.9374 4.43759 17.1875 4.1875C17.4376 3.93746 17.8435 3.93766 18.0938 4.1875L19 5.09375L19.9062 4.1875ZM14 4C14.5523 4 15 4.44772 15 5C15 5.55228 14.5523 6 14 6C13.4477 6 13 5.55228 13 5C13 4.44772 13.4477 4 14 4Z"/>
3141
+ <path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M14 6H5V18H6.43652L10.2764 12.6182C10.8633 11.8405 11.9837 11.7886 12.6357 12.5088L14.6504 14.7734L18.3545 10.3965L18.4424 10.3008C19.3653 9.37025 21 10.0117 21 11.3652V18C21 19.1046 20.1046 20 19 20H5C3.89543 20 3 19.1046 3 18V6C3 4.89543 3.89543 4 5 4H14V6ZM9.00098 18H14.7109L11.5371 14.4268L9.00098 18ZM15.9932 16.2822L17.5205 18H19V12.7295L15.9932 16.2822ZM8.5 8C9.32843 8 10 8.67157 10 9.5C10 10.3284 9.32843 11 8.5 11C7.67157 11 7 10.3284 7 9.5C7 8.67157 7.67157 8 8.5 8Z"/>
3142
+ </symbol>
3133
3143
  </svg>
@@ -407,6 +407,7 @@ export declare const FeaturesSchema: v.ObjectSchema<{
407
407
  readonly liquidSyntax: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
408
408
  /** Enable autosave (3-min interval + tab-hide). User toggles on/off from the header. */
409
409
  readonly autosave: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
410
+ readonly accessibilityTesting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
410
411
  /** Enable pre-save domain-allowlist validation (opt-in; Guido self-serves the block toaster) */
411
412
  readonly allowlistEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
412
413
  /** Enable persistent link tracking-id assignment for the click heatmap (opt-in) */
@@ -823,6 +824,7 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
823
824
  readonly liquidSyntax: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
824
825
  /** Enable autosave (3-min interval + tab-hide). User toggles on/off from the header. */
825
826
  readonly autosave: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
827
+ readonly accessibilityTesting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
826
828
  /** Enable pre-save domain-allowlist validation (opt-in; Guido self-serves the block toaster) */
827
829
  readonly allowlistEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
828
830
  /** Enable persistent link tracking-id assignment for the click heatmap (opt-in) */
@@ -1,2 +1,4 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ saveSilent: () => Promise<Omit<import("../../@types/stripo").SavedTemplateDetails, "metadata" | "silent"> | undefined>;
3
+ }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
4
  export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -1,4 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
2
- handleSave: (isSilent: boolean) => Promise<Omit<import("../../../@types/stripo.js").SavedTemplateDetails, "metadata" | "silent"> | undefined> | undefined;
3
- }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
4
2
  export default _default;
@@ -1,4 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
2
- handleSave: (isSilent: boolean) => Promise<Omit<import("../../../@types/stripo.js").SavedTemplateDetails, "metadata" | "silent"> | undefined> | undefined;
3
- }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
4
2
  export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import type { ColorVisionDeficiency } from '@@/Types/api/accessibility-api';
2
+ export declare const useAccessibilityApi: () => {
3
+ openAccessibilityTestingMode: () => void;
4
+ closeAccessibilityTestingMode: () => void;
5
+ toggleAccessibilityTestingMode: () => void;
6
+ showImages: () => void;
7
+ hideImages: () => void;
8
+ toggleImages: () => void;
9
+ setColorVisionDeficiency: (type: ColorVisionDeficiency) => void;
10
+ switchToDesktopPreview: () => void;
11
+ switchToMobilePreview: () => void;
12
+ toggleCodeEditor: () => void;
13
+ };
@@ -1,5 +1,5 @@
1
- import type { CompileEmailOptions } from '@@/Types/actions-api';
2
- import { GetCompiledEmailOptions, CompiledEmailResult, TemplateData } from '@@/Types/actions-api';
1
+ import type { CompileEmailOptions } from '@@/Types/api/actions-api';
2
+ import { GetCompiledEmailOptions, CompiledEmailResult, TemplateData } from '@@/Types/api/actions-api';
3
3
  export declare const useActionsApi: () => {
4
4
  getCompiledEmail: (options?: GetCompiledEmailOptions) => Promise<CompiledEmailResult>;
5
5
  getTemplateData: () => Promise<TemplateData>;
@@ -100,6 +100,7 @@ export declare const useConfig: () => {
100
100
  modulesDisabled: boolean;
101
101
  liquidSyntax: boolean;
102
102
  autosave: boolean;
103
+ accessibilityTesting: boolean;
103
104
  allowlistEnabled: boolean;
104
105
  linkTrackingIds: boolean;
105
106
  reusableRecommendationStrategy: boolean;
@@ -238,6 +239,7 @@ export declare const useConfig: () => {
238
239
  modulesDisabled: boolean;
239
240
  liquidSyntax: boolean;
240
241
  autosave: boolean;
242
+ accessibilityTesting: boolean;
241
243
  allowlistEnabled: boolean;
242
244
  linkTrackingIds: boolean;
243
245
  reusableRecommendationStrategy: boolean;
@@ -17,12 +17,11 @@
17
17
  * - `error` segments (and message-level `isError` / `isCancelled`) trigger
18
18
  * a localized toaster.
19
19
  *
20
+ * Every apply settles into a terminal `applyAcks` entry, so cortex moves its button on the write, not the click.
21
+ *
20
22
  * In dev (`import.meta.env.DEV`) every observed segment + message-level flag
21
23
  * change is also `console.debug`-logged with the prefix `[guido:cortex]` so a
22
24
  * developer can watch the agent stream in real time. In production this is
23
25
  * gated behind `localStorage.guido:debug:ai === '1'`.
24
- *
25
- * If cortex-fe isn't loaded the chat store is undefined and the bridge is a
26
- * no-op (intentional — Guido must still work standalone).
27
26
  */
28
27
  export declare const useCortexBlueprintBridge: () => void;
@@ -1,4 +1,16 @@
1
1
  type ApplyStatus = 'pending' | 'applying' | 'applied' | 'failed';
2
+ /**
3
+ * Terminal outcome of an apply; every promise here settles with one, since the bridge acks on it.
4
+ * `superseded`: a newer payload for the same key replaced this one and owns the ack.
5
+ */
6
+ export type ApplyOutcome = {
7
+ status: 'applied';
8
+ } | {
9
+ status: 'failed';
10
+ error: unknown;
11
+ } | {
12
+ status: 'superseded';
13
+ };
2
14
  /**
3
15
  * Applies email_template blueprints from the chat agent to the Stripo editor.
4
16
  *
@@ -9,18 +21,19 @@ type ApplyStatus = 'pending' | 'applying' | 'applied' | 'failed';
9
21
  * - manual Apply click (first apply): immediate.
10
22
  * - blueprint_update after the user has applied once: debounced 250 ms trailing
11
23
  * so rapid mid-stream updates don't thrash updateHtmlAndCss.
24
+ * - a click before Stripo is ready is queued and flushed when `isStripoInitialized` flips.
12
25
  */
13
26
  export declare const useEmailTemplateApplier: () => {
14
27
  applyStatus: import("vue").Ref<Record<string, ApplyStatus>>;
15
- markPending: (blueprintId: string) => void;
16
- applyTemplate: (blueprintId: string, data: {
28
+ markPending: (key: string) => void;
29
+ applyTemplate: (key: string, data: {
17
30
  html?: string;
18
31
  css?: string;
19
- }) => void;
20
- applyTemplateDebounced: (blueprintId: string, data: {
32
+ }) => Promise<ApplyOutcome>;
33
+ applyTemplateDebounced: (key: string, data: {
21
34
  html?: string;
22
35
  css?: string;
23
- }) => void;
36
+ }) => Promise<ApplyOutcome>;
24
37
  };
25
38
  export declare const resetEmailTemplateApplier: () => void;
26
39
  export {};
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Single owner for the Items card orientation-dependent layout contract (SD-149368).
3
+ *
4
+ * Two things depend on a card's orientation and are written across several layers:
5
+ *
6
+ * 1. Name column width — a horizontal card lays the name in a narrow side-by-side
7
+ * column, so it is capped; a vertical card gives it a full-width row.
8
+ * 2. Block-cell padding — the collapsible price / original-price block-cell carries its
9
+ * own inter-cell spacing (horizontal cards pad left/right, vertical cards pad
10
+ * top/bottom) so a hidden element removes its own spacing instead of leaving a gap.
11
+ *
12
+ * Every layer that writes these — template render, layouts/horizontal.html,
13
+ * NameTrimmingControl (trimming toggle) and settingsControl (orientation change) — MUST
14
+ * derive them here, or a migrated / re-toggled card silently drifts out of sync with
15
+ * freshly generated markup (convention B1: cross-layer literals live in one module).
16
+ */
17
+ export declare const NAME_HORIZONTAL_MAX_WIDTH = "130px";
18
+ export declare const NAME_VERTICAL_MAX_WIDTH = "100%";
19
+ /** Name max-width for a card orientation. Non-horizontal (incl. undefined) → full width. */
20
+ export declare const nameMaxWidthFor: (orientation?: string) => string;
21
+ /** Orientation-dependent inter-cell padding classes for a collapsible block-cell. */
22
+ export declare const BLOCK_CELL_PADDING: {
23
+ readonly VERTICAL: "es-p5b es-p5t";
24
+ readonly HORIZONTAL: "es-p5l es-p5r";
25
+ };
26
+ /**
27
+ * Attribute the block-cell carries to mark its LAYOUT-owned padding orientation ('v'|'h').
28
+ * The orientation toggle keys off this marker so it only ever rewrites the padding the
29
+ * layout itself baked — a user's own es-p* padding classes are never matched or clobbered
30
+ * (SD-149368 F1), and a cell without the marker is left untouched rather than mis-swapped.
31
+ */
32
+ export declare const BLOCK_CELL_PAD_ATTR = "data-items-cell-pad";
33
+ /** Marker attribute (`data-items-cell-pad="v|h"`) for a block-cell in the given orientation. */
34
+ export declare const blockCellPadMarker: (isVertical: boolean) => string;
35
+ /** Padding classes (leading space included) for a block-cell in the given orientation. */
36
+ export declare const blockCellPaddingFor: (isVertical: boolean) => string;
37
+ /**
38
+ * Rewrites a block-cell's LAYOUT-owned padding classes to the target orientation, keyed off
39
+ * the BLOCK_CELL_PAD_ATTR marker. The orientation-change rebuild re-injects existing cells
40
+ * via getOuterHTML(), which still carry the previous orientation's padding — swap only the
41
+ * layout pair (and flip the marker) so price/original-price cells stay padded after a toggle
42
+ * (SD-149368 F3), while a user's own padding and any unmarked cell are left alone (F1).
43
+ */
44
+ export declare const reorientBlockCellPadding: (html: string, toVertical: boolean) => string;
@@ -39,14 +39,17 @@ export declare const productPairs: {
39
39
  CART_ITEMS: {
40
40
  ATTR: string;
41
41
  DEFAULT: string;
42
+ LEGACY_DEFAULTS: readonly string[];
42
43
  };
43
44
  BROWSED_ITEMS: {
44
45
  ATTR: string;
45
46
  DEFAULT: string;
47
+ LEGACY_DEFAULTS: readonly string[];
46
48
  };
47
49
  PURCHASED_ITEMS: {
48
50
  ATTR: string;
49
51
  DEFAULT: string;
52
+ LEGACY_DEFAULTS: readonly string[];
50
53
  };
51
54
  };
52
55
  price: {
@@ -37,6 +37,25 @@ type TemplateParameters = {
37
37
  /** Price orientation within the card ('vertical' = stacked, 'horizontal' = side-by-side) */
38
38
  priceOrientation?: PriceOrientationType;
39
39
  };
40
+ /**
41
+ * Applies price orientation styles to the generated HTML template.
42
+ *
43
+ * For Vertical Layout:
44
+ * - vertical price orientation: both cells 100% (stacked)
45
+ * - horizontal price orientation with both visible: both cells 50% (side-by-side)
46
+ * - horizontal price orientation with one hidden: visible cell 100%
47
+ *
48
+ * For Horizontal Layout:
49
+ * - horizontal price orientation: .horizontal-price visible, .vertical-price hidden
50
+ * - vertical price orientation: .horizontal-price hidden, .vertical-price visible
51
+ * @param html - The HTML template string with placeholders replaced
52
+ * @param layoutOrientation - The card layout orientation ('vertical' or 'horizontal')
53
+ * @param priceOrientation - The price orientation within the card ('vertical' or 'horizontal')
54
+ * @param isPriceVisible - Whether the price element is visible
55
+ * @param isOriginalPriceVisible - Whether the original price element is visible
56
+ * @returns HTML string with price orientation styles applied
57
+ */
58
+ export declare const applyPriceOrientationStyles: (html: string, layoutOrientation: OrientationType, priceOrientation: PriceOrientationType, isPriceVisible?: boolean, isOriginalPriceVisible?: boolean) => string;
40
59
  /**
41
60
  * Generates the default template for the Items Block.
42
61
  * @param params - Template parameters including orientation, items type, item ID, and formatting options
@@ -22,9 +22,6 @@ export declare class RecommendationBlockControl extends CommonControl {
22
22
  private storeUnsubscription;
23
23
  private pendingNodeConfigWrite;
24
24
  private pendingConfigFlushTimer;
25
- private seenConfigVersion;
26
- private fetchedConfigVersion;
27
- private hasUnappliedConfigChange;
28
25
  private algorithmControl;
29
26
  private localeControl;
30
27
  private currencyControl;
@@ -130,11 +127,6 @@ export declare class RecommendationBlockControl extends CommonControl {
130
127
  * Debounced product fetch to prevent rapid API calls during config changes
131
128
  */
132
129
  private _debouncedFetchProducts;
133
- /**
134
- * Fetches and renders the block's products without the panel, carrying the
135
- * deferred config write so both still land as one undo entry.
136
- */
137
- private _refreshProductsOutsidePanel;
138
130
  /**
139
131
  * Debounced content update when products arrive from API.
140
132
  *
@@ -9,4 +9,76 @@ export declare const useAutosaveStore: import("pinia").StoreDefinition<"guidoAut
9
9
  isOn: boolean;
10
10
  lastSavedAt: Date | null;
11
11
  status: AutosaveStatus;
12
- }, {}, {}>;
12
+ }, {
13
+ hasStatusLabel: (state: {
14
+ isOn: boolean;
15
+ lastSavedAt: {
16
+ toString: () => string;
17
+ toDateString: () => string;
18
+ toTimeString: () => string;
19
+ toLocaleString: {
20
+ (): string;
21
+ (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
22
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
23
+ };
24
+ toLocaleDateString: {
25
+ (): string;
26
+ (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
27
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
28
+ };
29
+ toLocaleTimeString: {
30
+ (): string;
31
+ (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
32
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
33
+ };
34
+ valueOf: () => number;
35
+ getTime: () => number;
36
+ getFullYear: () => number;
37
+ getUTCFullYear: () => number;
38
+ getMonth: () => number;
39
+ getUTCMonth: () => number;
40
+ getDate: () => number;
41
+ getUTCDate: () => number;
42
+ getDay: () => number;
43
+ getUTCDay: () => number;
44
+ getHours: () => number;
45
+ getUTCHours: () => number;
46
+ getMinutes: () => number;
47
+ getUTCMinutes: () => number;
48
+ getSeconds: () => number;
49
+ getUTCSeconds: () => number;
50
+ getMilliseconds: () => number;
51
+ getUTCMilliseconds: () => number;
52
+ getTimezoneOffset: () => number;
53
+ setTime: (time: number) => number;
54
+ setMilliseconds: (ms: number) => number;
55
+ setUTCMilliseconds: (ms: number) => number;
56
+ setSeconds: (sec: number, ms?: number) => number;
57
+ setUTCSeconds: (sec: number, ms?: number) => number;
58
+ setMinutes: (min: number, sec?: number, ms?: number) => number;
59
+ setUTCMinutes: (min: number, sec?: number, ms?: number) => number;
60
+ setHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
61
+ setUTCHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
62
+ setDate: (date: number) => number;
63
+ setUTCDate: (date: number) => number;
64
+ setMonth: (month: number, date?: number) => number;
65
+ setUTCMonth: (month: number, date?: number) => number;
66
+ setFullYear: (year: number, month?: number, date?: number) => number;
67
+ setUTCFullYear: (year: number, month?: number, date?: number) => number;
68
+ toUTCString: () => string;
69
+ toISOString: () => string;
70
+ toJSON: (key?: any) => string;
71
+ [Symbol.toPrimitive]: {
72
+ (hint: "default"): string;
73
+ (hint: "string"): string;
74
+ (hint: "number"): number;
75
+ (hint: string): string | number;
76
+ };
77
+ } | null;
78
+ status: AutosaveStatus;
79
+ } & import("pinia").PiniaCustomStateProperties<{
80
+ isOn: boolean;
81
+ lastSavedAt: Date | null;
82
+ status: AutosaveStatus;
83
+ }>) => boolean;
84
+ }, {}>;
@@ -105,6 +105,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
105
105
  modulesDisabled: boolean;
106
106
  liquidSyntax: boolean;
107
107
  autosave: boolean;
108
+ accessibilityTesting: boolean;
108
109
  allowlistEnabled: boolean;
109
110
  linkTrackingIds: boolean;
110
111
  reusableRecommendationStrategy: boolean;
@@ -249,6 +250,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
249
250
  modulesDisabled: boolean;
250
251
  liquidSyntax: boolean;
251
252
  autosave: boolean;
253
+ accessibilityTesting: boolean;
252
254
  allowlistEnabled: boolean;
253
255
  linkTrackingIds: boolean;
254
256
  reusableRecommendationStrategy: boolean;
@@ -393,6 +395,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
393
395
  modulesDisabled: boolean;
394
396
  liquidSyntax: boolean;
395
397
  autosave: boolean;
398
+ accessibilityTesting: boolean;
396
399
  allowlistEnabled: boolean;
397
400
  linkTrackingIds: boolean;
398
401
  reusableRecommendationStrategy: boolean;
@@ -537,6 +540,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
537
540
  modulesDisabled: boolean;
538
541
  liquidSyntax: boolean;
539
542
  autosave: boolean;
543
+ accessibilityTesting: boolean;
540
544
  allowlistEnabled: boolean;
541
545
  linkTrackingIds: boolean;
542
546
  reusableRecommendationStrategy: boolean;
@@ -681,6 +685,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
681
685
  modulesDisabled: boolean;
682
686
  liquidSyntax: boolean;
683
687
  autosave: boolean;
688
+ accessibilityTesting: boolean;
684
689
  allowlistEnabled: boolean;
685
690
  linkTrackingIds: boolean;
686
691
  reusableRecommendationStrategy: boolean;
@@ -825,6 +830,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
825
830
  modulesDisabled: boolean;
826
831
  liquidSyntax: boolean;
827
832
  autosave: boolean;
833
+ accessibilityTesting: boolean;
828
834
  allowlistEnabled: boolean;
829
835
  linkTrackingIds: boolean;
830
836
  reusableRecommendationStrategy: boolean;
@@ -969,6 +975,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
969
975
  modulesDisabled: boolean;
970
976
  liquidSyntax: boolean;
971
977
  autosave: boolean;
978
+ accessibilityTesting: boolean;
972
979
  allowlistEnabled: boolean;
973
980
  linkTrackingIds: boolean;
974
981
  reusableRecommendationStrategy: boolean;
@@ -1113,6 +1120,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1113
1120
  modulesDisabled: boolean;
1114
1121
  liquidSyntax: boolean;
1115
1122
  autosave: boolean;
1123
+ accessibilityTesting: boolean;
1116
1124
  allowlistEnabled: boolean;
1117
1125
  linkTrackingIds: boolean;
1118
1126
  reusableRecommendationStrategy: boolean;
@@ -1257,6 +1265,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1257
1265
  modulesDisabled: boolean;
1258
1266
  liquidSyntax: boolean;
1259
1267
  autosave: boolean;
1268
+ accessibilityTesting: boolean;
1260
1269
  allowlistEnabled: boolean;
1261
1270
  linkTrackingIds: boolean;
1262
1271
  reusableRecommendationStrategy: boolean;
@@ -1401,6 +1410,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1401
1410
  modulesDisabled: boolean;
1402
1411
  liquidSyntax: boolean;
1403
1412
  autosave: boolean;
1413
+ accessibilityTesting: boolean;
1404
1414
  allowlistEnabled: boolean;
1405
1415
  linkTrackingIds: boolean;
1406
1416
  reusableRecommendationStrategy: boolean;
@@ -1545,6 +1555,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1545
1555
  modulesDisabled: boolean;
1546
1556
  liquidSyntax: boolean;
1547
1557
  autosave: boolean;
1558
+ accessibilityTesting: boolean;
1548
1559
  allowlistEnabled: boolean;
1549
1560
  linkTrackingIds: boolean;
1550
1561
  reusableRecommendationStrategy: boolean;
@@ -1689,6 +1700,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1689
1700
  modulesDisabled: boolean;
1690
1701
  liquidSyntax: boolean;
1691
1702
  autosave: boolean;
1703
+ accessibilityTesting: boolean;
1692
1704
  allowlistEnabled: boolean;
1693
1705
  linkTrackingIds: boolean;
1694
1706
  reusableRecommendationStrategy: boolean;
@@ -1833,6 +1845,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1833
1845
  modulesDisabled: boolean;
1834
1846
  liquidSyntax: boolean;
1835
1847
  autosave: boolean;
1848
+ accessibilityTesting: boolean;
1836
1849
  allowlistEnabled: boolean;
1837
1850
  linkTrackingIds: boolean;
1838
1851
  reusableRecommendationStrategy: boolean;
@@ -1977,6 +1990,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1977
1990
  modulesDisabled: boolean;
1978
1991
  liquidSyntax: boolean;
1979
1992
  autosave: boolean;
1993
+ accessibilityTesting: boolean;
1980
1994
  allowlistEnabled: boolean;
1981
1995
  linkTrackingIds: boolean;
1982
1996
  reusableRecommendationStrategy: boolean;
@@ -2121,6 +2135,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2121
2135
  modulesDisabled: boolean;
2122
2136
  liquidSyntax: boolean;
2123
2137
  autosave: boolean;
2138
+ accessibilityTesting: boolean;
2124
2139
  allowlistEnabled: boolean;
2125
2140
  linkTrackingIds: boolean;
2126
2141
  reusableRecommendationStrategy: boolean;
@@ -2265,6 +2280,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2265
2280
  modulesDisabled: boolean;
2266
2281
  liquidSyntax: boolean;
2267
2282
  autosave: boolean;
2283
+ accessibilityTesting: boolean;
2268
2284
  allowlistEnabled: boolean;
2269
2285
  linkTrackingIds: boolean;
2270
2286
  reusableRecommendationStrategy: boolean;
@@ -2409,6 +2425,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2409
2425
  modulesDisabled: boolean;
2410
2426
  liquidSyntax: boolean;
2411
2427
  autosave: boolean;
2428
+ accessibilityTesting: boolean;
2412
2429
  allowlistEnabled: boolean;
2413
2430
  linkTrackingIds: boolean;
2414
2431
  reusableRecommendationStrategy: boolean;
@@ -2553,6 +2570,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2553
2570
  modulesDisabled: boolean;
2554
2571
  liquidSyntax: boolean;
2555
2572
  autosave: boolean;
2573
+ accessibilityTesting: boolean;
2556
2574
  allowlistEnabled: boolean;
2557
2575
  linkTrackingIds: boolean;
2558
2576
  reusableRecommendationStrategy: boolean;
@@ -2697,6 +2715,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2697
2715
  modulesDisabled: boolean;
2698
2716
  liquidSyntax: boolean;
2699
2717
  autosave: boolean;
2718
+ accessibilityTesting: boolean;
2700
2719
  allowlistEnabled: boolean;
2701
2720
  linkTrackingIds: boolean;
2702
2721
  reusableRecommendationStrategy: boolean;
@@ -2843,6 +2862,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2843
2862
  modulesDisabled: boolean;
2844
2863
  liquidSyntax: boolean;
2845
2864
  autosave: boolean;
2865
+ accessibilityTesting: boolean;
2846
2866
  allowlistEnabled: boolean;
2847
2867
  linkTrackingIds: boolean;
2848
2868
  reusableRecommendationStrategy: boolean;