@moneko/core 2.0.1 → 2.0.2-1.2

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 (143) hide show
  1. package/build/common.js +1 -1
  2. package/build/coverage.js +1 -1
  3. package/build/done.d.ts +8 -0
  4. package/build/done.js +1 -0
  5. package/build/envFlags.d.ts +1 -3
  6. package/build/envFlags.js +1 -1
  7. package/build/has-pkg.js +1 -1
  8. package/build/html-add-entry-attr.js +1 -1
  9. package/build/html-plugin-option.d.ts +2 -2
  10. package/build/html-plugin-option.js +1 -1
  11. package/build/index.d.ts +2 -0
  12. package/build/index.js +1 -0
  13. package/build/minify.js +1 -1
  14. package/build/modifyVars.js +1 -1
  15. package/build/module-federation.d.ts +1 -1
  16. package/build/module-federation.js +1 -1
  17. package/build/module.config.js +1 -1
  18. package/build/process-env.js +1 -1
  19. package/build/resolver-sync.js +1 -1
  20. package/build/seo.d.ts +1 -0
  21. package/build/seo.js +1 -0
  22. package/build/swcrc.js +1 -1
  23. package/build/tsloader.config.js +1 -1
  24. package/build/utils.js +1 -1
  25. package/build/webpack.common.d.ts +1 -0
  26. package/build/webpack.common.js +1 -1
  27. package/build/webpack.dev.js +1 -1
  28. package/build/webpack.prod.js +1 -1
  29. package/build/yarn-argv.js +1 -1
  30. package/lib/components/app-router.d.ts +8 -0
  31. package/lib/components/app-router.js +1 -0
  32. package/lib/components/fallback-comp.js +1 -0
  33. package/lib/components/fallback.js +1 -0
  34. package/lib/components/{layout-menu/index.d.ts → layout-menu.d.ts} +1 -2
  35. package/lib/components/layout-menu.js +1 -0
  36. package/lib/index.d.ts +13 -7
  37. package/lib/index.js +1 -2
  38. package/lib/localizable.d.ts +53 -0
  39. package/lib/localizable.js +1 -0
  40. package/lib/menu.d.ts +71 -0
  41. package/lib/menu.js +1 -0
  42. package/lib/packages/back-stage/app.d.ts +2 -4
  43. package/lib/packages/back-stage/app.js +1 -2
  44. package/lib/packages/back-stage/bootstrap.d.ts +1 -1
  45. package/lib/packages/back-stage/bootstrap.js +1 -2
  46. package/lib/packages/back-stage/index.d.ts +0 -1
  47. package/lib/packages/back-stage/index.js +1 -2
  48. package/lib/packages/back-stage/layout.d.ts +5 -0
  49. package/lib/packages/back-stage/layout.js +1 -0
  50. package/lib/packages/library/app.js +1 -2
  51. package/lib/packages/library/bootstrap.d.ts +1 -1
  52. package/lib/packages/library/bootstrap.js +1 -2
  53. package/lib/packages/library/index.d.ts +0 -1
  54. package/lib/packages/library/index.js +1 -2
  55. package/lib/packages/mobile/app.js +1 -2
  56. package/lib/packages/mobile/index.d.ts +0 -2
  57. package/lib/packages/mobile/index.js +1 -2
  58. package/lib/packages/single-spa/app.d.ts +6 -5
  59. package/lib/packages/single-spa/app.js +1 -2
  60. package/lib/packages/single-spa/bootstrap.d.ts +0 -1
  61. package/lib/packages/single-spa/bootstrap.js +1 -2
  62. package/lib/packages/single-spa/index.d.ts +0 -1
  63. package/lib/packages/single-spa/index.js +1 -2
  64. package/lib/packages/single-spa/public-path.js +1 -2
  65. package/lib/packages/site/app.js +1 -2
  66. package/lib/packages/site/bootstrap.d.ts +1 -1
  67. package/lib/packages/site/bootstrap.js +1 -2
  68. package/lib/packages/site/index.d.ts +0 -1
  69. package/lib/packages/site/index.js +1 -2
  70. package/lib/prefix/prefix-remote-react-refresh.js +1 -2
  71. package/lib/prefix/react-router-dom.js +1 -2
  72. package/lib/react-router-dom/link.d.ts +9 -0
  73. package/lib/react-router-dom/link.js +1 -0
  74. package/lib/{hooks/navgate.d.ts → react-router-dom/use-navgate.d.ts} +1 -1
  75. package/lib/react-router-dom/use-navgate.js +1 -0
  76. package/lib/router/index.d.ts +17 -6
  77. package/lib/router/index.js +1 -2
  78. package/lib/styles/normalize.css +51 -45
  79. package/lib/styles/variables.css +30 -35
  80. package/lib/utils/index.d.ts +2 -1
  81. package/lib/utils/index.js +1 -2
  82. package/lib/utils/refresh-rem.js +1 -2
  83. package/package.json +22 -28
  84. package/typings/global.d.ts +161 -59
  85. package/build/color-palette.d.ts +0 -2
  86. package/build/color-palette.js +0 -1
  87. package/build/variables.d.ts +0 -21
  88. package/build/variables.js +0 -1
  89. package/lib/components/app-router/index.d.ts +0 -9
  90. package/lib/components/app-router/index.js +0 -2
  91. package/lib/components/app-router/index.js.map +0 -1
  92. package/lib/components/fallback/index.js +0 -2
  93. package/lib/components/fallback/index.js.map +0 -1
  94. package/lib/components/fallback-comp/index.js +0 -2
  95. package/lib/components/fallback-comp/index.js.map +0 -1
  96. package/lib/components/layout-menu/index.global.less +0 -40
  97. package/lib/components/layout-menu/index.js +0 -2
  98. package/lib/components/layout-menu/index.js.map +0 -1
  99. package/lib/hooks/navgate.js +0 -2
  100. package/lib/hooks/navgate.js.map +0 -1
  101. package/lib/index.js.map +0 -1
  102. package/lib/packages/back-stage/app.js.map +0 -1
  103. package/lib/packages/back-stage/bootstrap.js.map +0 -1
  104. package/lib/packages/back-stage/index.js.map +0 -1
  105. package/lib/packages/back-stage/layout/index.d.ts +0 -3
  106. package/lib/packages/back-stage/layout/index.js +0 -2
  107. package/lib/packages/back-stage/layout/index.js.map +0 -1
  108. package/lib/packages/back-stage/layout/index.less +0 -91
  109. package/lib/packages/back-stage/models/app-program.d.ts +0 -24
  110. package/lib/packages/back-stage/models/app-program.js +0 -2
  111. package/lib/packages/back-stage/models/app-program.js.map +0 -1
  112. package/lib/packages/library/app.js.map +0 -1
  113. package/lib/packages/library/bootstrap.js.map +0 -1
  114. package/lib/packages/library/index.js.map +0 -1
  115. package/lib/packages/mobile/app.js.map +0 -1
  116. package/lib/packages/mobile/index.js.map +0 -1
  117. package/lib/packages/single-spa/app.js.map +0 -1
  118. package/lib/packages/single-spa/bootstrap.js.map +0 -1
  119. package/lib/packages/single-spa/index.js.map +0 -1
  120. package/lib/packages/single-spa/public-path.js.map +0 -1
  121. package/lib/packages/site/app.js.map +0 -1
  122. package/lib/packages/site/bootstrap.js.map +0 -1
  123. package/lib/packages/site/index.js.map +0 -1
  124. package/lib/prefix/i18n-hooks.d.ts +0 -1
  125. package/lib/prefix/i18n-hooks.js +0 -2
  126. package/lib/prefix/i18n-hooks.js.map +0 -1
  127. package/lib/prefix/mini-idc.d.ts +0 -1
  128. package/lib/prefix/mini-idc.js +0 -2
  129. package/lib/prefix/mini-idc.js.map +0 -1
  130. package/lib/prefix/prefix-remote-react-refresh.js.map +0 -1
  131. package/lib/prefix/react-router-dom.js.map +0 -1
  132. package/lib/router/index.js.map +0 -1
  133. package/lib/styles/animation.css +0 -58
  134. package/lib/utils/env.d.ts +0 -0
  135. package/lib/utils/env.js +0 -2
  136. package/lib/utils/env.js.map +0 -1
  137. package/lib/utils/fontloader.d.ts +0 -1
  138. package/lib/utils/fontloader.js +0 -2
  139. package/lib/utils/fontloader.js.map +0 -1
  140. package/lib/utils/index.js.map +0 -1
  141. package/lib/utils/refresh-rem.js.map +0 -1
  142. /package/lib/components/{fallback-comp/index.d.ts → fallback-comp.d.ts} +0 -0
  143. /package/lib/components/{fallback/index.d.ts → fallback.d.ts} +0 -0
