@evercam/ui 0.0.63-preview-update-eui-307bb2b24 → 0.0.63-preview-admin-copilot-e9a0bbd17

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/tags.json CHANGED
@@ -338,7 +338,18 @@
338
338
  "attributes": [
339
339
  "dark",
340
340
  "messages",
341
- "user"
341
+ "user",
342
+ "embedded",
343
+ "show-header",
344
+ "inline-footer",
345
+ "height",
346
+ "width",
347
+ "show-user-avatar",
348
+ "show-copilot-avatar",
349
+ "readonly",
350
+ "is-loading",
351
+ "header-text",
352
+ "input-placeholder"
342
353
  ],
343
354
  "description": ""
344
355
  }
package/dist/types.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { BadgeSizes, AvatarSizes, IconSizes, BadgeColors, ToggleSwitchSizes } from './constants';
2
2
  export declare enum Size {
3
3
  dot = "dot",
4
+ "2xs" = "2xs",
4
5
  xs = "xs",
5
6
  sm = "sm",
6
7
  md = "base",
@@ -234,11 +235,18 @@ export declare enum ChatMessageRole {
234
235
  COPILOT = "copilot",
235
236
  USER = "user"
236
237
  }
238
+ export declare enum ChatMessageType {
239
+ TEXT = "text",
240
+ PROGRESS = "progress",
241
+ STOP = "stop"
242
+ }
237
243
  export interface ChatMessage {
238
- id: string;
244
+ id: string | number;
239
245
  role: ChatMessageRole;
240
- content: string;
246
+ content: string | string[];
241
247
  timestamp?: Timestamp;
248
+ isLoading?: boolean;
249
+ type?: ChatMessageType;
242
250
  }
243
251
  declare const _default: {};
244
252
  export default _default;
package/dist/utils.d.ts CHANGED
@@ -5,3 +5,7 @@ export declare function debounce<T extends (...args: any[]) => any>(func: T, wai
5
5
  export declare function getRandomChars(length?: number): string;
6
6
  export declare function getImageData(image: HTMLImageElement, x?: number, y?: number, width?: number, height?: number): string;
7
7
  export declare function isValidDate(dateString?: string): boolean;
8
+ export declare function hexToRgba(hex: string, alpha?: number): string;
9
+ export declare function rgbToRgba(rgb: string, alpha?: number): string | null;
10
+ export declare function isRgba(color: string): boolean;
11
+ export declare function toRgba(color: string, alpha?: number): string | null;
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "@evercam/ui",
5
- "version": "0.0.63-preview-update-eui-307bb2b24",
5
+ "version": "0.0.63-preview-admin-copilot-e9a0bbd17",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "types-syntax": "typescript",
@@ -2298,6 +2298,105 @@
2298
2298
  "kind": "expression",
2299
2299
  "type": "string"
2300
2300
  }
2301
+ },
2302
+ {
2303
+ "name": "embedded",
2304
+ "doc-url": "https://www.npmjs.com/package/@evercam/ui",
2305
+ "default": "false",
2306
+ "value": {
2307
+ "kind": "expression",
2308
+ "type": "boolean"
2309
+ }
2310
+ },
2311
+ {
2312
+ "name": "show-header",
2313
+ "doc-url": "https://www.npmjs.com/package/@evercam/ui",
2314
+ "default": "true",
2315
+ "value": {
2316
+ "kind": "expression",
2317
+ "type": "boolean"
2318
+ }
2319
+ },
2320
+ {
2321
+ "name": "inline-footer",
2322
+ "doc-url": "https://www.npmjs.com/package/@evercam/ui",
2323
+ "default": "false",
2324
+ "value": {
2325
+ "kind": "expression",
2326
+ "type": "boolean"
2327
+ }
2328
+ },
2329
+ {
2330
+ "name": "height",
2331
+ "doc-url": "https://www.npmjs.com/package/@evercam/ui",
2332
+ "default": "undefined",
2333
+ "value": {
2334
+ "kind": "expression",
2335
+ "type": "string"
2336
+ }
2337
+ },
2338
+ {
2339
+ "name": "width",
2340
+ "doc-url": "https://www.npmjs.com/package/@evercam/ui",
2341
+ "default": "undefined",
2342
+ "value": {
2343
+ "kind": "expression",
2344
+ "type": "string"
2345
+ }
2346
+ },
2347
+ {
2348
+ "name": "show-user-avatar",
2349
+ "doc-url": "https://www.npmjs.com/package/@evercam/ui",
2350
+ "default": "true",
2351
+ "value": {
2352
+ "kind": "expression",
2353
+ "type": "boolean"
2354
+ }
2355
+ },
2356
+ {
2357
+ "name": "show-copilot-avatar",
2358
+ "doc-url": "https://www.npmjs.com/package/@evercam/ui",
2359
+ "default": "true",
2360
+ "value": {
2361
+ "kind": "expression",
2362
+ "type": "boolean"
2363
+ }
2364
+ },
2365
+ {
2366
+ "name": "readonly",
2367
+ "doc-url": "https://www.npmjs.com/package/@evercam/ui",
2368
+ "default": "false",
2369
+ "value": {
2370
+ "kind": "expression",
2371
+ "type": "boolean"
2372
+ }
2373
+ },
2374
+ {
2375
+ "name": "is-loading",
2376
+ "doc-url": "https://www.npmjs.com/package/@evercam/ui",
2377
+ "default": "false",
2378
+ "value": {
2379
+ "kind": "expression",
2380
+ "type": "boolean"
2381
+ }
2382
+ },
2383
+ {
2384
+ "name": "header-text",
2385
+ "doc-url": "https://www.npmjs.com/package/@evercam/ui",
2386
+ "default": "Evercam Copilot",
2387
+ "value": {
2388
+ "kind": "expression",
2389
+ "type": "string"
2390
+ }
2391
+ },
2392
+ {
2393
+ "name": "input-placeholder",
2394
+ "doc-url": "https://www.npmjs.com/package/@evercam/ui",
2395
+ "default": "Message Copilot",
2396
+ "value": {
2397
+ "kind": "expression",
2398
+ "type": "string"
2399
+ }
2301
2400
  }
