@visitscotland/component-library 5.62.0 → 5.63.0

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.
@@ -1,6 +1,6 @@
1
1
  import { openBlock, createElementBlock, renderSlot, inject, computed as computed$1, toValue, watch, ref, onMounted, nextTick as nextTick$1, getCurrentInstance, readonly, onBeforeUnmount, onUnmounted, defineComponent, unref, toRef, useId, shallowRef, useSlots, useModel, useTemplateRef, createBlock, withCtx, Transition, mergeProps, withDirectives, createElementVNode, withModifiers, normalizeClass, normalizeProps, guardReactiveProps, resolveDynamicComponent, createTextVNode, toDisplayString, Fragment, createCommentVNode, createVNode, vShow, normalizeStyle, mergeModels, provide, onActivated, renderList, useAttrs, render as render$e, h, vModelSelect, withKeys, resolveComponent, resolveDirective, createSlots, reactive, onBeforeMount, isRef, isReactive, isReadonly, onUpdated, onBeforeUpdate, isVNode, markRaw, Teleport, toHandlers, vModelText, Suspense } from "vue";
2
- import { _ as _export_sfc, b as breadcrumbGlobalIndexKey, a as breadcrumbRegistryKey, u as useEventListener, s as showHideRegistryKey, c as useThrottleFn, d as useDefaults, g as getSafeDocument, e as createSharedComposable, f as useScrollLock$1, h as useMutationObserver, i as getSafeWindow, t as toArray, j as unrefElement, n as notNullish, k as tryOnScopeDispose, l as useId$1, o as onKeyStroke, m as isEmptySlot, p as useColorVariantClasses, q as getModalZIndex, C as ConditionalTeleport_default, B as BButton_default, r as modalManagerKey, v as getSSRHandler, w as progressInjectionKey, x as useToNumber, y as formGroupKey, z as useAriaInvalid, A as useStateClass, D as useFocus, E as inputGroupKey, F as get$1, G as useBLinkHelper, H as BLink_default, I as ConditionalWrapper_default, J as pick, K as omit$2, L as BImg_default, M as offset$2, N as flip$2, O as autoPlacement, P as shift$2, Q as hide, R as inline, S as arrow$2, T as size, U as useFloating, V as autoUpdate$1, W as onClickOutside, X as useMouse$2, Y as buttonGroupKey, Z as dropdownInjectionKey, $ as collapseInjectionKey, a0 as navbarInjectionKey, a1 as formSelectKey, a2 as isVisible, a3 as useBreakpoints, a4 as breakpointsBootstrapV5, a5 as tabsInjectionKey, a6 as sortSlotElementsByPosition, a7 as defaultsKey, a8 as VsButton, a9 as dataLayerMixin, aa as VsHeading, ab as VsIcon, ac as lodashExports, ad as VsBody, ae as VsContainer, af as VsRow, ag as VsCol, ah as dmoUrls, ai as VsImg, aj as axios, ak as designTokens, al as BFormRadio_default, am as BFormRadioGroup_default, an as BFormGroup_default, ao as VsWarning, ap as BFormCheckbox_default, aq as getDefaultExportFromCjs, ar as products, as as paths, at as monthsEnglish, au as VsLoading, av as BThead_default, aw as BTh_default, ax as BTbody_default, ay as BTr_default, az as BTd_default, aA as BTfoot_default, aB as useDataLayerStore, aC as checkVendorLibrary, aD as siteSearchCloseTemplate, aE as siteSearchClickTemplate, aF as siteSearchUsageTemplate, aG as siteSearchOpenTemplate, aH as googleMapInteractionTemplate, aI as googleMapTimeToFirstInteractionTemplate, aJ as googleMapFilterInteractionTemplate, aK as googleMapSearchTemplate } from "./LoadingSpinner-PVEoCVFT.mjs";
3
- import { aL as qe } from "./LoadingSpinner-PVEoCVFT.mjs";
2
+ import { _ as _export_sfc, b as breadcrumbGlobalIndexKey, a as breadcrumbRegistryKey, u as useEventListener, s as showHideRegistryKey, c as useThrottleFn, d as useDefaults, g as getSafeDocument, e as createSharedComposable, f as useScrollLock$1, h as useMutationObserver, i as getSafeWindow, t as toArray, j as unrefElement, n as notNullish, k as tryOnScopeDispose, l as useId$1, o as onKeyStroke, m as isEmptySlot, p as useColorVariantClasses, q as getModalZIndex, C as ConditionalTeleport_default, B as BButton_default, r as modalManagerKey, v as getSSRHandler, w as progressInjectionKey, x as useToNumber, y as formGroupKey, z as useAriaInvalid, A as useStateClass, D as useFocus, E as inputGroupKey, F as get$1, G as useBLinkHelper, H as BLink_default, I as ConditionalWrapper_default, J as pick, K as omit$2, L as BImg_default, M as offset$2, N as flip$2, O as autoPlacement, P as shift$2, Q as hide, R as inline, S as arrow$2, T as size, U as useFloating, V as autoUpdate$1, W as onClickOutside, X as useMouse$2, Y as buttonGroupKey, Z as dropdownInjectionKey, $ as collapseInjectionKey, a0 as navbarInjectionKey, a1 as formSelectKey, a2 as isVisible, a3 as useBreakpoints, a4 as breakpointsBootstrapV5, a5 as tabsInjectionKey, a6 as sortSlotElementsByPosition, a7 as defaultsKey, a8 as VsButton, a9 as dataLayerMixin, aa as VsHeading, ab as VsIcon, ac as lodashExports, ad as VsBody, ae as VsContainer, af as VsRow, ag as VsCol, ah as dmoUrls, ai as VsImg, aj as axios, ak as designTokens, al as BFormRadio_default, am as BFormRadioGroup_default, an as BFormGroup_default, ao as VsWarning, ap as BFormCheckbox_default, aq as getDefaultExportFromCjs, ar as products, as as paths, at as monthsEnglish, au as VsLoading, av as BThead_default, aw as BTh_default, ax as BTbody_default, ay as BTr_default, az as BTd_default, aA as BTfoot_default, aB as useDataLayerStore, aC as checkVendorLibrary, aD as siteSearchCloseTemplate, aE as siteSearchClickTemplate, aF as siteSearchUsageTemplate, aG as siteSearchOpenTemplate, aH as googleMapInteractionTemplate, aI as googleMapTimeToFirstInteractionTemplate, aJ as googleMapFilterInteractionTemplate, aK as googleMapSearchTemplate } from "./LoadingSpinner-DzGYsw47.mjs";
3
+ import { aL as qe } from "./LoadingSpinner-DzGYsw47.mjs";
4
4
  import { defineStore, storeToRefs } from "pinia";
