@3birds/midori-ui 0.0.45 → 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.
- package/dist/components/Fab.svelte +2 -1
- package/dist/components/Filter.svelte +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.js +3 -4
- package/dist/types/index.d.ts +25 -0
- package/package.json +1 -1
- package/dist/auth.svelte.d.ts +0 -5
- package/dist/auth.svelte.js +0 -19
|
@@ -11,8 +11,9 @@
|
|
|
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
|
+
<div class="fixed inset-0 z-0 bg-base-content/40"></div>
|
|
17
18
|
{@render children()}
|
|
18
19
|
</div>
|
package/dist/index.d.ts
CHANGED
|
@@ -16,8 +16,8 @@ export { default as alertSvg } from './assets/alert.svg';
|
|
|
16
16
|
export { default as calendarMonthSvg } from './assets/calendar-month.svg';
|
|
17
17
|
export { default as calendarMonthGraySvg } from './assets/calendar-month-gray.svg';
|
|
18
18
|
export { default as checkCircleSvg } from './assets/check-circle.svg';
|
|
19
|
-
export { default as
|
|
20
|
-
export { default as
|
|
19
|
+
export { default as chevronLeftSvg } from './assets/chevron-left.svg';
|
|
20
|
+
export { default as chevronRightSvg } from './assets/chevron-right.svg';
|
|
21
21
|
export { default as clipboardTextOutlineSvg } from './assets/clipboard-text-outline.svg';
|
|
22
22
|
export { default as closeCircleSvg } from './assets/close-circle.svg';
|
|
23
23
|
export { default as closeSvg } from './assets/close.svg';
|
|
@@ -25,7 +25,7 @@ export { default as cogOutlineSvg } from './assets/cog-outline.svg';
|
|
|
25
25
|
export { default as crosshairsGpsSvg } from './assets/crosshairs-gps.svg';
|
|
26
26
|
export { default as deleteSvg } from './assets/delete.svg';
|
|
27
27
|
export { default as emailOutlineSvg } from './assets/email-outline.svg';
|
|
28
|
-
export { default as
|
|
28
|
+
export { default as exportVariantSvg } from './assets/export-variant.svg';
|
|
29
29
|
export { default as faceAgentSvg } from './assets/face-agent.svg';
|
|
30
30
|
export { default as faceManSvg } from './assets/face-man.svg';
|
|
31
31
|
export { default as faceManWhiteSvg } from './assets/face-man-white.svg';
|
|
@@ -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
|
@@ -17,8 +17,8 @@ export { default as alertSvg } from './assets/alert.svg';
|
|
|
17
17
|
export { default as calendarMonthSvg } from './assets/calendar-month.svg';
|
|
18
18
|
export { default as calendarMonthGraySvg } from './assets/calendar-month-gray.svg';
|
|
19
19
|
export { default as checkCircleSvg } from './assets/check-circle.svg';
|
|
20
|
-
export { default as
|
|
21
|
-
export { default as
|
|
20
|
+
export { default as chevronLeftSvg } from './assets/chevron-left.svg';
|
|
21
|
+
export { default as chevronRightSvg } from './assets/chevron-right.svg';
|
|
22
22
|
export { default as clipboardTextOutlineSvg } from './assets/clipboard-text-outline.svg';
|
|
23
23
|
export { default as closeCircleSvg } from './assets/close-circle.svg';
|
|
24
24
|
export { default as closeSvg } from './assets/close.svg';
|
|
@@ -26,7 +26,7 @@ export { default as cogOutlineSvg } from './assets/cog-outline.svg';
|
|
|
26
26
|
export { default as crosshairsGpsSvg } from './assets/crosshairs-gps.svg';
|
|
27
27
|
export { default as deleteSvg } from './assets/delete.svg';
|
|
28
28
|
export { default as emailOutlineSvg } from './assets/email-outline.svg';
|
|
29
|
-
export { default as
|
|
29
|
+
export { default as exportVariantSvg } from './assets/export-variant.svg';
|
|
30
30
|
export { default as faceAgentSvg } from './assets/face-agent.svg';
|
|
31
31
|
export { default as faceManSvg } from './assets/face-man.svg';
|
|
32
32
|
export { default as faceManWhiteSvg } from './assets/face-man-white.svg';
|
|
@@ -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";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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
package/dist/auth.svelte.d.ts
DELETED
package/dist/auth.svelte.js
DELETED
|
@@ -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
|
-
};
|