@trycourier/react-provider 4.8.1-internal.06ea24c.0 → 4.8.1-internal.bba30b1.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/README.md +44 -0
- package/dist/index.js +57 -27
- package/dist/theme.js +22 -0
- package/package.json +3 -3
- package/typings/index.d.ts +2 -2
- package/typings/index.d.ts.map +1 -1
- package/typings/theme.d.ts +15 -0
- package/typings/theme.d.ts.map +1 -0
- package/typings/types.d.ts +14 -0
- package/typings/types.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
- [Props](#props)
|
|
5
5
|
- [Listening to Messsages](#listening-to-messsages)
|
|
6
|
+
- [Dark Mode / Theme Variables](#dark-mode--theme-variables)
|
|
6
7
|
|
|
7
8
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
8
9
|
|
|
@@ -152,3 +153,46 @@ const MyApp = ({ children }) => {
|
|
|
152
153
|
);
|
|
153
154
|
};
|
|
154
155
|
```
|
|
156
|
+
|
|
157
|
+
<a name="2dark-modemd"></a>
|
|
158
|
+
|
|
159
|
+
### [Dark Mode / Theme Variables](#dark-mode)
|
|
160
|
+
|
|
161
|
+
Dark mode is supported by passing "theme.colorMode" to the CourierProvider
|
|
162
|
+
|
|
163
|
+
```tsx
|
|
164
|
+
import { CourierProvider } from "@trycourier/react-provider";
|
|
165
|
+
|
|
166
|
+
const MyApp = ({ children }) => {
|
|
167
|
+
return (
|
|
168
|
+
<CourierProvider thene={{ colorMode: "dark" }}>{children}</CourierProvider>
|
|
169
|
+
);
|
|
170
|
+
};
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
You can customize darkmode by passing in variables to the root level theme:
|
|
174
|
+
|
|
175
|
+
````typescript
|
|
176
|
+
export interface ThemeVariables {
|
|
177
|
+
background?: string;
|
|
178
|
+
textColor?: string;
|
|
179
|
+
titleColor?: string;
|
|
180
|
+
structure?: string;
|
|
181
|
+
icon?: string;
|
|
182
|
+
}```
|
|
183
|
+
|
|
184
|
+
```tsx
|
|
185
|
+
import { CourierProvider } from "@trycourier/react-provider";
|
|
186
|
+
|
|
187
|
+
const MyApp = ({ children }) => {
|
|
188
|
+
return (
|
|
189
|
+
<CourierProvider thene={{variables: {
|
|
190
|
+
background: "red",
|
|
191
|
+
textColor: "blue",
|
|
192
|
+
titleColor: "green",
|
|
193
|
+
structure: "pink",
|
|
194
|
+
icon: "orange"
|
|
195
|
+
}}}>{children}</CourierProvider>
|
|
196
|
+
);
|
|
197
|
+
};
|
|
198
|
+
````
|
package/dist/index.js
CHANGED
|
@@ -15,10 +15,10 @@ var _exportNames = {
|
|
|
15
15
|
};
|
|
16
16
|
exports.CourierProvider = exports.CourierContext = exports.registerMiddleware = exports.registerReducer = void 0;
|
|
17
17
|
|
|
18
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
19
|
-
|
|
20
18
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
21
19
|
|
|
20
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
21
|
+
|
|
22
22
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
23
23
|
|
|
24
24
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -37,6 +37,12 @@ var _useTransport = _interopRequireDefault(require("./hooks/use-transport"));
|
|
|
37
37
|
|
|
38
38
|
var _useClientSourceId = _interopRequireDefault(require("./hooks/use-client-source-id"));
|
|
39
39
|
|
|
40
|
+
var _deepExtend = _interopRequireDefault(require("deep-extend"));
|
|
41
|
+
|
|
42
|
+
var _theme2 = require("./theme");
|
|
43
|
+
|
|
44
|
+
var _styledComponents = require("styled-components");
|
|
45
|
+
|
|
40
46
|
var _transports = require("./transports");
|
|
41
47
|
|
|
42
48
|
Object.keys(_transports).forEach(function (key) {
|
|
@@ -94,34 +100,49 @@ var registerReducer = _reducer.registerReducer;
|
|
|
94
100
|
exports.registerReducer = registerReducer;
|
|
95
101
|
var registerMiddleware = _middleware2.registerMiddleware;
|
|
96
102
|
exports.registerMiddleware = registerMiddleware;
|
|
103
|
+
var GlobalThemeVariables = (0, _styledComponents.createGlobalStyle)(function (_ref) {
|
|
104
|
+
var _theme$variables, _theme$variables2, _theme$variables3, _theme$variables4, _theme$variables5;
|
|
105
|
+
|
|
106
|
+
var theme = _ref.theme;
|
|
107
|
+
return {
|
|
108
|
+
":root": {
|
|
109
|
+
"--ci-background": theme === null || theme === void 0 ? void 0 : (_theme$variables = theme.variables) === null || _theme$variables === void 0 ? void 0 : _theme$variables.background,
|
|
110
|
+
"--ci-text-color": theme === null || theme === void 0 ? void 0 : (_theme$variables2 = theme.variables) === null || _theme$variables2 === void 0 ? void 0 : _theme$variables2.textColor,
|
|
111
|
+
"--ci-title-color": theme === null || theme === void 0 ? void 0 : (_theme$variables3 = theme.variables) === null || _theme$variables3 === void 0 ? void 0 : _theme$variables3.titleColor,
|
|
112
|
+
"--ci-structure": theme === null || theme === void 0 ? void 0 : (_theme$variables4 = theme.variables) === null || _theme$variables4 === void 0 ? void 0 : _theme$variables4.structure,
|
|
113
|
+
"--ci-icon": theme === null || theme === void 0 ? void 0 : (_theme$variables5 = theme.variables) === null || _theme$variables5 === void 0 ? void 0 : _theme$variables5.icon
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
});
|
|
97
117
|
|
|
98
118
|
var CourierContext = /*#__PURE__*/_react["default"].createContext(undefined);
|
|
99
119
|
|
|
100
120
|
exports.CourierContext = CourierContext;
|
|
101
121
|
|
|
102
|
-
var CourierProvider = function CourierProvider(
|
|
122
|
+
var CourierProvider = function CourierProvider(_ref2) {
|
|
103
123
|
var _window;
|
|
104
124
|
|
|
105
|
-
var
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
+
var apiUrl = _ref2.apiUrl,
|
|
126
|
+
authorization = _ref2.authorization,
|
|
127
|
+
brand = _ref2.brand,
|
|
128
|
+
brandId = _ref2.brandId,
|
|
129
|
+
children = _ref2.children,
|
|
130
|
+
clientKey = _ref2.clientKey,
|
|
131
|
+
id = _ref2.id,
|
|
132
|
+
tenantId = _ref2.tenantId,
|
|
133
|
+
_theme = _ref2.theme,
|
|
134
|
+
inboxApiUrl = _ref2.inboxApiUrl,
|
|
135
|
+
_ref2$localStorage = _ref2.localStorage,
|
|
136
|
+
localStorage = _ref2$localStorage === void 0 ? typeof window !== "undefined" ? (_window = window) === null || _window === void 0 ? void 0 : _window.localStorage : undefined : _ref2$localStorage,
|
|
137
|
+
_ref2$middleware = _ref2.middleware,
|
|
138
|
+
_middleware = _ref2$middleware === void 0 ? [] : _ref2$middleware,
|
|
139
|
+
onMessage = _ref2.onMessage,
|
|
140
|
+
onRouteChange = _ref2.onRouteChange,
|
|
141
|
+
_transport = _ref2.transport,
|
|
142
|
+
userId = _ref2.userId,
|
|
143
|
+
userSignature = _ref2.userSignature,
|
|
144
|
+
_ref2$wsOptions = _ref2.wsOptions,
|
|
145
|
+
_wsOptions = _ref2$wsOptions === void 0 ? {} : _ref2$wsOptions;
|
|
125
146
|
|
|
126
147
|
var wsOptions = (0, _react.useMemo)(function () {
|
|
127
148
|
return _wsOptions;
|
|
@@ -144,9 +165,15 @@ var CourierProvider = function CourierProvider(_ref) {
|
|
|
144
165
|
userSignature: userSignature,
|
|
145
166
|
wsOptions: wsOptions
|
|
146
167
|
});
|
|
168
|
+
var theme = (0, _react.useMemo)(function () {
|
|
169
|
+
var _theme$variables6;
|
|
170
|
+
|
|
171
|
+
return _objectSpread(_objectSpread({}, _theme), {}, {
|
|
172
|
+
variables: (0, _deepExtend["default"])({}, (_theme === null || _theme === void 0 ? void 0 : _theme.colorMode) === "dark" ? _theme2.darkVariables : _theme2.lightVariables, (_theme$variables6 = _theme === null || _theme === void 0 ? void 0 : _theme.variables) !== null && _theme$variables6 !== void 0 ? _theme$variables6 : {})
|
|
173
|
+
});
|
|
174
|
+
}, [_theme]);
|
|
147
175
|
|
|
148
176
|
var _useReducer = useReducer(_reducer["default"], {
|
|
149
|
-
tenantId: tenantId,
|
|
150
177
|
apiUrl: apiUrl,
|
|
151
178
|
authorization: authorization,
|
|
152
179
|
brand: brand,
|
|
@@ -157,6 +184,7 @@ var CourierProvider = function CourierProvider(_ref) {
|
|
|
157
184
|
localStorage: localStorage,
|
|
158
185
|
middleware: middleware,
|
|
159
186
|
onRouteChange: onRouteChange,
|
|
187
|
+
tenantId: tenantId,
|
|
160
188
|
transport: transport,
|
|
161
189
|
userId: userId,
|
|
162
190
|
userSignature: userSignature
|
|
@@ -227,18 +255,18 @@ var CourierProvider = function CourierProvider(_ref) {
|
|
|
227
255
|
}
|
|
228
256
|
|
|
229
257
|
actions.init(_objectSpread({
|
|
230
|
-
tenantId: tenantId,
|
|
231
258
|
apiUrl: apiUrl,
|
|
232
259
|
authorization: authorization,
|
|
233
260
|
brandId: brandId,
|
|
234
261
|
clientKey: clientKey,
|
|
235
262
|
inboxApiUrl: inboxApiUrl,
|
|
236
263
|
localStorage: localStorage,
|
|
264
|
+
tenantId: tenantId,
|
|
237
265
|
transport: transport,
|
|
238
266
|
userId: userId,
|
|
239
267
|
userSignature: userSignature
|
|
240
268
|
}, parsedLocalStorageState));
|
|
241
|
-
}, [
|
|
269
|
+
}, [actions, apiUrl, authorization, brandId, clientKey, inboxApiUrl, localStorage, tenantId, transport, userId, userSignature]);
|
|
242
270
|
(0, _react.useEffect)(function () {
|
|
243
271
|
if (!state.brand || !clientKey || !userId || !state.localStorage) {
|
|
244
272
|
return;
|
|
@@ -253,7 +281,9 @@ var CourierProvider = function CourierProvider(_ref) {
|
|
|
253
281
|
clientSourceId: clientSourceId,
|
|
254
282
|
dispatch: dispatch
|
|
255
283
|
})
|
|
256
|
-
},
|
|
284
|
+
}, /*#__PURE__*/_react["default"].createElement(GlobalThemeVariables, {
|
|
285
|
+
theme: theme
|
|
286
|
+
}), children);
|
|
257
287
|
};
|
|
258
288
|
|
|
259
289
|
exports.CourierProvider = CourierProvider;
|
package/dist/theme.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.darkVariables = exports.lightVariables = void 0;
|
|
7
|
+
var lightVariables = {
|
|
8
|
+
background: "#f2f6f9",
|
|
9
|
+
textColor: "#1c273a",
|
|
10
|
+
titleColor: "#1c273a",
|
|
11
|
+
structure: "#DEE8F0",
|
|
12
|
+
icon: "#566074"
|
|
13
|
+
};
|
|
14
|
+
exports.lightVariables = lightVariables;
|
|
15
|
+
var darkVariables = {
|
|
16
|
+
background: "#262A34",
|
|
17
|
+
textColor: "#C9C8E1",
|
|
18
|
+
titleColor: "white",
|
|
19
|
+
structure: "#4F4D67",
|
|
20
|
+
icon: "#8786A9"
|
|
21
|
+
};
|
|
22
|
+
exports.darkVariables = darkVariables;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trycourier/react-provider",
|
|
3
|
-
"version": "4.8.1-internal.
|
|
3
|
+
"version": "4.8.1-internal.bba30b1.0+bba30b1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "typings/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@trycourier/client-graphql": "^4.8.1-internal.
|
|
19
|
+
"@trycourier/client-graphql": "^4.8.1-internal.bba30b1.0+bba30b1",
|
|
20
20
|
"buffer": "^6.0.3",
|
|
21
21
|
"jwt-decode": "^3.1.2",
|
|
22
22
|
"react-use": "^17.2.1",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"dist/",
|
|
34
34
|
"typings/"
|
|
35
35
|
],
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "bba30b170671230f8ea901e4fc1fc0c7d96f3073"
|
|
37
37
|
}
|
package/typings/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from "react";
|
|
2
|
-
import { Brand, EventType, ICourierContext, ICourierProviderProps, PinDetails,
|
|
2
|
+
import { Brand, EventType, ICourierContext, ICourierProviderProps, OnEvent, PinDetails, ProviderTheme, WSOptions } from "./types";
|
|
3
3
|
import { IActionElemental, ICourierEventMessage, IInboxMessagePreview, ITextElemental, Interceptor } from "./transports/types";
|
|
4
4
|
import { Middleware } from "./middleware";
|
|
5
5
|
export * from "./transports";
|
|
@@ -7,7 +7,7 @@ export * from "./hooks";
|
|
|
7
7
|
export * from "./lib";
|
|
8
8
|
export declare const registerReducer: (scope: any, reducer: any) => void;
|
|
9
9
|
export declare const registerMiddleware: (id: string, middleware: Middleware) => void;
|
|
10
|
-
export type { Brand, IActionElemental, ICourierContext, ICourierEventMessage, IInboxMessagePreview, ITextElemental, Middleware,
|
|
10
|
+
export type { Brand, EventType, IActionElemental, ICourierContext, ICourierEventMessage, IInboxMessagePreview, Interceptor, ITextElemental, Middleware, OnEvent, PinDetails, ProviderTheme, WSOptions, };
|
|
11
11
|
export declare const CourierContext: React.Context<ICourierContext | undefined>;
|
|
12
12
|
export declare const CourierProvider: React.FunctionComponent<PropsWithChildren<ICourierProviderProps>>;
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
package/typings/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAIZ,iBAAiB,EAClB,MAAM,OAAO,CAAC;AAGf,OAAO,EACL,KAAK,EACL,SAAS,EACT,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAIZ,iBAAiB,EAClB,MAAM,OAAO,CAAC;AAGf,OAAO,EACL,KAAK,EACL,SAAS,EACT,eAAe,EACf,qBAAqB,EACrB,OAAO,EACP,UAAU,EACV,aAAa,EAEb,SAAS,EACV,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,WAAW,EACZ,MAAM,oBAAoB,CAAC;AAE5B,OAA0B,EAExB,UAAU,EACX,MAAM,cAAc,CAAC;AAStB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AAEtB,eAAO,MAAM,eAAe,oCAAmB,CAAC;AAChD,eAAO,MAAM,kBAAkB,8CAAsB,CAAC;AAEtD,YAAY,EACV,KAAK,EACL,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,EACX,cAAc,EACd,UAAU,EACV,OAAO,EACP,UAAU,EACV,aAAa,EACb,SAAS,GACV,CAAC;AAkBF,eAAO,MAAM,cAAc,4CACkC,CAAC;AAE9D,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CACnD,iBAAiB,CAAC,qBAAqB,CAAC,CAiNzC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const lightVariables: {
|
|
2
|
+
background: string;
|
|
3
|
+
textColor: string;
|
|
4
|
+
titleColor: string;
|
|
5
|
+
structure: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const darkVariables: {
|
|
9
|
+
background: string;
|
|
10
|
+
textColor: string;
|
|
11
|
+
titleColor: string;
|
|
12
|
+
structure: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;CAM1B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;CAMzB,CAAC"}
|
package/typings/types.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export interface Brand {
|
|
|
31
31
|
inapp?: {
|
|
32
32
|
disableCourierFooter?: boolean;
|
|
33
33
|
borderRadius?: string;
|
|
34
|
+
renderActionsAsButtons?: boolean;
|
|
34
35
|
disableMessageIcon?: boolean;
|
|
35
36
|
placement?: "top" | "bottom" | "left" | "right";
|
|
36
37
|
emptyState?: {
|
|
@@ -58,11 +59,24 @@ export interface Brand {
|
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
61
|
export declare type EventType = "mark-all-read" | "read" | "unread" | "archive" | "opened" | "click" | "unpin";
|
|
62
|
+
export interface ThemeVariables {
|
|
63
|
+
background?: string;
|
|
64
|
+
textColor?: string;
|
|
65
|
+
titleColor?: string;
|
|
66
|
+
textColorRead?: string;
|
|
67
|
+
structure?: string;
|
|
68
|
+
icon?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface ProviderTheme {
|
|
71
|
+
colorMode?: "dark" | "light";
|
|
72
|
+
variables?: ThemeVariables;
|
|
73
|
+
}
|
|
61
74
|
export interface ICourierProviderProps {
|
|
62
75
|
tenantId?: string;
|
|
63
76
|
apiUrl?: string;
|
|
64
77
|
authorization?: string;
|
|
65
78
|
brand?: Brand;
|
|
79
|
+
theme?: ProviderTheme;
|
|
66
80
|
brandId?: string;
|
|
67
81
|
clientKey?: string;
|
|
68
82
|
id?: string;
|
package/typings/types.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