5
5
  const _sfc_main$2E = {
6
6
  name: "VsAccordion",
@@ -2032,11 +2032,15 @@ var normalizeInput = (e, n) => {
2032
2032
  text: r.toLocaleString()
2033
2033
  };
2034
2034
  const i = get$1(r, s.valueField), l = get$1(r, s.textField), c = get$1(r, s.disabledField), d = s.optionsField ? get$1(r, s.optionsField) : void 0, u = (s.labelField ? get$1(r, s.labelField) : void 0) || l;
2035
- return d !== void 0 && Array.isArray(d) ? {
2035
+ if (d !== void 0 && Array.isArray(d)) return {
2036
2036
  label: u,
2037
2037
  options: d
2038
- } : {
2039
- ...typeof r == "object" ? r : void 0,
2038
+ };
2039
+ const p = typeof r == "object" ? { ...r } : {}, f = /* @__PURE__ */ new Set(["label", "options"]);
2040
+ return s.labelField && f.add(s.labelField), s.optionsField && f.add(s.optionsField), f.forEach((m) => {
2041
+ delete p[m];
2042
+ }), {
2043
+ ...p,
2040
2044
  value: i,
2041
2045
  text: l,
2042
2046
  disabled: c
@@ -28361,6 +28365,8 @@ const VsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_re
28361
28365
  formType: this.formData.content ? this.formData.content.formType : "",
28362
28366
  "g-recaptcha-response": e,
28363
28367
  consentList: t
28368
+ }, {
28369
+ withCredentials: !0
28364
28370
  }).then(() => (this.submitting = !1, this.submitted = !0, this.attachEmail(), !1)).catch(() => (this.submitError = !0, !1));
28365
28371
  },
