@gravity-ui/aikit 0.1.0 → 0.1.1
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.
- package/dist/package.json +15 -3
- package/dist/src/components/atoms/ActionButton/ActionButton.js +1 -11
- package/dist/src/components/organisms/ThinkingMessage/index.js +1 -11
- package/dist/src/components/templates/History/__stories__/History.stories.js +1 -11
- package/dist/src/demo/ContentWrapper/ContentWrapper.js +1 -11
- package/package.json +15 -3
package/dist/package.json
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/aikit",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Gravity UI base kit for building ai assistant chats",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
7
8
|
"files": [
|
|
8
9
|
"dist"
|
|
9
10
|
],
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">= 20",
|
|
13
|
+
"npm": ">= 9",
|
|
14
|
+
"yarn": "Please use npm instead of yarn to install dependencies",
|
|
15
|
+
"pnpm": "Please use npm instead of pnpm to install dependencies"
|
|
16
|
+
},
|
|
17
|
+
"sideEffects": [
|
|
18
|
+
"*.css",
|
|
19
|
+
"*.scss"
|
|
20
|
+
],
|
|
10
21
|
"repository": {
|
|
11
22
|
"type": "git",
|
|
12
23
|
"url": "git+https://github.com/gravity-ui/aikit.git"
|
|
@@ -26,10 +37,11 @@
|
|
|
26
37
|
"lint:styles:fix": "stylelint **/*.scss --fix",
|
|
27
38
|
"lint:prettier": "prettier --check '**/*.{js,jsx,ts,tsx,css,scss,json,yaml,yml,md,mdx}'",
|
|
28
39
|
"lint:prettier:fix": "prettier --write '**/*.{js,jsx,ts,tsx,css,scss,json,yaml,yml,md,mdx}'",
|
|
29
|
-
"test": "
|
|
40
|
+
"test": "npm run test:unit",
|
|
30
41
|
"build": "tsc",
|
|
31
42
|
"start": "TS_NODE_PROJECT=.storybook/tsconfig.json storybook dev",
|
|
32
43
|
"prepublishOnly": "npm run build",
|
|
44
|
+
"test:unit": "jest --passWithNoTests",
|
|
33
45
|
"playwright:install": "playwright install chromium webkit --with-deps",
|
|
34
46
|
"playwright": "playwright test --config=playwright-ct.config.ts",
|
|
35
47
|
"playwright:update": "npm run playwright -- -u all",
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
1
|
+
import { __rest } from "tslib";
|
|
12
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
3
|
import React from 'react';
|
|
14
4
|
import { ActionTooltip, Button } from '@gravity-ui/uikit';
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
2
|
+
import { __rest } from "tslib";
|
|
13
3
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
4
|
import { ChevronDown, ChevronUp, Copy } from '@gravity-ui/icons';
|
|
15
5
|
import { Button, Icon, Text } from '@gravity-ui/uikit';
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
1
|
+
import { __rest } from "tslib";
|
|
12
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
3
|
import { useRef, useState } from 'react';
|
|
14
4
|
import { ClockArrowRotateLeft } from '@gravity-ui/icons';
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
1
|
+
import { __rest } from "tslib";
|
|
12
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
3
|
import { cn } from '../../utils/cn';
|
|
14
4
|
import './ContentWrapper.scss';
|
package/package.json
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/aikit",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Gravity UI base kit for building ai assistant chats",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
7
8
|
"files": [
|
|
8
9
|
"dist"
|
|
9
10
|
],
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">= 20",
|
|
13
|
+
"npm": ">= 9",
|
|
14
|
+
"yarn": "Please use npm instead of yarn to install dependencies",
|
|
15
|
+
"pnpm": "Please use npm instead of pnpm to install dependencies"
|
|
16
|
+
},
|
|
17
|
+
"sideEffects": [
|
|
18
|
+
"*.css",
|
|
19
|
+
"*.scss"
|
|
20
|
+
],
|
|
10
21
|
"repository": {
|
|
11
22
|
"type": "git",
|
|
12
23
|
"url": "git+https://github.com/gravity-ui/aikit.git"
|
|
@@ -26,10 +37,11 @@
|
|
|
26
37
|
"lint:styles:fix": "stylelint **/*.scss --fix",
|
|
27
38
|
"lint:prettier": "prettier --check '**/*.{js,jsx,ts,tsx,css,scss,json,yaml,yml,md,mdx}'",
|
|
28
39
|
"lint:prettier:fix": "prettier --write '**/*.{js,jsx,ts,tsx,css,scss,json,yaml,yml,md,mdx}'",
|
|
29
|
-
"test": "
|
|
40
|
+
"test": "npm run test:unit",
|
|
30
41
|
"build": "tsc",
|
|
31
42
|
"start": "TS_NODE_PROJECT=.storybook/tsconfig.json storybook dev",
|
|
32
43
|
"prepublishOnly": "npm run build",
|
|
44
|
+
"test:unit": "jest --passWithNoTests",
|
|
33
45
|
"playwright:install": "playwright install chromium webkit --with-deps",
|
|
34
46
|
"playwright": "playwright test --config=playwright-ct.config.ts",
|
|
35
47
|
"playwright:update": "npm run playwright -- -u all",
|