@zohodesk/dot 1.2.0 → 1.2.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 (176) hide show
  1. package/.cli/MissedPropType_Keys.html +101 -0
  2. package/.cli/PropLessFiles.html +101 -0
  3. package/.cli/PropValidationExcludeFilesArray.js +1 -0
  4. package/.cli/propValidation_report.html +160 -0
  5. package/README.md +38 -21
  6. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  7. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  8. package/coverage/ExternalLink/index.html +1 -1
  9. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  10. package/coverage/ExternalLink/props/index.html +1 -1
  11. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  12. package/coverage/Image/Image.js.html +1 -1
  13. package/coverage/Image/Image.module.css.html +1 -1
  14. package/coverage/Image/index.html +1 -1
  15. package/coverage/Image/props/defaultProps.js.html +1 -1
  16. package/coverage/Image/props/index.html +1 -1
  17. package/coverage/Image/props/propTypes.js.html +1 -1
  18. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  19. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  20. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  21. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  22. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  23. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  24. package/coverage/coverage-final.json +12 -12
  25. package/coverage/coverage-summary.json +12 -12
  26. package/coverage/index.html +1 -1
  27. package/es/ActionButton/ActionButton.js +5 -2
  28. package/es/ActionButton/props/propTypes.js +3 -2
  29. package/es/AlphabeticList/props/propTypes.js +1 -1
  30. package/es/Attachment/Attachment.js +2 -1
  31. package/es/Attachment/Attachment.module.css +10 -6
  32. package/es/Attachment/props/propTypes.js +2 -1
  33. package/es/Drawer/props/propTypes.js +2 -1
  34. package/es/Link/Link.js +2 -1
  35. package/es/Link/props/propTypes.js +5 -1
  36. package/es/Message/Message.js +4 -2
  37. package/es/Message/props/propTypes.js +11 -4
  38. package/es/Separator/props/propTypes.js +1 -1
  39. package/es/TagWithIcon/props/propTypes.js +2 -1
  40. package/es/ToastMessage/props/propTypes.js +4 -3
  41. package/es/actions/props/propTypes.js +2 -1
  42. package/es/alert/AlertLookup/props/propTypes.js +0 -1
  43. package/es/avatar/AvatarThread/props/propTypes.js +1 -1
  44. package/es/deprecated/SelectDropdown/SelectDropdown.js +3 -8
  45. package/es/dropdown/ToggleDropDown/props/propTypes.js +4 -1
  46. package/es/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
  47. package/es/emptystate/EditionPage/props/propTypes.js +6 -2
  48. package/es/form/fields/CheckBoxField/props/propTypes.js +1 -1
  49. package/es/form/fields/CurrencyField/props/propTypes.js +4 -1
  50. package/es/form/fields/DateField/props/propTypes.js +1 -1
  51. package/es/form/fields/FieldContainer/props/propTypes.js +17 -3
  52. package/es/form/fields/MultiSelectField/props/propTypes.js +2 -2
  53. package/es/form/fields/PhoneField/props/propTypes.js +8 -1
  54. package/es/form/fields/RadioField/props/propTypes.js +2 -2
  55. package/es/form/fields/SelectField/SelectField.js +1 -2
  56. package/es/form/fields/SelectField/props/propTypes.js +2 -2
  57. package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
  58. package/es/form/fields/TagsMultiSelectField/props/propTypes.js +13 -2
  59. package/es/form/fields/TextBoxField/props/propTypes.js +8 -1
  60. package/es/form/fields/TextEditor/props/propTypes.js +7 -1
  61. package/es/form/fields/TextEditorField/props/propTypes.js +13 -1
  62. package/es/form/fields/TextEditorWrapper/props/propTypes.js +2 -1
  63. package/es/form/fields/TextareaField/props/propTypes.js +2 -2
  64. package/es/form/fields/ValidationMessage/props/propTypes.js +4 -2
  65. package/es/form/fields/props/FieldCommonPropTypes.js +16 -22
  66. package/es/form/layout/Section/props/propTypes.js +3 -1
  67. package/es/list/Comment/props/propTypes.js +0 -3
  68. package/es/list/GridStencils/props/propTypes.js +2 -1
  69. package/es/list/Icons/AddNewIcon.js +3 -2
  70. package/es/list/Icons/CompleteIcon.js +3 -2
  71. package/es/list/Icons/DeleteIcon.js +4 -3
  72. package/es/list/Icons/EditIcon.js +5 -3
  73. package/es/list/Icons/ReadUnreadIcon.js +5 -3
  74. package/es/list/Icons/SmartIcon.js +5 -3
  75. package/es/list/Icons/props/propTypes.js +0 -2
  76. package/es/list/ListLayout/ListLayout.module.css +24 -8
  77. package/es/list/SecondaryText/props/propTypes.js +0 -1
  78. package/es/list/UserTime/props/propTypes.js +5 -1
  79. package/es/list/listCommon.module.css +23 -5
  80. package/es/list/status/StatusDropdown/StatusDropdown.js +12 -2
  81. package/es/list/status/StatusDropdown/props/propTypes.js +3 -1
  82. package/es/lookup/Lookup/Lookup.js +2 -0
  83. package/es/lookup/Lookup/props/propTypes.js +4 -1
  84. package/es/lookup/header/ViewDropDown/props/propTypes.js +6 -11
  85. package/es/setup/table/TableHead/props/propTypes.js +2 -1
  86. package/es/v1/ChannelIcon/ChannelIcon.js +92 -0
  87. package/es/v1/ExternalLink/ExternalLink.js +49 -0
  88. package/es/v1/NewStar/NewStar.js +61 -0
  89. package/es/v1/lookup/header/Close/Close.js +30 -0
  90. package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +75 -0
  91. package/es/v1/lookup/header/Search/Search.js +177 -0
  92. package/es/v1/lookup/header/TicketHeader/TicketHeader.js +90 -0
  93. package/es/v1/lookup/header/Title/Title.js +27 -0
  94. package/es/v1/version2/GlobalNotification/GlobalNotification.js +4 -2
  95. package/es/version2/GlobalNotification/GlobalNotification.js +4 -2
  96. package/es/version2/GlobalNotification/props/propTypes.js +19 -1
  97. package/es/version2/lookup/AlertLookup/AlertLookup.js +14 -2
  98. package/es/version2/lookup/AlertLookup/props/propTypes.js +0 -1
  99. package/es/version2/notification/DesktopNotification/DesktopNotification.js +2 -1
  100. package/es/version2/notification/DesktopNotification/props/propTypes.js +13 -9
  101. package/lib/ActionButton/ActionButton.js +5 -3
  102. package/lib/ActionButton/props/propTypes.js +3 -2
  103. package/lib/AlphabeticList/props/propTypes.js +1 -1
  104. package/lib/Attachment/Attachment.js +2 -1
  105. package/lib/Attachment/Attachment.module.css +10 -6
  106. package/lib/Attachment/props/propTypes.js +2 -1
  107. package/lib/Drawer/props/propTypes.js +2 -1
  108. package/lib/Link/Link.js +2 -1
  109. package/lib/Link/props/propTypes.js +5 -1
  110. package/lib/Message/Message.js +5 -1
  111. package/lib/Message/props/propTypes.js +23 -6
  112. package/lib/Separator/props/propTypes.js +1 -1
  113. package/lib/TagWithIcon/props/propTypes.js +2 -1
  114. package/lib/ToastMessage/props/propTypes.js +4 -3
  115. package/lib/actions/props/propTypes.js +2 -1
  116. package/lib/alert/AlertLookup/props/propTypes.js +0 -1
  117. package/lib/avatar/AvatarThread/props/propTypes.js +1 -1
  118. package/lib/deprecated/SelectDropdown/SelectDropdown.js +3 -7
  119. package/lib/dropdown/ToggleDropDown/props/propTypes.js +4 -1
  120. package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
  121. package/lib/emptystate/EditionPage/props/propTypes.js +6 -2
  122. package/lib/form/fields/CheckBoxField/props/propTypes.js +1 -1
  123. package/lib/form/fields/CurrencyField/props/propTypes.js +5 -2
  124. package/lib/form/fields/DateField/props/propTypes.js +1 -1
  125. package/lib/form/fields/FieldContainer/props/propTypes.js +21 -16
  126. package/lib/form/fields/MultiSelectField/props/propTypes.js +3 -3
  127. package/lib/form/fields/PhoneField/props/propTypes.js +8 -1
  128. package/lib/form/fields/RadioField/props/propTypes.js +2 -2
  129. package/lib/form/fields/SelectField/SelectField.js +1 -2
  130. package/lib/form/fields/SelectField/props/propTypes.js +3 -3
  131. package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
  132. package/lib/form/fields/TagsMultiSelectField/props/propTypes.js +16 -11
  133. package/lib/form/fields/TextBoxField/props/propTypes.js +8 -1
  134. package/lib/form/fields/TextEditor/props/propTypes.js +7 -1
  135. package/lib/form/fields/TextEditorField/props/propTypes.js +51 -49
  136. package/lib/form/fields/TextEditorWrapper/props/propTypes.js +2 -1
  137. package/lib/form/fields/TextareaField/props/propTypes.js +3 -3
  138. package/lib/form/fields/ValidationMessage/props/propTypes.js +4 -2
  139. package/lib/form/fields/props/FieldCommonPropTypes.js +16 -23
  140. package/lib/form/layout/Section/props/propTypes.js +3 -1
  141. package/lib/list/Comment/props/propTypes.js +0 -3
  142. package/lib/list/GridStencils/props/propTypes.js +2 -1
  143. package/lib/list/Icons/AddNewIcon.js +4 -2
  144. package/lib/list/Icons/CompleteIcon.js +4 -2
  145. package/lib/list/Icons/DeleteIcon.js +5 -3
  146. package/lib/list/Icons/EditIcon.js +6 -3
  147. package/lib/list/Icons/ReadUnreadIcon.js +6 -3
  148. package/lib/list/Icons/SmartIcon.js +6 -3
  149. package/lib/list/Icons/props/propTypes.js +0 -2
  150. package/lib/list/ListLayout/ListLayout.module.css +24 -8
  151. package/lib/list/SecondaryText/props/propTypes.js +0 -1
  152. package/lib/list/UserTime/props/propTypes.js +5 -1
  153. package/lib/list/listCommon.module.css +23 -5
  154. package/lib/list/status/StatusDropdown/StatusDropdown.js +12 -2
  155. package/lib/list/status/StatusDropdown/props/propTypes.js +1 -1
  156. package/lib/lookup/Lookup/Lookup.js +2 -0
  157. package/lib/lookup/Lookup/props/propTypes.js +4 -1
  158. package/lib/lookup/header/ViewDropDown/props/propTypes.js +6 -11
  159. package/lib/setup/table/TableHead/props/propTypes.js +2 -1
  160. package/lib/v1/ChannelIcon/ChannelIcon.js +113 -0
  161. package/lib/v1/ExternalLink/ExternalLink.js +57 -0
  162. package/lib/v1/NewStar/NewStar.js +74 -0
  163. package/lib/v1/lookup/header/Close/Close.js +47 -0
  164. package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +101 -0
  165. package/lib/v1/lookup/header/Search/Search.js +208 -0
  166. package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +108 -0
  167. package/lib/v1/lookup/header/Title/Title.js +44 -0
  168. package/lib/v1/version2/GlobalNotification/GlobalNotification.js +5 -1
  169. package/lib/version2/GlobalNotification/GlobalNotification.js +5 -1
  170. package/lib/version2/GlobalNotification/props/propTypes.js +23 -3
  171. package/lib/version2/lookup/AlertLookup/AlertLookup.js +14 -2
  172. package/lib/version2/lookup/AlertLookup/props/propTypes.js +0 -1
  173. package/lib/version2/notification/DesktopNotification/DesktopNotification.js +2 -0
  174. package/lib/version2/notification/DesktopNotification/props/propTypes.js +16 -11
  175. package/package.json +12 -10
  176. package/result.json +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -35,24 +35,26 @@
