react-email 1.0.6 → 1.0.8

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 (141) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.js +42 -0
  3. package/dist/utils/check-directory-exist.d.ts +1 -0
  4. package/dist/utils/check-directory-exist.js +9 -0
  5. package/dist/utils/check-empty-directory.d.ts +1 -0
  6. package/dist/utils/check-empty-directory.js +12 -0
  7. package/dist/utils/contants.d.ts +10 -0
  8. package/dist/utils/contants.js +18 -0
  9. package/dist/utils/copy-files.d.ts +1 -0
  10. package/dist/utils/copy-files.js +30 -0
  11. package/dist/utils/watcher.d.ts +2 -0
  12. package/dist/utils/watcher.js +22 -0
  13. package/package.json +30 -9
  14. package/{base → preview}/next-env.d.ts +0 -0
  15. package/preview/package.json +52 -0
  16. package/preview/postcss.config.js +6 -0
  17. package/preview/src/components/button.tsx +85 -0
  18. package/{base/src/components/code → preview/src/components}/code.tsx +5 -38
  19. package/preview/src/components/heading.tsx +114 -0
  20. package/preview/src/components/index.ts +7 -0
  21. package/preview/src/components/layout.tsx +76 -0
  22. package/preview/src/components/logo.tsx +71 -0
  23. package/preview/src/components/sidebar.tsx +137 -0
  24. package/preview/src/components/text.tsx +100 -0
  25. package/preview/src/components/topbar.tsx +55 -0
  26. package/preview/src/pages/_app.tsx +29 -0
  27. package/preview/src/pages/_document.tsx +13 -0
  28. package/preview/src/pages/index.tsx +36 -0
  29. package/preview/src/pages/preview/[slug].tsx +68 -0
  30. package/preview/src/styles/globals.css +3 -0
  31. package/preview/src/utils/as.ts +26 -0
  32. package/preview/src/utils/index.ts +2 -0
  33. package/preview/src/utils/unreachable.ts +6 -0
  34. package/preview/tailwind.config.js +90 -0
  35. package/preview/tsconfig.json +31 -0
  36. package/readme.md +0 -0
  37. package/tsconfig.json +32 -4
  38. package/.babelrc +0 -3
  39. package/base/.eslintrc.js +0 -4
  40. package/base/.next/build-manifest.json +0 -35
  41. package/base/.next/cache/webpack/client-development/0.pack +0 -0
  42. package/base/.next/cache/webpack/client-development/1.pack +0 -0
  43. package/base/.next/cache/webpack/client-development/index.pack +0 -0
  44. package/base/.next/cache/webpack/client-development/index.pack.old +0 -0
  45. package/base/.next/cache/webpack/server-development/0.pack +0 -0
  46. package/base/.next/cache/webpack/server-development/1.pack +0 -0
  47. package/base/.next/cache/webpack/server-development/index.pack +0 -0
  48. package/base/.next/cache/webpack/server-development/index.pack.old +0 -0
  49. package/base/.next/package.json +0 -1
  50. package/base/.next/react-loadable-manifest.json +0 -1
  51. package/base/.next/server/emails_notion-magic-link_tsx.js +0 -25
  52. package/base/.next/server/emails_stripe-welcome_tsx.js +0 -25
  53. package/base/.next/server/emails_vercel-invite-user_tsx.js +0 -25
  54. package/base/.next/server/middleware-build-manifest.js +0 -1
  55. package/base/.next/server/middleware-manifest.json +0 -6
  56. package/base/.next/server/middleware-react-loadable-manifest.js +0 -1
  57. package/base/.next/server/pages/[...path].js +0 -386
  58. package/base/.next/server/pages/_app.js +0 -145
  59. package/base/.next/server/pages/_document.js +0 -211
  60. package/base/.next/server/pages/_error.js +0 -56
  61. package/base/.next/server/pages/api/[...path].js +0 -253
  62. package/base/.next/server/pages-manifest.json +0 -7
  63. package/base/.next/server/webpack-api-runtime.js +0 -168
  64. package/base/.next/server/webpack-runtime.js +0 -168
  65. package/base/.next/static/chunks/amp.js +0 -872
  66. package/base/.next/static/chunks/main.js +0 -1166
  67. package/base/.next/static/chunks/pages/[...path].js +0 -904
  68. package/base/.next/static/chunks/pages/_app.js +0 -467
  69. package/base/.next/static/chunks/pages/_error.js +0 -28
  70. package/base/.next/static/chunks/polyfills.js +0 -1
  71. package/base/.next/static/chunks/react-refresh.js +0 -62
  72. package/base/.next/static/chunks/webpack.js +0 -1242
  73. package/base/.next/static/development/_buildManifest.js +0 -1
  74. package/base/.next/static/development/_ssgManifest.js +0 -1
  75. package/base/.next/static/webpack/94b31eaefc86ea7b.webpack.hot-update.json +0 -1
  76. package/base/.next/static/webpack/webpack.94b31eaefc86ea7b.hot-update.js +0 -36
  77. package/base/.next/trace +0 -5
  78. package/base/next.config.js +0 -11
  79. package/base/package.json +0 -53
  80. package/base/postcss.config.js +0 -20
  81. package/base/public/static/fonts/Biotif-Bold.woff +0 -0
  82. package/base/public/static/fonts/Biotif-Bold.woff2 +0 -0
  83. package/base/public/static/fonts/Biotif-Book.woff +0 -0
  84. package/base/public/static/fonts/Biotif-Book.woff2 +0 -0
  85. package/base/public/static/fonts/Biotif-Regular.woff +0 -0
  86. package/base/public/static/fonts/Biotif-Regular.woff2 +0 -0
  87. package/base/public/static/fonts/Biotif-SemiBold.woff +0 -0
  88. package/base/public/static/fonts/Biotif-SemiBold.woff2 +0 -0
  89. package/base/public/static/fonts/FiraCode-Regular.woff +0 -0
  90. package/base/public/static/fonts/FiraCode-Regular.woff2 +0 -0
  91. package/base/public/static/images/favicon.ico +0 -0
  92. package/base/public/static/images/notion-logo.png +0 -0
  93. package/base/public/static/images/stripe-logo.png +0 -0
  94. package/base/public/static/images/vercel-arrow.png +0 -0
  95. package/base/public/static/images/vercel-logo.png +0 -0
  96. package/base/readme.md +0 -19
  97. package/base/src/components/code/index.ts +0 -1
  98. package/base/src/components/icon-button/icon-button.tsx +0 -23
  99. package/base/src/components/icon-button/index.ts +0 -1
  100. package/base/src/components/icons/icon-base.tsx +0 -26
  101. package/base/src/components/icons/icon-check.tsx +0 -18
  102. package/base/src/components/icons/icon-clipboard.tsx +0 -39
  103. package/base/src/components/icons/icon-download.tsx +0 -18
  104. package/base/src/components/icons/icon-loading.tsx +0 -33
  105. package/base/src/components/icons/index.ts +0 -4
  106. package/base/src/components/layout.tsx +0 -53
  107. package/base/src/components/tooltip/index.ts +0 -1
  108. package/base/src/components/tooltip/tooltip-arrow.tsx +0 -1
  109. package/base/src/components/tooltip/tooltip-content.tsx +0 -26
  110. package/base/src/components/tooltip/tooltip-provider.tsx +0 -1
  111. package/base/src/components/tooltip/tooltip-trigger.tsx +0 -1
  112. package/base/src/components/tooltip/tooltip.tsx +0 -22
  113. package/base/src/components/topbar/external.tsx +0 -30
  114. package/base/src/components/topbar/feedback.tsx +0 -89
  115. package/base/src/components/topbar/logo.tsx +0 -27
  116. package/base/src/components/topbar/send-test.tsx +0 -95
  117. package/base/src/components/topbar/toggle-view.tsx +0 -66
  118. package/base/src/helpers/bulb-icon.json +0 -1
  119. package/base/src/helpers/chat-icon.json +0 -1
  120. package/base/src/helpers/check-icon.json +0 -1
  121. package/base/src/helpers/code-icon.json +0 -1
  122. package/base/src/helpers/copy-icon.json +0 -1
  123. package/base/src/helpers/desktop-icon.json +0 -1
  124. package/base/src/helpers/download-icon.json +0 -1
  125. package/base/src/helpers/eye-icon.json +0 -1
  126. package/base/src/helpers/file-icon.json +0 -1
  127. package/base/src/helpers/folder-icon.json +0 -1
  128. package/base/src/helpers/inbox-icon.json +0 -1
  129. package/base/src/helpers/launch-icon.json +0 -1
  130. package/base/src/helpers/mail-icon.json +0 -1
  131. package/base/src/helpers/mobile-icon.json +0 -1
  132. package/base/src/helpers/note-icon.json +0 -1
  133. package/base/src/helpers/reply-icon.json +0 -1
  134. package/base/src/pages/[...path].tsx +0 -40
  135. package/base/src/pages/_app.tsx +0 -11
  136. package/base/src/pages/_document.tsx +0 -37
  137. package/base/src/pages/api/[...path].js +0 -20
  138. package/base/src/styles/globals.css +0 -48
  139. package/base/src/utils/copy-text-to-clipboard.ts +0 -7
  140. package/base/tsconfig.json +0 -5
  141. package/src/index.js +0 -30
