From b723dff93ae5fd959f4931ac226c7ab97c635f30 Mon Sep 17 00:00:00 2001 From: Karel-Jan Van Haute Date: Fri, 14 Jun 2024 16:45:43 +0200 Subject: [PATCH 1/4] Add option to give extra class to modal dialog Fixes #350 --- tailoff/js/components/modal.component.ts | 255 ++++++++++------------- 1 file changed, 107 insertions(+), 148 deletions(-) diff --git a/tailoff/js/components/modal.component.ts b/tailoff/js/components/modal.component.ts index 68c63d5b..a7ee6f28 100644 --- a/tailoff/js/components/modal.component.ts +++ b/tailoff/js/components/modal.component.ts @@ -1,10 +1,7 @@ -import { SiteLang } from "../utils/site-lang"; -import { A11yUtils } from "../utils/a11y"; -import "wicg-inert"; -import { - ModalPlugin, - ModalPluginConstructor, -} from "../plugins/modal/plugin.interface"; +import { SiteLang } from '../utils/site-lang'; +import { A11yUtils } from '../utils/a11y'; +import 'wicg-inert'; +import { ModalPlugin, ModalPluginConstructor } from '../plugins/modal/plugin.interface'; export class ModalComponent { private siteLang = SiteLang.getLang(); @@ -46,30 +43,19 @@ export class ModalComponent { this.getLang(); this.options = { ...this.options, ...options }; - this.mainContentBlock = document.getElementById("mainContentBlock"); - this.bodyElement = document.getElementsByTagName( - "BODY" - )[0] as HTMLBodyElement; - - this.options.plugins.forEach( - ( - plugin: - | ModalPluginConstructor - | { plugin: ModalPluginConstructor; options: {} } - ) => { - const p = - typeof plugin == "function" - ? new plugin(this) - : new plugin.plugin(this); - if (this.options.initTriggers) { - p.initElement(); - } - this.plugins.push(p); + this.mainContentBlock = document.getElementById('mainContentBlock'); + this.bodyElement = document.getElementsByTagName('BODY')[0] as HTMLBodyElement; + + this.options.plugins.forEach((plugin: ModalPluginConstructor | { plugin: ModalPluginConstructor; options: {} }) => { + const p = typeof plugin == 'function' ? new plugin(this) : new plugin.plugin(this); + if (this.options.initTriggers) { + p.initElement(); } - ); + this.plugins.push(p); + }); if (this.options.initTriggers) { - const triggers = document.querySelectorAll(".js-modal"); + const triggers = document.querySelectorAll('.js-modal'); Array.from(triggers).forEach((trigger) => { this.initTrigger(trigger); }); @@ -87,8 +73,8 @@ export class ModalComponent { } private initTrigger(trigger: Element) { - trigger.setAttribute("role", "button"); - trigger.addEventListener("click", (e) => { + trigger.setAttribute('role', 'button'); + trigger.addEventListener('click', (e) => { e.preventDefault(); e.stopPropagation(); e.stopImmediatePropagation(); @@ -108,26 +94,22 @@ export class ModalComponent { private openModalClick(trigger: HTMLElement) { this.trigger = trigger; - if (trigger.classList.contains("js-modal")) { - if (trigger.tagName === "A") { - this.openInlineModal( - (trigger as HTMLAnchorElement).getAttribute("href") - ); + if (trigger.classList.contains('js-modal')) { + if (trigger.tagName === 'A') { + this.openInlineModal((trigger as HTMLAnchorElement).getAttribute('href')); } else { - const id = trigger.getAttribute("data-modal-id"); - id - ? this.openInlineModal(id) - : console.log("No modal id is provided on the trigger"); + const id = trigger.getAttribute('data-modal-id'); + id ? this.openInlineModal(id) : console.log('No modal id is provided on the trigger'); } } - document.body.classList.add("has-open-modal"); + document.body.classList.add('has-open-modal'); } public getTriggerSrc(trigger: Element) { - if (trigger.tagName === "A") { - return (trigger as HTMLAnchorElement).getAttribute("href"); + if (trigger.tagName === 'A') { + return (trigger as HTMLAnchorElement).getAttribute('href'); } else { - const src = trigger.getAttribute("data-modal-src"); + const src = trigger.getAttribute('data-modal-src'); return src ? src : null; } } @@ -139,15 +121,15 @@ export class ModalComponent { this.inlineContentWrapper = document.querySelector(id); if (this.inlineContentWrapper) { // this.modalContent.insertAdjacentHTML("afterbegin", content.innerHTML); + if (this.inlineContentWrapper.hasAttribute('data-dialog-class')) { + this.modal.classList.add(this.inlineContentWrapper.getAttribute('data-dialog-class')); + } Array.from(this.inlineContentWrapper.children).forEach((element) => { - this.modalContent.insertAdjacentElement("beforeend", element); + this.modalContent.insertAdjacentElement('beforeend', element); }); this.linkAccesebilityToDialog(); } else { - this.modalContent.insertAdjacentHTML( - "afterbegin", - `

Error

${this.lang.contentError}

` - ); + this.modalContent.insertAdjacentHTML('afterbegin', `

Error

${this.lang.contentError}

