@lauravivan/notion-portfolio 1.0.5 → 1.1.1

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.
Files changed (40) hide show
  1. package/dist/index.es.js +5185 -5072
  2. package/dist/notion-portfolio.css +1 -1
  3. package/dist/packages/core/@client/components/Breadcrumb.vue.d.ts +5 -1
  4. package/dist/packages/core/@client/components/Callout.vue.d.ts +4 -1
  5. package/dist/packages/core/@client/components/Column/Column.vue.d.ts +17 -0
  6. package/dist/packages/core/@client/components/Column/Columns.vue.d.ts +30 -0
  7. package/dist/packages/core/@client/components/Column/index.d.ts +2 -0
  8. package/dist/packages/core/@client/components/Database/Database.vue.d.ts +1 -3
  9. package/dist/packages/core/@client/components/Database/DatabaseGalleryLayout.vue.d.ts +1 -3
  10. package/dist/packages/core/@client/components/Heading.vue.d.ts +1 -3
  11. package/dist/packages/core/@client/components/{Column.vue.d.ts → Link/Link.vue.d.ts} +4 -8
  12. package/dist/packages/core/@client/components/Link/LinkMention.vue.d.ts +6 -4
  13. package/dist/packages/core/@client/components/Link/index.d.ts +1 -0
  14. package/dist/packages/core/@client/components/List/ToDo/ToDoItem.vue.d.ts +1 -1
  15. package/dist/packages/core/{components → @client/components/List}/Toggle/ToggleList.vue.d.ts +1 -1
  16. package/dist/packages/core/@client/components/List/Toggle/index.d.ts +1 -0
  17. package/dist/packages/core/@client/components/List/index.d.ts +1 -0
  18. package/dist/packages/core/@client/components/Text.vue.d.ts +2 -2
  19. package/dist/packages/core/@client/components/TextHighlight.vue.d.ts +17 -0
  20. package/dist/packages/core/@client/components/index.d.ts +4 -5
  21. package/dist/packages/core/components/Content/Banner.vue.d.ts +6 -0
  22. package/dist/packages/core/components/Content/Content.vue.d.ts +21 -0
  23. package/dist/packages/core/components/Content/Wrapper.vue.d.ts +17 -0
  24. package/dist/packages/core/components/Content/index.d.ts +4 -0
  25. package/dist/packages/core/components/DatabaseInfo.vue.d.ts +6 -0
  26. package/dist/packages/core/components/Header.vue.d.ts +5 -1
  27. package/dist/packages/core/{@client/components → components/Modal}/MainModalView.vue.d.ts +2 -4
  28. package/dist/packages/core/components/NavLink.vue.d.ts +7 -0
  29. package/dist/packages/core/components/{NavLink/NestedLink.vue.d.ts → NestedLink.vue.d.ts} +3 -2
  30. package/dist/packages/core/components/Settings.vue.d.ts +12 -0
  31. package/dist/packages/core/enum/icons.d.ts +3 -3
  32. package/dist/packages/core/index.d.ts +3 -3
  33. package/dist/packages/core/store/store.d.ts +71 -32
  34. package/dist/packages/core/util/index.d.ts +0 -1
  35. package/dist/src/pages/page-example-2.vue.d.ts +1 -1
  36. package/package.json +2 -2
  37. package/dist/packages/core/util/createPage.d.ts +0 -19
  38. /package/dist/packages/core/components/{NavLink/NavLink.vue.d.ts → Content/Title.vue.d.ts} +0 -0
  39. /package/dist/packages/core/{@client/components → components/Modal}/Modal.vue.d.ts +0 -0
  40. /package/dist/packages/core/components/{Toggle/Toggle.vue.d.ts → ToggleBtn.vue.d.ts} +0 -0
@@ -1,20 +1,16 @@
1
1
  type __VLS_Props = {
2
- numberOfColumns: number;
2
+ href: string;
3
3
  };
4
4
  declare function __VLS_template(): {
5
5
  attrs: Partial<{}>;
6
6
  slots: {
7
- 'column-1'?(_: {}): any;
8
- 'column-2'?(_: {}): any;
9
- 'column-3'?(_: {}): any;
10
- 'column-4'?(_: {}): any;
11
- 'column-5'?(_: {}): any;
7
+ default?(_: {}): any;
12
8
  };
13
9
  refs: {};
14
- rootEl: any;
10
+ rootEl: HTMLAnchorElement;
15
11
  };
16
12
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLAnchorElement>;
18
14
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
15
  export default _default;
