@3birds/midori-ui 0.0.46 → 0.0.47

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.
@@ -11,7 +11,7 @@
11
11
  </script>
12
12
 
13
13
  <div class="fab {className}">
14
- <div tabindex="0" role="button" class="btn btn-circle btn-primary btn-xl">
14
+ <div tabindex="0" role="button" class="btn z-10 btn-circle btn-primary btn-xl">
15
15
  {@render dial()}
16
16
  </div>
17
17
  <div class="fixed inset-0 z-0 bg-base-content/40"></div>
package/dist/index.d.ts CHANGED
@@ -246,10 +246,9 @@ export { default as 噴水 } from './assets/poi/噴水.svg';
246
246
  export { default as 球技 } from './assets/poi/球技.svg';
247
247
  export { default as 的 } from './assets/poi/的.svg';
248
248
  export { alert } from './alert';
249
- export { authState } from './auth.svelte.ts';
250
249
  export * as firebase from './auth';
251
250
  export { auth } from './firebase';
252
251
  export * as modal from './modals-context.ts';
253
252
  export * from './utils/index.ts';
254
253
  export { MAP_ATTRIBUTION, MAP_DEFAULT_ICON_SIZE, PRIORITIES, MAP_DEFAULT_ICON_ANCHOR, MAP_MAX_ZOOM, MAP_DEFAULT_LATITUDE, MAP_DEFAULT_LONGITUDE, PRIORITIES_WITHOUT_LOG, PREFECTURE_SVG, POI_ICON } from './constants/index.ts';
255
- export type { BtnType, InputType, AlertType, AlertState, BreadcrumbsItem, FilterItem, Priority, PriorityChoice, ModalsContext, Data, ContentAdditionalInfo, ContentAdmin, ContentImage, ContentReview, ContentMinimal, ContentCasual, ContentFormal, ContentGeo, Dashboard, DashboardPref } from './types/index.ts';
254
+ export type { BtnType, InputType, AlertType, AlertState, BreadcrumbsItem, FilterItem, Priority, PriorityChoice, ModalsContext, Data, ContentAdditionalInfo, ContentAdmin, ContentImage, ContentReview, ContentMinimal, ContentCasual, ContentFormal, ContentGeo, ContentChildren, ContentReviews, Account, Dashboard, DashboardPref } from './types/index.ts';
package/dist/index.js CHANGED
@@ -247,7 +247,6 @@ export { default as 噴水 } from './assets/poi/噴水.svg';
247
247
  export { default as 球技 } from './assets/poi/球技.svg';
248
248
  export { default as 的 } from './assets/poi/的.svg';
249
249
  export { alert } from './alert';
250
- export { authState } from "./auth.svelte.js";
251
250
  export * as firebase from './auth';
252
251
  export { auth } from './firebase';
253
252
  export * as modal from "./modals-context.js";
@@ -108,6 +108,30 @@ export interface ContentGeo {
108
108
  id: string;
109
109
  thumbnail: string;
110
110
  }
111
+ interface ContentAttribute extends ContentMinimal {
112
+ thumbnail: string;
113
+ }
114
+ export interface ContentChildren extends ContentAttribute {
115
+ children: ContentCasual[];
116
+ }
117
+ export interface ContentReviews extends ContentAttribute {
118
+ reviews: ContentReview[];
119
+ }
120
+ export interface Account {
121
+ id: string;
122
+ photo?: string;
123
+ email: string;
124
+ password: string;
125
+ stripe_customer_id: string;
126
+ plan_id: string;
127
+ nickname: string;
128
+ management_condition: ManagementCondition;
129
+ }
130
+ interface ManagementCondition {
131
+ content_review_ids: string[];
132
+ favorite_content_ids: string[];
133
+ ads: boolean;
134
+ }
111
135
  export interface Dashboard {
112
136
  hot_contents: ContentCasual[];
113
137
  new_contents: ContentCasual[];
@@ -119,3 +143,4 @@ export interface DashboardPref {
119
143
  en: string;
120
144
  count: number;
121
145
  }
146
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3birds/midori-ui",
3
- "version": "0.0.46",
3
+ "version": "0.0.47",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -1,5 +0,0 @@
1
- import { type User } from 'firebase/auth';
2
- export declare const authState: {
3
- user: User | null;
4
- loading: boolean;
5
- };
@@ -1,19 +0,0 @@
1
- import { browser } from '$app/environment';
2
- import { onAuthStateChanged } from 'firebase/auth';
3
- import { auth } from './firebase';
4
- let user = $state(null);
5
- let loading = $state(true);
6
- if (browser) {
7
- onAuthStateChanged(auth, (firebaseUser) => {
8
- user = firebaseUser;
9
- loading = false;
10
- });
11
- }
12
- export const authState = {
13
- get user() {
14
- return user;
15
- },
16
- get loading() {
17
- return loading;
18
- }
19
- };