@weavix/cli 0.1.0-dev → 0.3.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.
@@ -17,4 +17,5 @@ pnpm-debug.log*
17
17
  .env
18
18
  .env.local
19
19
 
20
- config.json
20
+ config.json
21
+ .tracker-plugin
@@ -6,7 +6,10 @@
6
6
  "required": [
7
7
  "slug",
8
8
  "version",
9
- "permissions"
9
+ "permissions",
10
+ "name",
11
+ "description",
12
+ "support"
10
13
  ],
11
14
  "properties": {
12
15
  "$schema": {
@@ -19,6 +22,23 @@
19
22
  "maxLength": 63,
20
23
  "pattern": "^[a-z0-9-]+$"
21
24
  },
25
+ "manifest_version": {
26
+ "type": "number",
27
+ "description": "Manifest format version",
28
+ "minimum": 1
29
+ },
30
+ "supported_services": {
31
+ "type": "array",
32
+ "description": "Supported services for this plugin",
33
+ "items": {
34
+ "type": "string",
35
+ "enum": [
36
+ "tracker"
37
+ ]
38
+ },
39
+ "minItems": 1,
40
+ "uniqueItems": true
41
+ },
22
42
  "slug": {
23
43
  "type": "string",
24
44
  "description": "Unique identifier for the plugin (lowercase letters, numbers, hyphen)",
@@ -67,13 +87,13 @@
67
87
  "type": "string",
68
88
  "description": "Russian description",
69
89
  "minLength": 1,
70
- "maxLength": 300
90
+ "maxLength": 255
71
91
  },
72
92
  "en": {
73
93
  "type": "string",
74
94
  "description": "English description",
75
95
  "minLength": 1,
76
- "maxLength": 300
96
+ "maxLength": 255
77
97
  }
78
98
  },
79
99
  "additionalProperties": false
@@ -347,14 +367,6 @@
347
367
  "$ref": "#/definitions/SlotConfig"
348
368
  }
349
369
  },
350
- "issue.floatingbottom.action": {
351
- "type": "array",
352
- "description": "Issue Floatingbottom Action slot configurations",
353
- "minItems": 1,
354
- "items": {
355
- "$ref": "#/definitions/SlotConfig"
356
- }
357
- },
358
370
  "attachment.viewer.action": {
359
371
  "type": "array",
360
372
  "description": "Attachment Viewer Action slot configurations",
@@ -24,10 +24,10 @@
24
24
  "lint": "npm run lint:js && npm run lint:styles && npm run typecheck"
25
25
  },
26
26
  "dependencies": {
27
- "@gravity-ui/icons": "2.13.0",
28
- "@gravity-ui/uikit": "7.21.0",
29
- "@yandex-data-ui/gravity-themes": "1.7.0",
30
- "@yandex-data-ui/tracker-plugin-sdk-react": "0.0.25",
27
+ "@gravity-ui/icons": "2.18.0",
28
+ "@gravity-ui/uikit": "7.37.0",
29
+ "@yandex-data-ui/gravity-themes": "2.1.0",
30
+ "@yandex-data-ui/tracker-plugin-sdk-react": "0.0.30",
31
31
  "@yandex-data-ui/tracker-pub-api-types": "0.0.6",
32
32
  "bem-cn-lite": "4.1.0",
33
33
  "react": "18.3.1",
@@ -42,14 +42,14 @@
42
42
  "@types/node": "^25.0.10",
43
43
  "@types/react": "18.2.37",
44
44
  "@types/react-dom": "18.2.15",
45
- "@vitejs/plugin-react": "5.1.2",
46
- "axios": "1.12.2",
45
+ "@vitejs/plugin-react": "6.0.1",
46
+ "axios": "1.15.0",
47
47
  "eslint": "9.24.0",
48
- "husky": "8.0.3",
49
- "sass": "1.97.3",
48
+ "husky": "9.1.7",
49
+ "sass": "1.99.0",
50
50
  "typescript": "5.8.3",
51
- "vite": "7.3.1",
52
- "vite-plugin-svgr": "4.5.0"
51
+ "vite": "8.0.7",
52
+ "vite-plugin-svgr": "5.2.0"
53
53
  },
54
54
  "browserslist": [
55
55
  "extends @gravity-ui/browserslist-config"
@@ -19,6 +19,8 @@ export default defineConfig(() => {
19
19
  'Access-Control-Allow-Origin': '*',
20
20
  'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
21
21
  'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization',
22
+ 'Content-Security-Policy':
23
+ "default-src 'self'; script-src 'self' 'unsafe-inline'; connect-src 'self';style-src 'self' 'unsafe-inline';",
22
24
  },
23
25
  },
24
26
  plugins: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weavix/cli",
3
- "version": "0.1.0-dev",
3
+ "version": "0.3.0",
4
4
  "description": "CLI to work with plugins of Yandex Tracker",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {
@@ -32,4 +32,4 @@
32
32
  "registry": "https://registry.npmjs.org",
33
33
  "access": "public"
34
34
  }
35
- }
35
+ }
@@ -1,14 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <meta name="description" content="Web site created using vite" />
7
- <title>Issue FloatingBottom Actions Plugin</title>
8
- </head>
9
- <body class="g-root g-root_theme_dark">
10
- <noscript>You need to enable JavaScript to run this app.</noscript>
11
- <div id="root"></div>
12
- <script type="module" src="/src/main.tsx"></script>
13
- </body>
14
- </html>
@@ -1,28 +0,0 @@
1
- import { Card, DefinitionList, ThemeProvider, Text as Typography } from '@gravity-ui/uikit';
2
- import { useTrackerPluginContext } from '@yandex-data-ui/tracker-plugin-sdk-react';
3
-
4
- const App = () => {
5
- const { theme, slotContext, isYateam, userId } = useTrackerPluginContext<'issue.floatingbottom.action'>();
6
-
7
- if (!slotContext) {
8
- return null;
9
- }
10
-
11
- return (
12
- <ThemeProvider theme={theme}>
13
- <div style={{ width: '800px', padding: '50px' }}>
14
- <Card style={{ padding: '20px' }}>
15
- <Typography variant="header-1" as="div" style={{ marginBottom: '16px' }}>
16
- Текущий контекст в проде
17
- </Typography>
18
- <DefinitionList>
19
- <DefinitionList.Item name="Id пользователя">{userId}</DefinitionList.Item>
20
- <DefinitionList.Item name="Is yataem">{isYateam ? 'Да' : 'Нет'}</DefinitionList.Item>
21
- </DefinitionList>
22
- </Card>
23
- </div>
24
- </ThemeProvider>
25
- );
26
- };
27
-
28
- export default App;