20
16
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,18 +1,20 @@
1
+ import { PageInfo } from '../../../@types';
1
2
  type __VLS_Props = {
2
- href: string;
3
+ href?: string;
3
4
  emoji: string;
4
- target?: string;
5
+ page?: PageInfo;
5
6
  };
6
7
  declare function __VLS_template(): {
7
8
  attrs: Partial<{}>;
8
9
  slots: {
9
10
  default?(_: {}): any;
11
+ default?(_: {}): any;
10
12
  };
11
13
  refs: {};
12
- rootEl: HTMLAnchorElement;
14
+ rootEl: any;
13
15
  };
14
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLAnchorElement>;
17
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
18
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
19
  export default _default;
18
20
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,2 +1,3 @@
1
1
  export { default as Bookmark } from './Bookmark.vue';
2
2
  export { default as LinkMention } from './LinkMention.vue';
3
+ export { default as Link } from './Link.vue';
@@ -1,5 +1,5 @@
1
1
  type __VLS_Props = {
2
- isChecked: boolean;
2
+ isChecked?: boolean;
3
3
  };
4
4
  declare function __VLS_template(): {
5
5
  attrs: Partial<{}>;
@@ -1,4 +1,4 @@
1
- import { Icons } from '../../enum';
1
+ import { Icons } from '../../../../enum';
2
2
  type __VLS_Props = {
3
3
  iconToOpen: Icons;
4
4
  iconToClose: Icons;
@@ -0,0 +1 @@
1
+ export { default as ToggleList } from './ToggleList.vue';
@@ -1,2 +1,3 @@
1
1
  export { BulletItem, BulletList } from './Bullet';
2
2
  export { ToDoItem, ToDoList } from './ToDo';
3
+ export { ToggleList } from './Toggle';
@@ -4,10 +4,10 @@ declare function __VLS_template(): {
4
4
  default?(_: {}): any;
5
5
  };
6
6
  refs: {};
7
- rootEl: HTMLSpanElement;
7
+ rootEl: HTMLParagraphElement;
8
8
  };
9
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLParagraphElement>;
11
11
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
12
  export default _default;
13
13
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLSpanElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -1,14 +1,13 @@
1
- export { default as Modal } from './Modal.vue';
2
1
  export { default as Divider } from './Divider.vue';
3
2
  export { default as Text } from './Text.vue';
4
3
  export { default as Breadcrumb } from './Breadcrumb.vue';
5
4
  export { default as Image } from './Image.vue';
6
5
  export { default as Empty } from './Empty.vue';
7
- export { default as MainModalView } from './MainModalView.vue';
8
6
  export { default as Callout } from './Callout.vue';
9
- export { default as Column } from './Column.vue';
10
7
  export { default as Heading } from './Heading.vue';
11
8
  export { default as Loader } from './Loader.vue';
12
- export { BulletItem, BulletList, ToDoItem, ToDoList } from './List';
9
+ export { default as TextHighlight } from './TextHighlight.vue';
10
+ export { BulletItem, BulletList, ToDoItem, ToDoList, ToggleList } from './List';
13
11
  export { Database } from './Database';
14
- export { Bookmark, LinkMention } from './Link';
12
+ export { Bookmark, LinkMention, Link } from './Link';
13
+ export { Column, Columns } from './Column';
@@ -0,0 +1,6 @@
1
+ import { PageInfo } from '../../@types';
2
+ type __VLS_Props = {
3
+ page: PageInfo;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { PageInfo } from '../../@types';
2
+ type __VLS_Props = {
3
+ page: PageInfo;
4
+ };
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLDivElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,4 @@
1
+ export { default as Banner } from './Banner.vue';
2
+ export { default as Title } from './Title.vue';
3
+ export { default as Content } from './Content.vue';
4
+ export { default as Wrapper } from './Wrapper.vue';
@@ -0,0 +1,6 @@
1
+ import { PageInfo } from '../@types';
2
+ type __VLS_Props = {
3
+ page: PageInfo;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -1,2 +1,6 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ import { IMetadata } from '../@types';
2
+ type __VLS_Props = {
3
+ metadata: IMetadata;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
2
6
  export default _default;
@@ -1,11 +1,9 @@
1
1
  import { PageInfo } from '../../@types';
2
- import { Component } from 'vue';
3
2
  type __VLS_Props = {
4
- hideModal: () => void;
5
- addModalListener: () => void;
3
+ hideMainModal: () => void;
4
+ addMainModalListener: () => void;
6
5
  provideName: string;
7
6
  page: PageInfo;
8
- component: Component;
9
7
  };
10
8
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
9
  export default _default;
@@ -0,0 +1,7 @@
1
+ import { IMetadata, PageInfo } from '../@types';
2
+ type __VLS_Props = {
3
+ page: PageInfo | undefined;
4
+ metadata: IMetadata;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -1,6 +1,7 @@
1
- import { PageInfo } from '../../@types';
1
+ import { IMetadata } from '../@types';
2
2
  type __VLS_Props = {
3
- pages: PageInfo[];
3
+ ids: string[];
4
+ metadata: IMetadata;
4
5
  };
5
6
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
6
7
  export default _default;
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ hideSettingsModal: () => void;
3
+ addSettingsModalListener: () => void;
4
+ menuProvider: string;
5
+ modalStyles: {
6
+ top: string;
7
+ right: string;
8
+ };
9
+ pageId: string;
10
+ };
11
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
12
+ export default _default;
@@ -14,11 +14,11 @@ declare enum Icons {
14
14
  forkCode = "eva:git-network-outline",
15
15
  star = "eva:star-outline",
16
16
  eye = "eva:eye-outline",
17
- code = "eva:code-slash-outline",
17
+ code = "eva:code-outline",
18
18
  link = "eva:link-outline",
19
19
  add = "eva:plus-outline",
20
- expand = "eva:expand-outline",
21
- clock = "eva:time-outline",
20
+ expand = "material-symbols:expand-content-rounded",
21
+ clock = "eva:clock-fill",
22
22
  list = "eva:list-outline",
23
23
  close = "eva:close-outline",
24
24
  search = "eva:search-outline",
@@ -1,8 +1,8 @@
1
1
  export { Aside, Header, Tabs } from './components';
2
- export { Bookmark, Breadcrumb, BulletItem, BulletList, Callout, Column, Database, Divider, Empty, Heading, Image, LinkMention, Loader, MainModalView, Modal, Text, ToDoItem, ToDoList, } from './@client/components';
3
- export { createPage, isTouchDevice } from './util';
2
+ export { Bookmark, Breadcrumb, BulletItem, BulletList, Callout, Column, Database, Divider, Empty, Heading, Image, LinkMention, Loader, Text, ToDoItem, ToDoList, TextHighlight, Link, Columns, ToggleList, } from './@client/components';
3
+ export { isTouchDevice } from './util';
4
4
  export { MainLayout } from './layouts';
5
5
  export { NotFoundPage } from './pages';
6
6
  export { useStore, piniaInstance } from './store';
7
- export { useAside, useDisplay, useModal, useToggle } from './hooks';
7
+ export { useAside, useDisplay } from './hooks';
8
8
  export type { PageInfo, IMetadata } from './@types';
@@ -23,8 +23,8 @@ declare const useStore: import('pinia').Store<"global", State, {
23
23
  id: string;
24
24
  path: string;
25
25
  title: string;
26
- pages?: /*elided*/ any[] | undefined;
27
- parentPage?: /*elided*/ any | undefined;
26
+ pages?: string[] | undefined;
27
+ parentPage?: string | undefined;
28
28
  isHomepage?: boolean | undefined;
29
29
  component: Component;
30
30
  banner?: {
@@ -37,7 +37,12 @@ declare const useStore: import('pinia').Store<"global", State, {
37
37
  author?: string | undefined;
38
38
  link?: string | undefined;
39
39
  } | undefined;
40
- tags?: string[] | undefined;
40
+ databaseInfo?: {
41
+ [key: string]: {
42
+ icon: "clock" | "check" | "code";
43
+ value: string | string[];
44
+ };
45
+ } | undefined;
41
46
  };
42
47
  isAsideOpen: boolean;
43
48
  } & import('pinia').PiniaCustomStateProperties<State>) => DynamicPageInfo;
@@ -54,8 +59,8 @@ declare const useStore: import('pinia').Store<"global", State, {
54
59
  id: string;
55
60
  path: string;
56
61
  title: string;
57
- pages?: /*elided*/ any[] | undefined;
58
- parentPage?: /*elided*/ any | undefined;
62
+ pages?: string[] | undefined;
63
+ parentPage?: string | undefined;
59
64
  isHomepage?: boolean | undefined;
60
65
  component: Component;
61
66
  banner?: {
@@ -68,7 +73,12 @@ declare const useStore: import('pinia').Store<"global", State, {
68
73
  author?: string | undefined;
69
74
  link?: string | undefined;
70
75
  } | undefined;
71
- tags?: string[] | undefined;
76
+ databaseInfo?: {
77
+ [key: string]: {
78
+ icon: "clock" | "check" | "code";
79
+ value: string | string[];
80
+ };
81
+ } | undefined;
72
82
  };
73
83
  isAsideOpen: boolean;
74
84
  } & import('pinia').PiniaCustomStateProperties<State>) => "light-theme" | "dark-theme" | "cat-latte" | "cat-mocha";
@@ -85,8 +95,8 @@ declare const useStore: import('pinia').Store<"global", State, {
85
95
  id: string;
86
96
  path: string;
87
97
  title: string;
88
- pages?: /*elided*/ any[] | undefined;
89
- parentPage?: /*elided*/ any | undefined;
98
+ pages?: string[] | undefined;
99
+ parentPage?: string | undefined;
90
100
  isHomepage?: boolean | undefined;
91
101
  component: Component;
92
102
  banner?: {
@@ -99,7 +109,12 @@ declare const useStore: import('pinia').Store<"global", State, {
99
109
  author?: string | undefined;
100
110
  link?: string | undefined;
101
111
  } | undefined;
102
- tags?: string[] | undefined;
112
+ databaseInfo?: {
113
+ [key: string]: {
114
+ icon: "clock" | "check" | "code";
115
+ value: string | string[];
116
+ };
117
+ } | undefined;
103
118
  };
104
119
  isAsideOpen: boolean;
105
120
  } & import('pinia').PiniaCustomStateProperties<State>) => {
@@ -120,8 +135,8 @@ declare const useStore: import('pinia').Store<"global", State, {
120
135
  id: string;
121
136
  path: string;
122
137
  title: string;
123
- pages?: /*elided*/ any[] | undefined;
124
- parentPage?: /*elided*/ any | undefined;
138
+ pages?: string[] | undefined;
139
+ parentPage?: string | undefined;
125
140
  isHomepage?: boolean | undefined;
126
141
  component: Component;
127
142
  banner?: {
@@ -134,7 +149,12 @@ declare const useStore: import('pinia').Store<"global", State, {
134
149
  author?: string | undefined;
135
150
  link?: string | undefined;
136
151
  } | undefined;
137
- tags?: string[] | undefined;
152
+ databaseInfo?: {
153
+ [key: string]: {
154
+ icon: "clock" | "check" | "code";
155
+ value: string | string[];
156
+ };
157
+ } | undefined;
138
158
  };
139
159
  isAsideOpen: boolean;
140
160
  } & import('pinia').PiniaCustomStateProperties<State>) => number;
@@ -151,8 +171,8 @@ declare const useStore: import('pinia').Store<"global", State, {
151
171
  id: string;
152
172
  path: string;
153
173
  title: string;
154
- pages?: /*elided*/ any[] | undefined;
155
- parentPage?: /*elided*/ any | undefined;
174
+ pages?: string[] | undefined;
175
+ parentPage?: string | undefined;
156
176
  isHomepage?: boolean | undefined;
157
177
  component: Component;
158
178
  banner?: {
@@ -165,17 +185,21 @@ declare const useStore: import('pinia').Store<"global", State, {
165
185
  author?: string | undefined;
166
186
  link?: string | undefined;
167
187
  } | undefined;
168
- tags?: string[] | undefined;
188
+ databaseInfo?: {
189
+ [key: string]: {
190
+ icon: "clock" | "check" | "code";
191
+ value: string | string[];
192
+ };
193
+ } | undefined;
169
194
  };
170
195
  isAsideOpen: boolean;
171
196
  } & import('pinia').PiniaCustomStateProperties<State>) => {
172
- settings: import('../util/local-storage/types').Settings;
173
- created: Date | null;
174
- } | {
175
- settings: {
176
- fontFamily: string;
177
- fontSize: string;
178
- pageSize: string;
197
+ [x: string]: {
198
+ settings: {
199
+ fontFamily: string;
200
+ fontSize: string;
201
+ pageSize: string;
202
+ };
179
203
  };
180
204
  } | undefined;
181
205
  getActivePage: (state: {
@@ -191,8 +215,8 @@ declare const useStore: import('pinia').Store<"global", State, {
191
215
  id: string;
192
216
  path: string;
193
217
  title: string;
194
- pages?: /*elided*/ any[] | undefined;
195
- parentPage?: /*elided*/ any | undefined;
218
+ pages?: string[] | undefined;
219
+ parentPage?: string | undefined;
196
220
  isHomepage?: boolean | undefined;
197
221
  component: Component;
198
222
  banner?: {
@@ -205,15 +229,20 @@ declare const useStore: import('pinia').Store<"global", State, {
205
229
  author?: string | undefined;
206
230
  link?: string | undefined;
207
231
  } | undefined;
208
- tags?: string[] | undefined;
232
+ databaseInfo?: {
233
+ [key: string]: {
234
+ icon: "clock" | "check" | "code";
235
+ value: string | string[];
236
+ };
237
+ } | undefined;
209
238
  };
210
239
  isAsideOpen: boolean;
211
240
  } & import('pinia').PiniaCustomStateProperties<State>) => {
212
241
  id: string;
213
242
  path: string;
214
243
  title: string;
215
- pages?: /*elided*/ any[] | undefined;
216
- parentPage?: /*elided*/ any | undefined;
244
+ pages?: string[] | undefined;
245
+ parentPage?: string | undefined;
217
246
  isHomepage?: boolean | undefined;
218
247
  component: Component;
219
248
  banner?: {
@@ -226,7 +255,12 @@ declare const useStore: import('pinia').Store<"global", State, {
226
255
  author?: string | undefined;
227
256
  link?: string | undefined;
228
257
  } | undefined;
229
- tags?: string[] | undefined;
258
+ databaseInfo?: {
259
+ [key: string]: {
260
+ icon: "clock" | "check" | "code";
261
+ value: string | string[];
262
+ };
263
+ } | undefined;
230
264
  };
231
265
  getIsAsideOpen: (state: {
232
266
  dynamicPageInfo: DynamicPageInfo;
@@ -241,8 +275,8 @@ declare const useStore: import('pinia').Store<"global", State, {
241
275
  id: string;
242
276
  path: string;
243
277
  title: string;
244
- pages?: /*elided*/ any[] | undefined;
245
- parentPage?: /*elided*/ any | undefined;
278
+ pages?: string[] | undefined;
279
+ parentPage?: string | undefined;
246
280
  isHomepage?: boolean | undefined;
247
281
  component: Component;
248
282
  banner?: {
@@ -255,7 +289,12 @@ declare const useStore: import('pinia').Store<"global", State, {
255
289
  author?: string | undefined;
256
290
  link?: string | undefined;
257
291
  } | undefined;
258
- tags?: string[] | undefined;
292
+ databaseInfo?: {
293
+ [key: string]: {
294
+ icon: "clock" | "check" | "code";
295
+ value: string | string[];
296
+ };
297
+ } | undefined;
259
298
  };
260
299
  isAsideOpen: boolean;
261
300
  } & import('pinia').PiniaCustomStateProperties<State>) => boolean;
@@ -268,8 +307,8 @@ declare const useStore: import('pinia').Store<"global", State, {
268
307
  fontSize?: keyof typeof FontSize;
269
308
  pageSize?: keyof typeof PageSize;
270
309
  }): void;
271
- storeCreated(): void;
272
310
  storeActivePage(activePage: PageInfo): void;
273
311
  storeIsAsideOpen(isAsideOpen: boolean): void;
312
+ storeUpdateTabs(page: PageInfo): void;
274
313
  }>;
275
314
  export default useStore;
@@ -1,2 +1 @@
1
1
  export { default as isTouchDevice } from './isTouchDevice';
2
- export { default as createPage } from './createPage';
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLParagraphElement>;
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lauravivan/notion-portfolio",
3
- "version": "1.0.5",
3
+ "version": "1.1.1",
4
4
  "description": "A Notion-based portfolio",
5
5
  "type": "module",
6
6
  "main": "./dist/index.es.js",
@@ -24,7 +24,7 @@
24
24
  "build:pkg": "vue-tsc -b && vite build --config vite.config.package.ts",
25
25
  "preview": "vite preview",
26
26
  "sass": "sass src/assets/scss/main.scss:src/assets/css/main.css",
27
- "watch-sass": "sass @core/assets/scss/main.scss:@core/assets/css/main.css --watch",
27
+ "watch-sass": "sass packages/core/assets/scss/main.scss:packages/core/assets/css/main.css --watch",
28
28
  "test:cli": "node ./bin/cli.js",
29
29
  "format": "npx prettier --write .",
30
30
  "lint": "npx eslint .",
@@ -1,19 +0,0 @@
1
- import { Component } from 'vue';
2
- import { PageInfo } from '..';
3
- interface Page {
4
- id: string;
5
- title: string;
6
- parentPage?: PageInfo;
7
- pages?: PageInfo[];
8
- isHomepage?: boolean;
9
- iconAuthor?: string;
10
- iconLink?: string;
11
- bannerAuthor?: string;
12
- bannerLink?: string;
13
- component: Component;
14
- tags?: string[];
15
- hasIcon?: boolean;
16
- hasBanner?: boolean;
17
- }
18
- declare const createPage: ({ id, title, parentPage, pages, isHomepage, component, bannerAuthor, bannerLink, iconAuthor, iconLink, tags, hasIcon, hasBanner, }: Page) => PageInfo;
19
- export default createPage;