@useinsider/guido 1.0.3-beta.4f1bcc0 → 1.0.3-beta.4f5545f
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/README.md +0 -4
- package/dist/components/Guido.vue.js +9 -11
- package/dist/components/Guido.vue2.js +14 -14
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +9 -9
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +17 -30
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +10 -12
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +18 -19
- package/dist/config/migrator/index.js +6 -7
- package/dist/enums/defaults.js +3 -4
- package/dist/enums/onboarding.js +1 -2
- package/dist/extensions/Blocks/Recommendation/block.js +3 -6
- package/dist/extensions/Blocks/Recommendation/control.js +40 -69
- package/dist/extensions/Blocks/Recommendation/extension.js +7 -42
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +22 -107
- package/dist/extensions/Blocks/Recommendation/template.js +200 -0
- package/dist/extensions/Blocks/common-control.js +43 -125
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +100 -307
- package/dist/package.json.js +1 -1
- package/dist/src/@types/generic.d.ts +0 -6
- package/dist/src/components/Guido.vue.d.ts +0 -1
- package/dist/src/components/organisms/onboarding/NewVersionPopup.vue.d.ts +1 -3
- package/dist/src/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +1 -3
- package/dist/src/enums/onboarding.d.ts +0 -1
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +0 -1
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -6
- package/dist/src/extensions/Blocks/Recommendation/template.d.ts +6 -0
- package/dist/src/extensions/Blocks/common-control.d.ts +0 -21
- package/dist/src/stores/config.d.ts +0 -1
- package/dist/src/utils/dateUtil.d.ts +0 -21
- package/dist/static/styles/customEditorStyle.css.js +0 -5
- package/dist/utils/dateUtil.js +3 -24
- package/package.json +3 -3
- package/dist/config/migrator/recommendationMigrator.js +0 -293
- package/dist/enums/date.js +0 -6
- package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +0 -103
- package/dist/extensions/Blocks/Recommendation/constants.js +0 -5
- package/dist/extensions/Blocks/Recommendation/controls/button/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/border.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/text.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +0 -160
- package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +0 -152
- package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +0 -180
- package/dist/src/config/migrator/recommendationMigrator.d.ts +0 -1
- package/dist/src/enums/date.d.ts +0 -4
- package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +0 -28
- package/dist/src/extensions/Blocks/Recommendation/constants.d.ts +0 -51
- package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/migrationTemplate.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +0 -44
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ButtonPaddingsBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
-
class i extends o {
|
|
4
|
-
getId() {
|
|
5
|
-
return e.BUTTON_PADDINGS;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(t) {
|
|
8
|
-
return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
i as ButtonPaddingsControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ButtonTextBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
-
class c extends o {
|
|
4
|
-
getId() {
|
|
5
|
-
return e.BUTTON_TEXT;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(t) {
|
|
8
|
-
return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
c as ButtonTextControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ButtonTextSizeBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as o, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
-
class s extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return o.BUTTON_TEXT_SIZE;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(t) {
|
|
8
|
-
return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
s as ButtonTextSizeControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ButtonTextStyleAndFontColorBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
-
class s extends o {
|
|
4
|
-
getId() {
|
|
5
|
-
return e.BUTTON_TEXT_STYLE_AND_FONT_COLOR;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(t) {
|
|
8
|
-
return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
s as ButtonTextStyleAndFontColorControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ImageMarginsBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
-
class l extends o {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.IMAGE_MARGINS;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(e) {
|
|
8
|
-
return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.IMAGE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
l as ImageMarginsControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ImageSizeBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
-
class s extends o {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.IMAGE_SIZE;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(e) {
|
|
8
|
-
return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.IMAGE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
s as ImageSizeControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextAlignBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
-
class m extends o {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.NAME_ALIGN;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(e) {
|
|
8
|
-
return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.NAME}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
m as NameAlignControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextBlockBackgroundBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
-
class m extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.NAME_BACKGROUND;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(o) {
|
|
8
|
-
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.NAME}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
m as NameBackgroundControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextColorBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
-
class m extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.NAME_COLOR;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(o) {
|
|
8
|
-
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.NAME}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
m as NameColorControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextFontFamilyBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
-
class d extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.NAME_FONT_FAMILY;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(o) {
|
|
8
|
-
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.NAME}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
d as NameFontFamilyControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextPaddingsBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
-
class c extends o {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.NAME_PADDINGS;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(e) {
|
|
8
|
-
return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.NAME}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
c as NamePaddingsControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextSizeBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
-
class m extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.NAME_SIZE;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(o) {
|
|
8
|
-
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.NAME}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
m as NameSizeControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextStyleBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
-
class m extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.NAME_STYLE;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(o) {
|
|
8
|
-
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.NAME}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
m as NameStyleControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextAlignBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
-
class i extends o {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.OLD_PRICE_ALIGN;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(e) {
|
|
8
|
-
return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.OLD_PRICE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
i as OldPriceAlignControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextBlockBackgroundBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as r, RecommendationBlockId as t } from "../../constants.js";
|
|
3
|
-
class i extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return r.OLD_PRICE_BACKGROUND;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(o) {
|
|
8
|
-
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${t.OLD_PRICE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
i as OldPriceBackgroundControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextColorBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as r, RecommendationBlockId as t } from "../../constants.js";
|
|
3
|
-
class i extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return r.OLD_PRICE_COLOR;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(o) {
|
|
8
|
-
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${t.OLD_PRICE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
i as OldPriceColorControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextFontFamilyBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
-
class i extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.OLD_PRICE_FONT_FAMILY;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(o) {
|
|
8
|
-
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.OLD_PRICE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
i as OldPriceFontFamilyControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextPaddingsBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
-
class i extends o {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.OLD_PRICE_PADDINGS;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(e) {
|
|
8
|
-
return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.OLD_PRICE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
i as OldPricePaddingsControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextSizeBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
-
class i extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.OLD_PRICE_SIZE;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(o) {
|
|
8
|
-
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.OLD_PRICE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
i as OldPriceSizeControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextStyleBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
-
class i extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.OLD_PRICE_STYLE;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(o) {
|
|
8
|
-
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.OLD_PRICE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
i as OldPriceStyleControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextAlignBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
-
class d extends o {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.PRICE_ALIGN;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(e) {
|
|
8
|
-
return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.PRICE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
d as PriceAlignControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextBlockBackgroundBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as r, RecommendationBlockId as t } from "../../constants.js";
|
|
3
|
-
class i extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return r.PRICE_BACKGROUND;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(o) {
|
|
8
|
-
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${t.PRICE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
i as PriceBackgroundControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextColorBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as r, RecommendationBlockId as t } from "../../constants.js";
|
|
3
|
-
class i extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return r.PRICE_COLOR;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(o) {
|
|
8
|
-
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${t.PRICE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
i as PriceColorControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextFontFamilyBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
-
class d extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.PRICE_FONT_FAMILY;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(o) {
|
|
8
|
-
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.PRICE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
d as PriceFontFamilyControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextPaddingsBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
-
class l extends o {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.PRICE_PADDINGS;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(e) {
|
|
8
|
-
return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.PRICE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
l as PricePaddingsControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextSizeBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
-
class l extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.PRICE_SIZE;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(o) {
|
|
8
|
-
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.PRICE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
l as PriceSizeControl
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TextStyleBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
-
class i extends e {
|
|
4
|
-
getId() {
|
|
5
|
-
return t.PRICE_STYLE;
|
|
6
|
-
}
|
|
7
|
-
getTargetNodes(o) {
|
|
8
|
-
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.PRICE}"]`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
i as PriceStyleControl
|
|
13
|
-
};
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { BlockType as t, BlockAttr as n } from "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationBlockId as o } from "../constants.js";
|
|
3
|
-
import { spacer as l, generateTemplate as s, prepareProductRows as d, DEFAULTS as p, getDefaultProducts as i } from "./templateUtils.js";
|
|
4
|
-
import { DEFAULT_CARD_COMPOSITION as $ } from "./templateUtils.js";
|
|
5
|
-
const g = `
|
|
6
|
-
<td align="left" class="ins-recommendation-v3-block-v2 esd-block-recommendation-v3-block es-p20">
|
|
7
|
-
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
8
|
-
<tr>
|
|
9
|
-
<td align="center">
|
|
10
|
-
<table
|
|
11
|
-
class="container"
|
|
12
|
-
width="100%"
|
|
13
|
-
cellpadding="0"
|
|
14
|
-
cellspacing="0"
|
|
15
|
-
border="0">
|
|
16
|
-
<tbody>
|
|
17
|
-
<tr>
|
|
18
|
-
<td>
|
|
19
|
-
<table
|
|
20
|
-
width="100%"
|
|
21
|
-
cellpadding="0"
|
|
22
|
-
cellspacing="0"
|
|
23
|
-
border="0">
|
|
24
|
-
<tbody>
|
|
25
|
-
<${t.BLOCK_TEXT}
|
|
26
|
-
class="es-p10t es-p10b es-p20l es-p20r"
|
|
27
|
-
align="center">
|
|
28
|
-
<p path="1" style="font-size: 28px; color: #333333;">
|
|
29
|
-
<strong path="1,0">{-{-TITLE-}-}</strong>
|
|
30
|
-
</p>
|
|
31
|
-
</${t.BLOCK_TEXT}>
|
|
32
|
-
</tbody>
|
|
33
|
-
</table>
|
|
34
|
-
</td>
|
|
35
|
-
</tr>
|
|
36
|
-
${l}
|
|
37
|
-
<tr>
|
|
38
|
-
<td>
|
|
39
|
-
<table
|
|
40
|
-
class="ins-recommendation-product-container"
|
|
41
|
-
width="100%"
|
|
42
|
-
cellpadding="0"
|
|
43
|
-
cellspacing="0"
|
|
44
|
-
border="0"
|
|
45
|
-
>
|
|
46
|
-
{-{-PRODUCT_ROWS-}-}
|
|
47
|
-
</table>
|
|
48
|
-
</td>
|
|
49
|
-
</tr>
|
|
50
|
-
</tbody>
|
|
51
|
-
</table>
|
|
52
|
-
</td>
|
|
53
|
-
</tr>
|
|
54
|
-
</table>
|
|
55
|
-
</td>
|
|
56
|
-
`, a = {
|
|
57
|
-
productImage: (e) => `
|
|
58
|
-
<${t.BLOCK_IMAGE}
|
|
59
|
-
${n.BLOCK_IMAGE.src}="${e.image_url}"
|
|
60
|
-
${n.BLOCK_IMAGE.alt}="${e.name}"
|
|
61
|
-
${n.BLOCK_IMAGE.href}="#"
|
|
62
|
-
class="product-image"
|
|
63
|
-
align="center"
|
|
64
|
-
style="max-width: 100%; height: auto; margin: 0 auto;"
|
|
65
|
-
esd-extension-block-id="${o.IMAGE}">
|
|
66
|
-
</${t.BLOCK_IMAGE}>
|
|
67
|
-
`,
|
|
68
|
-
productName: (e) => `
|
|
69
|
-
<${t.BLOCK_TEXT}
|
|
70
|
-
class="product-name"
|
|
71
|
-
align="center"
|
|
72
|
-
style="font-size: 16px; color: #333333; font-weight: 600; padding: 15px 10px; text-align: center;"
|
|
73
|
-
esd-extension-block-id="${o.NAME}">
|
|
74
|
-
<p path="1" contenteditable="false">
|
|
75
|
-
<strong path="1,0">${e.name}</strong>
|
|
76
|
-
</p>
|
|
77
|
-
</${t.BLOCK_TEXT}>
|
|
78
|
-
`,
|
|
79
|
-
productPrice: () => `
|
|
80
|
-
<${t.BLOCK_TEXT}
|
|
81
|
-
class="product-price"
|
|
82
|
-
align="center"
|
|
83
|
-
style="padding: 10px; text-align: center;"
|
|
84
|
-
esd-extension-block-id="${o.PRICE}">
|
|
85
|
-
<p path="1" contenteditable="false">
|
|
86
|
-
<span class="current-price" style="font-size: 16px; color: #333333; font-weight: bold;">
|
|
87
|
-
<strong path="1,0">18,00 TRY</strong>
|
|
88
|
-
</span>
|
|
89
|
-
</p>
|
|
90
|
-
</${t.BLOCK_TEXT}>
|
|
91
|
-
`,
|
|
92
|
-
productOldPrice: () => `
|
|
93
|
-
<${t.BLOCK_TEXT}
|
|
94
|
-
class="product-old-price"
|
|
95
|
-
align="center"
|
|
96
|
-
style="padding: 10px; text-align: center;"
|
|
97
|
-
esd-extension-block-id="${o.OLD_PRICE}">
|
|
98
|
-
<p path="1" contenteditable="false">
|
|
99
|
-
<span class="old-price" style="font-size: 14px; color: #999999; text-decoration: line-through;">
|
|
100
|
-
<s path="1,0">20,00 TRY</s>
|
|
101
|
-
</span>
|
|
102
|
-
</p>
|
|
103
|
-
</${t.BLOCK_TEXT}>
|
|
104
|
-
`,
|
|
105
|
-
productButton: () => `
|
|
106
|
-
<${t.BLOCK_BUTTON}
|
|
107
|
-
${n.BLOCK_BUTTON.href}="#"
|
|
108
|
-
class="product-button"
|
|
109
|
-
align="center"
|
|
110
|
-
style="padding: 15px 10px 20px 10px; text-align: center;"
|
|
111
|
-
esd-extension-block-id="${o.BUTTON}">
|
|
112
|
-
<span class="es-button-border">
|
|
113
|
-
<a
|
|
114
|
-
href="#"
|
|
115
|
-
class="es-button buy-button"
|
|
116
|
-
target="_blank"
|
|
117
|
-
style="
|
|
118
|
-
display: inline-block;
|
|
119
|
-
width: 90%;
|
|
120
|
-
max-width: 150px;
|
|
121
|
-
padding: 12px 20px;
|
|
122
|
-
background-color: #ffffff;
|
|
123
|
-
color: #333333;
|
|
124
|
-
text-decoration: none;
|
|
125
|
-
border: 2px solid #cccccc;
|
|
126
|
-
font-size: 16px;
|
|
127
|
-
box-sizing: border-box;
|
|
128
|
-
">
|
|
129
|
-
Buy
|
|
130
|
-
</a>
|
|
131
|
-
</span>
|
|
132
|
-
</${t.BLOCK_BUTTON}>
|
|
133
|
-
`
|
|
134
|
-
};
|
|
135
|
-
function x() {
|
|
136
|
-
const e = i();
|
|
137
|
-
return s(
|
|
138
|
-
g,
|
|
139
|
-
e,
|
|
140
|
-
3,
|
|
141
|
-
a,
|
|
142
|
-
p.TITLE
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
function f(e, r, c) {
|
|
146
|
-
return d(
|
|
147
|
-
e,
|
|
148
|
-
r,
|
|
149
|
-
a,
|
|
150
|
-
c
|
|
151
|
-
);
|
|
152
|
-
}
|
|
153
|
-
export {
|
|
154
|
-
p as DEFAULTS,
|
|
155
|
-
$ as DEFAULT_CARD_COMPOSITION,
|
|
156
|
-
g as default,
|
|
157
|
-
i as getDefaultProducts,
|
|
158
|
-
x as getDefaultTemplate,
|
|
159
|
-
f as prepareProductRows
|
|
160
|
-
};
|