@weavix/cli 0.2.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.
@@ -367,14 +367,6 @@
367
367
  "$ref": "#/definitions/SlotConfig"
368
368
  }
369
369
  },
370
- "issue.floatingbottom.action": {
371
- "type": "array",
372
- "description": "Issue Floatingbottom Action slot configurations",
373
- "minItems": 1,
374
- "items": {
375
- "$ref": "#/definitions/SlotConfig"
376
- }
377
- },
378
370
  "attachment.viewer.action": {
379
371
  "type": "array",
380
372
  "description": "Attachment Viewer Action slot configurations",
@@ -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.2.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": {
@@ -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;