@marianmeres/stuic 1.35.0 → 1.36.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.
@@ -36,6 +36,7 @@ export interface NotiticationsCreateStoreOptions {
36
36
  defaultTtl: number;
37
37
  sortOrder?: NotificationsSortOrder;
38
38
  defaultIcons?: Record<NotificationType, () => string> | boolean;
39
+ forceAsHtml: boolean | undefined;
39
40
  logger: (...v: any) => void;
40
41
  }
41
42
  export declare const NOTIFICATION_EVENT: {
@@ -59,6 +60,7 @@ export declare const createNotificationsStore: (initial?: NotificationCreatePara
59
60
  defaultTtl?: number | undefined;
60
61
  sortOrder?: NotificationsSortOrder | undefined;
61
62
  defaultIcons?: boolean | Record<string, () => string> | undefined;
63
+ forceAsHtml?: boolean | undefined;
62
64
  logger?: ((...v: any) => void) | undefined;
63
65
  };
64
66
  EVENT: {
@@ -67,6 +67,7 @@ export const createNotificationsStore = (initial = [], opts = {}) => {
67
67
  notif.id ||= _id(notif.type, [notif.content].join());
68
68
  notif.created = new Date(notif.created || Date.now());
69
69
  notif.count ??= 1;
70
+ notif.forceAsHtml ??= opts.forceAsHtml;
70
71
  //
71
72
  if (notif.ttl === undefined)
72
73
  notif.ttl = opts.defaultTtl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "1.35.0",
3
+ "version": "1.36.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package && node ./scripts/date.js",