Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 4.1.1 - Released on 2025-05-14

### Reactor

- JS DOC removed
- Themes refactored

### Fixes

- Fixed the effect of CSS variable `--pr-current-font` on content

<br>

## 4.1.0 - Released on 2025-05-14

It's done! I found time to finish this useful library!
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prismium-src",
"version": "4.1.0",
"version": "4.1.1",
"description": "A modern JavaScript accordion library with smooth animations. Easily integrates with React, Vue, and vanilla JavaScript.",
"type": "module",
"scripts": {
Expand Down
3 changes: 0 additions & 3 deletions src/core/errors/PrismiumError.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/**
* Class for handling Prismium errors
* @extends Error
*/
export class PrismiumError extends Error {
/**
* Creates a new Prismium error
* @param {string} message - Error message
* @param {Error} [originalError] - Original error that was caught
*/
constructor(message, originalError) {
super(message);
Expand Down
10 changes: 0 additions & 10 deletions src/core/managers/DOMManager.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import { PrismiumError } from '../errors/PrismiumError.mjs';
export class DOMManager {
/**
* Set up the DOM manager with Prismium instance and element
* @param {import('../../types/core').default} instance - Prismium instance
* @param {HTMLElement} el - Root element
* @returns {DOMManager} The DOMManager instance
*/
setup(instance, el) {
this.validateElement(el);
Expand All @@ -23,8 +20,6 @@ export class DOMManager {

/**
* Validate that the element is valid for Prismium
* @param {Element} el - Element to validate
* @throws {PrismiumError} If the element is invalid
*/
validateElement(el) {
if (!el) {
Expand All @@ -42,8 +37,6 @@ export class DOMManager {

/**
* Create the accordion structure
* @param {HTMLElement} el - Root element
* @throws {Error} If required elements are not found
*/
createStructure(el) {
const content = el.querySelector(this.instance.options.contentSelector);
Expand Down Expand Up @@ -87,7 +80,6 @@ export class DOMManager {

/**
* Set CSS classes for elements
* @param {HTMLElement} el - Root element
*/
setClasses(el) {
el.classList.add('prismium');
Expand All @@ -98,7 +90,6 @@ export class DOMManager {

/**
* Apply theme classes to the element
* @param {HTMLElement} el - Root element
*/
setTheme(el) {
const { theme } = this.instance.options;
Expand All @@ -117,7 +108,6 @@ export class DOMManager {

/**
* Handle the initial state of the accordion
* @param {HTMLElement} el - Root element
*/
handleInitialState(el) {
if (
Expand Down
Loading