@n8n/chat 0.19.0 → 0.19.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/README.md +2 -2
- package/dist/App.vue.d.ts +8 -0
- package/dist/__stories__/App.stories.d.ts +18 -0
- package/dist/__tests__/index.spec.d.ts +1 -0
- package/dist/__tests__/setup.d.ts +1 -0
- package/dist/__tests__/utils/create.d.ts +6 -0
- package/dist/__tests__/utils/fetch.d.ts +5 -0
- package/dist/__tests__/utils/selectors.d.ts +12 -0
- package/dist/api/generic.d.ts +6 -0
- package/dist/api/message.d.ts +4 -0
- package/dist/chat.bundle.es.js +11029 -0
- package/dist/chat.bundle.umd.js +37 -0
- package/dist/chat.es.js +6939 -0
- package/dist/chat.umd.js +18 -0
- package/dist/components/Button.vue.d.ts +11 -0
- package/dist/components/Chat.vue.d.ts +2 -0
- package/dist/components/ChatWindow.vue.d.ts +2 -0
- package/dist/components/GetStarted.vue.d.ts +2 -0
- package/dist/components/GetStartedFooter.vue.d.ts +2 -0
- package/dist/components/Input.vue.d.ts +2 -0
- package/dist/components/Layout.vue.d.ts +13 -0
- package/dist/components/Message.vue.d.ts +26 -0
- package/dist/components/MessageTyping.vue.d.ts +29 -0
- package/dist/components/MessagesList.vue.d.ts +17 -0
- package/dist/components/PoweredBy.vue.d.ts +2 -0
- package/dist/composables/useChat.d.ts +3 -0
- package/dist/composables/useI18n.d.ts +4 -0
- package/dist/composables/useOptions.d.ts +5 -0
- package/dist/constants/defaults.d.ts +4 -0
- package/dist/constants/localStorage.d.ts +2 -0
- package/dist/constants/symbols.d.ts +5 -0
- package/dist/event-buses/chatEventBus.d.ts +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/plugins/chat.d.ts +4 -0
- package/dist/style.css +1 -0
- package/dist/types/chat.d.ts +12 -0
- package/{src/types/messages.ts → dist/types/messages.d.ts} +10 -12
- package/dist/types/options.d.ts +31 -0
- package/dist/types/webhook.d.ts +16 -0
- package/dist/utils/event-bus.d.ts +8 -0
- package/dist/utils/mount.d.ts +1 -0
- package/package.json +45 -9
- package/.eslintignore +0 -2
- package/.eslintrc.cjs +0 -10
- package/.np-config.json +0 -5
- package/.storybook/main.ts +0 -4
- package/.storybook/preview.scss +0 -4
- package/.storybook/preview.ts +0 -15
- package/.vscode/extensions.json +0 -3
- package/build.config.js +0 -21
- package/env.d.ts +0 -1
- package/index.html +0 -13
- package/resources/images/fullscreen.png +0 -0
- package/resources/images/windowed.png +0 -0
- package/resources/workflow-manual.json +0 -238
- package/resources/workflow.json +0 -119
- package/scripts/pack.js +0 -11
- package/scripts/postbuild.js +0 -36
- package/src/App.vue +0 -23
- package/src/__stories__/App.stories.ts +0 -43
- package/src/__tests__/index.spec.ts +0 -218
- package/src/__tests__/setup.ts +0 -1
- package/src/__tests__/utils/create.ts +0 -16
- package/src/__tests__/utils/fetch.ts +0 -18
- package/src/__tests__/utils/selectors.ts +0 -53
- package/src/api/generic.ts +0 -63
- package/src/api/message.ts +0 -37
- package/src/components/Button.vue +0 -41
- package/src/components/Chat.vue +0 -96
- package/src/components/ChatWindow.vue +0 -123
- package/src/components/GetStarted.vue +0 -24
- package/src/components/GetStartedFooter.vue +0 -20
- package/src/components/Input.vue +0 -108
- package/src/components/Layout.vue +0 -99
- package/src/components/Message.vue +0 -137
- package/src/components/MessageTyping.vue +0 -110
- package/src/components/MessagesList.vue +0 -33
- package/src/components/PoweredBy.vue +0 -17
- package/src/composables/useChat.ts +0 -7
- package/src/composables/useI18n.ts +0 -21
- package/src/composables/useOptions.ts +0 -11
- package/src/constants/defaults.ts +0 -30
- package/src/constants/localStorage.ts +0 -2
- package/src/constants/symbols.ts +0 -8
- package/src/css/_tokens.scss +0 -38
- package/src/css/index.scss +0 -1
- package/src/event-buses/chatEventBus.ts +0 -3
- package/src/index.ts +0 -42
- package/src/main.scss +0 -5
- package/src/plugins/chat.ts +0 -115
- package/src/shims.d.ts +0 -6
- package/src/types/chat.ts +0 -12
- package/src/types/icons.d.ts +0 -5
- package/src/types/options.ts +0 -33
- package/src/types/webhook.ts +0 -18
- package/src/utils/event-bus.ts +0 -51
- package/src/utils/mount.ts +0 -16
- package/tsconfig.json +0 -24
- package/vite.config.mts +0 -53
- package/vitest.config.mts +0 -30
- /package/{src/__tests__/utils/index.ts → dist/__tests__/utils/index.d.ts} +0 -0
- /package/{src/api/index.ts → dist/api/index.d.ts} +0 -0
- /package/{src/components/index.ts → dist/components/index.d.ts} +0 -0
- /package/{src/composables/index.ts → dist/composables/index.d.ts} +0 -0
- /package/{src/constants/index.ts → dist/constants/index.d.ts} +0 -0
- /package/{src/event-buses/index.ts → dist/event-buses/index.d.ts} +0 -0
- /package/{public → dist}/favicon.ico +0 -0
- /package/{src/plugins/index.ts → dist/plugins/index.d.ts} +0 -0
- /package/{src/types/index.ts → dist/types/index.d.ts} +0 -0
- /package/{src/utils/index.ts → dist/utils/index.d.ts} +0 -0
package/vite.config.mts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite';
|
|
2
|
-
import { resolve } from 'path';
|
|
3
|
-
import vue from '@vitejs/plugin-vue';
|
|
4
|
-
import icons from 'unplugin-icons/vite';
|
|
5
|
-
import dts from 'vite-plugin-dts';
|
|
6
|
-
|
|
7
|
-
const includeVue = process.env.INCLUDE_VUE === 'true';
|
|
8
|
-
const srcPath = resolve(__dirname, 'src');
|
|
9
|
-
|
|
10
|
-
// https://vitejs.dev/config/
|
|
11
|
-
export default defineConfig({
|
|
12
|
-
plugins: [
|
|
13
|
-
vue(),
|
|
14
|
-
icons({
|
|
15
|
-
compiler: 'vue3',
|
|
16
|
-
autoInstall: true,
|
|
17
|
-
}),
|
|
18
|
-
dts(),
|
|
19
|
-
],
|
|
20
|
-
resolve: {
|
|
21
|
-
alias: {
|
|
22
|
-
'@': srcPath,
|
|
23
|
-
'@n8n/chat': srcPath,
|
|
24
|
-
lodash: 'lodash-es',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
define: {
|
|
28
|
-
'process.env.NODE_ENV': process.env.NODE_ENV ? `"${process.env.NODE_ENV}"` : '"development"',
|
|
29
|
-
},
|
|
30
|
-
build: {
|
|
31
|
-
emptyOutDir: !includeVue,
|
|
32
|
-
lib: {
|
|
33
|
-
entry: resolve(__dirname, 'src', 'index.ts'),
|
|
34
|
-
name: 'N8nChat',
|
|
35
|
-
fileName: (format) => (includeVue ? `chat.bundle.${format}.js` : `chat.${format}.js`),
|
|
36
|
-
},
|
|
37
|
-
rollupOptions: {
|
|
38
|
-
// make sure to externalize deps that shouldn't be bundled
|
|
39
|
-
// into your library
|
|
40
|
-
external: includeVue ? [] : ['vue'],
|
|
41
|
-
output: {
|
|
42
|
-
exports: 'named',
|
|
43
|
-
// Provide global variables to use in the UMD build
|
|
44
|
-
// for externalized deps
|
|
45
|
-
globals: includeVue
|
|
46
|
-
? {}
|
|
47
|
-
: {
|
|
48
|
-
vue: 'Vue',
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
});
|
package/vitest.config.mts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { resolve } from 'path';
|
|
2
|
-
import { mergeConfig } from 'vite';
|
|
3
|
-
import { type UserConfig } from 'vitest';
|
|
4
|
-
import { defineConfig } from 'vitest/config';
|
|
5
|
-
import viteConfig from './vite.config.mts';
|
|
6
|
-
|
|
7
|
-
const srcPath = resolve(__dirname, 'src');
|
|
8
|
-
const vitestConfig = defineConfig({
|
|
9
|
-
test: {
|
|
10
|
-
globals: true,
|
|
11
|
-
environment: 'jsdom',
|
|
12
|
-
root: srcPath,
|
|
13
|
-
setupFiles: ['./src/__tests__/setup.ts'],
|
|
14
|
-
...(process.env.COVERAGE_ENABLED === 'true'
|
|
15
|
-
? {
|
|
16
|
-
coverage: {
|
|
17
|
-
enabled: true,
|
|
18
|
-
provider: 'v8',
|
|
19
|
-
reporter: process.env.CI === 'true' ? 'cobertura' : 'text-summary',
|
|
20
|
-
all: true,
|
|
21
|
-
},
|
|
22
|
-
}
|
|
23
|
-
: {}),
|
|
24
|
-
},
|
|
25
|
-
}) as UserConfig;
|
|
26
|
-
|
|
27
|
-
export default mergeConfig(
|
|
28
|
-
viteConfig,
|
|
29
|
-
vitestConfig,
|
|
30
|
-
);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|