
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@agencecinq/modal
Advanced tools
A lightweight, accessible Web Component wrapper around the native HTML `<dialog>` element, designed for Shopify themes. Part of the **CINQ** internal tools ecosystem.
A lightweight, accessible Web Component wrapper around the native HTML <dialog> element, designed for Shopify themes. Part of the CINQ internal tools ecosystem.
<dialog>: Uses showModal() / close() for a solid baseline behavior.@agencecinq/utils event names.pnpm add @agencecinq/modal
In your theme entry (e.g. theme.ts, main.js):
import "@agencecinq/modal";
Render the markup and wire buttons with aria-controls.
cinq-modal must have an id, because it toggles itself when detail.modal matches its id.
<cinq-modal-button>
<button aria-controls="newsletter-modal" aria-pressed="false">
Open modal
</button>
</cinq-modal-button>
<cinq-modal id="newsletter-modal">
<dialog>
...
</dialog>
</cinq-modal>
<cinq-modal> must contain a <dialog> (or an element marked with [data-dialog]).
An id is required if you want it to react to modal-toggle events from cinq-modal-button.
<cinq-modal id="my-modal">
<dialog>...</dialog>
</cinq-modal>
Interact with the element instance directly:
const $modal = document.querySelector("cinq-modal#my-modal");
$modal.show();
$modal.close();
Event names come from @agencecinq/utils:
| Event | Emitted by | Payload (event.detail) | Description |
|---|---|---|---|
modal-toggle | cinq-modal-button | { modal: string; trigger: HTMLButtonElement; trap: HTMLElement | null } | Requests toggling a modal identified by the button aria-controls. One event is dispatched per id (space-separated list supported). |
modal-open | cinq-modal | { modal: string } | Dispatched after calling show(). Contains the modal id so buttons can sync their aria-pressed state. |
modal-close | cinq-modal | undefined | Dispatched after calling close(). |
modal-togglecinq-modal-button dispatches modal-toggle on document.documentElement with:
detail.modal: the modal id from the button aria-controlsdetail.trigger: the button elementdetail.trap: optional element id from data-trap (if you use it)cinq-modal listens to modal-toggle by default and toggles itself when detail.modal matches its id (so id is required for event-driven open/close).
Note:
cinq-modal-buttonsetsaria-pressed="true"on click and resets it tofalseon anyEVENTS.MODAL_CLOSEevent (it does not filter by modal id).
pnpm -C packages/modal build
pnpm -C packages/modal dev
Internal tool developed by CINQ. All rights reserved.
FAQs
A lightweight, accessible Web Component wrapper around the native HTML `<dialog>` element, designed for Shopify themes. Part of the **CINQ** internal tools ecosystem.
We found that @agencecinq/modal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.