@witchcraft/ui 0.4.1 → 0.4.2

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.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "witchcraftUi",
3
3
  "configKey": "witchcraftUi",
4
- "version": "0.4.1",
4
+ "version": "0.4.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -54,11 +54,11 @@ export type RawNotificationEntry<TOptions extends string[] = ["Ok", "Cancel"], T
54
54
  message: string;
55
55
  component?: string | Component;
56
56
  /** Props for the custom component. By default the component is passed the message, the messageClasses, and the full notification. Both will be overriden if you set them on componentProps. */
57
- componentProps?: Record<string, any> & {
57
+ componentProps?: Record<string, any> & Partial<{
58
58
  notification: NotificationEntry;
59
59
  message: string;
60
60
  messageClasses: string;
61
- };
61
+ }>;
62
62
  /**
63
63
  * Attributes for the notification component itself. They are bound to the root of the element and the class property is merged with twMerge.
64
64
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@witchcraft/ui",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Vue component library.",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime/main.lib.js",
@@ -237,7 +237,7 @@ export type RawNotificationEntry<
237
237
  message: string
238
238
  component?: string | Component
239
239
  /** Props for the custom component. By default the component is passed the message, the messageClasses, and the full notification. Both will be overriden if you set them on componentProps. */
240
- componentProps?: Record<string, any> & { notification: NotificationEntry, message: string, messageClasses: string }
240
+ componentProps?: Record<string, any> & Partial<{ notification: NotificationEntry, message: string, messageClasses: string }>
241
241
  /**
242
242
  * Attributes for the notification component itself. They are bound to the root of the element and the class property is merged with twMerge.
243
243
  *