@@ -1,21 +1,18 @@
1
- @import url('tailwindcss/base');
2
- @import url('tailwindcss/components');
3
1
  @import url('tailwindcss/utilities');
4
- @import url('./animation.css');
5
2
  @import url('./variables.css');
6
3
 
7
4
  html,
8
5
  body {
9
- width: 100vw;
10
- height: 100vh;
11
- padding: 0;
12
6
  overflow: hidden;
13
7
  margin: 0;
14
- color: var(--text-color);
15
- font-size: var(--font-size-base);
8
+ padding: 0;
9
+ width: 100vw;
10
+ height: 100vh;
11
+ font-size: var(--font-size);
16
12
  font-family: var(--font-family);
17
- line-height: 1.8;
13
+ color: var(--text-color);
18
14
  background-color: var(--body-background);
15
+ line-height: 1.8;
19
16
  transition-duration: var(--transition-duration);
20
17
  transition-property: background-color, color;
21
18
  transition-timing-function: var(--transition-timing-function);
@@ -34,36 +31,36 @@ main {
34
31
  }
35
32
 
36
33
  #root > main {
37
- flex: 1;
38
- width: 100%;
39
34
  overflow-y: auto;
35
+ width: 100%;
36
+ flex: 1;
40
37
  animation: route-in var(--transition-duration);
41
38
  }
