@douyinfe/semi-foundation 2.72.2-alpha.0 → 2.72.2-alpha.1

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.
@@ -82,7 +82,6 @@ $module: #{$prefix}-json-viewer;
82
82
  color: $color-json-viewer-line-number;
83
83
  text-align: center;
84
84
  width: 50px;
85
- user-select: none;
86
85
  }
87
86
 
88
87
  &-content-container {
@@ -197,9 +196,5 @@ $module: #{$prefix}-json-viewer;
197
196
  cursor: pointer;
198
197
  }
199
198
 
200
- &-error {
201
- text-decoration: underline wavy var(--semi-color-danger);
202
- text-decoration-thickness: 1px;
203
- text-underline-position: under;
204
- }
199
+
205
200
  }
@@ -69,7 +69,6 @@
69
69
  color: rgba(var(--semi-grey-5), 1);
70
70
  text-align: center;
71
71
  width: 50px;
72
- user-select: none;
73
72
  }
74
73
  .semi-json-viewer-content-container {
75
74
  scrollbar-width: none; /* 隐藏滚动条(Firefox) */
@@ -166,9 +165,4 @@
166
165
  padding: 8px 16px;
167
166
  color: var(--semi-color-text-0);
168
167
  cursor: pointer;
169
- }
170
- .semi-json-viewer-error {
171
- text-decoration: underline wavy var(--semi-color-danger);
172
- text-decoration-thickness: 1px;
173
- text-underline-position: under;
174
168
  }
@@ -82,7 +82,6 @@ $module: #{$prefix}-json-viewer;
82
82
  color: $color-json-viewer-line-number;
83
83
  text-align: center;
84
84
  width: 50px;
85
- user-select: none;
86
85
  }
87
86
 
88
87
  &-content-container {
@@ -197,9 +196,5 @@ $module: #{$prefix}-json-viewer;
197
196
  cursor: pointer;
198
197
  }
199
198
 
200
- &-error {
201
- text-decoration: underline wavy var(--semi-color-danger);
202
- text-decoration-thickness: 1px;
203
- text-underline-position: under;
204
- }
199
+
205
200
  }
@@ -2,7 +2,7 @@ declare const cssClasses: {
2
2
  PREFIX: string;
3
3
  };
4
4
  declare const strings: {
5
- BOUNDARY_SET: ("end" | "start")[];
5
+ BOUNDARY_SET: ("start" | "end")[];
6
6
  POSITION_SET: string[];
7
7
  MODE_SET: string[];
8
8
  MODE_MAP: {
@@ -83,6 +83,6 @@ export declare function getValueOrKey(data: any, keyMaps?: KeyMapProps): any;
83
83
  export declare function normalizeValue(value: any, withObject: boolean, keyMaps?: KeyMapProps): any;
84
84
  export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
85
85
  export declare function calcDisabledKeys(keyEntities: KeyEntities, keyMaps?: KeyMapProps): Set<string>;
86
- export declare function calcDropRelativePosition(event: any, treeNode: any): 1 | -1 | 0;
86
+ export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
87
87
  export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
88
88
  export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
@@ -18,7 +18,7 @@ declare const strings: {
18
18
  DRAG_AREA_ILLEGAL: string;
19
19
  TRIGGER_AUTO: "auto";
20
20
  TRIGGER_CUSTOM: "custom";
21
- UPLOAD_TRIGGER: ("auto" | "custom")[];
21
+ UPLOAD_TRIGGER: ("custom" | "auto")[];
22
22
  VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
23
23
  PROMPT_POSITION: readonly ["left", "right", "bottom"];
24
24
  };
@@ -69,7 +69,6 @@
69
69
  color: rgba(var(--semi-grey-5), 1);
70
70
  text-align: center;
71
71
  width: 50px;
72
- user-select: none;
73
72
  }
74
73
  .semi-json-viewer-content-container {
75
74
  scrollbar-width: none; /* 隐藏滚动条(Firefox) */
@@ -166,9 +165,4 @@
166
165
  padding: 8px 16px;
167
166
  color: var(--semi-color-text-0);
168
167
  cursor: pointer;
169
- }
170
- .semi-json-viewer-error {
171
- text-decoration: underline wavy var(--semi-color-danger);
172
- text-decoration-thickness: 1px;
173
- text-underline-position: under;
174
168
  }
@@ -82,7 +82,6 @@ $module: #{$prefix}-json-viewer;
82
82
  color: $color-json-viewer-line-number;
83
83
  text-align: center;
84
84
  width: 50px;
85
- user-select: none;
86
85
  }
87
86
 
88
87
  &-content-container {
@@ -197,9 +196,5 @@ $module: #{$prefix}-json-viewer;
197
196
  cursor: pointer;
198
197
  }
199
198
 
200
- &-error {
201
- text-decoration: underline wavy var(--semi-color-danger);
202
- text-decoration-thickness: 1px;
203
- text-underline-position: under;
204
- }
199
+
205
200
  }
@@ -2,7 +2,7 @@ declare const cssClasses: {
2
2
  PREFIX: string;
3
3
  };
4
4
  declare const strings: {
5
- BOUNDARY_SET: ("end" | "start")[];
5
+ BOUNDARY_SET: ("start" | "end")[];
6
6
  POSITION_SET: string[];
7
7
  MODE_SET: string[];
8
8
  MODE_MAP: {
@@ -83,6 +83,6 @@ export declare function getValueOrKey(data: any, keyMaps?: KeyMapProps): any;
83
83
  export declare function normalizeValue(value: any, withObject: boolean, keyMaps?: KeyMapProps): any;
84
84
  export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
85
85
  export declare function calcDisabledKeys(keyEntities: KeyEntities, keyMaps?: KeyMapProps): Set<string>;
86
- export declare function calcDropRelativePosition(event: any, treeNode: any): 1 | -1 | 0;
86
+ export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
87
87
  export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
88
88
  export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
@@ -18,7 +18,7 @@ declare const strings: {
18
18
  DRAG_AREA_ILLEGAL: string;
19
19
  TRIGGER_AUTO: "auto";
20
20
  TRIGGER_CUSTOM: "custom";
21
- UPLOAD_TRIGGER: ("auto" | "custom")[];
21
+ UPLOAD_TRIGGER: ("custom" | "auto")[];
22
22
  VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
23
23
  PROMPT_POSITION: readonly ["left", "right", "bottom"];
24
24
  };
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-foundation",
3
- "version": "2.72.2-alpha.0",
3
+ "version": "2.72.2-alpha.1",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build:lib": "node ./scripts/compileLib.js",
7
7
  "prepublishOnly": "npm run build:lib"
8
8
  },
9
9
  "dependencies": {
10
- "@douyinfe/semi-animation": "2.72.0",
11
- "@douyinfe/semi-json-viewer-core": "2.72.2-alpha.0",
10
+ "@douyinfe/semi-animation": "2.72.2-alpha.1",
11
+ "@douyinfe/semi-json-viewer-core": "2.72.2-alpha.1",
12
12
  "@mdx-js/mdx": "^3.0.1",
13
13
  "async-validator": "^3.5.0",
14
14
  "classnames": "^2.2.6",
@@ -29,7 +29,7 @@
29
29
  "*.scss",
30
30
  "*.css"
31
31
  ],
32
- "gitHead": "99c0a782670dd4decf43c29308a8f7ace14125ea",
32
+ "gitHead": "74f992b03ca54956bbb2c82a73a7c8cffef67edf",
33
33
  "devDependencies": {
34
34
  "@babel/plugin-transform-runtime": "^7.15.8",
35
35
  "@babel/preset-env": "^7.15.8",