create-domis 1.0.46 → 1.0.48

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.
Files changed (62) hide show
  1. package/dist/index.d.ts +1 -2
  2. package/dist/index.js +42 -128
  3. package/package.json +5 -6
  4. package/templates/domisdocs-free/.firebaserc +0 -5
  5. package/templates/domisdocs-free/README.md +0 -70
  6. package/templates/domisdocs-free/firebase.json +0 -29
  7. package/templates/domisdocs-free/package.json +0 -10
  8. package/templates/domisdocs-lite/.firebaserc +0 -5
  9. package/templates/domisdocs-lite/README.md +0 -229
  10. package/templates/domisdocs-lite/domisdocs-602fc/hosting/404.html +0 -155
  11. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/NQ3kax0_fweCAqnNXt6Ej/_buildManifest.js +0 -81
  12. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/NQ3kax0_fweCAqnNXt6Ej/_ssgManifest.js +0 -2
  13. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/341.df3329d77a5faa19.js +0 -369
  14. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/472.a3826d29d6854395.js +0 -37
  15. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/4bd1b696-67ee12fb04071d3b.js +0 -11130
  16. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/684-71b0b1461a73105d.js +0 -9987
  17. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/874-992333f59fd2c78c.js +0 -525
  18. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/app/_not-found/page-f08302ee705a96b1.js +0 -113
  19. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/app/dashboard/page-bd672c78e74e0ca7.js +0 -12
  20. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/app/layout-1415b7c12bd25ba1.js +0 -13
  21. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/app/page-202ca2a6f090766b.js +0 -12
  22. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/framework-859199dea06580b0.js +0 -11894
  23. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/main-9d4372fbc380071d.js +0 -6431
  24. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/main-app-9e36547c97a174da.js +0 -20
  25. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/pages/_app-a66f9296699c5863.js +0 -49
  26. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/pages/_error-7688f4c9a69e67c8.js +0 -386
  27. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -7940
  28. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/chunks/webpack-880aef799750a911.js +0 -209
  29. package/templates/domisdocs-lite/domisdocs-602fc/hosting/_next/static/css/f913f2bf40d109a3.css +0 -1056
  30. package/templates/domisdocs-lite/domisdocs-602fc/hosting/dashboard.html +0 -520
  31. package/templates/domisdocs-lite/domisdocs-602fc/hosting/index.html +0 -129
  32. package/templates/domisdocs-lite/domispacks/hosting/404.html +0 -155
  33. package/templates/domisdocs-lite/domispacks/hosting/_next/static/FUOO1M6iev6fYpEjnXpyc/_buildManifest.js +0 -81
  34. package/templates/domisdocs-lite/domispacks/hosting/_next/static/FUOO1M6iev6fYpEjnXpyc/_ssgManifest.js +0 -2
  35. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/341.df3329d77a5faa19.js +0 -369
  36. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/472.a3826d29d6854395.js +0 -37
  37. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/4bd1b696-67ee12fb04071d3b.js +0 -11130
  38. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/684-71b0b1461a73105d.js +0 -9987
  39. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/874-992333f59fd2c78c.js +0 -525
  40. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/app/_not-found/page-f08302ee705a96b1.js +0 -113
  41. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/app/dashboard/page-bd672c78e74e0ca7.js +0 -12
  42. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/app/layout-1415b7c12bd25ba1.js +0 -13
  43. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/app/page-202ca2a6f090766b.js +0 -12
  44. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/framework-859199dea06580b0.js +0 -11894
  45. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/main-9d4372fbc380071d.js +0 -6431
  46. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/main-app-9e36547c97a174da.js +0 -20
  47. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/pages/_app-a66f9296699c5863.js +0 -49
  48. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/pages/_error-7688f4c9a69e67c8.js +0 -386
  49. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -7940
  50. package/templates/domisdocs-lite/domispacks/hosting/_next/static/chunks/webpack-880aef799750a911.js +0 -209
  51. package/templates/domisdocs-lite/domispacks/hosting/_next/static/css/f913f2bf40d109a3.css +0 -1056
  52. package/templates/domisdocs-lite/domispacks/hosting/dashboard.html +0 -520
  53. package/templates/domisdocs-lite/domispacks/hosting/index.html +0 -129
  54. package/templates/domisdocs-lite/firebase.json +0 -29
  55. package/templates/domisdocs-lite/hosting.LmZpcmViYXNlXGRvbWlzZG9jcy02MDJmY1xob3N0aW5n.cache +0 -22
  56. package/templates/domisdocs-lite/hosting.LmZpcmViYXNlXGRvbWlzcGFja3NcaG9zdGluZw.cache +0 -22
  57. package/templates/domisdocs-lite/next-env.d.ts +0 -5
  58. package/templates/domisdocs-lite/next.config.ts +0 -9
  59. package/templates/domisdocs-lite/package-lock.json +0 -1783
  60. package/templates/domisdocs-lite/package.json +0 -25
  61. package/templates/domisdocs-lite/postcss.config.mjs +0 -3
  62. package/templates/domisdocs-lite/tsconfig.json +0 -22