28366
28372
  /**
@@ -37515,21 +37521,25 @@ If your Content Security Policy uses "require-trusted-types-for 'script'", allow
37515
37521
  }, logDevNotice = __DEV__$1 ? (e) => {
37516
37522
  console.info(`[@googlemaps/js-api-loader] ${e}`);
37517
37523
  } : () => {
37518
- }, TRUSTED_TYPES_POLICY_NAME = "@googlemaps/js-api-loader";
37524
+ }, TRUSTED_TYPES_POLICY_NAME = "@googlemaps/js-api-loader", fallbackPolicy = { createScriptURL: (e) => e };
37519
37525
  let policy;
37520
- const trustedTypes$1 = window.trustedTypes;
37521
- if (!trustedTypes$1)
37522
- policy = { createScriptURL: (e) => e };
37523
- else
37526
+ function getPolicy() {
37527
+ if (policy)
37528
+ return policy;
37529
+ const e = globalThis.trustedTypes;
37530
+ if (!e)
37531
+ return policy = fallbackPolicy, policy;
37524
37532
  try {
37525
- policy = trustedTypes$1.createPolicy(TRUSTED_TYPES_POLICY_NAME, {
37526
- createScriptURL: (e) => e
37533
+ policy = e.createPolicy(TRUSTED_TYPES_POLICY_NAME, {
37534
+ createScriptURL: (n) => n
37527
37535
  });
37528
- } catch (e) {
37529
- logDevWarning(MSG_TRUSTED_TYPES_POLICY_FAILED(TRUSTED_TYPES_POLICY_NAME, e)), policy = { createScriptURL: (n) => n };
37536
+ } catch (n) {
37537
+ logDevWarning(MSG_TRUSTED_TYPES_POLICY_FAILED(TRUSTED_TYPES_POLICY_NAME, n)), policy = fallbackPolicy;
37530
37538
  }
37539
+ return policy;
37540
+ }
37531
37541
  function setScriptSrc(e, n) {
37532
- e.src = policy.createScriptURL(n);
37542
+ e.src = getPolicy().createScriptURL(n);
37533
37543
  }
37534
37544
  const bootstrap = (e) => {
37535
37545
  var n, t, a, o = "The Google Maps JavaScript API", r = "google", s = "importLibrary", i = "__ib__", l = document, c = window, d = c[r] || (c[r] = {}), u = d.maps || (d.maps = {}), p = /* @__PURE__ */ new Set(), f = new URLSearchParams(), m = () => n || (n = new Promise(async (g, _) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visitscotland/component-library",
3
- "version": "5.62.0",
3
+ "version": "5.63.0",
4
4
  "description": "VisitScotland Component Library",
5
5
  "author": "VisitScotland",
6
6
  "homepage": "https://github.com/visitscotland/vs-component-library#readme",
@@ -72,10 +72,10 @@
72
72
  "@rollup/plugin-replace": "^6.0.2",
73
73
  "@semantic-release/exec": "^7.1.0",
74
74
  "@semantic-release/npm": "^13.1.5",
75
- "@storybook/addon-a11y": "10.4.2",
76
- "@storybook/addon-docs": "10.4.2",
77
- "@storybook/addon-links": "10.4.2",
78
- "@storybook/vue3-vite": "10.4.2",
75
+ "@storybook/addon-a11y": "10.4.3",
76
+ "@storybook/addon-docs": "10.4.4",
77
+ "@storybook/addon-links": "10.4.4",
78
+ "@storybook/vue3-vite": "10.4.4",
79
79
  "@types/google.maps": "^3.64.0",
80
80
  "@types/node": "^25.9.1",
81
81
  "@types/react": "^19.2.16",
@@ -92,7 +92,7 @@
92
92
  "cz-conventional-changelog": "^3.3.0",
93
93
  "eslint": "^10.4.0",
94
94
  "eslint-config-prettier": "^10.1.8",
95
- "eslint-plugin-storybook": "10.4.2",
95
+ "eslint-plugin-storybook": "10.4.4",
96
96
  "eslint-plugin-vue": "^10.9.1",
97
97
  "globals": "^17.6.0",
98
98
  "husky": "^9.1.7",
@@ -109,7 +109,7 @@
109
109
  "sass": "^1.62.1",
110
110
  "semantic-release": "^25.0.3",
111
111
  "standard-version": "^9.5.0",
112
- "storybook": "10.4.2",
112
+ "storybook": "10.4.5",
113
113
  "storybook-addon-tag-badges": "^3.1.0",
114
114
  "theo": "^8.1.5",
115
115
  "ts-jest": "^29.4.11",