@designcrowd/library.brand-page 6.0.16 → 6.0.17

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 (76) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-QP8vMxvh.js → CreatedOnBrandCrowd-de-de-CRuM9pwt.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-B527kdQs.js → CreatedOnBrandCrowd-en-us-DiV7Qndt.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-quAczKTS.js → CreatedOnBrandCrowd-es-es-p3wHaNxy.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-B0A8wewN.js → CreatedOnBrandCrowd-fr-ca-lBe3GAaV.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-B0A8wewN.js → CreatedOnBrandCrowd-fr-fr-lBe3GAaV.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-BsKk1W3M.js → CreatedOnBrandCrowd-pt-br-CYdNvtj_.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-BsKk1W3M.js → CreatedOnBrandCrowd-pt-pt-CYdNvtj_.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-DT-1HnEc.js → CreatedOnDcom-de-de-CkkOK8P7.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-on3DIzpS.js → CreatedOnDcom-en-us-vj6FbDx4.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-DpOh7Vt9.js → CreatedOnDcom-es-es-CY73pZR2.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-DfGGDCeZ.js → CreatedOnDcom-fr-ca-D6tw2qnx.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-DubzmqD6.js → CreatedOnDcom-fr-fr-DbjyyrVQ.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-exgrytG3.js → CreatedOnDcom-pt-br-C604XK7d.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-LrMFAaeB.js → CreatedOnDcom-pt-pt-CSQ9xpbn.js} +1 -1
  15. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +0 -1
  16. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +0 -5
  17. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +1 -1
  18. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.js +6 -4
  19. package/lib/src/{bundled-translations-2HkRBbBD.js → bundled-translations-Cbaxd_x-.js} +1 -1
  20. package/lib/src/bundled-translations.de-DE-z4PUgnja.js +177 -0
  21. package/lib/src/bundled-translations.es-ES-sqDF-i7N.js +177 -0
  22. package/lib/src/bundled-translations.fr-CA-CQvLC7Ws.js +177 -0
  23. package/lib/src/bundled-translations.fr-FR-BxL6wP_Y.js +177 -0
  24. package/lib/src/bundled-translations.pt-BR-ByhGrCnc.js +177 -0
  25. package/lib/src/bundled-translations.pt-PT-DkyVsn4P.js +177 -0
  26. package/lib/src/bundles/bundled-translations.de-DE.json +3 -3
  27. package/lib/src/bundles/bundled-translations.es-ES.json +3 -3
  28. package/lib/src/bundles/bundled-translations.fr-CA.json +3 -3
  29. package/lib/src/bundles/bundled-translations.fr-FR.json +3 -3
  30. package/lib/src/bundles/bundled-translations.json +2 -2
  31. package/lib/src/bundles/bundled-translations.pt-BR.json +3 -3
  32. package/lib/src/bundles/bundled-translations.pt-PT.json +3 -3
  33. package/lib/src/css/library.brand-page-brandCrowd.min.css +19 -16
  34. package/lib/src/css/library.brand-page-brandPage.min.css +19 -16
  35. package/lib/src/css/library.brand-page-designCom.min.css +19 -16
  36. package/lib/src/css/library.brand-page-preview.min.css +19 -16
  37. package/lib/src/index.mjs +1 -1
  38. package/lib/src/{lib-CC4tgn32.js → lib-A3BBQz0z.js} +10321 -10330
  39. package/package.json +1 -1
  40. package/src/brand-page/components/recaptcha-disclosure/RecaptchaDisclosure.vue.test.ts +55 -2
  41. package/src/brand-page/components/recaptcha-disclosure/i18n/recaptcha.de-DE.json +1 -1
  42. package/src/brand-page/components/recaptcha-disclosure/i18n/recaptcha.es-ES.json +1 -1
  43. package/src/brand-page/components/recaptcha-disclosure/i18n/recaptcha.fr-CA.json +1 -1
  44. package/src/brand-page/components/recaptcha-disclosure/i18n/recaptcha.fr-FR.json +1 -1
  45. package/src/brand-page/components/recaptcha-disclosure/i18n/recaptcha.pt-BR.json +1 -1
  46. package/src/brand-page/components/recaptcha-disclosure/i18n/recaptcha.pt-PT.json +1 -1
  47. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +0 -5
  48. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +2 -2
  49. package/src/brand-page-maker/components/device/Device.vue +1 -0
  50. package/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.ts +7 -4
  51. package/src/bundles/bundled-translations.de-DE.json +3 -3
  52. package/src/bundles/bundled-translations.es-ES.json +3 -3
  53. package/src/bundles/bundled-translations.fr-CA.json +3 -3
  54. package/src/bundles/bundled-translations.fr-FR.json +3 -3
  55. package/src/bundles/bundled-translations.json +2 -2
  56. package/src/bundles/bundled-translations.pt-BR.json +3 -3
  57. package/src/bundles/bundled-translations.pt-PT.json +3 -3
  58. package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +2 -2
  59. package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +2 -2
  60. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +2 -2
  61. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +2 -2
  62. package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +2 -2
  63. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +2 -2
  64. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +2 -2
  65. package/src/shared/page-settings/components/page-settings/PageElement.vue +0 -1
  66. package/src/shared/page-settings/components/page-settings/PageSettingMenu.vue +0 -4
  67. package/lib/src/brand-page-maker/composables/useQuickLinkBarVisibility.d.ts +0 -17
  68. package/lib/src/brand-page-maker/composables/useQuickLinkBarVisibility.js +0 -23
  69. package/lib/src/bundled-translations.de-DE-DmmZFmGP.js +0 -177
  70. package/lib/src/bundled-translations.es-ES-D7JmTUKc.js +0 -177
  71. package/lib/src/bundled-translations.fr-CA-LANZnNuX.js +0 -177
  72. package/lib/src/bundled-translations.fr-FR-BQybH6dF.js +0 -177
  73. package/lib/src/bundled-translations.pt-BR-DRAIsAdg.js +0 -177
  74. package/lib/src/bundled-translations.pt-PT-CEqBjj6N.js +0 -177
  75. package/src/brand-page-maker/composables/useQuickLinkBarVisibility.test.ts +0 -81
  76. package/src/brand-page-maker/composables/useQuickLinkBarVisibility.ts +0 -25