`); } this.trapTab(); @@ -163,48 +145,45 @@ export class ModalComponent { } public createOverlay() { - this.modalOverlay = document.createElement("div"); - this.modalOverlay.classList.add("modal__overlay"); + this.modalOverlay = document.createElement('div'); + this.modalOverlay.classList.add('modal__overlay'); if (this.options.allowClose) { - this.modalOverlay.addEventListener("click", () => { + this.modalOverlay.addEventListener('click', () => { this.closeModal(); }); } - this.bodyElement.insertAdjacentElement("beforeend", this.modalOverlay); + this.bodyElement.insertAdjacentElement('beforeend', this.modalOverlay); } - public createModal(dialogClass = "", modalContentClass = "modal__content") { - this.modal = document.createElement("div"); - this.modal.classList.add("modal__dialog"); - dialogClass != "" && this.modal.classList.add(dialogClass); - this.modal.setAttribute("role", "dialog"); + public createModal(dialogClass = '', modalContentClass = 'modal__content') { + this.modal = document.createElement('div'); + this.modal.classList.add('modal__dialog'); + dialogClass != '' && this.modal.classList.add(dialogClass); + this.modal.setAttribute('role', 'dialog'); // this.modal.setAttribute("aria-selected", "true"); - this.modal.setAttribute("aria-label", this.lang.dialogLabel); + this.modal.setAttribute('aria-label', this.lang.dialogLabel); if (this.options.allowClose) { - this.modalClose = document.createElement("button"); - this.modalClose.classList.add("modal__close"); - this.modalClose.setAttribute("type", "button"); + this.modalClose = document.createElement('button'); + this.modalClose.classList.add('modal__close'); + this.modalClose.setAttribute('type', 'button'); // this.modalClose.setAttribute("aria-label", this.lang.closeLabel); - this.modalClose.insertAdjacentHTML( - "beforeend", - `${this.lang.closeLabel}` - ); - this.modalClose.insertAdjacentHTML("beforeend", this.options.closeHTML); - this.modalClose.addEventListener("click", () => { + this.modalClose.insertAdjacentHTML('beforeend', `${this.lang.closeLabel}`); + this.modalClose.insertAdjacentHTML('beforeend', this.options.closeHTML); + this.modalClose.addEventListener('click', () => { this.closeModal(); }); - this.modal.insertAdjacentElement("afterbegin", this.modalClose); + this.modal.insertAdjacentElement('afterbegin', this.modalClose); } - this.modalContent = document.createElement("div"); + this.modalContent = document.createElement('div'); this.modalContent.classList.add(modalContentClass); - this.modalContent.setAttribute("tabindex", "-1"); - this.modal.insertAdjacentElement("beforeend", this.modalContent); + this.modalContent.setAttribute('tabindex', '-1'); + this.modal.insertAdjacentElement('beforeend', this.modalContent); if (this.options.allowClose) { this.closeListener = this.escKeyAction.bind(this); - document.addEventListener("keydown", this.closeListener); + document.addEventListener('keydown', this.closeListener); } this.plugins.forEach((p) => { @@ -216,65 +195,57 @@ export class ModalComponent { } }); - this.bodyElement.insertAdjacentElement("beforeend", this.modal); + this.bodyElement.insertAdjacentElement('beforeend', this.modal); this.setMainContentInert(); } private linkAccesebilityToDialog() { - let label = this.modalContent.querySelector(".js-modal-label"); - label = label - ? label - : this.modalContent.querySelector("h1,h2,h3,h4,h5,h6"); + let label = this.modalContent.querySelector('.js-modal-label'); + label = label ? label : this.modalContent.querySelector('h1,h2,h3,h4,h5,h6'); if (label) { - label.setAttribute("id", "js-modal-label"); - this.modal.setAttribute("aria-labelledby", "js-modal-label"); + label.setAttribute('id', 'js-modal-label'); + this.modal.setAttribute('aria-labelledby', 'js-modal-label'); } } public addNavigation() { - this.nextButton = document.createElement("button"); - this.nextButton.classList.add("modal__navigation"); - this.nextButton.classList.add("modal__next-button"); - this.nextButton.setAttribute("type", "button"); - this.nextButton.setAttribute("aria-label", this.lang.nextLabel); - this.nextButton.insertAdjacentHTML( - "beforeend", - `${this.lang.nextText}` - ); - this.nextButton.insertAdjacentHTML("beforeend", this.options.nextHTML); - this.nextButton.addEventListener("click", this.gotoNextItem.bind(this)); + this.nextButton = document.createElement('button'); + this.nextButton.classList.add('modal__navigation'); + this.nextButton.classList.add('modal__next-button'); + this.nextButton.setAttribute('type', 'button'); + this.nextButton.setAttribute('aria-label', this.lang.nextLabel); + this.nextButton.insertAdjacentHTML('beforeend', `${this.lang.nextText}`); + this.nextButton.insertAdjacentHTML('beforeend', this.options.nextHTML); + this.nextButton.addEventListener('click', this.gotoNextItem.bind(this)); if (this.currentGroupIndex === this.galleryGroup.length - 1) { - this.nextButton.classList.add("hidden"); - this.nextButton.setAttribute("disabled", ""); + this.nextButton.classList.add('hidden'); + this.nextButton.setAttribute('disabled', ''); } - this.modalContent.insertAdjacentElement("beforeend", this.nextButton); - - this.prevButton = document.createElement("button"); - this.prevButton.classList.add("modal__navigation"); - this.prevButton.classList.add("modal__prev-button"); - this.prevButton.setAttribute("type", "button"); - this.prevButton.setAttribute("aria-label", this.lang.prevLabel); - this.prevButton.insertAdjacentHTML( - "beforeend", - `${this.lang.prevText}` - ); - this.prevButton.insertAdjacentHTML("beforeend", this.options.prevHTML); - this.prevButton.addEventListener("click", this.gotoPrevItem.bind(this)); + this.modalContent.insertAdjacentElement('beforeend', this.nextButton); + + this.prevButton = document.createElement('button'); + this.prevButton.classList.add('modal__navigation'); + this.prevButton.classList.add('modal__prev-button'); + this.prevButton.setAttribute('type', 'button'); + this.prevButton.setAttribute('aria-label', this.lang.prevLabel); + this.prevButton.insertAdjacentHTML('beforeend', `${this.lang.prevText}`); + this.prevButton.insertAdjacentHTML('beforeend', this.options.prevHTML); + this.prevButton.addEventListener('click', this.gotoPrevItem.bind(this)); if (this.currentGroupIndex === 0) { - this.prevButton.classList.add("hidden"); - this.prevButton.setAttribute("disabled", ""); + this.prevButton.classList.add('hidden'); + this.prevButton.setAttribute('disabled', ''); } - this.modalContent.insertAdjacentElement("beforeend", this.prevButton); + this.modalContent.insertAdjacentElement('beforeend', this.prevButton); this.navListener = this.keyBoardNavigation.bind(this); - document.addEventListener("keydown", this.navListener); + document.addEventListener('keydown', this.navListener); - this.modalContent.addEventListener("touchstart", (e) => { + this.modalContent.addEventListener('touchstart', (e) => { this.startTouchX = e.changedTouches[0].pageX; this.startTouchY = e.changedTouches[0].pageY; }); - this.modalContent.addEventListener("touchend", (e) => { + this.modalContent.addEventListener('touchend', (e) => { const swipeThreshold = 10; let moved; if (this.startTouchX - e.changedTouches[0].pageX > swipeThreshold) { @@ -285,24 +256,18 @@ export class ModalComponent { this.gotoPrevItem(); moved = true; } - if ( - this.startTouchY - e.changedTouches[0].pageY > swipeThreshold && - !moved - ) { + if (this.startTouchY - e.changedTouches[0].pageY > swipeThreshold && !moved) { this.gotoNextItem(); } - if ( - this.startTouchY - e.changedTouches[0].pageY < swipeThreshold && - !moved - ) { + if (this.startTouchY - e.changedTouches[0].pageY < swipeThreshold && !moved) { this.gotoPrevItem(); } }); } public gotoNextItem() { - this.prevButton.classList.remove("hidden"); - this.prevButton.removeAttribute("disabled"); + this.prevButton.classList.remove('hidden'); + this.prevButton.removeAttribute('disabled'); if (this.currentGroupIndex < this.galleryGroup.length - 1) { this.currentGroupIndex++; this.plugins.forEach((p) => { @@ -312,16 +277,16 @@ export class ModalComponent { }); } if (this.currentGroupIndex === this.galleryGroup.length - 1) { - this.nextButton.classList.add("hidden"); - this.nextButton.setAttribute("disabled", ""); + this.nextButton.classList.add('hidden'); + this.nextButton.setAttribute('disabled', ''); this.prevButton.focus(); } this.updateGalleryTabIndexes(); } public gotoPrevItem() { - this.nextButton.classList.remove("hidden"); - this.nextButton.removeAttribute("disabled"); + this.nextButton.classList.remove('hidden'); + this.nextButton.removeAttribute('disabled'); if (this.currentGroupIndex > 0) { this.currentGroupIndex--; this.plugins.forEach((p) => { @@ -331,8 +296,8 @@ export class ModalComponent { }); } if (this.currentGroupIndex === 0) { - this.prevButton.classList.add("hidden"); - this.prevButton.setAttribute("disabled", ""); + this.prevButton.classList.add('hidden'); + this.prevButton.setAttribute('disabled', ''); this.nextButton.focus(); } this.updateGalleryTabIndexes(); @@ -341,16 +306,15 @@ export class ModalComponent { private keyBoardNavigation(event) { if ( event.keyCode === 39 || - event.key === "ArrowRight" || - (event.code === "ArrowRight" && - this.currentGroupIndex < this.galleryGroup.length - 1) + event.key === 'ArrowRight' || + (event.code === 'ArrowRight' && this.currentGroupIndex < this.galleryGroup.length - 1) ) { this.gotoNextItem(); } if ( event.keyCode === 37 || - event.key === "ArrowLeft" || - (event.code === "ArrowLeft" && this.currentGroupIndex > 0) + event.key === 'ArrowLeft' || + (event.code === 'ArrowLeft' && this.currentGroupIndex > 0) ) { this.gotoPrevItem(); } @@ -362,11 +326,7 @@ export class ModalComponent { } private escKeyAction(event) { - if ( - event.keyCode === 27 || - event.key === "Escape" || - event.code === "Escape" - ) { + if (event.keyCode === 27 || event.key === 'Escape' || event.code === 'Escape') { this.closeModal(); } } @@ -380,21 +340,20 @@ export class ModalComponent { const allTabbableElements = this.modal.querySelectorAll(tabbableElements); this.firstTabbableElement = allTabbableElements[0]; - this.lastTabbableElement = - allTabbableElements[allTabbableElements.length - 1]; + this.lastTabbableElement = allTabbableElements[allTabbableElements.length - 1]; } public closeModal() { - document.body.classList.remove("has-open-modal"); + document.body.classList.remove('has-open-modal'); if (this.inlineContentWrapper) { Array.from(this.modalContent.children).forEach((element) => { - this.inlineContentWrapper.insertAdjacentElement("beforeend", element); + this.inlineContentWrapper.insertAdjacentElement('beforeend', element); }); } this.bodyElement.removeChild(this.modalOverlay); this.bodyElement.removeChild(this.modal); - document.removeEventListener("keydown", this.closeListener); - document.removeEventListener("keydown", this.navListener); + document.removeEventListener('keydown', this.closeListener); + document.removeEventListener('keydown', this.navListener); this.plugins.forEach((p) => { if ( (this.trigger && this.trigger.matches(`.${p.getTriggerClass()}`)) || @@ -411,19 +370,19 @@ export class ModalComponent { }, 0); } - if (this.options.onClose && typeof this.options.onClose == "function") { + if (this.options.onClose && typeof this.options.onClose == 'function') { this.options.onClose(); } } private setMainContentInert(set = true) { if (this.mainContentBlock && set) { - this.mainContentBlock.setAttribute("inert", ""); - document.documentElement.classList.add("overflow-hidden"); + this.mainContentBlock.setAttribute('inert', ''); + document.documentElement.classList.add('overflow-hidden'); } if (this.mainContentBlock && !set) { - this.mainContentBlock.removeAttribute("inert"); - document.documentElement.classList.remove("overflow-hidden"); + this.mainContentBlock.removeAttribute('inert'); + document.documentElement.classList.remove('overflow-hidden'); } } } From 9906bfedb2840c127a748e38435e1e01cd3ee097 Mon Sep 17 00:00:00 2001 From: Hannah De Wachter Date: Tue, 17 Sep 2024 14:41:18 +0200 Subject: [PATCH 2/4] Add Assets to Hyper fields fixes #386 --- ...-71d59fcf-f766-4db1-a6fe-87bf1ce1b1ba.yaml | 82 ++++++------- ...-f936530d-29a5-4460-9ccd-b586bfb25329.yaml | 108 ++++++++++-------- config/project/project.yaml | 2 +- 3 files changed, 99 insertions(+), 93 deletions(-) diff --git a/config/project/fields/cta--71d59fcf-f766-4db1-a6fe-87bf1ce1b1ba.yaml b/config/project/fields/cta--71d59fcf-f766-4db1-a6fe-87bf1ce1b1ba.yaml index 69acfea2..ae2cebcb 100644 --- a/config/project/fields/cta--71d59fcf-f766-4db1-a6fe-87bf1ce1b1ba.yaml +++ b/config/project/fields/cta--71d59fcf-f766-4db1-a6fe-87bf1ce1b1ba.yaml @@ -21,7 +21,7 @@ settings: - default-verbb-hyper-links-asset - - enabled - - false + - true - - isCustom - false @@ -93,6 +93,9 @@ settings: - - width - 50 + - + - dateAdded + - '2024-09-17T12:38:50+00:00' - - uid - ad88b578-8e64-4c11-a126-179e14a134e4 @@ -146,55 +149,17 @@ settings: - - width - 50 + - + - dateAdded + - '2024-09-17T12:38:50+00:00' - - uid - f57d52b4-1374-4e32-87f2-2120bd27a8db - - - __assoc__: - - - - name - - Advanced - - - - uid - - 50675729-9bdc-4fb1-ab77-cc579a890f96 - - - - elements - - - __assoc__: - - type - - verbb\hyper\fieldlayoutelements\LinkTitleField - - - - attribute - - linkTitle - - - - requirable - - true - - - - autocomplete - - false - - - - autofocus - - false - - - - autocorrect - - true - - - - autocapitalize - - true - - - - disabled - - false - - - - readonly - - false - - - - mandatory - - false - - - - translatable - - false + - craft\fieldlayoutelements\CustomField - - required - false @@ -207,17 +172,34 @@ settings: - - width - 100 + - + - dateAdded + - '2024-09-17T14:39:00+02:00' - - uid - - eeed5b36-e9c6-443f-b025-5f0cead0bed3 + - d4bf6b18-5b9d-4dd2-9a74-226f839f15ed + - + - fieldUid + - 03498d1a-eb01-4cb2-9e2b-623015ed0d85 # Link Style + - + __assoc__: + - + - name + - Advanced + - + - uid + - 50675729-9bdc-4fb1-ab77-cc579a890f96 + - + - elements + - - __assoc__: - - type - - verbb\hyper\fieldlayoutelements\ClassesField + - verbb\hyper\fieldlayoutelements\LinkTitleField - - attribute - - classes + - linkTitle - - requirable - true @@ -257,9 +239,12 @@ settings: - - width - 100 + - + - dateAdded + - '2024-09-17T12:38:50+00:00' - - uid - - ea0d8526-b74d-4334-b8be-b347f6617f65 + - eeed5b36-e9c6-443f-b025-5f0cead0bed3 - __assoc__: - @@ -289,6 +274,9 @@ settings: - - width - 100 + - + - dateAdded + - '2024-09-17T12:38:50+00:00' - - uid - 6e2a536f-f1de-43ba-bb21-40a1279d15e3 diff --git a/config/project/fields/ctas--f936530d-29a5-4460-9ccd-b586bfb25329.yaml b/config/project/fields/ctas--f936530d-29a5-4460-9ccd-b586bfb25329.yaml index d5b379e5..cb235c82 100644 --- a/config/project/fields/ctas--f936530d-29a5-4460-9ccd-b586bfb25329.yaml +++ b/config/project/fields/ctas--f936530d-29a5-4460-9ccd-b586bfb25329.yaml @@ -21,7 +21,7 @@ settings: - default-verbb-hyper-links-asset - - enabled - - false + - true - - isCustom - false @@ -57,6 +57,9 @@ settings: - - mandatory - true + - + - requirable + - true - - autocomplete - false @@ -75,18 +78,24 @@ settings: - - readonly - false - - - - requirable - - false - - translatable - false - - required - false + - + - providesThumbs + - false + - + - includeInCards + - false - - width - 50 + - + - dateAdded + - '2024-09-17T12:39:11+00:00' - - uid - 9bb4d027-72a1-4e5e-b436-e6bac8b4dd78 @@ -131,12 +140,47 @@ settings: - - required - false + - + - providesThumbs + - false + - + - includeInCards + - false - - width - 50 + - + - dateAdded + - '2024-09-17T12:39:11+00:00' - - uid - fe44de30-2eec-4268-b41d-b34ff51613c6 + - + __assoc__: + - + - type + - craft\fieldlayoutelements\CustomField + - + - required + - false + - + - providesThumbs + - false + - + - includeInCards + - false + - + - width + - 100 + - + - dateAdded + - '2024-09-17T14:39:18+02:00' + - + - uid + - e4510c8f-fa46-4b3e-a862-41f109fab01c + - + - fieldUid + - 03498d1a-eb01-4cb2-9e2b-623015ed0d85 # Link Style - __assoc__: - @@ -187,55 +231,20 @@ settings: - required - false - - - width - - 100 - - - - uid - - b0d3beba-c448-4cd2-8c44-2135d4e4d55e - - - __assoc__: - - - - type - - verbb\hyper\fieldlayoutelements\ClassesField - - - - attribute - - classes - - - - requirable - - true - - - - autocomplete - - false - - - - autofocus - - false - - - - autocorrect - - true - - - - autocapitalize - - true - - - - disabled - - false - - - - readonly - - false - - - - mandatory - - false - - - - translatable + - providesThumbs - false - - - required + - includeInCards - false - - width - 100 + - + - dateAdded + - '2024-09-17T12:39:11+00:00' - - uid - - 47a1d0ad-6a12-43a7-aebb-818316155f36 + - b0d3beba-c448-4cd2-8c44-2135d4e4d55e - __assoc__: - @@ -256,9 +265,18 @@ settings: - - required - false + - + - providesThumbs + - false + - + - includeInCards + - false - - width - 100 + - + - dateAdded + - '2024-09-17T12:39:11+00:00' - - uid - d04a1a64-6a18-4322-b2fb-4b31ac0cc640 diff --git a/config/project/project.yaml b/config/project/project.yaml index c3f733e8..55761e85 100644 --- a/config/project/project.yaml +++ b/config/project/project.yaml @@ -1,4 +1,4 @@ -dateModified: 1725622745 +dateModified: 1726576818 elementSources: craft\elements\Entry: - From 670cbd6a11be02766a2dc77dea592fc1829332e8 Mon Sep 17 00:00:00 2001 From: Hannah De Wachter Date: Tue, 17 Sep 2024 14:48:45 +0200 Subject: [PATCH 3/4] Fix Text fields in Contentbuilder fixes #385 --- ...n--7b5ab248-6255-4b42-88bc-80c1dee62b20.yaml | 16 +++++++++++----- ...m--f3211a4e-d5f8-4514-a372-c5b8cfc2c44a.yaml | 15 ++++++++++----- ...e--d86336d6-7efa-44f9-9a10-8619c79beeca.yaml | 17 ++++++++++++----- ...s--1e4267e1-8d5f-4312-8458-86b19bc17d74.yaml | 16 ++++++++++++---- ...o--95920915-f806-4fbc-9c22-979ec9085fe8.yaml | 13 +++++++++++-- config/project/project.yaml | 2 +- 6 files changed, 57 insertions(+), 22 deletions(-) diff --git a/config/project/entryTypes/callToAction--7b5ab248-6255-4b42-88bc-80c1dee62b20.yaml b/config/project/entryTypes/callToAction--7b5ab248-6255-4b42-88bc-80c1dee62b20.yaml index 3f997036..b2d7b9b8 100644 --- a/config/project/entryTypes/callToAction--7b5ab248-6255-4b42-88bc-80c1dee62b20.yaml +++ b/config/project/entryTypes/callToAction--7b5ab248-6255-4b42-88bc-80c1dee62b20.yaml @@ -10,6 +10,7 @@ fieldLayouts: autocomplete: false autocorrect: true class: null + dateAdded: '2024-09-17T12:37:53+00:00' disabled: false elementCondition: null id: null @@ -35,6 +36,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 838aabf9-a30e-4616-ad7c-b89fe15d7cae # Title (Anchor) handle: blockTitle @@ -50,8 +52,9 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:42:52+00:00' elementCondition: null - fieldUid: 5d7250f9-a00c-4732-a743-b46bb5d11646 # CK Editor - Standard + fieldUid: 1ea43556-c1c6-4ae7-9c49-48498a82f797 # CK Editor - Extended handle: text includeInCards: false instructions: null @@ -60,11 +63,12 @@ fieldLayouts: required: false tip: null type: craft\fieldlayoutelements\CustomField - uid: e28da65a-afdc-46d5-9836-5356db6ad43d + uid: 7d32dc6b-6946-4f76-94da-d14b6982b2f9 userCondition: null warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: f936530d-29a5-4460-9ccd-b586bfb25329 # Call to actions handle: cta @@ -80,6 +84,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: a44287f8-d6ed-4f2c-8a63-0c1312ef236e # Image handle: null @@ -95,6 +100,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 3857f4aa-a319-44ec-8b5e-d907d3d1bf31 # Background Color handle: null @@ -118,8 +124,8 @@ icon: link name: 'Call To Action' showSlugField: true showStatusField: true -slugTranslationKeyFormat: null +slugTranslationKeyFormat: '' slugTranslationMethod: site -titleFormat: null -titleTranslationKeyFormat: null +titleFormat: '' +titleTranslationKeyFormat: '' titleTranslationMethod: site diff --git a/config/project/entryTypes/form--f3211a4e-d5f8-4514-a372-c5b8cfc2c44a.yaml b/config/project/entryTypes/form--f3211a4e-d5f8-4514-a372-c5b8cfc2c44a.yaml index f64e1ff6..739d48b0 100644 --- a/config/project/entryTypes/form--f3211a4e-d5f8-4514-a372-c5b8cfc2c44a.yaml +++ b/config/project/entryTypes/form--f3211a4e-d5f8-4514-a372-c5b8cfc2c44a.yaml @@ -10,6 +10,7 @@ fieldLayouts: autocomplete: false autocorrect: true class: null + dateAdded: '2024-09-17T12:37:53+00:00' disabled: false elementCondition: null id: null @@ -35,6 +36,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 838aabf9-a30e-4616-ad7c-b89fe15d7cae # Title (Anchor) handle: blockTitle @@ -50,8 +52,9 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:43:44+00:00' elementCondition: null - fieldUid: 5d7250f9-a00c-4732-a743-b46bb5d11646 # CK Editor - Standard + fieldUid: 1ea43556-c1c6-4ae7-9c49-48498a82f797 # CK Editor - Extended handle: text includeInCards: false instructions: null @@ -60,11 +63,12 @@ fieldLayouts: required: false tip: null type: craft\fieldlayoutelements\CustomField - uid: eefee792-3270-40b9-aec3-9efbd6f7d496 + uid: 2735ba32-2de0-40be-b099-26eda36a7408 userCondition: null warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 74a30650-eb90-462f-a104-de1d41ac8221 # Form handle: null @@ -80,6 +84,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 3857f4aa-a319-44ec-8b5e-d907d3d1bf31 # Background Color handle: null @@ -103,8 +108,8 @@ icon: input-text name: Form showSlugField: true showStatusField: true -slugTranslationKeyFormat: null +slugTranslationKeyFormat: '' slugTranslationMethod: site -titleFormat: null -titleTranslationKeyFormat: null +titleFormat: '' +titleTranslationKeyFormat: '' titleTranslationMethod: site diff --git a/config/project/entryTypes/textImage--d86336d6-7efa-44f9-9a10-8619c79beeca.yaml b/config/project/entryTypes/textImage--d86336d6-7efa-44f9-9a10-8619c79beeca.yaml index 9ef4a771..af509ea1 100644 --- a/config/project/entryTypes/textImage--d86336d6-7efa-44f9-9a10-8619c79beeca.yaml +++ b/config/project/entryTypes/textImage--d86336d6-7efa-44f9-9a10-8619c79beeca.yaml @@ -10,6 +10,7 @@ fieldLayouts: autocomplete: false autocorrect: true class: null + dateAdded: '2024-09-17T12:37:53+00:00' disabled: false elementCondition: null id: null @@ -35,6 +36,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 838aabf9-a30e-4616-ad7c-b89fe15d7cae # Title (Anchor) handle: null @@ -50,8 +52,9 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:44:56+00:00' elementCondition: null - fieldUid: 5d7250f9-a00c-4732-a743-b46bb5d11646 # CK Editor - Standard + fieldUid: 1ea43556-c1c6-4ae7-9c49-48498a82f797 # CK Editor - Extended handle: text includeInCards: false instructions: null @@ -60,11 +63,12 @@ fieldLayouts: required: true tip: null type: craft\fieldlayoutelements\CustomField - uid: e373780e-103e-4ffa-b01b-d759b9a8e7db + uid: 97d182aa-ac77-4c14-82e3-07efbc244e18 userCondition: null warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 71d59fcf-f766-4db1-a6fe-87bf1ce1b1ba # Call to action handle: null @@ -80,6 +84,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: a44287f8-d6ed-4f2c-8a63-0c1312ef236e # Image handle: null @@ -95,6 +100,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: class: craft\elements\conditions\entries\EntryCondition conditionRules: @@ -121,6 +127,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 3857f4aa-a319-44ec-8b5e-d907d3d1bf31 # Background Color handle: null @@ -144,8 +151,8 @@ icon: text name: 'Text (+ Image)' showSlugField: true showStatusField: true -slugTranslationKeyFormat: null +slugTranslationKeyFormat: '' slugTranslationMethod: site -titleFormat: null -titleTranslationKeyFormat: null +titleFormat: '' +titleTranslationKeyFormat: '' titleTranslationMethod: site diff --git a/config/project/entryTypes/textTwoColumns--1e4267e1-8d5f-4312-8458-86b19bc17d74.yaml b/config/project/entryTypes/textTwoColumns--1e4267e1-8d5f-4312-8458-86b19bc17d74.yaml index b100922e..930b0faf 100644 --- a/config/project/entryTypes/textTwoColumns--1e4267e1-8d5f-4312-8458-86b19bc17d74.yaml +++ b/config/project/entryTypes/textTwoColumns--1e4267e1-8d5f-4312-8458-86b19bc17d74.yaml @@ -10,6 +10,7 @@ fieldLayouts: autocomplete: false autocorrect: true class: null + dateAdded: '2024-09-17T12:37:53+00:00' disabled: false elementCondition: null id: null @@ -35,6 +36,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 838aabf9-a30e-4616-ad7c-b89fe15d7cae # Title (Anchor) handle: titleColumn1 @@ -50,8 +52,9 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:46:31+00:00' elementCondition: null - fieldUid: 66954acb-77ba-4c75-9659-f3976770df07 # CK Editor - Simple + fieldUid: 1ea43556-c1c6-4ae7-9c49-48498a82f797 # CK Editor - Extended handle: textColumn1 includeInCards: false instructions: null @@ -60,11 +63,12 @@ fieldLayouts: required: true tip: null type: craft\fieldlayoutelements\CustomField - uid: 645f1aa5-28ee-49cc-9860-d7f2563cf63b + uid: a0d886da-4888-441c-a187-8e98ed6323ee userCondition: null warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 71d59fcf-f766-4db1-a6fe-87bf1ce1b1ba # Call to action handle: ctaColumn1 @@ -80,6 +84,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 838aabf9-a30e-4616-ad7c-b89fe15d7cae # Title (Anchor) handle: titleColumn2 @@ -95,8 +100,9 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:46:31+00:00' elementCondition: null - fieldUid: 66954acb-77ba-4c75-9659-f3976770df07 # CK Editor - Simple + fieldUid: 1ea43556-c1c6-4ae7-9c49-48498a82f797 # CK Editor - Extended handle: textColumn2 includeInCards: false instructions: null @@ -105,11 +111,12 @@ fieldLayouts: required: true tip: null type: craft\fieldlayoutelements\CustomField - uid: d037c802-2411-4928-ad05-3b5406ce98de + uid: fff5459c-5f10-4c23-bb07-5383ac951814 userCondition: null warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 71d59fcf-f766-4db1-a6fe-87bf1ce1b1ba # Call to action handle: ctaColumn2 @@ -125,6 +132,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 3857f4aa-a319-44ec-8b5e-d907d3d1bf31 # Background Color handle: null diff --git a/config/project/entryTypes/textVideo--95920915-f806-4fbc-9c22-979ec9085fe8.yaml b/config/project/entryTypes/textVideo--95920915-f806-4fbc-9c22-979ec9085fe8.yaml index 45c066e0..3a9713c1 100644 --- a/config/project/entryTypes/textVideo--95920915-f806-4fbc-9c22-979ec9085fe8.yaml +++ b/config/project/entryTypes/textVideo--95920915-f806-4fbc-9c22-979ec9085fe8.yaml @@ -10,6 +10,7 @@ fieldLayouts: autocomplete: false autocorrect: true class: null + dateAdded: '2024-09-17T12:37:53+00:00' disabled: false elementCondition: null id: null @@ -35,6 +36,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 838aabf9-a30e-4616-ad7c-b89fe15d7cae # Title (Anchor) handle: blockTitle @@ -50,8 +52,9 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:47:08+00:00' elementCondition: null - fieldUid: 5d7250f9-a00c-4732-a743-b46bb5d11646 # CK Editor - Standard + fieldUid: 1ea43556-c1c6-4ae7-9c49-48498a82f797 # CK Editor - Extended handle: text includeInCards: false instructions: null @@ -60,11 +63,12 @@ fieldLayouts: required: true tip: null type: craft\fieldlayoutelements\CustomField - uid: 339c0439-cafa-4af8-a555-232abf2aa071 + uid: c980406b-818b-4618-b806-a73eb7dd1970 userCondition: null warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 71d59fcf-f766-4db1-a6fe-87bf1ce1b1ba # Call to action handle: null @@ -80,6 +84,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: d66ffcef-8ccc-4e89-9e36-bce49e0dd17a # Video handle: null @@ -95,6 +100,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: class: craft\elements\conditions\entries\EntryCondition conditionRules: @@ -121,6 +127,7 @@ fieldLayouts: warning: null width: 50 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: class: craft\elements\conditions\entries\EntryCondition conditionRules: @@ -147,6 +154,7 @@ fieldLayouts: warning: null width: 50 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: class: craft\elements\conditions\entries\EntryCondition conditionRules: @@ -173,6 +181,7 @@ fieldLayouts: warning: null width: 100 - + dateAdded: '2024-09-17T12:37:53+00:00' elementCondition: null fieldUid: 3857f4aa-a319-44ec-8b5e-d907d3d1bf31 # Background Color handle: null diff --git a/config/project/project.yaml b/config/project/project.yaml index 55761e85..c6bad485 100644 --- a/config/project/project.yaml +++ b/config/project/project.yaml @@ -1,4 +1,4 @@ -dateModified: 1726576818 +dateModified: 1726577228 elementSources: craft\elements\Entry: - From 85a44b84e62be36227bc81878efa90297ad5b3e2 Mon Sep 17 00:00:00 2001 From: Merel Jossart Date: Fri, 4 Oct 2024 07:38:30 +0200 Subject: [PATCH 4/4] [FEATURE] Update sentry plugin and configure ignored exceptions --- composer.json | 2 +- composer.lock | 279 +++++++++++++++++++--------------------- config/craft-sentry.php | 12 +- 3 files changed, 145 insertions(+), 148 deletions(-) diff --git a/composer.json b/composer.json index 22950bb6..113e9a18 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "statikbe/craft-carbon-tracker": "5.0.2", "statikbe/craft-config-values": "^5.0.0", "statikbe/craft-cookie-banner": "^5.0.0", - "statikbe/craft-sentry": "^5.0.0", + "statikbe/craft-sentry": "5.1.0", "statikbe/craft-translate": "^5.0.0", "statikbe/craft-video-parser": "^5.0.0", "studioespresso/craft-dumper": "5.0.1", diff --git a/composer.lock b/composer.lock index 7d48c1ce..b7d5a474 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0404d2cbb49a7e04cea2879027ab49ef", + "content-hash": "d1e3d8200e4a4f97e2ec36feecc271bc", "packages": [ { "name": "bacon/bacon-qr-code", @@ -226,11 +226,11 @@ }, { "name": "composer/semver", - "version": "3.4.2", + "version": "3.4.3", "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/c51258e759afdb17f1fd1fe83bc12baaef6309d6", - "reference": "c51258e759afdb17f1fd1fe83bc12baaef6309d6", + "url": "https://api.github.com/repos/composer/semver/zipball/4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", "shasum": "" }, "require": { @@ -274,7 +274,7 @@ "validation", "versioning" ], - "time": "2024-07-12T11:35:52+00:00" + "time": "2024-09-19T14:15:21+00:00" }, { "name": "craftcms/ckeditor", @@ -560,11 +560,11 @@ }, { "name": "craftcms/server-check", - "version": "5.0.1", + "version": "5.0.2", "dist": { "type": "zip", - "url": "https://api.github.com/repos/craftcms/server-check/zipball/72d674834520d339006d2a32e3a59ae14b3a0ff6", - "reference": "72d674834520d339006d2a32e3a59ae14b3a0ff6", + "url": "https://api.github.com/repos/craftcms/server-check/zipball/2c0578a3b0e663402ce5bf752e7308218937fad9", + "reference": "2c0578a3b0e663402ce5bf752e7308218937fad9", "shasum": "" }, "type": "library", @@ -584,7 +584,7 @@ "requirements", "yii2" ], - "time": "2024-01-23T23:20:44+00:00" + "time": "2024-09-16T15:18:27+00:00" }, { "name": "creocoder/yii2-nested-sets", @@ -1692,7 +1692,7 @@ }, { "name": "illuminate/collections", - "version": "v10.48.20", + "version": "v10.48.22", "dist": { "type": "zip", "url": "https://api.github.com/repos/illuminate/collections/zipball/37c863cffb345869dd134eff8e646bc82a19cc96", @@ -1737,7 +1737,7 @@ }, { "name": "illuminate/conditionable", - "version": "v10.48.20", + "version": "v10.48.22", "dist": { "type": "zip", "url": "https://api.github.com/repos/illuminate/conditionable/zipball/d0958e4741fc9d6f516a552060fd1b829a85e009", @@ -1773,7 +1773,7 @@ }, { "name": "illuminate/contracts", - "version": "v10.48.20", + "version": "v10.48.22", "dist": { "type": "zip", "url": "https://api.github.com/repos/illuminate/contracts/zipball/8d7152c4a1f5d9cf7da3e8b71f23e4556f6138ac", @@ -1811,7 +1811,7 @@ }, { "name": "illuminate/macroable", - "version": "v10.48.20", + "version": "v10.48.22", "dist": { "type": "zip", "url": "https://api.github.com/repos/illuminate/macroable/zipball/dff667a46ac37b634dcf68909d9d41e94dc97c27", @@ -2062,15 +2062,15 @@ }, { "name": "lcobucci/clock", - "version": "3.2.0", + "version": "3.3.1", "dist": { "type": "zip", - "url": "https://api.github.com/repos/lcobucci/clock/zipball/6f28b826ea01306b07980cb8320ab30b966cd715", - "reference": "6f28b826ea01306b07980cb8320ab30b966cd715", + "url": "https://api.github.com/repos/lcobucci/clock/zipball/db3713a61addfffd615b79bf0bc22f0ccc61b86b", + "reference": "db3713a61addfffd615b79bf0bc22f0ccc61b86b", "shasum": "" }, "require": { - "php": "~8.2.0 || ~8.3.0", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0", "psr/clock": "^1.0" }, "provide": { @@ -2092,7 +2092,7 @@ } ], "description": "Yet another clock abstraction", - "time": "2023-11-17T17:00:27+00:00" + "time": "2024-09-24T20:45:14+00:00" }, { "name": "lcobucci/jwt", @@ -2749,11 +2749,11 @@ }, { "name": "moneyphp/money", - "version": "v4.5.0", + "version": "v4.5.1", "dist": { "type": "zip", - "url": "https://api.github.com/repos/moneyphp/money/zipball/a1daa7daf159b4044e3d0c34c41fe2be5860e850", - "reference": "a1daa7daf159b4044e3d0c34c41fe2be5860e850", + "url": "https://api.github.com/repos/moneyphp/money/zipball/142107bec4870ac2586057dc2fe917d25c92a91e", + "reference": "142107bec4870ac2586057dc2fe917d25c92a91e", "shasum": "" }, "require": { @@ -2805,7 +2805,7 @@ "money", "vo" ], - "time": "2024-02-15T19:47:21+00:00" + "time": "2024-09-27T12:04:27+00:00" }, { "name": "monolog/monolog", @@ -3223,15 +3223,15 @@ }, { "name": "paragonie/constant_time_encoding", - "version": "v2.7.0", + "version": "v3.0.0", "dist": { "type": "zip", - "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/52a0d99e69f56b9ec27ace92ba56897fe6993105", - "reference": "52a0d99e69f56b9ec27ace92ba56897fe6993105", + "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/df1e7fde177501eee2037dd159cf04f5f301a512", + "reference": "df1e7fde177501eee2037dd159cf04f5f301a512", "shasum": "" }, "require": { - "php": "^7|^8" + "php": "^8" }, "type": "library", "autoload": { @@ -3271,7 +3271,7 @@ "hex2bin", "rfc4648" ], - "time": "2024-05-08T12:18:48+00:00" + "time": "2024-05-08T12:36:18+00:00" }, { "name": "paragonie/random-lib", @@ -3733,11 +3733,11 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "1.30.0", + "version": "1.32.0", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/5ceb0e384997db59f38774bf79c2a6134252c08f", - "reference": "5ceb0e384997db59f38774bf79c2a6134252c08f", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/6ca22b154efdd9e3c68c56f5d94670920a1c19a4", + "reference": "6ca22b154efdd9e3c68c56f5d94670920a1c19a4", "shasum": "" }, "require": { @@ -3755,7 +3755,7 @@ "MIT" ], "description": "PHPDoc parser with support for nullable, intersection and generic types", - "time": "2024-08-29T09:54:52+00:00" + "time": "2024-09-26T07:23:32+00:00" }, { "name": "pixelandtonic/imagine", @@ -3808,15 +3808,15 @@ }, { "name": "pragmarx/google2fa", - "version": "v8.0.1", + "version": "v8.0.3", "dist": { "type": "zip", - "url": "https://api.github.com/repos/antonioribeiro/google2fa/zipball/80c3d801b31fe165f8fe99ea085e0a37834e1be3", - "reference": "80c3d801b31fe165f8fe99ea085e0a37834e1be3", + "url": "https://api.github.com/repos/antonioribeiro/google2fa/zipball/6f8d87ebd5afbf7790bde1ffc7579c7c705e0fad", + "reference": "6f8d87ebd5afbf7790bde1ffc7579c7c705e0fad", "shasum": "" }, "require": { - "paragonie/constant_time_encoding": "^1.0|^2.0", + "paragonie/constant_time_encoding": "^1.0|^2.0|^3.0", "php": "^7.1|^8.0" }, "type": "library", @@ -3842,7 +3842,7 @@ "Two Factor Authentication", "google2fa" ], - "time": "2022-06-13T21:57:56+00:00" + "time": "2024-09-05T11:56:40+00:00" }, { "name": "pragmarx/random", @@ -4244,11 +4244,11 @@ }, { "name": "psr/log", - "version": "3.0.1", + "version": "3.0.2", "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/79dff0b268932c640297f5208d6298f71855c03e", - "reference": "79dff0b268932c640297f5208d6298f71855c03e", + "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", "shasum": "" }, "require": { @@ -4281,7 +4281,7 @@ "psr", "psr-3" ], - "time": "2024-08-21T13:31:24+00:00" + "time": "2024-09-11T13:17:53+00:00" }, { "name": "psr/simple-cache", @@ -4555,11 +4555,11 @@ }, { "name": "sentry/sentry", - "version": "4.8.1", + "version": "4.9.0", "dist": { "type": "zip", - "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/61770efd8b7888e0bdd7d234f0ba67b066e47d04", - "reference": "61770efd8b7888e0bdd7d234f0ba67b066e47d04", + "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/788ec170f51ebb22f2809a1e3f78b19ccd39b70d", + "reference": "788ec170f51ebb22f2809a1e3f78b19ccd39b70d", "shasum": "" }, "require": { @@ -4609,7 +4609,7 @@ "sentry", "tracing" ], - "time": "2024-07-16T13:45:27+00:00" + "time": "2024-08-08T14:40:50+00:00" }, { "name": "spatie/schema-org", @@ -4933,11 +4933,11 @@ }, { "name": "statikbe/craft-sentry", - "version": "5.0.0", + "version": "5.1.0", "dist": { "type": "zip", - "url": "https://api.github.com/repos/statikbe/craft-sentry/zipball/9c9898124f9ae6c9c2c489c180a710ea2f28d915", - "reference": "9c9898124f9ae6c9c2c489c180a710ea2f28d915", + "url": "https://api.github.com/repos/statikbe/craft-sentry/zipball/9f286b8fa2fa880d364c44597fe9ef2ba83c9e7a", + "reference": "9f286b8fa2fa880d364c44597fe9ef2ba83c9e7a", "shasum": "" }, "require": { @@ -4981,7 +4981,7 @@ "docs": "https://github.com/statikbe/craft-sentry/blob/master/README.md", "issues": "https://github.com/statikbe/craft-sentry/issues" }, - "time": "2024-03-26T20:12:57+00:00" + "time": "2024-10-02T13:46:24+00:00" }, { "name": "statikbe/craft-translate", @@ -5622,11 +5622,11 @@ }, { "name": "symfony/filesystem", - "version": "v6.4.9", + "version": "v6.4.12", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/b51ef8059159330b74a4d52f68e671033c0fe463", - "reference": "b51ef8059159330b74a4d52f68e671033c0fe463", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/f810e3cbdf7fdc35983968523d09f349fa9ada12", + "reference": "f810e3cbdf7fdc35983968523d09f349fa9ada12", "shasum": "" }, "require": { @@ -5658,15 +5658,15 @@ ], "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", - "time": "2024-06-28T09:49:33+00:00" + "time": "2024-09-16T16:01:33+00:00" }, { "name": "symfony/http-client", - "version": "v6.4.11", + "version": "v6.4.12", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/4c92046bb788648ff1098cc66da69aa7eac8cb65", - "reference": "4c92046bb788648ff1098cc66da69aa7eac8cb65", + "url": "https://api.github.com/repos/symfony/http-client/zipball/fbebfcce21084d3e91ea987ae5bdd8c71ff0fd56", + "reference": "fbebfcce21084d3e91ea987ae5bdd8c71ff0fd56", "shasum": "" }, "require": { @@ -5713,7 +5713,7 @@ "keywords": [ "http" ], - "time": "2024-08-26T06:30:21+00:00" + "time": "2024-09-20T08:21:33+00:00" }, { "name": "symfony/http-client-contracts", @@ -5772,11 +5772,11 @@ }, { "name": "symfony/mailer", - "version": "v7.1.2", + "version": "v7.1.5", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailer/zipball/8fcff0af9043c8f8a8e229437cea363e282f9aee", - "reference": "8fcff0af9043c8f8a8e229437cea363e282f9aee", + "url": "https://api.github.com/repos/symfony/mailer/zipball/bbf21460c56f29810da3df3e206e38dfbb01e80b", + "reference": "bbf21460c56f29810da3df3e206e38dfbb01e80b", "shasum": "" }, "require": { @@ -5819,15 +5819,15 @@ ], "description": "Helps sending emails", "homepage": "https://symfony.com", - "time": "2024-06-28T08:00:31+00:00" + "time": "2024-09-08T12:32:26+00:00" }, { "name": "symfony/mime", - "version": "v7.1.4", + "version": "v7.1.5", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/ccaa6c2503db867f472a587291e764d6a1e58758", - "reference": "ccaa6c2503db867f472a587291e764d6a1e58758", + "url": "https://api.github.com/repos/symfony/mime/zipball/711d2e167e8ce65b05aea6b258c449671cdd38ff", + "reference": "711d2e167e8ce65b05aea6b258c449671cdd38ff", "shasum": "" }, "require": { @@ -5870,7 +5870,7 @@ "mime", "mime-type" ], - "time": "2024-08-13T14:28:19+00:00" + "time": "2024-09-20T08:28:38+00:00" }, { "name": "symfony/options-resolver", @@ -5918,15 +5918,15 @@ }, { "name": "symfony/polyfill-ctype", - "version": "v1.30.0", + "version": "v1.31.0", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/0424dff1c58f028c451efff2045f5d92410bd540", - "reference": "0424dff1c58f028c451efff2045f5d92410bd540", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "provide": { "ext-ctype": "*" @@ -5970,19 +5970,19 @@ "polyfill", "portable" ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-iconv", - "version": "v1.30.0", + "version": "v1.31.0", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/c027e6a3c6aee334663ec21f5852e89738abc805", - "reference": "c027e6a3c6aee334663ec21f5852e89738abc805", + "url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/48becf00c920479ca2e910c22a5a39e5d47ca956", + "reference": "48becf00c920479ca2e910c22a5a39e5d47ca956", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "provide": { "ext-iconv": "*" @@ -6027,19 +6027,19 @@ "portable", "shim" ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.30.0", + "version": "v1.31.0", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/64647a7c30b2283f5d49b874d84a18fc22054b7a", - "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", + "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "suggest": { "ext-intl": "For best performance" @@ -6082,21 +6082,20 @@ "portable", "shim" ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-intl-idn", - "version": "v1.30.0", + "version": "v1.31.0", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/a6e83bdeb3c84391d1dfe16f42e40727ce524a5c", - "reference": "a6e83bdeb3c84391d1dfe16f42e40727ce524a5c", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/c36586dcf89a12315939e00ec9b4474adcb1d773", + "reference": "c36586dcf89a12315939e00ec9b4474adcb1d773", "shasum": "" }, "require": { - "php": ">=7.1", - "symfony/polyfill-intl-normalizer": "^1.10", - "symfony/polyfill-php72": "^1.10" + "php": ">=7.2", + "symfony/polyfill-intl-normalizer": "^1.10" }, "suggest": { "ext-intl": "For best performance" @@ -6143,19 +6142,19 @@ "portable", "shim" ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.30.0", + "version": "v1.31.0", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/a95281b0be0d9ab48050ebd988b967875cdb9fdb", - "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c", + "reference": "3833d7255cc303546435cb650316bff708a1c75c", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "suggest": { "ext-intl": "For best performance" @@ -6201,19 +6200,19 @@ "portable", "shim" ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.30.0", + "version": "v1.31.0", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fd22ab50000ef01661e2a31d850ebaa297f8e03c", - "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", + "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "provide": { "ext-mbstring": "*" @@ -6258,35 +6257,27 @@ "portable", "shim" ], - "time": "2024-06-19T12:30:46+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-php72", - "version": "v1.30.0", + "version": "v1.31.0", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/10112722600777e02d2745716b70c5db4ca70442", - "reference": "10112722600777e02d2745716b70c5db4ca70442", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/fa2ae56c44f03bed91a39bfc9822e31e7c5c38ce", + "reference": "fa2ae56c44f03bed91a39bfc9822e31e7c5c38ce", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, - "type": "library", + "type": "metapackage", "extra": { "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" } }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php72\\": "" - } - }, "license": [ "MIT" ], @@ -6308,19 +6299,19 @@ "portable", "shim" ], - "time": "2024-06-19T12:30:46+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.30.0", + "version": "v1.31.0", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/77fa7995ac1b21ab60769b7323d600a991a90433", - "reference": "77fa7995ac1b21ab60769b7323d600a991a90433", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", + "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "type": "library", "extra": { @@ -6365,19 +6356,19 @@ "portable", "shim" ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-uuid", - "version": "v1.30.0", + "version": "v1.31.0", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/2ba1f33797470debcda07fe9dce20a0003df18e9", - "reference": "2ba1f33797470debcda07fe9dce20a0003df18e9", + "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/21533be36c24be3f4b1669c4725c7d1d2bab4ae2", + "reference": "21533be36c24be3f4b1669c4725c7d1d2bab4ae2", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "provide": { "ext-uuid": "*" @@ -6421,7 +6412,7 @@ "portable", "uuid" ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/postmark-mailer", @@ -6468,11 +6459,11 @@ }, { "name": "symfony/process", - "version": "v7.1.3", + "version": "v7.1.5", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/7f2f542c668ad6c313dc4a5e9c3321f733197eca", - "reference": "7f2f542c668ad6c313dc4a5e9c3321f733197eca", + "url": "https://api.github.com/repos/symfony/process/zipball/5c03ee6369281177f07f7c68252a280beccba847", + "reference": "5c03ee6369281177f07f7c68252a280beccba847", "shasum": "" }, "require": { @@ -6502,7 +6493,7 @@ ], "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", - "time": "2024-07-26T12:44:47+00:00" + "time": "2024-09-19T21:48:23+00:00" }, { "name": "symfony/property-access", @@ -6610,11 +6601,11 @@ }, { "name": "symfony/serializer", - "version": "v6.4.11", + "version": "v6.4.12", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/a75d03d7720417f8a654e73e8f02acdea8779cd0", - "reference": "a75d03d7720417f8a654e73e8f02acdea8779cd0", + "url": "https://api.github.com/repos/symfony/serializer/zipball/10ae9c1b90f4809ccb7277cc8fe8d80b3af4412c", + "reference": "10ae9c1b90f4809ccb7277cc8fe8d80b3af4412c", "shasum": "" }, "require": { @@ -6657,7 +6648,7 @@ ], "description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.", "homepage": "https://symfony.com", - "time": "2024-08-17T07:51:47+00:00" + "time": "2024-09-20T08:15:52+00:00" }, { "name": "symfony/service-contracts", @@ -6721,11 +6712,11 @@ }, { "name": "symfony/string", - "version": "v7.1.4", + "version": "v7.1.5", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/6cd670a6d968eaeb1c77c2e76091c45c56bc367b", - "reference": "6cd670a6d968eaeb1c77c2e76091c45c56bc367b", + "url": "https://api.github.com/repos/symfony/string/zipball/d66f9c343fa894ec2037cc928381df90a7ad4306", + "reference": "d66f9c343fa894ec2037cc928381df90a7ad4306", "shasum": "" }, "require": { @@ -6773,15 +6764,15 @@ "utf-8", "utf8" ], - "time": "2024-08-12T09:59:40+00:00" + "time": "2024-09-20T08:28:38+00:00" }, { "name": "symfony/type-info", - "version": "v7.1.1", + "version": "v7.1.5", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/type-info/zipball/60b28eb733f1453287f1263ed305b96091e0d1dc", - "reference": "60b28eb733f1453287f1263ed305b96091e0d1dc", + "url": "https://api.github.com/repos/symfony/type-info/zipball/9f6094aa900d2c06bd61576a6f279d4ac441515f", + "reference": "9f6094aa900d2c06bd61576a6f279d4ac441515f", "shasum": "" }, "require": { @@ -6827,15 +6818,15 @@ "symfony", "type" ], - "time": "2024-05-31T14:59:31+00:00" + "time": "2024-09-19T21:48:23+00:00" }, { "name": "symfony/uid", - "version": "v7.1.4", + "version": "v7.1.5", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/uid/zipball/82177535395109075cdb45a70533aa3d7a521cdf", - "reference": "82177535395109075cdb45a70533aa3d7a521cdf", + "url": "https://api.github.com/repos/symfony/uid/zipball/8c7bb8acb933964055215d89f9a9871df0239317", + "reference": "8c7bb8acb933964055215d89f9a9871df0239317", "shasum": "" }, "require": { @@ -6875,7 +6866,7 @@ "ulid", "uuid" ], - "time": "2024-08-12T09:59:40+00:00" + "time": "2024-09-17T09:16:35+00:00" }, { "name": "symfony/var-dumper", @@ -6980,11 +6971,11 @@ }, { "name": "symfony/yaml", - "version": "v5.4.43", + "version": "v5.4.44", "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/62f96e1cfd4cf518882a36bfedcf1fe4093c1299", - "reference": "62f96e1cfd4cf518882a36bfedcf1fe4093c1299", + "url": "https://api.github.com/repos/symfony/yaml/zipball/7025b964f123bbf1896d7563db6ec7f1f63e918a", + "reference": "7025b964f123bbf1896d7563db6ec7f1f63e918a", "shasum": "" }, "require": { @@ -7025,7 +7016,7 @@ ], "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", - "time": "2024-08-11T17:40:32+00:00" + "time": "2024-09-16T14:36:56+00:00" }, { "name": "theiconic/name-parser", diff --git a/config/craft-sentry.php b/config/craft-sentry.php index f3e67ad6..68cf1120 100644 --- a/config/craft-sentry.php +++ b/config/craft-sentry.php @@ -1,9 +1,15 @@ getenv("CRAFT_ENVIRONMENT") === "production", + 'enabled' => getenv('CRAFT_ENVIRONMENT') === 'production', 'anonymous' => true, 'clientDsn' => "", 'excludedCodes' => ['400', '404', '429'], - 'release' => null, -]; \ No newline at end of file + 'excludedExceptions' => [ + \craft\errors\ImageTransformException::class, + \yii\web\ForbiddenHttpException::class, + ], + 'release' => getenv('SENTRY_RELEASE') ?: null, +]; +