42
39
 
43
40
  input,
44
41
  textarea {
45
- caret-color: plum;
42
+ caret-color: var(--primary-color-bg);;
46
43
  }
47
44
 
48
45
  h1 {
49
- font-size: 2em;
50
46
  margin: 0.67em 0;
47
+ font-size: 2em;
51
48
  }
52
49
 
53
50
  hr {
54
- box-sizing: content-box;
55
- height: 0;
56
51
  overflow: visible;
52
+ height: 0;
53
+ box-sizing: content-box;
57
54
  }
58
55
 
59
56
  pre {
60
- font-family: monospace;
61
57
  font-size: 1em;
58
+ font-family: monospace;
62
59
  }
63
60
 
64
61
  a {
65
- background-color: transparent;
66
62
  text-decoration: none;
63
+ background-color: transparent;
67
64
  cursor: pointer;
68
65
  }
69
66
 
@@ -81,8 +78,8 @@ strong {
81
78
  code,
82
79
  kbd,
83
80
  samp {
84
- font-family: monospace;
85
81
  font-size: 1em;
82
+ font-family: monospace;
86
83
  }
87
84
 
88
85
  small {
@@ -91,9 +88,9 @@ small {
91
88
 
92
89
  sub,
93
90
  sup {
91
+ position: relative;
94
92
  font-size: 75%;
95
93
  line-height: 0;
96
- position: relative;
97
94
  vertical-align: baseline;
98
95
  }
99
96
 
@@ -119,10 +116,10 @@ input,
119
116
  optgroup,
120
117
  select,
121
118
  textarea {
122
- font-family: inherit;
119
+ margin: 0;
123
120
  font-size: 100%;
121
+ font-family: inherit;
124
122
  line-height: 1.15;
125
- margin: 0;
126
123
  }
127
124
 
128
125
  button,
@@ -162,12 +159,12 @@ fieldset {
162
159
  }
163
160
 
164
161
  legend {
165
- box-sizing: border-box;
166
- color: inherit;
167
162
  display: table;
168
- max-width: 100%;
169
163
  padding: 0;
164
+ max-width: 100%;
170
165
  white-space: normal;
166
+ color: inherit;
167
+ box-sizing: border-box;
171
168
  }
172
169
 
173
170
  progress {
@@ -219,45 +216,54 @@ template {
219
216
  font: inherit;
220
217
  }
221
218
 
222
- :-webkit-autofill,
223
- :-webkit-autofill:hover,
224
- :-webkit-autofill:focus {
225
- font-weight: 400;
226
- border: none;
227
- border-radius: 5px;
228
- box-shadow: 0 0 0 1000px transparent inset;
229
- transition: background-color var(--transition-duration) var(--transition-timing-function);
230
- -webkit-text-fill-color: var(--text-color);
231
- caret-color: transparent;
232
- }
233
-
234
219
  ::-webkit-scrollbar {
235
220
  width: 4px;
236
221
  height: 4px;
237
- opacity: 0;
238
- }
239
-
240
- ::-webkit-scrollbar-track {
241
- background-color: transparent;
242
222
  }
243
223
 
224
+ ::-webkit-scrollbar-track,
244
225
  ::-webkit-scrollbar-thumb {
245
- background-color: transparent;
246
226
  border-radius: 5px;
227
+ background-color: transparent;
247
228
  }
248
229
 
249
230
  :hover::-webkit-scrollbar-thumb {
250
- background-color: rgba(78, 78, 78, 0.15);
231
+ background-color: var(--primary-color-bg);
251
232
  }
252
233
 
253
234
  ::-webkit-scrollbar-thumb:hover {
254
- background-color: rgba(176, 139, 227, 0.5);
235
+ background-color: var(--primary-color-hover);
255
236
  }
256
237
 
257
238
  ::-webkit-scrollbar-thumb:active {
258
- background-color: rgba(247, 138, 224, 0.5);
239
+ background-color: var(--primary-color-active);
259
240
  }
260
241
 
261
242
  ::-webkit-scrollbar-button {
262
243
  display: none;
263
244
  }
245
+
246
+ @keyframes route-in {
247
+ from {
248
+ transform: translate3d(0, 16px, 0);
249
+ opacity: 0;
250
+ }
251
+
252
+ to {
253
+ transform: translate3d(0, 0, 0);
254
+ opacity: 1;
255
+ }
256
+ }
257
+
258
+ @keyframes route-out {
259
+ from {
260
+ transform: translate3d(0, 0, 0);
261
+ opacity: 1;
262
+ }
263
+
264
+ to {
265
+ z-index: -1;
266
+ transform: translate3d(0, 1rem, 0);
267
+ opacity: 0;
268
+ }
269
+ }
@@ -1,40 +1,35 @@
1
1
  :root {
2
- --text-shadow-color: rgba(0, 0, 0, 0.1);
3
- --font-size-base: 14px;
4
- --border-color-base: #d9d9d9;
5
- --border-radius-base: 8px;
6
- --body-background: #f8f8f8;
7
- --component-background: rgba(255, 255, 255, 0.8);
8
- --table-header-bg: rgba(0, 0, 0, 0.02);
9
- --text-color: rgba(0, 0, 0, 0.65);
10
- --text-color-secondary: rgba(0, 0, 0, 0.45);
11
- --heading-color: rgba(0, 0, 0, 0.85);
12
- --text-selection-bg: var(--primary-color-deprecated-bg);
13
- --box-shadow-small: 0 0 12px rgba(0, 0, 0, 0.1);
14
- --box-shadow-base: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
15
- 0 9px 28px 8px rgba(0, 0, 0, 0.05);
16
- --font-family: -apple-system, 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial',
17
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
18
- 'Noto Color Emoji', 'Helvetica', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans';
19
- --transition-duration: 0.3s;
20
- --transition-timing-function: cubic-bezier(0.94, -0.1, 0.1, 1.2);
21
- --antd-wave-shadow-color: var(--primary-color-outline);
22
- --disable-color: rgba(0, 0, 0, 0.25);
23
- --btn-disable-bg: var(--disable-color);
24
- --btn-disable-border: var(--disable-color);
25
- --menu-dark-item-active-bg: #0e3ab3;
2
+ --font-size: 14px;
3
+ --font-size-sm: 12px;
4
+ --font-size-xs: 10px;
5
+ --font-size-lg: 16px;
6
+ --border-base: 1px solid var(--border-color);
7
+ --border-color: rgb(5 5 5 / 6%);
8
+ --border-radius: 8px;
9
+ --body-background: #f8f8f8;
10
+ --component-background: rgb(255 255 255 / 80%);
11
+ --table-header-bg: rgb(0 0 0 / 2%);
12
+ --text-color: rgb(0 0 0 / 65%);
13
+ --text-secondary: #4e4e4e;
14
+ --text-heading: #1b1b1b;
15
+ --text-selection-bg: var(--primary-color-bg);
16
+ --text-shadow-color: rgb(0 0 0 / 10%);
17
+ --box-shadow-base: 0 3px 6px -4px rgb(0 0 0 / 12%), 0 6px 16px 0 rgb(0 0 0 / 8%),
18
+ 0 9px 28px 8px rgb(0 0 0 / 5%);
19
+ --font-family: -apple-system, 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Helvetica Neue',
20
+ 'Arial', 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
21
+ 'Noto Color Emoji', 'Helvetica', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans';
22
+ --transition-duration: 0.3s;
23
+ --transition-timing-function: cubic-bezier(0.94, -0.1, 0.1, 1.2);
26
24
  }
27
25
 
28
26
  [data-theme='dark'] {
29
- --text-selection-bg: var(--primary-color-deprecated-bg);
30
- --text-color-secondary: rgba(255, 255, 255, 0.25);
31
- --text-shadow-color: rgba(255, 255, 255, 0.1);
32
- --header-shadow: rgba(255, 255, 255, 0.05);
33
- --body-background: #000;
34
- --component-background: rgba(20, 20, 20, 0.8);
35
- --header-bg: rgba(20, 20, 20, 0.9);
36
- --text-color: #ffffffd9;
37
- --border-color-base: #303030;
38
- --heading-color: rgba(255, 255, 255, 0.85);
39
- --disabled-color: rgba(255, 255, 255, 0.3);
27
+ --text-color: #ffffffd9;
28
+ --text-secondary: #cdcdcd;
29
+ --text-heading: rgb(255 255 255 / 85%);
30
+ --text-shadow-color: rgb(255 255 255 / 10%);
31
+ --body-background: #000;
32
+ --component-background: rgb(20 20 20 / 80%);
33
+ --header-bg: rgb(20 20 20 / 90%);
34
+ --border-color: #303030;
40
35
  }
@@ -8,5 +8,6 @@ export type WatermarkParamsType = {
8
8
  angle?: number;
9
9
  opacity?: number;
10
10
  color?: string;
11
+ fontFamily?: string;
11
12
  };
12
- export declare const watermark: ({ text, x, y, width, height, fontSize, angle, opacity, color, }: WatermarkParamsType) => string;
13
+ export declare const watermark: ({ text, x, y, width, height, fontSize, angle, opacity, color, fontFamily, }: WatermarkParamsType) => string;
@@ -1,2 +1 @@
1
- export var watermark=function(param){var text=param.text,_param_x=param.x,x=_param_x===void 0?19.5:_param_x,_param_y=param.y,y=_param_y===void 0?55:_param_y,_param_width=param.width,width=_param_width===void 0?100:_param_width,_param_height=param.height,height=_param_height===void 0?100:_param_height,_param_fontSize=param.fontSize,fontSize=_param_fontSize===void 0?14:_param_fontSize,_param_angle=param.angle,angle=_param_angle===void 0?-45:_param_angle,_param_opacity=param.opacity,opacity=_param_opacity===void 0?.1:_param_opacity,_param_color=param.color,color=_param_color===void 0?"#000":_param_color;var svgStr='<svg xmlns="http://www.w3.org/2000/svg" width="'+width+'" height="'+height+'"><g><title>Layer 1</title><text x="'+x+'" y="'+y+'" textAnchor="middle" dominantBaseline="middle" stroke-opacity="'+opacity+'" stroke="'+color+'" fill="none" transform="rotate('+angle+" "+width/2+","+height/2+')" font-size="'+fontSize+'" font-family="-apple-system, BlinkMacSystemFont, '+"'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Helvetica', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans'"+'">'+text+"</text></g></svg>";return"data:image/svg+xml;base64,"+window.btoa(decodeURIComponent(encodeURIComponent(svgStr)))};
2
- //# sourceMappingURL=index.js.map
1
+ import{stringToBase64Url as o}from"@moneko/common";export var watermark=function(t){var e=t.text,i=t.x,n=t.y,a=t.width,r=void 0===a?100:a,l=t.height,m=void 0===l?100:l,s=t.fontSize,d=t.angle,v=t.opacity,g=t.color,y=t.fontFamily;return"data:image/svg+xml;base64,"+o('<svg xmlns="http://www.w3.org/2000/svg" width="'+r+'" height="'+m+'">\n <g>\n <title>Layer 1</title>\n <text x="'+(void 0===i?50:i)+'" y="'+(void 0===n?50:n)+'" text-anchor="middle" dominant-baseline="middle"\n stroke-opacity="'+(void 0===v?.1:v)+'" stroke="'+(void 0===g?"#000":g)+'" fill="none"\n transform="rotate('+(void 0===d?-45:d)+" "+r/2+" "+m/2+')"\n font-size="'+(void 0===s?14:s)+'" font-family="'+(void 0===y?"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Helvetica', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans'":y)+'">\n '+e+"\n </text>\n </g>\n </svg>")};
@@ -1,2 +1 @@
1
- (function(doc,win){var refreshRem=function refreshRem(){var docEl=doc.documentElement;var clientWidth=docEl.clientWidth||doc.body.clientWidth;var _designSize=clientWidth<=375?375:programInfo.designSize;var unitSize=clientWidth;if(clientWidth<=375){unitSize=clientWidth}else if(clientWidth<=programInfo.designSize){unitSize=_designSize}else{unitSize=clientWidth}var rootSize=16/_designSize*unitSize+"px";if(rootSize!==docEl.style.fontSize){docEl.style.fontSize=rootSize}};refreshRem();if("addEventListener"in doc){var resizeEvt="orientationchange"in win?"orientationchange":"resize";win.addEventListener(resizeEvt,refreshRem,false)}if(!window.scrollTo){window.scrollTo=function(option){window.scrollLeft=option.left;window.scrollTop=option.top}}if(!document.body.scrollTo){Element.prototype.scrollTo=function(option){this.scrollLeft=option.left;this.scrollTop=option.top}}})(document,window);
2
- //# sourceMappingURL=refresh-rem.js.map
1
+ !function(o,n){var t=function(){var n=o.documentElement,t=n.clientWidth||o.body.clientWidth,e=t<=375?375:programInfo.designSize,i=t;i=t<=375?t:t<=programInfo.designSize?e:t;var l=16/e*i+"px";l!==n.style.fontSize&&(n.style.fontSize=l)};t(),"addEventListener"in o&&n.addEventListener("orientationchange"in n?"orientationchange":"resize",t,!1),window.scrollTo||(window.scrollTo=function(o){window.scrollLeft=o.left,window.scrollTop=o.top}),document.body.scrollTo||(Element.prototype.scrollTo=function(o){this.scrollLeft=o.left,this.scrollTop=o.top})}(document,window);
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@moneko/core",
3
- "version": "2.0.1",
3
+ "version": "2.0.21.2",
4
4
  "description": "core",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
7
7
  "build": "npm run build-conf && npm run build-src && npm run build:types",
8
- "build-conf": "swc config -d build -C module.type=commonjs -C minify=true --copy-files",
9
- "build-src": "swc src -d lib -C module.type=es6 -C minify=true -s --copy-files",
8
+ "build-conf": "swc config -d build -C module.type=commonjs -C jsc.target=es5 -C jsc.loose=true -C jsc.minify.mangle=true -C jsc.minify.compress=true -C minify=true --copy-files",
9
+ "build-src": "swc src -d lib -C module.type=es6 -C jsc.loose=true -C jsc.minify.mangle=true -C jsc.minify.compress=true -C minify=true --copy-files",
10
10
  "build:types": "tsc && tsc --project cli.json",
11
11
  "postbuild": "node ./copy.js ./prefix ./lib",
12
12
  "prebuild": "rm -rf ./build && rm -rf ./lib"
@@ -15,50 +15,46 @@
15
15
  "author": "moneko",
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
- "@emotion/css": "11.10.5",
18
+ "@emotion/css": "11.10.6",
19
19
  "@mapbox/rehype-prism": "0.8.0",
20
- "@mdx-js/loader": "2.2.1",
21
- "@moneko/common": "1.0.7",
20
+ "@mdx-js/loader": "2.3.0",
21
+ "@moneko/common": "1.0.15",
22
22
  "@parcel/css": "1.14.0",
23
23
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
24
24
  "@soda/friendly-errors-webpack-plugin": "1.8.1",
25
- "@swc/core": "1.3.34",
25
+ "@swc/core": "1.3.37",
26
26
  "@swc/helpers": "0.4.14",
27
- "@swc/plugin-transform-imports": "1.5.41",
28
27
  "add-asset-html-webpack-plugin": "5.0.2",
29
- "core-js": "3.27.2",
28
+ "core-js": "3.29.1",
30
29
  "cross-env": "7.0.3",
31
30
  "css-loader": "6.7.3",
32
31
  "css-minimizer-webpack-plugin": "4.2.2",
33
32
  "css-unicode-loader": "1.0.3",
34
33
  "external-remotes-plugin": "1.0.0",
35
- "fastclick": "1.0.6",
36
34
  "html-webpack-plugin": "5.5.0",
37
- "i18n-hooks": "1.0.16",
38
35
  "less": "4.1.3",
39
36
  "less-loader": "11.1.0",
40
- "mini-css-extract-plugin": "2.6.1",
41
- "mini-idc": "1.0.17",
37
+ "mini-css-extract-plugin": "2.7.3",
42
38
  "mini-svg-data-uri": "1.4.4",
43
39
  "path-to-regexp": "6.2.1",
44
40
  "portfinder": "1.0.32",
45
41
  "react-activation": "0.12.2",
46
42
  "react-refresh": "0.14.0",
47
- "react-refresh-typescript": "2.0.7",
48
- "react-router": "6.4.2",
49
- "react-router-dom": "6.4.2",
43
+ "react-refresh-typescript": "2.0.8",
44
+ "react-router": "6.9.0",
45
+ "react-router-dom": "6.9.0",
50
46
  "rehype-accessible-emojis": "0.3.2",
51
47
  "rehype-figure": "1.0.1",
48
+ "shared-store-object": "1.0.1",
52
49
  "style-loader": "3.3.1",
53
50
  "style-resources-loader": "1.5.0",
54
51
  "swc-loader": "0.2.3",
55
- "tinycolor2": "1.6.0",
52
+ "swc-plugin-another-transform-imports": "0.2.1",
56
53
  "ts-import-plugin": "2.0.0",
57
54
  "ts-loader": "9.4.2",
58
55
  "typescript": "4.9.5",
59
- "webfontloader": "1.6.28",
60
- "webpack": "5.75.0",
61
- "webpack-bundle-analyzer": "4.7.0",
56
+ "webpack": "5.76.1",
57
+ "webpack-bundle-analyzer": "4.8.0",
62
58
  "webpack-cli": "5.0.1",
63
59
  "webpack-dev-server": "4.11.1",
64
60
  "webpack-merge": "5.8.0",
@@ -66,21 +62,19 @@
66
62
  "xml2js": "0.4.23"
67
63
  },
68
64
  "devDependencies": {
69
- "@swc/cli": "0.1.61",
65
+ "@swc/cli": "0.1.62",
70
66
  "@types/mini-css-extract-plugin": "^2.5.1",
71
- "@types/react": "^18.0.20",
72
- "@types/react-dom": "^18.0.6",
67
+ "@types/react": "^18.0.28",
68
+ "@types/react-dom": "^18.0.11",
73
69
  "@types/react-router-dom": "^5.3.3",
74
70
  "@types/shelljs": "^0.8.11",
75
- "@types/tinycolor2": "^1.4.3",
76
- "@types/webfontloader": "^1.6.34",
77
71
  "@types/webpack-bundle-analyzer": "^4.6.0",
78
72
  "@types/webpack-env": "^1.18.0",
79
- "antd": "4.20.2",
80
- "eslint-config-neko": "^1.0.15",
73
+ "antd": "5.3.1",
74
+ "eslint-config-neko": "^1.0.20",
81
75
  "react": "^18.2.0",
82
76
  "shelljs": "^0.8.5",
83
- "stylelint-config-moneko": "^1.0.4"
77
+ "stylelint-config-moneko": "^1.0.9"
84
78
  },
85
79
  "files": [
86
80
  "lib",