@wastedondestiny/destiny-library 1.5.4 → 1.6.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.
- package/README.md +57 -11
- package/dist/components/Dialog.vue.d.ts +10 -0
- package/dist/components/FallbackImage.vue.d.ts +9 -0
- package/dist/components/MarkdownContent.vue.d.ts +5 -0
- package/dist/destiny-library.js +3422 -1822
- package/dist/destiny-library.umd.cjs +57 -2
- package/dist/index.d.ts +4 -1
- package/dist/style.css +1 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,18 +1,64 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @wastedondestiny/destiny-library
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A Vue 3 component library and utilities for Destiny-related projects.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```bash
|
|
8
|
+
npm install @wastedondestiny/destiny-library
|
|
9
|
+
```
|
|
8
10
|
|
|
9
|
-
##
|
|
11
|
+
## Components
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
### UI Components
|
|
14
|
+
- **Collapsible** - Expandable/collapsible content container
|
|
15
|
+
- **DialogWindow** - Modal dialog component
|
|
16
|
+
- **Dropdown** - Dropdown menu component
|
|
17
|
+
- **ErrorToast** - Toast notification for error messages
|
|
18
|
+
- **FallbackImage** - Image component with fallback support
|
|
19
|
+
- **MarkdownContent** - Render markdown content with syntax highlighting
|
|
20
|
+
- **PlatformIcon** - Display platform-specific icons
|
|
21
|
+
- **Popup** - Popup/overlay component
|
|
22
|
+
- **ProjectMenu** - Project navigation menu
|
|
23
|
+
- **TheFooter** - Footer component
|
|
24
|
+
- **TheTooltip** - Tooltip component with vue-tippy integration
|
|
12
25
|
|
|
13
|
-
|
|
26
|
+
## Composables
|
|
14
27
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
28
|
+
### Utilities
|
|
29
|
+
- **clickOutside** - Detect clicks outside an element
|
|
30
|
+
- **konami** - Konami code detection
|
|
31
|
+
- **mediaQuery** - Responsive media query helper
|
|
32
|
+
- **google** - Google integration utilities
|
|
33
|
+
- **playwire** - Playwire ad integration
|
|
34
|
+
|
|
35
|
+
## Usage
|
|
36
|
+
|
|
37
|
+
```javascript
|
|
38
|
+
import { Collapsible, DialogWindow, ErrorToast } from '@wastedondestiny/destiny-library'
|
|
39
|
+
import { useClickOutside, useKonami, useMediaQuery } from '@wastedondestiny/destiny-library'
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Development
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Install dependencies
|
|
46
|
+
npm install
|
|
47
|
+
|
|
48
|
+
# Start dev server
|
|
49
|
+
npm run dev
|
|
50
|
+
|
|
51
|
+
# Build library
|
|
52
|
+
npm run build
|
|
53
|
+
|
|
54
|
+
# Run tests
|
|
55
|
+
npm test
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Peer Dependencies
|
|
59
|
+
|
|
60
|
+
- Vue ^3.2.47
|
|
61
|
+
|
|
62
|
+
## License
|
|
63
|
+
|
|
64
|
+
MIT
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Dialog } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
dialog: Dialog;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
close: (...args: any[]) => void;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
src: string;
|
|
3
|
+
fallbackSrc: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
alt: string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
url: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|