From 6bf177173d181524608fb9218836fbfa3af943ab Mon Sep 17 00:00:00 2001 From: rdmclin2 Date: Thu, 21 Mar 2024 15:24:04 +0800 Subject: [PATCH] :camera_flash: chore: update snapshot --- tests/__snapshots__/demo.test.tsx.snap | 3849 ++++-------------------- 1 file changed, 645 insertions(+), 3204 deletions(-) diff --git a/tests/__snapshots__/demo.test.tsx.snap b/tests/__snapshots__/demo.test.tsx.snap index 35a31495..76b80899 100644 --- a/tests/__snapshots__/demo.test.tsx.snap +++ b/tests/__snapshots__/demo.test.tsx.snap @@ -10428,69 +10428,12 @@ P .emotion-4:hover { background: rgba(0, 0, 0, 0.15); } -.emotion-5 { - display: block; - overflow-x: auto; - color: #333333; - background-color: #666666; -} - -.emotion-5 .hljs-comment, -.emotion-5 .hljs-quote { - color: #aaaaaa; -} - -.emotion-5 .hljs-variable, -.emotion-5 .hljs-attribute, -.emotion-5 .hljs-template-variable, -.emotion-5 .hljs-tag, -.emotion-5 .hljs-name, -.emotion-5 .hljs-selector-id, -.emotion-5 .hljs-selector-class, -.emotion-5 .hljs-regexp, -.emotion-5 .hljs-title, -.emotion-5 .hljs-deletion { - color: #ec5e41; -} - -.emotion-5 .hljs-builtin-name, -.emotion-5 .hljs-literal, -.emotion-5 .hljs-type, -.emotion-5 .hljs-params, -.emotion-5 .hljs-meta, -.emotion-5 .hljs-link { - color: #ff802b; -} - -.emotion-5 .hljs-string, -.emotion-5 .hljs-number, -.emotion-5 .hljs-symbol, -.emotion-5 .hljs-bullet, -.emotion-5 .hljs-addition { - color: #55b467; -} - -.emotion-5 .hljs-keyword, -.emotion-5 .hljs-doctag, -.emotion-5 .hljs-built_in, -.emotion-5 .hljs-selector-tag, -.emotion-5 .hljs-section { - color: #369eff; -} - -.emotion-5 .hljs-emphasis { - font-style: italic; -} - -.emotion-5 .hljs-strong { - font-weight: bold; +.emotion-5 .shiki { + overflow-x: scroll; + background: none!important; } .emotion-6 { - width: 100%; -} - -.emotion-11 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -10509,7 +10452,7 @@ P .emotion-4:hover { gap: 8px; } -.emotion-12 { +.emotion-7 { -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px); position: absolute; @@ -10534,7 +10477,7 @@ P .emotion-4:hover { border-radius: 6; } -.emotion-13 { +.emotion-8 { color: #aaaaaa; } @@ -10592,127 +10535,25 @@ P .emotion-4:hover { > java -
-      
-        
-          
-            
-          
-          
-            
-          
-          
-            
-          
-          
-            
-          
-          
-            
-          
-        
-      
- - public - - - - - class - - - - HelloWorld - - - - { -
- - - public - - - - static - - - - void - - - - - main - - ( - - - String - - [] args - - ) - - { -
- System.out.println( - - "Hello World!" - - ); -
- } -
- } -
-
+
+        
+          public class HelloWorld {
+    public static void main(String[] args) {
+      System.out.println("Hello World!");
+    }
+  }
+        
+      
+
java -
-      
-        
-          
-            
-          
-          
-            
-          
-          
-            
-          
-          
-            
-          
-          
-            
-          
-        
-      
- - public - - - - - class - - - - HelloWorld - - - - { -
- - - public - - - - static - - - - void - - - - - main - - ( - - - String - - [] args - - ) - - { -
- System.out.println( - - "Hello World!" - - ); -
- } -
- } -
-
+
+        
+          public class HelloWorld {
+    public static void main(String[] args) {
+      System.out.println("Hello World!");
+    }
+  }
+        
+      
+
java -
+      
+        
+          public class HelloWorld {
+    public static void main(String[] args) {
+      System.out.println("Hello World!");
+    }
+  }
+        
+      
+
+
- - - - - - - - - - - - - - - - - - - - - - - -
- 1 - - - public - - - - - class - - - - HelloWorld - - - - { -
- 2 - - - - public - - - - static - - - - void - - - - - main - - ( - - - String - - [] args - - ) - - { -
- 3 - - System.out.println( - - "Hello World!" - - ); -
- 4 - - } -
- 5 - - } -
- -
-
-
- - - java - -
-      
-        
-          
-            
-          
-          
-            
-          
-          
-            
-          
-          
-            
-          
-          
-            
-          
-        
-      
+ - - public - - - - - class - - - - HelloWorld - - - - { -
- System.out.println( - - "Hello World!" - - ); -
- } -
- } -
-
-
-
-`; - -exports[` > renders theme.tsx correctly 1`] = ` -.emotion-0 { - background-color: #fafafa; - position: relative; - margin: 0; - border-radius: 6px; - -webkit-transition: background-color 100ms cubic-bezier(0.215, 0.61, 0.355, 1); - transition: background-color 100ms cubic-bezier(0.215, 0.61, 0.355, 1); -} - -.emotion-0:not(:hover) .ant-editor-highlight-copy { - visibility: hidden; - opacity: 0; -} - -.emotion-0:not(:hover) .ant-editor-highlight-tag { - visibility: hidden; - opacity: 0; -} - -.emotion-0 pre { - margin: 0!important; - padding: 16px 24px!important; - background: none!important; -} - -.emotion-0 code { - background: transparent!important; -} - -.emotion-1 { - position: absolute; - top: 16px; - right: 16px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - width: 16px; - height: 16px; - padding: 0; - overflow: hidden; - border: 0; - outline: none; - cursor: pointer; - opacity: 0.6; - -webkit-transition: opacity 0.2s; - transition: opacity 0.2s; - background-color: #fafafa; -} - -.emotion-1:hover { - opacity: 0.8; -} - -.emotion-2 { - width: 16px; - color: #333333; - height: 16px; - font-size: 16px; -} - -.emotion-2.scoll { - -webkit-animation: copy-button-trans 2s; - animation: copy-button-trans 2s; - -webkit-animation-play-state: running; - animation-play-state: running; -} - -.emotion-4 { - color: #333333!important; - border-radius: 6px; - position: absolute; - z-index: 2; - right: 0; - bottom: 8px; - background-color: hsla(0, 0%, 95.1%, 0.9); - font-family: 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,Courier,monospace; - color: #666666; - -webkit-transition: opacity 0.1s; - transition: opacity 0.1s; -} - -P .emotion-4:hover { - color: #333333; - background: rgba(0, 0, 0, 0.15); -} - -.emotion-5 { - display: block; - overflow-x: auto; - color: #333333; - background-color: #666666; -} - -.emotion-5 .hljs-comment, -.emotion-5 .hljs-quote { - color: #aaaaaa; -} - -.emotion-5 .hljs-variable, -.emotion-5 .hljs-attribute, -.emotion-5 .hljs-template-variable, -.emotion-5 .hljs-tag, -.emotion-5 .hljs-name, -.emotion-5 .hljs-selector-id, -.emotion-5 .hljs-selector-class, -.emotion-5 .hljs-regexp, -.emotion-5 .hljs-title, -.emotion-5 .hljs-deletion { - color: #ec5e41; -} - -.emotion-5 .hljs-builtin-name, -.emotion-5 .hljs-literal, -.emotion-5 .hljs-type, -.emotion-5 .hljs-params, -.emotion-5 .hljs-meta, -.emotion-5 .hljs-link { - color: #ff802b; -} - -.emotion-5 .hljs-string, -.emotion-5 .hljs-number, -.emotion-5 .hljs-symbol, -.emotion-5 .hljs-bullet, -.emotion-5 .hljs-addition { - color: #55b467; -} - -.emotion-5 .hljs-keyword, -.emotion-5 .hljs-doctag, -.emotion-5 .hljs-built_in, -.emotion-5 .hljs-selector-tag, -.emotion-5 .hljs-section { - color: #369eff; -} - -.emotion-5 .hljs-emphasis { - font-style: italic; -} - -.emotion-5 .hljs-strong { - font-weight: bold; -} - -.emotion-6 { - width: 100%; -} - -.emotion-20 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - gap: 8px; -} - -.emotion-21 { - -webkit-backdrop-filter: saturate(180%) blur(10px); - backdrop-filter: saturate(180%) blur(10px); - position: absolute; - top: 0; - right: 0; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - height: 36px; - padding: 0 8px; - font-family: 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,Courier,monospace; - color: #aaaaaa; - border-radius: 6; -} - -.emotion-22 { - color: #aaaaaa; -} - -
-
-
-
- 语言选择: -
-
-
-
- - - - - Typescript - -
-
+
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - class - - - - MyClass - - - - { -
- - - public - - - - static - - myValue: - - string - - ; -
- - - - constructor - - ( - - init: - - string - - - ) - - { -
- - - this - - .myValue = init; -
- } -
- } -
- - import - - fs = - - require - - ( - - "fs" - - ); -
- - module - - MyModule { -
- - - export - - - - interface - - MyInterface - - extends - - Other { -
- - - myProperty - - : - - any - - ; -
- } -
- } -
- - declare - - magicNumber - - number - - ; -
- myArray.forEach( - - () => - - { }); - - // fat arrow syntax - -
- -
- > renders code.tsx correctly 1`] = ` flex: 1; } -.emotion-4 { - display: block; - overflow-x: auto; - color: #333333; - background-color: #666666; -} - -.emotion-4 .hljs-comment, -.emotion-4 .hljs-quote { - color: #aaaaaa; -} - -.emotion-4 .hljs-variable, -.emotion-4 .hljs-attribute, -.emotion-4 .hljs-template-variable, -.emotion-4 .hljs-tag, -.emotion-4 .hljs-name, -.emotion-4 .hljs-selector-id, -.emotion-4 .hljs-selector-class, -.emotion-4 .hljs-regexp, -.emotion-4 .hljs-title, -.emotion-4 .hljs-deletion { - color: #ec5e41; -} - -.emotion-4 .hljs-builtin-name, -.emotion-4 .hljs-literal, -.emotion-4 .hljs-type, -.emotion-4 .hljs-params, -.emotion-4 .hljs-meta, -.emotion-4 .hljs-link { - color: #ff802b; -} - -.emotion-4 .hljs-string, -.emotion-4 .hljs-number, -.emotion-4 .hljs-symbol, -.emotion-4 .hljs-bullet, -.emotion-4 .hljs-addition { - color: #55b467; -} - -.emotion-4 .hljs-keyword, -.emotion-4 .hljs-doctag, -.emotion-4 .hljs-built_in, -.emotion-4 .hljs-selector-tag, -.emotion-4 .hljs-section { - color: #369eff; -} - -.emotion-4 .hljs-emphasis { - font-style: italic; -} - -.emotion-4 .hljs-strong { - font-weight: bold; +.emotion-4 .shiki { + overflow-x: scroll; + background: none!important; } .emotion-5 { - width: 100%; -} - -.emotion-7 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -16573,7 +15413,7 @@ exports[` > renders code.tsx correctly 1`] = ` gap: 8px; } -.emotion-8 { +.emotion-6 { -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px); position: absolute; @@ -16598,11 +15438,11 @@ exports[` > renders code.tsx correctly 1`] = ` border-radius: 6; } -.emotion-9 { +.emotion-7 { color: #aaaaaa; } -.emotion-10 { +.emotion-8 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -16619,21 +15459,21 @@ exports[` > renders code.tsx correctly 1`] = ` transition: color 600ms cubic-bezier(0.215, 0.61, 0.355, 1),scale 400ms cubic-bezier(0.215, 0.61, 0.355, 1),background-color 100ms cubic-bezier(0.215, 0.61, 0.355, 1); } -.emotion-10:hover { +.emotion-8:hover { color: rgba(0, 0, 0, 0.88)!important; } -.emotion-10:active { +.emotion-8:active { scale: 0.8; color: rgba(0, 0, 0, 0.88); } -.emotion-11 { +.emotion-9 { background-color: rgba(0, 0, 0, 0.04); border-radius: 6px; } -.emotion-12:not(:last-child) { +.emotion-10:not(:last-child) { margin-block-start: 1em; margin-block-end: 1em; -webkit-margin-start: 0; @@ -16642,11 +15482,11 @@ exports[` > renders code.tsx correctly 1`] = ` margin-inline-end: 0; } -.emotion-12 pre { +.emotion-10 pre { padding: 12px!important; } -.emotion-13 { +.emotion-11 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -16664,16 +15504,16 @@ exports[` > renders code.tsx correctly 1`] = ` width: 100%; } -.emotion-14 { +.emotion-12 { padding: 4px 8px; width: auto!important; } -.emotion-14 .ant-editor-markdown-btn:hover { +.emotion-12 .ant-editor-markdown-btn:hover { color: rgba(0, 0, 0, 0.65)!important; } -.emotion-15 { +.emotion-13 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -16692,60 +15532,60 @@ exports[` > renders code.tsx correctly 1`] = ` height: 24px!important; } -.emotion-15:hover { +.emotion-13:hover { color: rgba(0, 0, 0, 0.88)!important; } -.emotion-15:active { +.emotion-13:active { scale: 0.8; color: rgba(0, 0, 0, 0.88); } -.emotion-16.ant-select-multiple:not(.emotion-16.ant-select-customize-input) .emotion-16.ant-select.ant-select-selector:hover { +.emotion-14.ant-select-multiple:not(.emotion-14.ant-select-customize-input) .emotion-14.ant-select.ant-select-selector:hover { color: rgba(0, 0, 0, 0.88); background-color: rgba(0, 0, 0, 0.04); border-color: transparent; } -.emotion-16.ant-select-multiple:not(.emotion-16.ant-select-customize-input) .emotion-16.ant-select.ant-select-selector:focus { +.emotion-14.ant-select-multiple:not(.emotion-14.ant-select-customize-input) .emotion-14.ant-select.ant-select-selector:focus { color: rgba(0, 0, 0, 0.88)!important; background-color: rgba(0, 0, 0, 0.02)!important; border-color: #1677ff!important; box-shadow: none; } -.emotion-16.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):hover .ant-select-selector { +.emotion-14.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):hover .ant-select-selector { border-color: transparent; } -.emotion-16.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):hover .ant-select-selector:hover { +.emotion-14.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):hover .ant-select-selector:hover { color: rgba(0, 0, 0, 0.88); background-color: rgba(0, 0, 0, 0.04); border-color: transparent; } -.emotion-16.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):hover .ant-select-selector:focus { +.emotion-14.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):hover .ant-select-selector:focus { color: rgba(0, 0, 0, 0.88)!important; background-color: rgba(0, 0, 0, 0.02)!important; border-color: #1677ff!important; box-shadow: none; } -.emotion-16.ant-select-focused:not(.ant-select-disabled):not(.ant-select-customize-input):hover .ant-select-selector { +.emotion-14.ant-select-focused:not(.ant-select-disabled):not(.ant-select-customize-input):hover .ant-select-selector { color: rgba(0, 0, 0, 0.88)!important; background-color: rgba(0, 0, 0, 0.02)!important; border-color: #1677ff!important; box-shadow: none; } -.emotion-16.ant-select-focused:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector { +.emotion-14.ant-select-focused:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector { color: rgba(0, 0, 0, 0.88)!important; background-color: rgba(0, 0, 0, 0.02)!important; border-color: #1677ff!important; box-shadow: none; } -.emotion-16 .ant-select-arrow { +.emotion-14 .ant-select-arrow { top: 13px; right: 8px; width: 10px; @@ -16753,20 +15593,20 @@ exports[` > renders code.tsx correctly 1`] = ` font-size: 10px; } -.emotion-17 { +.emotion-15 { min-width: 100px; } -.emotion-17 .ant-select-selector { +.emotion-15 .ant-select-selector { -webkit-padding-end: 4px!important; padding-inline-end: 4px!important; } -.emotion-17 .ant-select-selection-overflow-item-suffix .ant-select-selection-search { +.emotion-15 .ant-select-selection-overflow-item-suffix .ant-select-selection-search { display: none; } -.emotion-18 { +.emotion-16 { min-width: 100px; display: -webkit-box; display: -webkit-flex; @@ -16778,11 +15618,11 @@ exports[` > renders code.tsx correctly 1`] = ` justify-content: center; } -.emotion-18 span { +.emotion-16 span { font-family: 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,Courier,monospace!important; } -.emotion-19 { +.emotion-17 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -16803,21 +15643,21 @@ exports[` > renders code.tsx correctly 1`] = ` padding-left: 6px; } -.emotion-19:hover { +.emotion-17:hover { color: rgba(0, 0, 0, 0.88)!important; } -.emotion-19:active { +.emotion-17:active { scale: 0.8; color: rgba(0, 0, 0, 0.88); } -.emotion-20 { +.emotion-18 { max-height: 400px; overflow: auto; } -.emotion-21 { +.emotion-19 { background-color: #fafafa; position: relative; margin: 0; @@ -16826,23 +15666,23 @@ exports[` > renders code.tsx correctly 1`] = ` transition: background-color 100ms cubic-bezier(0.215, 0.61, 0.355, 1); } -.emotion-21:not(:hover) .ant-editor-highlight-copy { +.emotion-19:not(:hover) .ant-editor-highlight-copy { visibility: hidden; opacity: 0; } -.emotion-21:not(:hover) .ant-editor-highlight-tag { +.emotion-19:not(:hover) .ant-editor-highlight-tag { visibility: hidden; opacity: 0; } -.emotion-21 pre { +.emotion-19 pre { margin: 0!important; padding: 16px 24px!important; background: none!important; } -.emotion-21 code { +.emotion-19 code { background: transparent!important; } @@ -16861,36 +15701,22 @@ exports[` > renders code.tsx correctly 1`] = `
-
-            
-              
-                
-                  
-                
-                
-                  
-              
-            
- $ pnpm install -
-
-
+
+              
+                $ pnpm install
+
+              
+            
+
+
> renders code.tsx correctly 1`] = `
+ +
+
+
+
+
+                
+                  
+
+
+                  
+                  
+
+                  
+                  
+
+                  
+                    Custom Html Dom Render
+                  
+                  
+
+
+
+                  
+ Custom Html Dom Render +
+ + +
    + + +
  • + Ant Desgin +
  • + + +
  • + Ant Desgin Pro +
  • + + +
  • + Ant Desgin Pro Components +
  • + + +
+ + + + + +
+
+