@hero-design/snowflake-guard 1.2.2 → 1.2.4-alpha.0

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.
@@ -45,6 +45,7 @@ declare const RULESET_MAP: {
45
45
  Empty: string[];
46
46
  'File.DragAndDrop': string[];
47
47
  'File.UploadButton': string[];
48
+ 'File.UploadIconButton': string[];
48
49
  Filters: string[];
49
50
  'Filters.Label': string[];
50
51
  'Filters.Filter': string[];
@@ -153,6 +154,7 @@ declare const SX_RULESET_MAP: {
153
154
  Empty: string[];
154
155
  'File.DragAndDrop': string[];
155
156
  'File.UploadButton': string[];
157
+ 'File.UploadIconButton': string[];
156
158
  Filters: string[];
157
159
  'Filters.Label': string[];
158
160
  'Filters.Filter': string[];
@@ -297,6 +297,12 @@ const RULESET_MAP = {
297
297
  ...WIDTH_ATTRS,
298
298
  ...HEIGHT_ATTRS,
299
299
  ],
300
+ 'File.UploadIconButton': [
301
+ ...COMMON_PROHIBITED_ATTRS,
302
+ ...SHADOW_ATTRS,
303
+ ...WIDTH_ATTRS,
304
+ ...HEIGHT_ATTRS,
305
+ ],
300
306
  Filters: [
301
307
  ...COMMON_PROHIBITED_ATTRS,
302
308
  ...SHADOW_ATTRS,
@@ -675,6 +681,9 @@ const SX_RULESET_MAP = Object.assign(Object.assign({}, RULESET_MAP), { Alert: [.
675
681
  ], 'File.UploadButton': [
676
682
  ...RULESET_MAP['File.UploadButton'],
677
683
  ...COMMON_SX_PROHIBITED_ATTRS,
684
+ ], 'File.UploadIconButton': [
685
+ ...RULESET_MAP['File.UploadIconButton'],
686
+ ...COMMON_SX_PROHIBITED_ATTRS,
678
687
  ], Filters: [...RULESET_MAP.Filters, ...COMMON_SX_PROHIBITED_ATTRS], 'Filters.Label': [
679
688
  ...RULESET_MAP['Filters.Label'],
680
689
  ...COMMON_SX_PROHIBITED_ATTRS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/snowflake-guard",
3
- "version": "1.2.2",
3
+ "version": "1.2.4-alpha.0",
4
4
  "description": "A hero-design bot detecting snowflake usage",
5
5
  "author": "Hau Dao",
6
6
  "license": "ISC",
@@ -34,13 +34,13 @@
34
34
  "@eslint/compat": "^1.1.1",
35
35
  "@eslint/eslintrc": "^3.1.0",
36
36
  "@types/jest": "^29.0.0",
37
- "@types/node": "^18.0.0",
38
- "config-tsconfig": "8.42.4",
37
+ "@types/node": "^20.14.8",
38
+ "config-tsconfig": "8.42.5-alpha.0",
39
39
  "eslint": "^8.56.0",
40
- "eslint-config-hd": "8.42.4",
40
+ "eslint-config-hd": "8.42.5-alpha.0",
41
41
  "jest": "^29.0.0",
42
42
  "nock": "^13.0.5",
43
- "prettier-config-hd": "8.42.4",
43
+ "prettier-config-hd": "8.42.5-alpha.0",
44
44
  "smee-client": "^1.2.2",
45
45
  "ts-jest": "^29.0.0",
46
46
  "typescript": "^4.1.3"