@mirai/core 0.1.24 → 0.1.25
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/README.md
CHANGED
|
@@ -89,6 +89,8 @@ This component shows a modal in which it asks the user for the `bookingId` and `
|
|
|
89
89
|
<div data-mirai-component="bookingQuery"></div>
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
+
This component supports _ghosting_.
|
|
93
|
+
|
|
92
94
|
## 2.2 `<Deals>`
|
|
93
95
|
|
|
94
96
|
This component displays a form to be able to search for rooms with a certain offer. This form contains 3 fields:
|
|
@@ -102,3 +104,24 @@ This component displays a form to be able to search for rooms with a certain off
|
|
|
102
104
|
```
|
|
103
105
|
|
|
104
106
|
This component needs a `data-id` property that will contain the `id` of the offer to display.
|
|
107
|
+
|
|
108
|
+
## 2.3 `<Profile>`
|
|
109
|
+
|
|
110
|
+
This component shows two tabs, Personal information and My bookings:
|
|
111
|
+
|
|
112
|
+
- Personal information allow to logged user to manage her personal information. Also, he can change her password and delete the user.
|
|
113
|
+
- My bookings allow to logged user to manage her bookings, even cancel the bookings.
|
|
114
|
+
|
|
115
|
+
```html
|
|
116
|
+
<div data-mirai-component="profile"></div>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## 2.4 `<Session>`
|
|
120
|
+
|
|
121
|
+
This component has two behaviors. If the user is not logged in, show an action button that displays a modal for login. If the user is logged show a menu with two options: Personal information, and My bookings.
|
|
122
|
+
|
|
123
|
+
```html
|
|
124
|
+
<div data-mirai-component="session"></div>
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
This component supports _ghosting_.
|
|
@@ -13,9 +13,10 @@ var _default = {
|
|
|
13
13
|
// finder: React.lazy(() => import('./finder/Finder')),
|
|
14
14
|
deals: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./finder/Deals')))),
|
|
15
15
|
// @mirai/user
|
|
16
|
+
bookingQuery: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./user/BookingQuery')))),
|
|
17
|
+
profile: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./user/Profile')))),
|
|
16
18
|
session: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./user/Session')))),
|
|
17
19
|
signup: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./user/Signup')))),
|
|
18
|
-
bookingQuery: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./user/BookingQuery')))),
|
|
19
20
|
// Internal
|
|
20
21
|
environment: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./__internal__/Environment')))),
|
|
21
22
|
state: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./__internal__/State')))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["deals","React","lazy","
|
|
1
|
+
{"version":3,"file":"index.js","names":["deals","React","lazy","bookingQuery","profile","session","signup","environment","state","ghost"],"sources":["../../src/components/index.js"],"sourcesContent":["import React from 'react';\n\nexport default {\n // @mirai/finder\n // finder: React.lazy(() => import('./finder/Finder')),\n deals: React.lazy(() => import('./finder/Deals')),\n\n // @mirai/user\n bookingQuery: React.lazy(() => import('./user/BookingQuery')),\n profile: React.lazy(() => import('./user/Profile')),\n session: React.lazy(() => import('./user/Session')),\n signup: React.lazy(() => import('./user/Signup')),\n\n // Internal\n environment: React.lazy(() => import('./__internal__/Environment')),\n state: React.lazy(() => import('./__internal__/State')),\n ghost: React.lazy(() => import('./__internal__/Ghost')),\n};\n"],"mappings":";;;;;;AAAA;AAA0B;AAAA;AAAA;AAAA,eAEX;EACb;EACA;EACAA,KAAK,eAAEC,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EAEjD;EACAC,YAAY,eAAEF,cAAK,CAACC,IAAI,CAAC,mEAAa,qBAAqB,GAAC,CAAC;EAC7DE,OAAO,eAAEH,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EACnDG,OAAO,eAAEJ,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EACnDI,MAAM,eAAEL,cAAK,CAACC,IAAI,CAAC,mEAAa,eAAe,GAAC,CAAC;EAEjD;EACAK,WAAW,eAAEN,cAAK,CAACC,IAAI,CAAC,mEAAa,4BAA4B,GAAC,CAAC;EACnEM,KAAK,eAAEP,cAAK,CAACC,IAAI,CAAC,mEAAa,sBAAsB,GAAC,CAAC;EACvDO,KAAK,eAAER,cAAK,CAACC,IAAI,CAAC,mEAAa,sBAAsB,GAAC;AACxD,CAAC;AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Profile.js","names":["Profile"],"sources":["../../../src/components/user/Profile.jsx"],"sourcesContent":["import { Profile } from '@mirai/user';\n\nexport default Profile;\n"],"mappings":";;;;;;AAAA;AAAsC,eAEvBA,aAAO;AAAA"}
|