@lauravivan/notion-portfolio 1.1.5 → 1.1.6

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.
@@ -8,6 +8,7 @@ interface State {
8
8
  activeTab: number;
9
9
  activePage: PageInfo;
10
10
  isAsideOpen: boolean;
11
+ currentModalPageId: string;
11
12
  }
12
13
  type CurrentDynPageInfo = {
13
14
  pageId: string;
@@ -49,6 +50,7 @@ declare const useStore: import('pinia').Store<"global", State, {
49
50
  } | undefined;
50
51
  };
51
52
  isAsideOpen: boolean;
53
+ currentModalPageId: string;
52
54
  } & import('pinia').PiniaCustomStateProperties<State>) => DynamicPageInfo;
53
55
  getTheme: (state: {
54
56
  dynamicPageInfo: DynamicPageInfo;
@@ -85,6 +87,7 @@ declare const useStore: import('pinia').Store<"global", State, {
85
87
  } | undefined;
86
88
  };
87
89
  isAsideOpen: boolean;
90
+ currentModalPageId: string;
88
91
  } & import('pinia').PiniaCustomStateProperties<State>) => "light-theme" | "dark-theme" | "cat-latte" | "cat-mocha";
89
92
  getTabs: (state: {
90
93
  dynamicPageInfo: DynamicPageInfo;
@@ -121,6 +124,7 @@ declare const useStore: import('pinia').Store<"global", State, {
121
124
  } | undefined;
122
125
  };
123
126
  isAsideOpen: boolean;
127
+ currentModalPageId: string;
124
128
  } & import('pinia').PiniaCustomStateProperties<State>) => {
125
129
  pageId: string;
126
130
  pagePath: string;
@@ -161,6 +165,7 @@ declare const useStore: import('pinia').Store<"global", State, {
161
165
  } | undefined;
162
166
  };
163
167
  isAsideOpen: boolean;
168
+ currentModalPageId: string;
164
169
  } & import('pinia').PiniaCustomStateProperties<State>) => number;
165
170
  getDynamicCurrentPageInfo: (state: {
166
171
  dynamicPageInfo: DynamicPageInfo;
@@ -197,6 +202,7 @@ declare const useStore: import('pinia').Store<"global", State, {
197
202
  } | undefined;
198
203
  };
199
204
  isAsideOpen: boolean;
205
+ currentModalPageId: string;
200
206
  } & import('pinia').PiniaCustomStateProperties<State>) => CurrentDynPageInfo;
201
207
  getActivePage: (state: {
202
208
  dynamicPageInfo: DynamicPageInfo;
@@ -233,6 +239,7 @@ declare const useStore: import('pinia').Store<"global", State, {
233
239
  } | undefined;
234
240
  };
235
241
  isAsideOpen: boolean;
242
+ currentModalPageId: string;
236
243
  } & import('pinia').PiniaCustomStateProperties<State>) => {
237
244
  id: string;
238
245
  path: string;
@@ -293,11 +300,50 @@ declare const useStore: import('pinia').Store<"global", State, {
293
300
  } | undefined;
294
301
  };
295
302
  isAsideOpen: boolean;
303
+ currentModalPageId: string;
296
304
  } & import('pinia').PiniaCustomStateProperties<State>) => boolean;
305
+ getCurrentModalPageId: (state: {
306
+ dynamicPageInfo: DynamicPageInfo;
307
+ theme: keyof typeof Theme;
308
+ tabs: {
309
+ pageId: string;
310
+ pagePath: string;
311
+ pageName: string;
312
+ }[];
313
+ activeTab: number;
314
+ activePage: {
315
+ id: string;
316
+ path: string;
317
+ title: string;
318
+ pages?: string[] | undefined;
319
+ parentPage?: string | undefined;
320
+ isHomepage?: boolean | undefined;
321
+ component: Component;
322
+ banner?: {
323
+ path: string;
324
+ author?: string | undefined;
325
+ link?: string | undefined;
326
+ } | undefined;
327
+ icon?: {
328
+ path: string;
329
+ author?: string | undefined;
330
+ link?: string | undefined;
331
+ } | undefined;
332
+ databaseInfo?: {
333
+ [key: string]: {
334
+ icon: "clock" | "check" | "code";
335
+ value: string | string[];
336
+ };
337
+ } | undefined;
338
+ };
339
+ isAsideOpen: boolean;
340
+ currentModalPageId: string;
341
+ } & import('pinia').PiniaCustomStateProperties<State>) => string;
297
342
  }, {
298
343
  storeTheme(theme: keyof typeof Theme): void;
299
344
  storeActiveTab(activeTab: number): void;
300
345
  storeTabs(tabs: Tab[]): void;
346
+ storeCurrentModalPageId(id: string): void;
301
347
  storeDynamicPageInfo({ fontFamily, fontSize, pageSize, }: {
302
348
  fontFamily?: keyof typeof FontFamily;
303
349
  fontSize?: keyof typeof FontSize;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lauravivan/notion-portfolio",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "A Notion-based portfolio",
5
5
  "type": "module",
6
6
  "main": "./dist/index.es.js",