@@ -1,81 +0,0 @@
1
- import { describe, it, expect, beforeEach, vi } from 'vitest';
2
- import { useQuickLinkBarVisibility } from './useQuickLinkBarVisibility';
3
-
4
- // The QuickLinkBar renders when it has something to show — the undo/redo
5
- // controls (flag on, non-admin) OR the published-URL cluster. This predicate
6
- // is the single source of truth shared by the bar and the layout components
7
- // (Device, SideBar) that offset content clear of the fixed bar on mobile.
8
- //
9
- // The regression it guards: an unpublished page with the undo/redo flag on
10
- // still shows the bar, so the offset must treat it as visible — otherwise the
11
- // fixed bar overlaps the mobile preview.
12
- //
13
- // The real useUndoRedoFlag is exercised (only its underlying stores are
14
- // mocked) so admin gating is covered end-to-end.
15
-
16
- const containerStoreMock = { isPublished: false };
17
-
18
- vi.mock('@brand-page-maker/stores', () => ({
19
- useBrandPageContainerStore: vi.fn(() => containerStoreMock),
20
- }));
21
-
22
- const userStoreMock = {
23
- features: { canUseUndoRedo: false },
24
- isAdmin: false,
25
- };
26
-
27
- vi.mock('@brand-page-maker/stores/user', () => ({
28
- useBrandPageMakerUserStore: vi.fn(() => userStoreMock),
29
- }));
30
-
31
- beforeEach(() => {
32
- containerStoreMock.isPublished = false;
33
- userStoreMock.features.canUseUndoRedo = false;
34
- userStoreMock.isAdmin = false;
35
- });
36
-
37
- describe('useQuickLinkBarVisibility', () => {
38
- it('is visible when unpublished but the undo/redo flag is on (the overlap regression)', () => {
39
- containerStoreMock.isPublished = false;
40
- userStoreMock.features.canUseUndoRedo = true;
41
-
42
- expect(useQuickLinkBarVisibility().value).toBe(true);
43
- });
44
-
45
- it('is hidden when unpublished and the undo/redo flag is off', () => {
46
- containerStoreMock.isPublished = false;
47
- userStoreMock.features.canUseUndoRedo = false;
48
-
49
- expect(useQuickLinkBarVisibility().value).toBe(false);
50
- });
51
-
52
- it('is visible when published even with the undo/redo flag off', () => {
53
- containerStoreMock.isPublished = true;
54
- userStoreMock.features.canUseUndoRedo = false;
55
-
56
- expect(useQuickLinkBarVisibility().value).toBe(true);
57
- });
58
-
59
- it('is visible when both published and the undo/redo flag is on', () => {
60
- containerStoreMock.isPublished = true;
61
- userStoreMock.features.canUseUndoRedo = true;
62
-
63
- expect(useQuickLinkBarVisibility().value).toBe(true);
64
- });
65
-
66
- it('gates the undo/redo reason for admins: unpublished admin stays hidden despite the flag', () => {
67
- containerStoreMock.isPublished = false;
68
- userStoreMock.features.canUseUndoRedo = true;
69
- userStoreMock.isAdmin = true;
70
-
71
- expect(useQuickLinkBarVisibility().value).toBe(false);
72
- });
73
-
74
- it('stays visible for a published admin (published cluster is not admin-gated)', () => {
75
- containerStoreMock.isPublished = true;
76
- userStoreMock.features.canUseUndoRedo = true;
77
- userStoreMock.isAdmin = true;
78
-
79
- expect(useQuickLinkBarVisibility().value).toBe(true);
80
- });
81
- });
@@ -1,25 +0,0 @@
1
- import { computed, type ComputedRef } from 'vue';
2
- import { useBrandPageContainerStore } from '@brand-page-maker/stores';
3
- import { useUndoRedoFlag } from './useUndoRedoFlag';
4
-
5
- /**
6
- * Whether the QuickLinkBar is rendered in the maker.
7
- *
8
- * The bar shows when at least one of its inner clusters has something to
9
- * display: the undo/redo controls (flag on, non-admin — see
10
- * {@link useUndoRedoFlag}) OR the published-URL cluster (page published).
11
- *
12
- * This is the single source of truth shared by the bar itself
13
- * (`QuickLinkBar`) and the layout components that offset their content to sit
14
- * clear of the fixed bar on mobile (`Device`, `SideBar`). Keeping the offset
15
- * bound to the same predicate the bar renders on prevents the two from
16
- * drifting — a drift where the bar showed for the undo/redo reason but the
17
- * offset only accounted for the published reason caused the bar to overlap
18
- * the mobile preview.
19
- */
20
- export function useQuickLinkBarVisibility(): ComputedRef<boolean> {
21
- const containerStore = useBrandPageContainerStore();
22
- const undoRedoEnabled = useUndoRedoFlag();
23
-
24
- return computed(() => undoRedoEnabled.value || containerStore.isPublished);
25
- }