35
35
  "test": "react-cli test",
36
36
  "sstest": "react-cli sstest",
37
37
  "common_package_build": "cd ../common && npm run build && cd ../dot",
38
- "docs": "npm run dubCheck && react-cli docs",
39
- "prepublishOnly": "node prePublish.js && npm run test",
38
+ "docs": "npm run dubCheck && review:props && react-cli docs",
39
+ "prepublishOnly": "node prePublish.js && npm run review:props && npm run test",
40
40
  "postpublish": "node postPublish.js",
41
41
  "download": "react-cli clean ./node_modules ./package-lock.json && npm install",
42
42
  "expublish": "npm publish --tag experimental-version",
43
43
  "cssVariableConvert": "react-cli variableConverter ./lib ./lib && react-cli variableConverter ./es ./es",
44
44
  "variable:addignore": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableIgnore.js ./src",
45
45
  "variable:convert": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/pxParserPostcss.js ./src",
46
- "variable:check": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableErrorCheck.js ./src ./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json"
46
+ "variable:check": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableErrorCheck.js ./src ./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json",
47
+ "review:props": "node ./node_modules/@zohodesk-private/react-prop-validator/es/propValidation.js ./src/ ./.cli ./.cli devMode "
47
48
  },
48
49
  "devDependencies": {
49
- "@zohodesk-private/css-variable-migrator": "^1.0.5",
50
+ "@zohodesk-private/css-variable-migrator": "^1.0.7",
50
51
  "@zohodesk-private/node-plugins": "^1.0.0",
51
52
  "@zohodesk-private/color-variable-preprocessor": "1.0.6",
52
- "@zohodesk/components": "1.2.0",
53
+ "@zohodesk-private/react-prop-validator": "0.0.7",
54
+ "@zohodesk/components": "1.2.2",
53
55
  "@zohodesk/a11y": "2.0.0",
54
56
  "@zohodesk/i18n": "1.0.0-beta.23",
55
- "@zohodesk/icons": "1.0.0",
57
+ "@zohodesk/icons": "1.0.1",
56
58
  "@zohodesk/svg": "1.1.1",
57
59
  "@zohodesk/variables": "1.0.0",
58
60
  "@zohodesk/virtualizer": "1.0.3",
@@ -69,8 +71,8 @@
69
71
  "velocity-react": "1.4.3",
70
72
  "@zohodesk/variables": "1.0.0",
71
73
  "@zohodesk/i18n": "1.0.0-beta.23",
72
- "@zohodesk/components": "1.2.0",
73
- "@zohodesk/icons": "1.0.0",
74
+ "@zohodesk/components": "1.2.2",
75
+ "@zohodesk/icons": "1.0.1",
74
76
  "@zohodesk/svg": "1.1.1",
75
77
  "@zohodesk/virtualizer": "1.0.3",
76
78
  "react-sortable-hoc": "^0.8.3",
@@ -78,4 +80,4 @@
78
80
  "@zohodesk/utils": "1.3.13",
79
81
  "@zohodesk/a11y": "1.3.7"
80
82
  }
81
- }
83
+ }
package/result.json CHANGED
@@ -1 +1 @@
1
- {"jobDetails":{"isRunByLocal":true,"hostName":"bharathi-zt93","platForm":"Darwin","branchName":"testcase_gowtham"},"tests":{"unitCase":{"isExecuted":"Yes","numberOfSuccess":14,"numberOfFails":0,"numberOfCases":14,"numberOfSuites":3,"endTime":1691427919935,"startTime":1691427915472,"coverageDetail":{"codeCoveragePercentage":98.03,"fileCoveragePercentage":0},"fileDetails":[{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":[],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}}]}}}
1
+ {"jobDetails":{"isRunByLocal":true,"hostName":"lakshmi-zt257","platForm":"Darwin","branchName":"Selva_Accessibility_Desk_Library"},"tests":{"unitCase":{"isExecuted":"Yes","numberOfSuccess":14,"numberOfFails":0,"numberOfCases":14,"numberOfSuites":3,"endTime":1692206993509,"startTime":1692206989635,"coverageDetail":{"codeCoveragePercentage":98.03,"fileCoveragePercentage":0},"fileDetails":[{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}}]}}}