powr-sdk-web 6.6.0 → 6.7.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.js +19 -0
- package/dist/notFound/index.js +74 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -82,6 +82,12 @@ Object.defineProperty(exports, "POWR_IMPERSONATOR_KEY", {
|
|
|
82
82
|
return _impersonate.POWR_IMPERSONATOR_KEY;
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
|
+
Object.defineProperty(exports, "POWR_NOT_FOUND_TITLE", {
|
|
86
|
+
enumerable: true,
|
|
87
|
+
get: function get() {
|
|
88
|
+
return _notFound.POWR_NOT_FOUND_TITLE;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
85
91
|
Object.defineProperty(exports, "POWR_SCHEMES", {
|
|
86
92
|
enumerable: true,
|
|
87
93
|
get: function get() {
|
|
@@ -268,6 +274,12 @@ Object.defineProperty(exports, "PowrLoginAsDialog", {
|
|
|
268
274
|
return _impersonate.PowrLoginAsDialog;
|
|
269
275
|
}
|
|
270
276
|
});
|
|
277
|
+
Object.defineProperty(exports, "PowrNotFound", {
|
|
278
|
+
enumerable: true,
|
|
279
|
+
get: function get() {
|
|
280
|
+
return _notFound["default"];
|
|
281
|
+
}
|
|
282
|
+
});
|
|
271
283
|
Object.defineProperty(exports, "PowrOnboardingProvider", {
|
|
272
284
|
enumerable: true,
|
|
273
285
|
get: function get() {
|
|
@@ -502,6 +514,12 @@ Object.defineProperty(exports, "normalizePhone", {
|
|
|
502
514
|
return _phone.normalizePhone;
|
|
503
515
|
}
|
|
504
516
|
});
|
|
517
|
+
Object.defineProperty(exports, "notFoundMetadata", {
|
|
518
|
+
enumerable: true,
|
|
519
|
+
get: function get() {
|
|
520
|
+
return _notFound.notFoundMetadata;
|
|
521
|
+
}
|
|
522
|
+
});
|
|
505
523
|
Object.defineProperty(exports, "openPowrLogin", {
|
|
506
524
|
enumerable: true,
|
|
507
525
|
get: function get() {
|
|
@@ -653,5 +671,6 @@ var _session = require("./session");
|
|
|
653
671
|
var _shell = require("./shell");
|
|
654
672
|
var _impersonate = require("./impersonate");
|
|
655
673
|
var _track = require("./track");
|
|
674
|
+
var _notFound = _interopRequireWildcard(require("./notFound"));
|
|
656
675
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
657
676
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.POWR_NOT_FOUND_TITLE = void 0;
|
|
7
|
+
exports.PowrNotFound = exports["default"] = PowrNotFound;
|
|
8
|
+
exports.notFoundMetadata = void 0;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
/** Document title Next uses for a missing route. */
|
|
12
|
+
var POWR_NOT_FOUND_TITLE = exports.POWR_NOT_FOUND_TITLE = "404: This page could not be found.";
|
|
13
|
+
|
|
14
|
+
/** Re-export from `app/not-found.js` so the tab and link preview match the page. */
|
|
15
|
+
var notFoundMetadata = exports.notFoundMetadata = {
|
|
16
|
+
title: POWR_NOT_FOUND_TITLE,
|
|
17
|
+
description: "This page could not be found.",
|
|
18
|
+
openGraph: {
|
|
19
|
+
title: POWR_NOT_FOUND_TITLE,
|
|
20
|
+
description: "This page could not be found."
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var css = "\n.powr-not-found{color:#000;background:#fff}\n.powr-not-found-h1{border-right:1px solid rgba(0,0,0,.3)}\n@media (prefers-color-scheme:dark){\n .powr-not-found{color:#fff;background:#000}\n .powr-not-found-h1{border-right:1px solid rgba(255,255,255,.3)}\n}\n";
|
|
24
|
+
var styles = {
|
|
25
|
+
error: {
|
|
26
|
+
fontFamily: 'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',
|
|
27
|
+
height: "100vh",
|
|
28
|
+
textAlign: "center",
|
|
29
|
+
display: "flex",
|
|
30
|
+
flexDirection: "column",
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
justifyContent: "center"
|
|
33
|
+
},
|
|
34
|
+
desc: {
|
|
35
|
+
display: "inline-block"
|
|
36
|
+
},
|
|
37
|
+
h1: {
|
|
38
|
+
display: "inline-block",
|
|
39
|
+
margin: "0 20px 0 0",
|
|
40
|
+
padding: "0 23px 0 0",
|
|
41
|
+
fontSize: 24,
|
|
42
|
+
fontWeight: 500,
|
|
43
|
+
verticalAlign: "top",
|
|
44
|
+
lineHeight: "49px"
|
|
45
|
+
},
|
|
46
|
+
h2: {
|
|
47
|
+
fontSize: 14,
|
|
48
|
+
fontWeight: 400,
|
|
49
|
+
lineHeight: "49px",
|
|
50
|
+
margin: 0
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The missing-page screen every Next app shows.
|
|
56
|
+
* Pure UI. Each app's `app/not-found.js` renders this.
|
|
57
|
+
*/
|
|
58
|
+
function PowrNotFound() {
|
|
59
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
60
|
+
className: "powr-not-found",
|
|
61
|
+
style: styles.error
|
|
62
|
+
}, /*#__PURE__*/_react["default"].createElement("style", {
|
|
63
|
+
dangerouslySetInnerHTML: {
|
|
64
|
+
__html: css
|
|
65
|
+
}
|
|
66
|
+
}), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("h1", {
|
|
67
|
+
className: "powr-not-found-h1",
|
|
68
|
+
style: styles.h1
|
|
69
|
+
}, "404"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
|
+
style: styles.desc
|
|
71
|
+
}, /*#__PURE__*/_react["default"].createElement("h2", {
|
|
72
|
+
style: styles.h2
|
|
73
|
+
}, "This page could not be found."))));
|
|
74
|
+
}
|