@weavix/tracker-components 0.1.1 → 0.1.3

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 (131) hide show
  1. package/README.md +29 -1
  2. package/build/cjs/components/Icon/EntityIcon/EntityIcon.js +2 -3
  3. package/build/cjs/components/Icon/EntityIcon/EntityIcon.js.map +1 -1
  4. package/build/cjs/components/Icon/IconRefuge/IconRefuge.classname.js.map +1 -1
  5. package/build/cjs/components/Icon/IconRefuge/IconRefuge.css +0 -3
  6. package/build/cjs/components/Icon/IconRefuge/IconRefuge.css.map +1 -1
  7. package/build/cjs/components/Icon/IssueTypeIcon/IssueTypeIcon.js +30 -50
  8. package/build/cjs/components/Icon/IssueTypeIcon/IssueTypeIcon.js.map +1 -1
  9. package/build/cjs/components/Icon/IssueTypeIcon/README.md +42 -0
  10. package/build/cjs/components/Icon/MetaEntityIcon/README.md +10 -0
  11. package/build/cjs/components/Icon/PortfolioIcon/PortfolioIcon.d.ts +4 -1
  12. package/build/cjs/components/Icon/PortfolioIcon/PortfolioIcon.js +1 -0
  13. package/build/cjs/components/Icon/PortfolioIcon/PortfolioIcon.js.map +1 -1
  14. package/build/cjs/components/Icon/PortfolioIcon/README.md +7 -0
  15. package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.classname.d.ts +1 -0
  16. package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.classname.js +9 -0
  17. package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.classname.js.map +1 -0
  18. package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.css +45 -0
  19. package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.css.map +1 -0
  20. package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.d.ts +13 -0
  21. package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.js +80 -0
  22. package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.js.map +1 -0
  23. package/build/cjs/components/Icon/PriorityIcon/README.md +172 -0
  24. package/build/cjs/components/Icon/PriorityIcon/i18n.d.ts +6 -0
  25. package/build/cjs/components/Icon/PriorityIcon/i18n.js +13 -0
  26. package/build/cjs/components/Icon/PriorityIcon/i18n.js.map +1 -0
  27. package/build/cjs/components/Icon/PriorityIcon/index.d.ts +3 -0
  28. package/build/cjs/components/Icon/PriorityIcon/index.js +13 -0
  29. package/build/cjs/components/Icon/PriorityIcon/index.js.map +1 -0
  30. package/build/cjs/components/Icon/PriorityIcon/types.d.ts +1 -0
  31. package/build/cjs/components/Icon/PriorityIcon/types.js +6 -0
  32. package/build/cjs/components/Icon/PriorityIcon/types.js.map +1 -0
  33. package/build/cjs/components/Icon/StatusIcon/README.md +128 -0
  34. package/build/cjs/components/Icon/StatusIcon/StatusIcon.classname.d.ts +1 -0
  35. package/build/cjs/components/Icon/StatusIcon/StatusIcon.classname.js +9 -0
  36. package/build/cjs/components/Icon/StatusIcon/StatusIcon.classname.js.map +1 -0
  37. package/build/cjs/components/Icon/StatusIcon/StatusIcon.css +28 -0
  38. package/build/cjs/components/Icon/StatusIcon/StatusIcon.css.map +1 -0
  39. package/build/cjs/components/Icon/StatusIcon/StatusIcon.d.ts +10 -0
  40. package/build/cjs/components/Icon/StatusIcon/StatusIcon.js +43 -0
  41. package/build/cjs/components/Icon/StatusIcon/StatusIcon.js.map +1 -0
  42. package/build/cjs/components/Icon/StatusIcon/i18n.d.ts +6 -0
  43. package/build/cjs/components/Icon/StatusIcon/i18n.js +13 -0
  44. package/build/cjs/components/Icon/StatusIcon/i18n.js.map +1 -0
  45. package/build/cjs/components/Icon/StatusIcon/index.d.ts +3 -0
  46. package/build/cjs/components/Icon/StatusIcon/index.js +13 -0
  47. package/build/cjs/components/Icon/StatusIcon/index.js.map +1 -0
  48. package/build/cjs/components/Icon/StatusIcon/types.d.ts +3 -0
  49. package/build/cjs/components/Icon/StatusIcon/types.js +6 -0
  50. package/build/cjs/components/Icon/StatusIcon/types.js.map +1 -0
  51. package/build/cjs/components/Icon/StatusIcon/utils.d.ts +3 -0
  52. package/build/cjs/components/Icon/StatusIcon/utils.js +39 -0
  53. package/build/cjs/components/Icon/StatusIcon/utils.js.map +1 -0
  54. package/build/cjs/components/Icon/index.d.ts +2 -0
  55. package/build/cjs/components/Icon/index.js +22 -0
  56. package/build/cjs/components/Icon/index.js.map +1 -1
  57. package/build/cjs/components/MetaEntitiesSelect/README.md +10 -0
  58. package/build/cjs/components/PluginFieldsSelect/README.md +18 -0
  59. package/build/cjs/components/QueueSelect/README.md +10 -0
  60. package/build/esm/components/Icon/EntityIcon/EntityIcon.js +2 -3
  61. package/build/esm/components/Icon/EntityIcon/EntityIcon.js.map +1 -1
  62. package/build/esm/components/Icon/IconRefuge/IconRefuge.classname.js.map +1 -1
  63. package/build/esm/components/Icon/IconRefuge/IconRefuge.css +0 -3
  64. package/build/esm/components/Icon/IconRefuge/IconRefuge.css.map +1 -1
  65. package/build/esm/components/Icon/IconRefuge/IconRefuge.scss +0 -4
  66. package/build/esm/components/Icon/IssueTypeIcon/IssueTypeIcon.js +30 -50
  67. package/build/esm/components/Icon/IssueTypeIcon/IssueTypeIcon.js.map +1 -1
  68. package/build/esm/components/Icon/IssueTypeIcon/README.md +42 -0
  69. package/build/esm/components/Icon/MetaEntityIcon/README.md +10 -0
  70. package/build/esm/components/Icon/PortfolioIcon/PortfolioIcon.d.ts +4 -1
  71. package/build/esm/components/Icon/PortfolioIcon/PortfolioIcon.js +1 -0
  72. package/build/esm/components/Icon/PortfolioIcon/PortfolioIcon.js.map +1 -1
  73. package/build/esm/components/Icon/PortfolioIcon/README.md +7 -0
  74. package/build/esm/components/Icon/PriorityIcon/PriorityIcon.classname.d.ts +1 -0
  75. package/build/esm/components/Icon/PriorityIcon/PriorityIcon.classname.js +3 -0
  76. package/build/esm/components/Icon/PriorityIcon/PriorityIcon.classname.js.map +1 -0
  77. package/build/esm/components/Icon/PriorityIcon/PriorityIcon.css +45 -0
  78. package/build/esm/components/Icon/PriorityIcon/PriorityIcon.css.map +1 -0
  79. package/build/esm/components/Icon/PriorityIcon/PriorityIcon.d.ts +13 -0
  80. package/build/esm/components/Icon/PriorityIcon/PriorityIcon.js +73 -0
  81. package/build/esm/components/Icon/PriorityIcon/PriorityIcon.js.map +1 -0
  82. package/build/esm/components/Icon/{Icon.scss → PriorityIcon/PriorityIcon.scss} +26 -8
  83. package/build/esm/components/Icon/PriorityIcon/README.md +172 -0
  84. package/build/esm/components/Icon/PriorityIcon/i18n.d.ts +6 -0
  85. package/build/esm/components/Icon/PriorityIcon/i18n.js +7 -0
  86. package/build/esm/components/Icon/PriorityIcon/i18n.js.map +1 -0
  87. package/build/esm/components/Icon/PriorityIcon/index.d.ts +3 -0
  88. package/build/esm/components/Icon/PriorityIcon/index.js +2 -0
  89. package/build/esm/components/Icon/PriorityIcon/index.js.map +1 -0
  90. package/build/esm/components/Icon/PriorityIcon/types.d.ts +1 -0
  91. package/build/esm/components/Icon/PriorityIcon/types.js +2 -0
  92. package/build/esm/components/Icon/PriorityIcon/types.js.map +1 -0
  93. package/build/esm/components/Icon/StatusIcon/README.md +128 -0
  94. package/build/esm/components/Icon/StatusIcon/StatusIcon.classname.d.ts +1 -0
  95. package/build/esm/components/Icon/StatusIcon/StatusIcon.classname.js +3 -0
  96. package/build/esm/components/Icon/StatusIcon/StatusIcon.classname.js.map +1 -0
  97. package/build/esm/components/Icon/StatusIcon/StatusIcon.css +28 -0
  98. package/build/esm/components/Icon/StatusIcon/StatusIcon.css.map +1 -0
  99. package/build/esm/components/Icon/StatusIcon/StatusIcon.d.ts +10 -0
  100. package/build/esm/components/Icon/StatusIcon/StatusIcon.js +36 -0
  101. package/build/esm/components/Icon/StatusIcon/StatusIcon.js.map +1 -0
  102. package/build/esm/components/Icon/StatusIcon/StatusIcon.scss +46 -0
  103. package/build/esm/components/Icon/StatusIcon/i18n.d.ts +6 -0
  104. package/build/esm/components/Icon/StatusIcon/i18n.js +7 -0
  105. package/build/esm/components/Icon/StatusIcon/i18n.js.map +1 -0
  106. package/build/esm/components/Icon/StatusIcon/index.d.ts +3 -0
  107. package/build/esm/components/Icon/StatusIcon/index.js +2 -0
  108. package/build/esm/components/Icon/StatusIcon/index.js.map +1 -0
  109. package/build/esm/components/Icon/StatusIcon/types.d.ts +3 -0
  110. package/build/esm/components/Icon/StatusIcon/types.js +2 -0
  111. package/build/esm/components/Icon/StatusIcon/types.js.map +1 -0
  112. package/build/esm/components/Icon/StatusIcon/utils.d.ts +3 -0
  113. package/build/esm/components/Icon/StatusIcon/utils.js +33 -0
  114. package/build/esm/components/Icon/StatusIcon/utils.js.map +1 -0
  115. package/build/esm/components/Icon/index.d.ts +2 -0
  116. package/build/esm/components/Icon/index.js +2 -0
  117. package/build/esm/components/Icon/index.js.map +1 -1
  118. package/build/esm/components/MetaEntitiesSelect/README.md +10 -0
  119. package/build/esm/components/PluginFieldsSelect/README.md +18 -0
  120. package/build/esm/components/QueueSelect/README.md +10 -0
  121. package/package.json +1 -1
  122. package/build/cjs/components/Icon/Icon.classname.d.ts +0 -1
  123. package/build/cjs/components/Icon/Icon.classname.js +0 -9
  124. package/build/cjs/components/Icon/Icon.classname.js.map +0 -1
  125. package/build/cjs/components/Icon/Icon.css +0 -33
  126. package/build/cjs/components/Icon/Icon.css.map +0 -1
  127. package/build/esm/components/Icon/Icon.classname.d.ts +0 -1
  128. package/build/esm/components/Icon/Icon.classname.js +0 -3
  129. package/build/esm/components/Icon/Icon.classname.js.map +0 -1
  130. package/build/esm/components/Icon/Icon.css +0 -33
  131. package/build/esm/components/Icon/Icon.css.map +0 -1
