@askdialog/dialog-vue 1.0.5 → 1.0.7
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 +2 -0
- package/dist/app.d.ts +0 -0
- package/dist/components/DialogProductBlock/DialogBlockHeader.vue.d.ts +6 -0
- package/dist/components/DialogProductBlock/DialogBlockSuggestions.vue.d.ts +10 -0
- package/dist/components/DialogProductBlock/DialogBlockSuggestionsContainer.vue.d.ts +11 -0
- package/dist/components/DialogProductBlock/DialogBlockSuggestionsSkeleton.vue.d.ts +2 -0
- package/dist/components/DialogProductBlock/DialogProductBlock.vue.d.ts +9 -0
- package/dist/components/DialogProductBlock/ThemeProvider.vue.d.ts +21 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/dialog-vue.css +1 -1
- package/dist/dialog-vue.js +1647 -1573
- package/dist/dialog-vue.umd.cjs +5 -5
- package/dist/icons/AiStarsIcon.vue.d.ts +5 -0
- package/dist/main.d.ts +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,14 +32,14 @@ yarn add @askdialog/dialog-vue
|
|
|
32
32
|
### Instantiate the client
|
|
33
33
|
|
|
34
34
|
```typescript
|
|
35
|
-
import { Dialog } from '@
|
|
35
|
+
import { Dialog } from '@askdialog/dialog-sdk';
|
|
36
36
|
|
|
37
37
|
const client = new Dialog({
|
|
38
38
|
apiKey: 'YOUR_API_KEY', // required
|
|
39
39
|
locale: 'TARGETED_LOCALE', // required
|
|
40
40
|
callbacks: {
|
|
41
41
|
addToCart: () => Promise<void>, // required
|
|
42
|
-
getProduct: () => Promise<
|
|
42
|
+
getProduct: () => Promise<SimplifiedProduct>, // required
|
|
43
43
|
},
|
|
44
44
|
});
|
|
45
45
|
```
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
package/dist/app.d.ts
ADDED
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Dialog, Suggestion } from '@askdialog/dialog-sdk';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
client: Dialog;
|
|
4
|
+
questions: Suggestion['questions'];
|
|
5
|
+
productId: string;
|
|
6
|
+
productTitle: string;
|
|
7
|
+
selectedVariantId?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Dialog, Suggestion } from '@askdialog/dialog-sdk';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
client: Dialog;
|
|
4
|
+
questions: Suggestion['questions'] | undefined;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
productId: string;
|
|
7
|
+
productTitle: string;
|
|
8
|
+
selectedVariantId?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Dialog } from '@askdialog/dialog-sdk';
|
|
2
|
+
interface Props {
|
|
3
|
+
client: Dialog;
|
|
4
|
+
productId: string;
|
|
5
|
+
productTitle: string;
|
|
6
|
+
selectedVariantId?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Theme } from '@askdialog/dialog-sdk';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
theme: Theme;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
package/dist/dialog-vue.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dialog-block-header-container[data-v-260a102d]{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.dialog-block-title[data-v-260a102d]{color:#6c6c6c;font-family:var(--dialog-theme-font-family);font-size:13px;font-style:normal;font-weight:500;line-height:20px;letter-spacing:1.3px;text-transform:uppercase}.dialog-block-description[data-v-260a102d]{color:var(--dialog-theme-primary-color);font-family:var(--dialog-theme-font-family);font-size:var(--dialog-theme-title-font-size);font-style:normal;font-weight:500;line-height:20px}.dialog-block-suggestions-item[data-v-
|
|
1
|
+
.dialog-block-header-container[data-v-260a102d]{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.dialog-block-title[data-v-260a102d]{color:#6c6c6c;font-family:var(--dialog-theme-font-family);font-size:13px;font-style:normal;font-weight:500;line-height:20px;letter-spacing:1.3px;text-transform:uppercase}.dialog-block-description[data-v-260a102d]{color:var(--dialog-theme-primary-color);font-family:var(--dialog-theme-font-family);font-size:var(--dialog-theme-title-font-size);font-style:normal;font-weight:500;line-height:20px}.dialog-block-suggestions-item[data-v-da751a55]{background-color:#f1f1f1;animation:pulse 1.5s ease-in-out infinite;border:none;outline:none;padding:12px 16px;width:fit-content;cursor:pointer;display:flex;justify-content:flex-start;background-color:#fff;align-items:center;gap:8px;border:1px solid #dddce2;border-radius:24px}.dialog-block-suggestions-item-label[data-v-da751a55]{color:#575665;font-size:var(--dialog-theme-content-font-size);font-weight:500}.dialog-block-suggestions-item-icon path[data-v-da751a55]{stroke:var(--dialog-theme-primary-color)}.dialog-block-suggestions-skeleton-item[data-v-26a64b58],.dialog-block-suggestions-skeleton-item[data-v-26a64b58]:empty{display:block;width:100%;width:90%;height:18px;border-radius:18px;padding:12px 16px;background-color:#f1f1f1;animation:pulse-26a64b58 1.5s ease-in-out infinite}@keyframes pulse-26a64b58{0%{background-color:#f1f1f1}50%{background-color:#fff}to{background-color:#f1f1f1}}.dialog-block-suggestions-container[data-v-4509a683]{display:flex;flex-direction:column;gap:12px;width:100%}.dialog-block-container[data-v-3f1cdafe]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;padding:24px 0;width:100%;gap:24px}
|