@useinsider/guido 3.20.0-beta.05ce01c → 3.20.0-beta.11a0bde

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 (26) hide show
  1. package/dist/components/Guido.vue.js +1 -1
  2. package/dist/components/Guido.vue2.js +69 -69
  3. package/dist/components/organisms/AutoSaveController.vue2.js +9 -10
  4. package/dist/components/organisms/header/EditorActions.vue.js +4 -4
  5. package/dist/components/organisms/header/EditorActions.vue2.js +51 -53
  6. package/dist/components/organisms/validation/ValidationErrorDrawer.vue.js +3 -3
  7. package/dist/components/organisms/validation/ValidationErrorDrawer.vue2.js +22 -23
  8. package/dist/composables/useAutoSave.js +44 -46
  9. package/dist/composables/useSave.js +23 -26
  10. package/dist/composables/useSaveValidation.js +53 -55
  11. package/dist/composables/useSaveValidationRollout.js +6 -17
  12. package/dist/extensions/Blocks/Recommendation/utils/legacyStrategyMigration.js +9 -9
  13. package/dist/extensions/Blocks/Recommendation/utils/productIds.js +5 -3
  14. package/dist/guido.css +1 -1
  15. package/dist/src/components/Guido.vue.d.ts +1 -1
  16. package/dist/src/components/organisms/header/EditorActions.vue.d.ts +1 -1
  17. package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +1 -1
  18. package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -1
  19. package/dist/src/composables/useAutoSave.d.ts +1 -4
  20. package/dist/src/composables/useSaveValidationRollout.d.ts +0 -1
  21. package/dist/src/extensions/Blocks/Recommendation/utils/productIds.d.ts +2 -0
  22. package/package.json +1 -1
  23. package/dist/services/settingsApi.js +0 -11
  24. package/dist/src/services/settingsApi.d.ts +0 -6
  25. package/dist/src/stores/setup-settings.d.ts +0 -4
  26. package/dist/stores/setup-settings.js +0 -10
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<{}, {
8
8
  ampErrors: string[];
9
9
  modules: number[];
10
10
  recommendation: {
11
- campaignUrls?: Record<string, import("../../../@types/recommendation.js").RecommendationCampaignUrlValue>;
11
+ campaignUrls: Record<string, import("../../../@types/recommendation.js").RecommendationCampaignUrlValue>;
12
12
  configs: Record<string, string>;
13
13
  };
14
14
  unsubscribe: {
@@ -1,6 +1,3 @@
1
1
  type SaveSilent = () => Promise<unknown>;
2
- interface AutoSaveOptions {
3
- clearsChanges?: () => boolean;
4
- }
5
- export declare const useAutoSave: (saveSilent: SaveSilent, { clearsChanges }?: AutoSaveOptions) => void;
2
+ export declare const useAutoSave: (saveSilent: SaveSilent) => void;
6
3
  export {};
@@ -1,4 +1,3 @@
1
1
  export declare const useSaveValidationRollout: () => {
2
2
  isEnabled: import("vue").ComputedRef<boolean>;
3
- loadRollout: () => Promise<void>;
4
3
  };
@@ -1,3 +1,5 @@
1
+ /** Separator between product ids in the `sanitizeProductIds` output */
2
+ export declare const PRODUCT_ID_SEPARATOR = ",";
1
3
  /**
2
4
  * Builds the request/URL `productId` value from raw product ID segments.
3
5
  * Trimming happens here — NOT on input change — so the user's in-progress
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.20.0-beta.05ce01c",
3
+ "version": "3.20.0-beta.11a0bde",
4
4
  "description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
5
5
  "main": "./dist/guido.umd.cjs",
6
6
  "module": "./dist/library.js",
@@ -1,11 +0,0 @@
1
- import { useHttp as s } from "../composables/useHttp.js";
2
- const n = "/newsletter/settings/get-setup-settings", o = () => {
3
- const { get: t } = s();
4
- return { getSetupSettings: async () => {
5
- const { data: e } = await t(n);
6
- return e ?? {};
7
- } };
8
- };
9
- export {
10
- o as useSettingsApi
11
- };
@@ -1,6 +0,0 @@
1
- export interface SetupSettingsResponse {
2
- isEmailAutoSaveEnabled?: boolean | number;
3
- }
4
- export declare const useSettingsApi: () => {
5
- getSetupSettings: () => Promise<SetupSettingsResponse>;
6
- };
@@ -1,4 +0,0 @@
1
- export declare const useSetupSettingsStore: import("pinia").StoreDefinition<"guidoSetupSettings", {
2
- isEmailAutoSaveEnabled: boolean;
3
- isLoaded: boolean;
4
- }, {}, {}>;
@@ -1,10 +0,0 @@
1
- import { defineStore as e } from "pinia";
2
- const o = e("guidoSetupSettings", {
3
- state: () => ({
4
- isEmailAutoSaveEnabled: !1,
5
- isLoaded: !1
6
- })
7
- });
8
- export {
9
- o as useSetupSettingsStore
10
- };