@@ -1,168 +0,0 @@
1
- /*
2
- * ATTENTION: An "eval-source-map" devtool has been used.
3
- * This devtool is neither made for production nor for readable output files.
4
- * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
5
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
6
- * or disable the default devtool with "devtool: false".
7
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
8
- */
9
- /******/ (() => { // webpackBootstrap
10
- /******/ "use strict";
11
- /******/ var __webpack_modules__ = ({});
12
- /************************************************************************/
13
- /******/ // The module cache
14
- /******/ var __webpack_module_cache__ = {};
15
- /******/
16
- /******/ // The require function
17
- /******/ function __webpack_require__(moduleId) {
18
- /******/ // Check if module is in cache
19
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
20
- /******/ if (cachedModule !== undefined) {
21
- /******/ return cachedModule.exports;
22
- /******/ }
23
- /******/ // Create a new module (and put it into the cache)
24
- /******/ var module = __webpack_module_cache__[moduleId] = {
25
- /******/ // no module.id needed
26
- /******/ // no module.loaded needed
27
- /******/ exports: {}
28
- /******/ };
29
- /******/
30
- /******/ // Execute the module function
31
- /******/ var threw = true;
32
- /******/ try {
33
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
34
- /******/ threw = false;
35
- /******/ } finally {
36
- /******/ if(threw) delete __webpack_module_cache__[moduleId];
37
- /******/ }
38
- /******/
39
- /******/ // Return the exports of the module
40
- /******/ return module.exports;
41
- /******/ }
42
- /******/
43
- /******/ // expose the modules object (__webpack_modules__)
44
- /******/ __webpack_require__.m = __webpack_modules__;
45
- /******/
46
- /************************************************************************/
47
- /******/ /* webpack/runtime/compat get default export */
48
- /******/ (() => {
49
- /******/ // getDefaultExport function for compatibility with non-harmony modules
50
- /******/ __webpack_require__.n = (module) => {
51
- /******/ var getter = module && module.__esModule ?
52
- /******/ () => (module['default']) :
53
- /******/ () => (module);
54
- /******/ __webpack_require__.d(getter, { a: getter });
55
- /******/ return getter;
56
- /******/ };
57
- /******/ })();
58
- /******/
59
- /******/ /* webpack/runtime/define property getters */
60
- /******/ (() => {
61
- /******/ // define getter functions for harmony exports
62
- /******/ __webpack_require__.d = (exports, definition) => {
63
- /******/ for(var key in definition) {
64
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
65
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
66
- /******/ }
67
- /******/ }
68
- /******/ };
69
- /******/ })();
70
- /******/
71
- /******/ /* webpack/runtime/ensure chunk */
72
- /******/ (() => {
73
- /******/ __webpack_require__.f = {};
74
- /******/ // This file contains only the entry chunk.
75
- /******/ // The chunk loading function for additional chunks
76
- /******/ __webpack_require__.e = (chunkId) => {
77
- /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
78
- /******/ __webpack_require__.f[key](chunkId, promises);
79
- /******/ return promises;
80
- /******/ }, []));
81
- /******/ };
82
- /******/ })();
83
- /******/
84
- /******/ /* webpack/runtime/get javascript chunk filename */
85
- /******/ (() => {
86
- /******/ // This function allow to reference async chunks and sibling chunks for the entrypoint
87
- /******/ __webpack_require__.u = (chunkId) => {
88
- /******/ // return url for filenames based on template
89
- /******/ return undefined;
90
- /******/ };
91
- /******/ })();
92
- /******/
93
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
94
- /******/ (() => {
95
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
96
- /******/ })();
97
- /******/
98
- /******/ /* webpack/runtime/make namespace object */
99
- /******/ (() => {
100
- /******/ // define __esModule on exports
101
- /******/ __webpack_require__.r = (exports) => {
102
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
103
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
104
- /******/ }
105
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
106
- /******/ };
107
- /******/ })();
108
- /******/
109
- /******/ /* webpack/runtime/startup entrypoint */
110
- /******/ (() => {
111
- /******/ __webpack_require__.X = (result, chunkIds, fn) => {
112
- /******/ // arguments: chunkIds, moduleId are deprecated
113
- /******/ var moduleId = chunkIds;
114
- /******/ if(!fn) chunkIds = result, fn = () => (__webpack_require__(__webpack_require__.s = moduleId));
115
- /******/ chunkIds.map(__webpack_require__.e, __webpack_require__)
116
- /******/ var r = fn();
117
- /******/ return r === undefined ? result : r;
118
- /******/ }
119
- /******/ })();
120
- /******/
121
- /******/ /* webpack/runtime/require chunk loading */
122
- /******/ (() => {
123
- /******/ // no baseURI
124
- /******/
125
- /******/ // object to store loaded chunks
126
- /******/ // "1" means "loaded", otherwise not loaded yet
127
- /******/ var installedChunks = {
128
- /******/ "webpack-runtime": 1
129
- /******/ };
130
- /******/
131
- /******/ // no on chunks loaded
132
- /******/
133
- /******/ var installChunk = (chunk) => {
134
- /******/ var moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime;
135
- /******/ for(var moduleId in moreModules) {
136
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
137
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
138
- /******/ }
139
- /******/ }
140
- /******/ if(runtime) runtime(__webpack_require__);
141
- /******/ for(var i = 0; i < chunkIds.length; i++)
142
- /******/ installedChunks[chunkIds[i]] = 1;
143
- /******/
144
- /******/ };
145
- /******/
146
- /******/ // require() chunk loading for javascript
147
- /******/ __webpack_require__.f.require = (chunkId, promises) => {
148
- /******/ // "1" is the signal for "already loaded"
149
- /******/ if(!installedChunks[chunkId]) {
150
- /******/ if("webpack-runtime" != chunkId) {
151
- /******/ installChunk(require("./" + __webpack_require__.u(chunkId)));
152
- /******/ } else installedChunks[chunkId] = 1;
153
- /******/ }
154
- /******/ };
155
- /******/
156
- /******/ module.exports = __webpack_require__;
157
- /******/ __webpack_require__.C = installChunk;
158
- /******/
159
- /******/ // no HMR
160
- /******/
161
- /******/ // no HMR manifest
162
- /******/ })();
163
- /******/
164
- /************************************************************************/
165
- /******/
166
- /******/
167
- /******/ })()
168
- ;