2302
2401
  ]
2303
2402
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evercam/ui",
3
- "version": "0.0.63-preview-update-eui-307bb2b24",
3
+ "version": "0.0.63-preview-admin-copilot-e9a0bbd17",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "author": "Evercam - Constuction Cameras.",
@@ -31,12 +31,13 @@
31
31
  "build:lib": "vite build",
32
32
  "build:style": "postcss src/style/main.css --verbose -o dist/styles.css",
33
33
  "build-and-copy": "yarn build && rsync -av --delete ./dist/ ../../node_modules/@evercam/ui/dist/",
34
- "story:dev": "yarn stroy:build:tailwind && yarn stroy:build:typedoc && yarn stroy:dev:styleguide",
34
+ "story:dev": "yarn stroy:build:tailwind && yarn stroy:build:typedoc && yarn story:build:styles && yarn stroy:dev:styleguide",
35
35
  "stroy:dev:styleguide": "vue-styleguidist --config docs/config/styleguide.config.js server",
36
- "story:build": "yarn stroy:build:typedoc && yarn stroy:build:tailwind && yarn stroy:build:styleguide",
36
+ "story:build": "yarn stroy:build:typedoc && yarn stroy:build:tailwind && yarn story:build:styles && yarn stroy:build:styleguide",
37
37
  "stroy:build:styleguide": "vue-styleguidist --config docs/config/styleguide.config.js build",
38
38
  "stroy:build:typedoc": "yarn typedoc --options docs/config/typedoc.config.js --out docs/assets/typedoc",
39
39
  "stroy:build:tailwind": "tailwind-config-viewer export docs/assets/tailwind-config-viewer",
40
+ "story:build:styles": "postcss src/style/main.css --verbose -o docs/assets/evercam-ui-styles.css",
40
41
  "typecheck": "vue-tsc --declaration --emitDeclarationOnly",
41
42
  "generate-ide-docs": "node scripts/generateVetur.mjs && node scripts/generateWebTypes.mjs",
42
43
  "ci": "(cd ../..; yarn ci)",
@@ -88,18 +89,19 @@
88
89
  "flag-icons": "^7.2.1",
89
90
  "hls.js": "^1.5.6",
90
91
  "moment-timezone": "^0.5.43",
91
- "vue": "^2.7.16",
92
92
  "rehype-stringify": "^10.0.0",
93
93
  "remark-breaks": "^4.0.0",
94
94
  "remark-gfm": "^4.0.0",
95
95
  "remark-parse": "^11.0.0",
96
96
  "remark-rehype": "^11.1.0",
97
97
  "typewriter-effect": "^2.21.0",
98
- "unified": "^11.0.5"
98
+ "unified": "^11.0.5",
99
+ "vue": "^2.7.16"
99
100
  },
100
101
  "vetur": {
101
102
  "tags": "dist/tags.json",
102
103
  "attributes": "dist/attributes.json"
103
104
  },
104
- "web-types": "dist/web-types.json"
105
+ "web-types": "dist/web-types.json",
106
+ "dependencies": {}
105
107
  }