@@ -5,4 +5,6 @@ export * from './IssueTypeIcon';
5
5
  export * from './KeyResultIcon';
6
6
  export * from './MetaEntityIcon';
7
7
  export * from './PortfolioIcon';
8
+ export * from './PriorityIcon';
8
9
  export * from './ProjectIcon';
10
+ export * from './StatusIcon';
@@ -5,5 +5,7 @@ export * from "./IssueTypeIcon";
5
5
  export * from "./KeyResultIcon";
6
6
  export * from "./MetaEntityIcon";
7
7
  export * from "./PortfolioIcon";
8
+ export * from "./PriorityIcon";
8
9
  export * from "./ProjectIcon";
10
+ export * from "./StatusIcon";
9
11
  // #sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from './EntityIcon';\nexport * from './GoalIcon';\nexport * from './IconRefuge';\nexport * from './IssueTypeIcon';\nexport * from './KeyResultIcon';\nexport * from './MetaEntityIcon';\nexport * from './PortfolioIcon';\nexport * from './ProjectIcon';\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from './EntityIcon';\nexport * from './GoalIcon';\nexport * from './IconRefuge';\nexport * from './IssueTypeIcon';\nexport * from './KeyResultIcon';\nexport * from './MetaEntityIcon';\nexport * from './PortfolioIcon';\nexport * from './PriorityIcon';\nexport * from './ProjectIcon';\nexport * from './StatusIcon';\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -100,6 +100,16 @@ type MetaEntityV2 = {
