@designcrowd/library.brand-page 6.0.6-undo-9 → 6.0.6-undo-10
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/lib/src/{CreatedOnBrandCrowd-de-de-leTOAQPM.js → CreatedOnBrandCrowd-de-de-C2L1EZgT.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-_9b-3HPl.js → CreatedOnBrandCrowd-en-us-DHyH1IiM.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-BPeAHmQH.js → CreatedOnBrandCrowd-es-es-A1e80jTb.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-B7hbXmje.js → CreatedOnBrandCrowd-fr-ca-DHVMHkEQ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-B7hbXmje.js → CreatedOnBrandCrowd-fr-fr-DHVMHkEQ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-C0U-9HO7.js → CreatedOnBrandCrowd-pt-br-Bte4ECWP.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-C0U-9HO7.js → CreatedOnBrandCrowd-pt-pt-Bte4ECWP.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-Bdn37x7V.js → CreatedOnDcom-de-de-5c5j6YI-.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-usSC3HOQ.js → CreatedOnDcom-en-us-CXjiYOAe.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BE0kziRp.js → CreatedOnDcom-es-es-Dd1HoC__.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-CcDaV0KR.js → CreatedOnDcom-fr-ca-8l8Jgm76.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-C1bX4cuW.js → CreatedOnDcom-fr-fr-DOvBm9IA.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-DYju5xhk.js → CreatedOnDcom-pt-br-C67z2_nX.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-CKYX6Rd0.js → CreatedOnDcom-pt-pt-CrIk4yit.js} +1 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +8 -2
- package/lib/src/css/library.brand-page-brandPage.min.css +8 -2
- package/lib/src/css/library.brand-page-designCom.min.css +8 -2
- package/lib/src/css/library.brand-page-preview.min.css +8 -2
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-FHU3Jvoq.js → lib-E0I6wyrj.js} +1155 -1145
- package/package.json +1 -1
- package/src/brand-page-maker/components/quick-link-bar/RedoButton.vue +15 -1
- package/src/brand-page-maker/components/quick-link-bar/UndoButton.vue +15 -1
- package/src/brand-page-maker/components/quick-link-bar/undo-redo-buttons.test.ts +7 -0
package/package.json
CHANGED
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
direction="top"
|
|
4
4
|
alignment="center"
|
|
5
5
|
:should-show-icon="false"
|
|
6
|
-
class="
|
|
6
|
+
:class="[
|
|
7
|
+
'c-redo-button-tooltip',
|
|
8
|
+
{ 'c-tooltip-hidden': isMobileScreenSize },
|
|
9
|
+
]"
|
|
7
10
|
>
|
|
8
11
|
<template #open>
|
|
9
12
|
<Icon
|
|
@@ -39,13 +42,20 @@ import { Icon, Tooltip } from '@designcrowd/fe-shared-lib';
|
|
|
39
42
|
import { useHistoryStore } from '@brand-page-maker/stores/history/history-store';
|
|
40
43
|
import { useAiWebsiteBuilderThreadStore } from '@brand-page-maker/stores/ai-thread/ai-website-builder-thread-store';
|
|
41
44
|
import { useBrandPageContainerStore } from '@brand-page-maker/stores/brandpage-container';
|
|
45
|
+
import { useUiStore } from '@brand-page-maker/stores/ui/ui-store';
|
|
42
46
|
import { useUiTemplateSettingsStore } from '@shared/template-settings/store';
|
|
47
|
+
import { UI_SCREENSIZE_MODES } from '@shared/models';
|
|
43
48
|
import { quickLinkBarTr } from '@src/composables/useTranslate';
|
|
44
49
|
|
|
45
50
|
const historyStore = useHistoryStore();
|
|
46
51
|
const aiThreadStore = useAiWebsiteBuilderThreadStore();
|
|
47
52
|
const containerStore = useBrandPageContainerStore();
|
|
48
53
|
const templateSettingsStore = useUiTemplateSettingsStore();
|
|
54
|
+
const uiStore = useUiStore();
|
|
55
|
+
|
|
56
|
+
const isMobileScreenSize = computed(
|
|
57
|
+
() => uiStore.screenSizeMode === UI_SCREENSIZE_MODES.mobile,
|
|
58
|
+
);
|
|
49
59
|
|
|
50
60
|
const isDisabled = computed(
|
|
51
61
|
() =>
|
|
@@ -71,4 +81,8 @@ const onClick = () => {
|
|
|
71
81
|
width: auto;
|
|
72
82
|
padding: 4px 8px;
|
|
73
83
|
}
|
|
84
|
+
|
|
85
|
+
.c-tooltip-hidden :deep(.shared-tooltip__content) {
|
|
86
|
+
display: none !important;
|
|
87
|
+
}
|
|
74
88
|
</style>
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
direction="top"
|
|
4
4
|
alignment="center"
|
|
5
5
|
:should-show-icon="false"
|
|
6
|
-
class="
|
|
6
|
+
:class="[
|
|
7
|
+
'c-undo-button-tooltip',
|
|
8
|
+
{ 'c-tooltip-hidden': isMobileScreenSize },
|
|
9
|
+
]"
|
|
7
10
|
>
|
|
8
11
|
<template #open>
|
|
9
12
|
<Icon
|
|
@@ -39,13 +42,20 @@ import { Icon, Tooltip } from '@designcrowd/fe-shared-lib';
|
|
|
39
42
|
import { useHistoryStore } from '@brand-page-maker/stores/history/history-store';
|
|
40
43
|
import { useAiWebsiteBuilderThreadStore } from '@brand-page-maker/stores/ai-thread/ai-website-builder-thread-store';
|
|
41
44
|
import { useBrandPageContainerStore } from '@brand-page-maker/stores/brandpage-container';
|
|
45
|
+
import { useUiStore } from '@brand-page-maker/stores/ui/ui-store';
|
|
42
46
|
import { useUiTemplateSettingsStore } from '@shared/template-settings/store';
|
|
47
|
+
import { UI_SCREENSIZE_MODES } from '@shared/models';
|
|
43
48
|
import { quickLinkBarTr } from '@src/composables/useTranslate';
|
|
44
49
|
|
|
45
50
|
const historyStore = useHistoryStore();
|
|
46
51
|
const aiThreadStore = useAiWebsiteBuilderThreadStore();
|
|
47
52
|
const containerStore = useBrandPageContainerStore();
|
|
48
53
|
const templateSettingsStore = useUiTemplateSettingsStore();
|
|
54
|
+
const uiStore = useUiStore();
|
|
55
|
+
|
|
56
|
+
const isMobileScreenSize = computed(
|
|
57
|
+
() => uiStore.screenSizeMode === UI_SCREENSIZE_MODES.mobile,
|
|
58
|
+
);
|
|
49
59
|
|
|
50
60
|
const isDisabled = computed(
|
|
51
61
|
() =>
|
|
@@ -71,4 +81,8 @@ const onClick = () => {
|
|
|
71
81
|
width: auto;
|
|
72
82
|
padding: 4px 8px;
|
|
73
83
|
}
|
|
84
|
+
|
|
85
|
+
.c-tooltip-hidden :deep(.shared-tooltip__content) {
|
|
86
|
+
display: none !important;
|
|
87
|
+
}
|
|
74
88
|
</style>
|
|
@@ -66,6 +66,12 @@ vi.mock('@shared/template-settings/store', () => ({
|
|
|
66
66
|
useUiTemplateSettingsStore: vi.fn(() => templateSettingsStoreMock),
|
|
67
67
|
}));
|
|
68
68
|
|
|
69
|
+
const uiStoreMock = { screenSizeMode: 'desktop' as 'desktop' | 'mobile' };
|
|
70
|
+
|
|
71
|
+
vi.mock('@brand-page-maker/stores/ui/ui-store', () => ({
|
|
72
|
+
useUiStore: vi.fn(() => uiStoreMock),
|
|
73
|
+
}));
|
|
74
|
+
|
|
69
75
|
beforeEach(() => {
|
|
70
76
|
setActivePinia(createPinia());
|
|
71
77
|
historyStoreMock.canUndo = true;
|
|
@@ -76,6 +82,7 @@ beforeEach(() => {
|
|
|
76
82
|
aiStoreMock.isProcessing = false;
|
|
77
83
|
containerStoreMock.isSaving = false;
|
|
78
84
|
templateSettingsStoreMock.isBusy = false;
|
|
85
|
+
uiStoreMock.screenSizeMode = 'desktop';
|
|
79
86
|
});
|
|
80
87
|
|
|
81
88
|
describe('UndoButton', () => {
|