@@ -1,369 +0,0 @@
1
- "use strict";
2
- (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
3
- [341],
4
- {
5
- 303: (e, t, n) => {
6
- (Object.defineProperty(t, "__esModule", { value: !0 }),
7
- Object.defineProperty(t, "AmpStateContext", {
8
- enumerable: !0,
9
- get: function () {
10
- return r;
11
- },
12
- }));
13
- let r = n(4252)._(n(4232)).default.createContext({});
14
- },
15
- 3776: (e, t, n) => {
16
- (Object.defineProperty(t, "__esModule", { value: !0 }),
17
- Object.defineProperty(t, "default", {
18
- enumerable: !0,
19
- get: function () {
20
- return a;
21
- },
22
- }));
23
- let r = n(4232),
24
- o = r.useLayoutEffect,
25
- l = r.useEffect;
26
- function a(e) {
27
- let { headManager: t, reduceComponentsToState: n } = e;
28
- function a() {
29
- if (t && t.mountedInstances) {
30
- let o = r.Children.toArray(
31
- Array.from(t.mountedInstances).filter(Boolean),
32
- );
33
- t.updateHead(n(o, e));
34
- }
35
- }
36
- return (
37
- o(() => {
38
- var n;
39
- return (
40
- null == t ||
41
- null == (n = t.mountedInstances) ||
42
- n.add(e.children),
43
- () => {
44
- var n;
45
- null == t ||
46
- null == (n = t.mountedInstances) ||
47
- n.delete(e.children);
48
- }
49
- );
50
- }),
51
- o(
52
- () => (
53
- t && (t._pendingUpdate = a),
54
- () => {
55
- t && (t._pendingUpdate = a);
56
- }
57
- ),
58
- ),
59
- l(
60
- () => (
61
- t &&
62
- t._pendingUpdate &&
63
- (t._pendingUpdate(), (t._pendingUpdate = null)),
64
- () => {
65
- t &&
66
- t._pendingUpdate &&
67
- (t._pendingUpdate(), (t._pendingUpdate = null));
68
- }
69
- ),
70
- ),
71
- null
72
- );
73
- }
74
- },
75
- 5679: (e, t, n) => {
76
- var r = n(5364);
77
- (Object.defineProperty(t, "__esModule", { value: !0 }),
78
- !(function (e, t) {
79
- for (var n in t)
80
- Object.defineProperty(e, n, { enumerable: !0, get: t[n] });
81
- })(t, {
82
- default: function () {
83
- return y;
84
- },
85
- defaultHead: function () {
86
- return p;
87
- },
88
- }));
89
- let o = n(4252),
90
- l = n(8365),
91
- a = n(7876),
92
- i = l._(n(4232)),
93
- d = o._(n(3776)),
94
- s = n(303),
95
- u = n(8831),
96
- c = n(6807);
97
- function p(e) {
98
- void 0 === e && (e = !1);
99
- let t = [(0, a.jsx)("meta", { charSet: "utf-8" }, "charset")];
100
- return (
101
- e ||
102
- t.push(
103
- (0, a.jsx)(
104
- "meta",
105
- { name: "viewport", content: "width=device-width" },
106
- "viewport",
107
- ),
108
- ),
109
- t
110
- );
111
- }
112
- function f(e, t) {
113
- return "string" == typeof t || "number" == typeof t
114
- ? e
115
- : t.type === i.default.Fragment
116
- ? e.concat(
117
- i.default.Children.toArray(t.props.children).reduce(
118
- (e, t) =>
119
- "string" == typeof t || "number" == typeof t
120
- ? e
121
- : e.concat(t),
122
- [],
123
- ),
124
- )
125
- : e.concat(t);
126
- }
127
- n(6079);
128
- let h = ["name", "httpEquiv", "charSet", "itemProp"];
129
- function m(e, t) {
130
- let { inAmpMode: n } = t;
131
- return e
132
- .reduce(f, [])
133
- .reverse()
134
- .concat(p(n).reverse())
135
- .filter(
136
- (function () {
137
- let e = new Set(),
138
- t = new Set(),
139
- n = new Set(),
140
- r = {};
141
- return (o) => {
142
- let l = !0,
143
- a = !1;
144
- if (
145
- o.key &&
146
- "number" != typeof o.key &&
147
- o.key.indexOf("$") > 0
148
- ) {
149
- a = !0;
150
- let t = o.key.slice(o.key.indexOf("$") + 1);
151
- e.has(t) ? (l = !1) : e.add(t);
152
- }
153
- switch (o.type) {
154
- case "title":
155
- case "base":
156
- t.has(o.type) ? (l = !1) : t.add(o.type);
157
- break;
158
- case "meta":
159
- for (let e = 0, t = h.length; e < t; e++) {
160
- let t = h[e];
161
- if (o.props.hasOwnProperty(t))
162
- if ("charSet" === t) n.has(t) ? (l = !1) : n.add(t);
163
- else {
164
- let e = o.props[t],
165
- n = r[t] || new Set();
166
- ("name" !== t || !a) && n.has(e)
167
- ? (l = !1)
168
- : (n.add(e), (r[t] = n));
169
- }
170
- }
171
- }
172
- return l;
173
- };
174
- })(),
175
- )
176
- .reverse()
177
- .map((e, t) => {
178
- let o = e.key || t;
179
- if (
180
- r.env.__NEXT_OPTIMIZE_FONTS &&
181
- !n &&
182
- "link" === e.type &&
183
- e.props.href &&
184
- [
185
- "https://fonts.googleapis.com/css",
186
- "https://use.typekit.net/",
187
- ].some((t) => e.props.href.startsWith(t))
188
- ) {
189
- let t = { ...(e.props || {}) };
190
- return (
191
- (t["data-href"] = t.href),
192
- (t.href = void 0),
193
- (t["data-optimized-fonts"] = !0),
194
- i.default.cloneElement(e, t)
195
- );
196
- }
197
- return i.default.cloneElement(e, { key: o });
198
- });
199
- }
200
- let y = function (e) {
201
- let { children: t } = e,
202
- n = (0, i.useContext)(s.AmpStateContext),
203
- r = (0, i.useContext)(u.HeadManagerContext);
204
- return (0, a.jsx)(d.default, {
205
- reduceComponentsToState: m,
206
- headManager: r,
207
- inAmpMode: (0, c.isInAmpMode)(n),
208
- children: t,
209
- });
210
- };
211
- ("function" == typeof t.default ||
212
- ("object" == typeof t.default && null !== t.default)) &&
213
- void 0 === t.default.__esModule &&
214
- (Object.defineProperty(t.default, "__esModule", { value: !0 }),
215
- Object.assign(t.default, t),
216
- (e.exports = t.default));
217
- },
218
- 6079: (e, t) => {
219
- (Object.defineProperty(t, "__esModule", { value: !0 }),
220
- Object.defineProperty(t, "warnOnce", {
221
- enumerable: !0,
222
- get: function () {
223
- return n;
224
- },
225
- }));
226
- let n = (e) => {};
227
- },
228
- 6807: (e, t) => {
229
- function n(e) {
230
- let {
231
- ampFirst: t = !1,
232
- hybrid: n = !1,
233
- hasQuery: r = !1,
234
- } = void 0 === e ? {} : e;
235
- return t || (n && r);
236
- }
237
- (Object.defineProperty(t, "__esModule", { value: !0 }),
238
- Object.defineProperty(t, "isInAmpMode", {
239
- enumerable: !0,
240
- get: function () {
241
- return n;
242
- },
243
- }));
244
- },
245
- 9341: (e, t, n) => {
246
- (Object.defineProperty(t, "__esModule", { value: !0 }),
247
- Object.defineProperty(t, "default", {
248
- enumerable: !0,
249
- get: function () {
250
- return u;
251
- },
252
- }));
253
- let r = n(4252),
254
- o = n(7876),
255
- l = r._(n(4232)),
256
- a = r._(n(5679)),
257
- i = {
258
- 400: "Bad Request",
259
- 404: "This page could not be found",
260
- 405: "Method Not Allowed",
261
- 500: "Internal Server Error",
262
- };
263
- function d(e) {
264
- let { req: t, res: n, err: r } = e;
265
- return {
266
- statusCode: n && n.statusCode ? n.statusCode : r ? r.statusCode : 404,
267
- hostname: window.location.hostname,
268
- };
269
- }
270
- let s = {
271
- error: {
272
- fontFamily:
273
- 'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',
274
- height: "100vh",
275
- textAlign: "center",
276
- display: "flex",
277
- flexDirection: "column",
278
- alignItems: "center",
279
- justifyContent: "center",
280
- },
281
- desc: { lineHeight: "48px" },
282
- h1: {
283
- display: "inline-block",
284
- margin: "0 20px 0 0",
285
- paddingRight: 23,
286
- fontSize: 24,
287
- fontWeight: 500,
288
- verticalAlign: "top",
289
- },
290
- h2: { fontSize: 14, fontWeight: 400, lineHeight: "28px" },
291
- wrap: { display: "inline-block" },
292
- };
293
- class u extends l.default.Component {
294
- render() {
295
- let { statusCode: e, withDarkMode: t = !0 } = this.props,
296
- n = this.props.title || i[e] || "An unexpected error has occurred";
297
- return (0, o.jsxs)("div", {
298
- style: s.error,
299
- children: [
300
- (0, o.jsx)(a.default, {
301
- children: (0, o.jsx)("title", {
302
- children: e
303
- ? e + ": " + n
304
- : "Application error: a client-side exception has occurred",
305
- }),
306
- }),
307
- (0, o.jsxs)("div", {
308
- style: s.desc,
309
- children: [
310
- (0, o.jsx)("style", {
311
- dangerouslySetInnerHTML: {
312
- __html:
313
- "body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}" +
314
- (t
315
- ? "@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"
316
- : ""),
317
- },
318
- }),
319
- e
320
- ? (0, o.jsx)("h1", {
321
- className: "next-error-h1",
322
- style: s.h1,
323
- children: e,
324
- })
325
- : null,
326
- (0, o.jsx)("div", {
327
- style: s.wrap,
328
- children: (0, o.jsxs)("h2", {
329
- style: s.h2,
330
- children: [
331
- this.props.title || e
332
- ? n
333
- : (0, o.jsxs)(o.Fragment, {
334
- children: [
335
- "Application error: a client-side exception has occurred",
336
- " ",
337
- !!this.props.hostname &&
338
- (0, o.jsxs)(o.Fragment, {
339
- children: [
340
- "while loading ",
341
- this.props.hostname,
342
- ],
343
- }),
344
- " ",
345
- "(see the browser console for more information)",
346
- ],
347
- }),
348
- ".",
349
- ],
350
- }),
351
- }),
352
- ],
353
- }),
354
- ],
355
- });
356
- }
357
- }
358
- ((u.displayName = "ErrorPage"),
359
- (u.getInitialProps = d),
360
- (u.origGetInitialProps = d),
361
- ("function" == typeof t.default ||
362
- ("object" == typeof t.default && null !== t.default)) &&
363
- void 0 === t.default.__esModule &&
364
- (Object.defineProperty(t.default, "__esModule", { value: !0 }),
365
- Object.assign(t.default, t),
366
- (e.exports = t.default)));
367
- },
368
- },
369
- ]);
@@ -1,37 +0,0 @@
1
- "use strict";
2
- (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
3
- [472],
4
- {
5
- 472: (e, t, l) => {
6
- (Object.defineProperty(t, "__esModule", { value: !0 }),
7
- Object.defineProperty(t, "default", {
8
- enumerable: !0,
9
- get: function () {
10
- return s;
11
- },
12
- }));
13
- let u = l(4252),
14
- n = l(7876),
15
- a = u._(l(4232)),
16
- o = l(2746);
17
- async function r(e) {
18
- let { Component: t, ctx: l } = e;
19
- return { pageProps: await (0, o.loadGetInitialProps)(t, l) };
20
- }
21
- class s extends a.default.Component {
22
- render() {
23
- let { Component: e, pageProps: t } = this.props;
24
- return (0, n.jsx)(e, { ...t });
25
- }
26
- }
27
- ((s.origGetInitialProps = r),
28
- (s.getInitialProps = r),
29
- ("function" == typeof t.default ||
30
- ("object" == typeof t.default && null !== t.default)) &&
31
- void 0 === t.default.__esModule &&
32
- (Object.defineProperty(t.default, "__esModule", { value: !0 }),
33
- Object.assign(t.default, t),
34
- (e.exports = t.default)));
35
- },
36
- },
37
- ]);