100
100
 
101
101
  `MetaEntitiesSelect` is data-agnostic — it accepts items via the `getItems` prop. You are responsible for fetching data from the Tracker API and passing it to the component.
102
102
 
103
+ Requires the `"tracker:entities:write"` permission in your plugin's `manifest.json`:
104
+
105
+ ```json
106
+ {
107
+ "permissions": {
108
+ "data": ["tracker:entities:write"]
109
+ }
110
+ }
111
+ ```
112
+
103
113
  ### Getting projects
104
114
 
105
115
  Use the entities search endpoint to fetch projects (or other entity types):
@@ -235,6 +235,24 @@ type TrackerSelectItem = {
235
235
 
236
236
  `PluginFieldsSelect` is data-agnostic — it accepts fields via the `fields` prop. You are responsible for fetching data from the Tracker API and passing it to the component.
237
237
 
238
+ Add the required permissions to your plugin's `manifest.json`:
239
+
240
+ ```json
241
+ {
242
+ "permissions": {
243
+ "data": [
244
+ "tracker:fields:read",
245
+ "tracker:fields:write",
246
+ "tracker:queues:read"
247
+ ]
248
+ }
249
+ }
250
+ ```
251
+
252
+ - `tracker:fields:read` — required for `GET /fields` and `POST /fields/_suggest`
253
+ - `tracker:fields:write` — required if your plugin writes field values back to Tracker
254
+ - `tracker:queues:read` — required when using `localFields: true` with queue keys (Flow 3)
255
+
238
256
  There are three fetch flows depending on whether the user has typed anything and whether local (queue-specific) fields are needed.
239
257
 
240
258
  ### Flow 1 — Initial load (no user input)
@@ -178,6 +178,16 @@ type QueueSuggestItem = {
178
178
 
179
179
  `QueueSelect` is data-agnostic — it accepts queues via the `queues` prop and search results via the `onSearch` callback. You are responsible for fetching data from the Tracker API and passing it to the component.
180
180
 
181
+ Requires the `"tracker:queues:read"` permission in your plugin's `manifest.json`:
182
+
183
+ ```json
184
+ {
185
+ "permissions": {
186
+ "data": ["tracker:queues:read"]
187
+ }
188
+ }
189
+ ```
190
+
181
191
  There are two fetch flows depending on whether the user has typed anything in the search filter.
182
192
 
183
193
  ### Flow 1 — Initial load (no user input)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weavix/tracker-components",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Shared UI components for Yandex Tracker plugins",
5
5
  "main": "build/cjs/index.js",
6
6
  "module": "build/esm/index.js",
@@ -1 +0,0 @@
1
- export declare const cnIcon: import("@bem-react/classname").ClassNameFormatter;
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.cnIcon = void 0;
7
- var _cn = require("./../cn");
8
- var cnIcon = exports.cnIcon = (0, _cn.block)('Icon');
9
- // #sourceMappingURL=Icon.classname.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_cn","require","cnIcon","exports","block"],"sources":["Icon.classname.ts"],"sourcesContent":["import {block} from '~/src/components/cn';\n\nexport const cnIcon = block('Icon');\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AAEO,IAAMC,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,IAAAE,SAAK,EAAC,MAAM,CAAC","ignoreList":[]}
@@ -1,33 +0,0 @@
1
- .tpc-Icon_priority_blocker {
2
- color: var(--g-color-text-danger);
3
- }
4
- .tpc-Icon_priority_critical {
5
- color: var(--g-color-text-warning-heavy);
6
- }
7
- .tpc-Icon_priority_trivial {
8
- color: var(--g-color-text-hint);
9
- }
10
- .tpc-Icon_priority_normal, .tpc-Icon_priority_minor {
11
- color: var(--g-color-text-secondary);
12
- }
13
- .tpc-Icon-background {
14
- display: flex;
15
- align-items: center;
16
- justify-content: center;
17
- width: 100%;
18
- height: 100%;
19
- border-radius: 50%;
20
- }
21
- .tpc-Icon-background_priority_blocker {
22
- background: var(--g-color-base-danger-light);
23
- }
24
- .tpc-Icon-background_priority_critical {
25
- background: var(--g-color-base-warning-light);
26
- }
27
- .tpc-Icon-background_priority_trivial {
28
- background: var(--g-color-base-neutral-light);
29
- }
30
- .tpc-Icon-background_priority_normal, .tpc-Icon-background_priority_minor {
31
- background: var(--g-color-base-neutral-light);
32
- }
33
- /*# sourceMappingURL=Icon.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sources":["Icon.scss"],"names":[],"mappings":"AACI;EACI,iCAAA;AAAR;AAGI;EACI,wCAAA;AADR;AAII;EACI,+BAAA;AAFR;AAKI;EAEI,oCAAA;AAJR;AAOI;EACI,aAAA;EACA,mBAAA;EACA,uBAAA;EAEA,WAAA;EACA,YAAA;EAEA,kBAAA;AAPR;AAUI;EACI,4CAAA;AARR;AAWI;EACI,6CAAA;AATR;AAYI;EACI,6CAAA;AAVR;AAaI;EAEI,6CAAA;AAZR","file":"Icon.css","sourcesContent":[".tpc-Icon {\n &_priority_blocker {\n color: var(--g-color-text-danger);\n }\n\n &_priority_critical {\n color: var(--g-color-text-warning-heavy);\n }\n\n &_priority_trivial {\n color: var(--g-color-text-hint);\n }\n\n &_priority_normal,\n &_priority_minor {\n color: var(--g-color-text-secondary);\n }\n\n &-background {\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: 100%;\n height: 100%;\n\n border-radius: 50%;\n }\n\n &-background_priority_blocker {\n background: var(--g-color-base-danger-light);\n }\n\n &-background_priority_critical {\n background: var(--g-color-base-warning-light);\n }\n\n &-background_priority_trivial {\n background: var(--g-color-base-neutral-light);\n }\n\n &-background_priority_normal,\n &-background_priority_minor {\n background: var(--g-color-base-neutral-light);\n }\n}\n"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- export declare const cnIcon: import("@bem-react/classname").ClassNameFormatter;
@@ -1,3 +0,0 @@
1
- import { block } from "./../cn";
2
- export var cnIcon = block('Icon');
3
- // #sourceMappingURL=Icon.classname.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["block","cnIcon"],"sources":["Icon.classname.ts"],"sourcesContent":["import {block} from '~/src/components/cn';\n\nexport const cnIcon = block('Icon');\n"],"mappings":"AAAA,SAAQA,KAAK;AAEb,OAAO,IAAMC,MAAM,GAAGD,KAAK,CAAC,MAAM,CAAC","ignoreList":[]}
@@ -1,33 +0,0 @@
1
- .tpc-Icon_priority_blocker {
2
- color: var(--g-color-text-danger);
3
- }
4
- .tpc-Icon_priority_critical {
5
- color: var(--g-color-text-warning-heavy);
6
- }
7
- .tpc-Icon_priority_trivial {
8
- color: var(--g-color-text-hint);
9
- }
10
- .tpc-Icon_priority_normal, .tpc-Icon_priority_minor {
11
- color: var(--g-color-text-secondary);
12
- }
13
- .tpc-Icon-background {
14
- display: flex;
15
- align-items: center;
16
- justify-content: center;
17
- width: 100%;
18
- height: 100%;
19
- border-radius: 50%;
20
- }
21
- .tpc-Icon-background_priority_blocker {
22
- background: var(--g-color-base-danger-light);
23
- }
24
- .tpc-Icon-background_priority_critical {
25
- background: var(--g-color-base-warning-light);
26
- }
27
- .tpc-Icon-background_priority_trivial {
28
- background: var(--g-color-base-neutral-light);
29
- }
30
- .tpc-Icon-background_priority_normal, .tpc-Icon-background_priority_minor {
31
- background: var(--g-color-base-neutral-light);
32
- }
33
- /*# sourceMappingURL=Icon.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sources":["Icon.scss"],"names":[],"mappings":"AACI;EACI,iCAAA;AAAR;AAGI;EACI,wCAAA;AADR;AAII;EACI,+BAAA;AAFR;AAKI;EAEI,oCAAA;AAJR;AAOI;EACI,aAAA;EACA,mBAAA;EACA,uBAAA;EAEA,WAAA;EACA,YAAA;EAEA,kBAAA;AAPR;AAUI;EACI,4CAAA;AARR;AAWI;EACI,6CAAA;AATR;AAYI;EACI,6CAAA;AAVR;AAaI;EAEI,6CAAA;AAZR","file":"Icon.css","sourcesContent":[".tpc-Icon {\n &_priority_blocker {\n color: var(--g-color-text-danger);\n }\n\n &_priority_critical {\n color: var(--g-color-text-warning-heavy);\n }\n\n &_priority_trivial {\n color: var(--g-color-text-hint);\n }\n\n &_priority_normal,\n &_priority_minor {\n color: var(--g-color-text-secondary);\n }\n\n &-background {\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: 100%;\n height: 100%;\n\n border-radius: 50%;\n }\n\n &-background_priority_blocker {\n background: var(--g-color-base-danger-light);\n }\n\n &-background_priority_critical {\n background: var(--g-color-base-warning-light);\n }\n\n &-background_priority_trivial {\n background: var(--g-color-base-neutral-light);\n }\n\n &-background_priority_normal,\n &-background_priority_minor {\n background: var(--g-color-base-neutral-light);\n }\n}\n"],"sourceRoot":""}