@agendize/vue-tools 1.0.3 → 1.1.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/dist/index.d.ts +3 -0
- package/dist/store/accountStore.d.ts +10 -0
- package/dist/style.css +1 -1
- package/dist/utils/constants.d.ts +4 -0
- package/dist/vue-tools.es.js +11021 -383
- package/dist/vue-tools.umd.js +42 -15
- package/package.json +7 -5
package/dist/index.d.ts
CHANGED
|
@@ -3,5 +3,8 @@ import { dateToString } from "./utils/date";
|
|
|
3
3
|
import { onPictureUpdated, readBlobFromUrl } from "./utils/file";
|
|
4
4
|
import { pad, parseToInt } from "./utils/format";
|
|
5
5
|
import QRCode from "./presentation/component/qr-code/View.vue";
|
|
6
|
+
import { createStore, useAccountStore } from "./store/accountStore";
|
|
6
7
|
export * from './bloc/Bloc';
|
|
7
8
|
export { useBlocState, dateToString, QRCode, onPictureUpdated, readBlobFromUrl, pad, parseToInt };
|
|
9
|
+
export { createStore, useAccountStore };
|
|
10
|
+
export * from './utils/constants';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AccountEntity, CalendarApi } from "@agendize/js-calendar-api";
|
|
2
|
+
export declare type AccountState = {
|
|
3
|
+
account: AccountEntity;
|
|
4
|
+
};
|
|
5
|
+
export declare const createStore: (calendarApi: CalendarApi) => import("pinia").Pinia;
|
|
6
|
+
export declare const useAccountStore: import("pinia").StoreDefinition<"account", AccountState, {}, {
|
|
7
|
+
updateAccount(payload: AccountEntity): Promise<void>;
|
|
8
|
+
fetchAccount(): void;
|
|
9
|
+
updatePassword(currentPassword: string, newPassword: string): Promise<void>;
|
|
10
|
+
}>;
|