ninchat-embed 2.0.0 → 2.1.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.
Files changed (82) hide show
  1. package/README.md +1126 -9
  2. package/dist/embed3.js +1 -1
  3. package/dist/embed3.js.map +1 -1
  4. package/dist/src/actions/jitsi/index.d.ts +2 -1
  5. package/dist/src/actions/jitsi/index.d.ts.map +1 -1
  6. package/dist/src/actions/jitsi/types/index.d.ts +6 -1
  7. package/dist/src/actions/jitsi/types/index.d.ts.map +1 -1
  8. package/dist/src/antics/index.d.ts +8 -0
  9. package/dist/src/antics/index.d.ts.map +1 -0
  10. package/dist/src/antics/types/index.d.ts +12 -0
  11. package/dist/src/antics/types/index.d.ts.map +1 -0
  12. package/dist/src/api/NinchatClient.d.ts +5 -0
  13. package/dist/src/api/NinchatClient.d.ts.map +1 -1
  14. package/dist/src/api/action/acceptAudience.d.ts.map +1 -1
  15. package/dist/src/api/action/beginSsoAuth.d.ts +14 -0
  16. package/dist/src/api/action/beginSsoAuth.d.ts.map +1 -0
  17. package/dist/src/api/types/actions.d.ts +4 -0
  18. package/dist/src/api/types/actions.d.ts.map +1 -1
  19. package/dist/src/api/types/attributes.d.ts +1 -0
  20. package/dist/src/api/types/attributes.d.ts.map +1 -1
  21. package/dist/src/api/types/properties.d.ts +1 -0
  22. package/dist/src/api/types/properties.d.ts.map +1 -1
  23. package/dist/src/appconfig/index.d.ts +1 -0
  24. package/dist/src/appconfig/index.d.ts.map +1 -1
  25. package/dist/src/components/Embed/EmbedQuestionnaire.d.ts +18 -1
  26. package/dist/src/components/Embed/EmbedQuestionnaire.d.ts.map +1 -1
  27. package/dist/src/components/Embed/Questionnaire/QuestionnaireButton/QuestionnaireButton.d.ts +10 -0
  28. package/dist/src/components/Embed/Questionnaire/QuestionnaireButton/QuestionnaireButton.d.ts.map +1 -1
  29. package/dist/src/components/Embed/Questionnaire/QuestionnaireButton/styles/index.d.ts +302 -0
  30. package/dist/src/components/Embed/Questionnaire/QuestionnaireButton/styles/index.d.ts.map +1 -1
  31. package/dist/src/components/Embed/Questionnaire/QuestionnaireLightBot/QuestionnaireLightBot.d.ts +11 -0
  32. package/dist/src/components/Embed/Questionnaire/QuestionnaireLightBot/QuestionnaireLightBot.d.ts.map +1 -0
  33. package/dist/src/components/Embed/Questionnaire/QuestionnaireLightBot/styles/index.d.ts +25 -0
  34. package/dist/src/components/Embed/Questionnaire/QuestionnaireLightBot/styles/index.d.ts.map +1 -0
  35. package/dist/src/components/Embed/Questionnaire/QuestionnaireNavigation/QuestionnaireNavigation.d.ts +7 -1
  36. package/dist/src/components/Embed/Questionnaire/QuestionnaireNavigation/QuestionnaireNavigation.d.ts.map +1 -1
  37. package/dist/src/components/Embed/Questionnaire/QuestionnaireNavigation/styles/index.d.ts +13 -0
  38. package/dist/src/components/Embed/Questionnaire/QuestionnaireNavigation/styles/index.d.ts.map +1 -1
  39. package/dist/src/components/Embed/Questionnaire/QuestionnaireRadio/QuestionnaireRadio.d.ts +6 -0
  40. package/dist/src/components/Embed/Questionnaire/QuestionnaireRadio/QuestionnaireRadio.d.ts.map +1 -1
  41. package/dist/src/components/Embed/Questionnaire/QuestionnaireRadio/styles/index.d.ts +15 -0
  42. package/dist/src/components/Embed/Questionnaire/QuestionnaireRadio/styles/index.d.ts.map +1 -1
  43. package/dist/src/components/Embed/Questionnaire/QuestionnaireRating/QuestionnaireRating.d.ts +2 -0
  44. package/dist/src/components/Embed/Questionnaire/QuestionnaireRating/QuestionnaireRating.d.ts.map +1 -1
  45. package/dist/src/components/Embed/Questionnaire/QuestionnaireSSO/QuestionnaireSSO.d.ts +15 -0
  46. package/dist/src/components/Embed/Questionnaire/QuestionnaireSSO/QuestionnaireSSO.d.ts.map +1 -0
  47. package/dist/src/components/Embed/Questionnaire/QuestionnaireSSO/styles/index.d.ts +104 -0
  48. package/dist/src/components/Embed/Questionnaire/QuestionnaireSSO/styles/index.d.ts.map +1 -0
  49. package/dist/src/components/Embed/Questionnaire/QuestionnaireSelect/QuestionnaireSelect.d.ts +1 -0
  50. package/dist/src/components/Embed/Questionnaire/QuestionnaireSelect/QuestionnaireSelect.d.ts.map +1 -1
  51. package/dist/src/components/Embed/components/EmbedHero/EmbedHero.d.ts.map +1 -1
  52. package/dist/src/components/Embed/components/EmbedHero/styles/index.d.ts +0 -8
  53. package/dist/src/components/Embed/components/EmbedHero/styles/index.d.ts.map +1 -1
  54. package/dist/src/components/Embed/styles/questionnaire.d.ts +180 -0
  55. package/dist/src/components/Embed/styles/questionnaire.d.ts.map +1 -1
  56. package/dist/src/components/EmbedContext.d.ts +231 -131
  57. package/dist/src/components/EmbedContext.d.ts.map +1 -1
  58. package/dist/src/components/Icon/Icon.d.ts +18 -0
  59. package/dist/src/components/Icon/Icon.d.ts.map +1 -1
  60. package/dist/src/embed/components/embedWrapper.d.ts.map +1 -1
  61. package/dist/src/embed/index.d.ts.map +1 -1
  62. package/dist/src/embed/listeners/index.d.ts.map +1 -1
  63. package/dist/src/embed/listeners/session.d.ts +10 -0
  64. package/dist/src/embed/listeners/session.d.ts.map +1 -0
  65. package/dist/src/embed/schemas/index.d.ts +1930 -1272
  66. package/dist/src/embed/schemas/index.d.ts.map +1 -1
  67. package/dist/src/embed/styles/index.d.ts +1 -1
  68. package/dist/src/embed/styles/index.d.ts.map +1 -1
  69. package/dist/src/embed/types/events.d.ts +19 -5
  70. package/dist/src/embed/types/events.d.ts.map +1 -1
  71. package/dist/src/embed/types/index.d.ts +2 -0
  72. package/dist/src/embed/types/index.d.ts.map +1 -1
  73. package/dist/src/embed/utils/config/index.d.ts +231 -131
  74. package/dist/src/embed/utils/config/index.d.ts.map +1 -1
  75. package/dist/src/reducers/jitsi/index.d.ts +1 -0
  76. package/dist/src/reducers/jitsi/index.d.ts.map +1 -1
  77. package/dist/src/stitches/config.embed.d.ts.map +1 -1
  78. package/package.json +1 -1
  79. package/dist/src/components/Embed/Questionnaire/QuestionnaireLink/QuestionnaireLink.d.ts +0 -13
  80. package/dist/src/components/Embed/Questionnaire/QuestionnaireLink/QuestionnaireLink.d.ts.map +0 -1
  81. package/dist/src/components/Embed/Questionnaire/QuestionnaireLink/styles/index.d.ts +0 -2
  82. package/dist/src/components/Embed/Questionnaire/QuestionnaireLink/styles/index.d.ts.map +0 -1
@@ -78,14 +78,6 @@ export declare const subtitle: {
78
78
  textAlign: string;
79
79
  lineHeight: string;
80
80
  };
81
- export declare const joinVideoMeetingOverrides: {
82
- backgroundColor: string;
83
- borderColor: string;
84
- '&&&:hover,&&&:focus-visible,&&&:active': {
85
- backgroundColor: string;
86
- borderColor: string;
87
- };
88
- };
89
81
  export declare const memberImages: {
90
82
  display: string;
91
83
  justifyContent: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/Embed/components/EmbedHero/styles/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBvB,CAAA;AAED,eAAO,MAAM,WAAW;;CAAmB,CAAA;AAE3C,eAAO,MAAM,kBAAkB;;;;;;CAM9B,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;CAM7B,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;CAgB1B,CAAA;AAED,eAAO,MAAM,KAAK;;;CAGjB,CAAA;AAED,eAAO,MAAM,QAAQ;;;;;;;;;CASpB,CAAA;AAED,eAAO,MAAM,yBAAyB;;;;;;;CAOrC,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;CAcxB,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;CAQzB,CAAA;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;CAcrB,CAAA;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;CAG/B,CAAA;AAED,eAAO,MAAM,YAAY;;CAAsB,CAAA;AAE/C,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAA;AAED,eAAO,MAAM,YAAY;;CAAwB,CAAA;AAEjD,eAAO,MAAM,iBAAiB;;;;CAI7B,CAAA;AAED,eAAO,MAAM,aAAa;;CAAiC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/Embed/components/EmbedHero/styles/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBvB,CAAA;AAED,eAAO,MAAM,WAAW;;CAAmB,CAAA;AAE3C,eAAO,MAAM,kBAAkB;;;;;;CAM9B,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;CAM7B,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;CAgB1B,CAAA;AAED,eAAO,MAAM,KAAK;;;CAGjB,CAAA;AAED,eAAO,MAAM,QAAQ;;;;;;;;;CASpB,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;CAcxB,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;CAQzB,CAAA;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;CAcrB,CAAA;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;CAG/B,CAAA;AAED,eAAO,MAAM,YAAY;;CAAsB,CAAA;AAE/C,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAA;AAED,eAAO,MAAM,YAAY;;CAAwB,CAAA;AAEjD,eAAO,MAAM,iBAAiB;;;;CAI7B,CAAA;AAED,eAAO,MAAM,aAAa;;CAAiC,CAAA"}
@@ -2,6 +2,34 @@ export declare const overflow: {
2
2
  (): string;
3
3
  name: string;
4
4
  };
5
+ export declare const APPEAR_TEXT_DURATION = 1;
6
+ export declare const STEP_TEXT_DELAY = 1;
7
+ export declare const APPEAR_COMPONENT_DURATION = 0.3;
8
+ export declare const STEP_COMPONENT_DELAY = 0.3;
9
+ export declare const appearTextBase: {
10
+ (): string;
11
+ name: string;
12
+ };
13
+ export declare const appearTextWidth: {
14
+ (): string;
15
+ name: string;
16
+ };
17
+ export declare const appearTextContent: {
18
+ (): string;
19
+ name: string;
20
+ };
21
+ export declare const appearTextLoader: {
22
+ (): string;
23
+ name: string;
24
+ };
25
+ export declare const appearTextDots: {
26
+ (): string;
27
+ name: string;
28
+ };
29
+ export declare const appearComponent: {
30
+ (): string;
31
+ name: string;
32
+ };
5
33
  export declare const questionnaireWrapper: {
6
34
  '&&&': {
7
35
  animation: string;
@@ -65,6 +93,7 @@ export declare const viewContent: {
65
93
  padding: string;
66
94
  };
67
95
  export declare const viewElementWrapper: {
96
+ boxSizing: string;
68
97
  margin: string;
69
98
  variants: {
70
99
  hide: {
@@ -72,7 +101,95 @@ export declare const viewElementWrapper: {
72
101
  display: string;
73
102
  };
74
103
  };
104
+ isText: {
105
+ true: {};
106
+ };
107
+ isComponent: {
108
+ true: {};
109
+ };
110
+ lightBot: {
111
+ true: {};
112
+ };
113
+ currentElement: {
114
+ true: {};
115
+ };
75
116
  };
117
+ compoundVariants: ({
118
+ isComponent: boolean;
119
+ lightBot: boolean;
120
+ currentElement: boolean;
121
+ css: {
122
+ visibility: string;
123
+ animation: string;
124
+ animationFillMode: string;
125
+ background?: undefined;
126
+ color?: undefined;
127
+ borderColor?: undefined;
128
+ borderWidth?: undefined;
129
+ borderStyle?: undefined;
130
+ fontSize?: undefined;
131
+ fontWeight?: undefined;
132
+ fontFamily?: undefined;
133
+ lineHeight?: undefined;
134
+ fontVariant?: undefined;
135
+ fontStyle?: undefined;
136
+ padding?: undefined;
137
+ borderRadius?: undefined;
138
+ borderTopLeftRadius?: undefined;
139
+ marginBottom?: undefined;
140
+ };
141
+ isText?: undefined;
142
+ } | {
143
+ isText: boolean;
144
+ lightBot: boolean;
145
+ currentElement: boolean;
146
+ css: {
147
+ visibility: string;
148
+ animation: string;
149
+ animationFillMode: string;
150
+ background?: undefined;
151
+ color?: undefined;
152
+ borderColor?: undefined;
153
+ borderWidth?: undefined;
154
+ borderStyle?: undefined;
155
+ fontSize?: undefined;
156
+ fontWeight?: undefined;
157
+ fontFamily?: undefined;
158
+ lineHeight?: undefined;
159
+ fontVariant?: undefined;
160
+ fontStyle?: undefined;
161
+ padding?: undefined;
162
+ borderRadius?: undefined;
163
+ borderTopLeftRadius?: undefined;
164
+ marginBottom?: undefined;
165
+ };
166
+ isComponent?: undefined;
167
+ } | {
168
+ isText: boolean;
169
+ lightBot: boolean;
170
+ css: {
171
+ background: string;
172
+ color: string;
173
+ borderColor: string;
174
+ borderWidth: string;
175
+ borderStyle: string;
176
+ fontSize: string;
177
+ fontWeight: string;
178
+ fontFamily: string;
179
+ lineHeight: string;
180
+ fontVariant: string;
181
+ fontStyle: string;
182
+ padding: string;
183
+ borderRadius: string;
184
+ borderTopLeftRadius: string;
185
+ marginBottom: string;
186
+ visibility?: undefined;
187
+ animation?: undefined;
188
+ animationFillMode?: undefined;
189
+ };
190
+ isComponent?: undefined;
191
+ currentElement?: undefined;
192
+ })[];
76
193
  };
77
194
  export declare const textBase: {
78
195
  'h1, h2, h3, h4, h5, h6': {
@@ -96,13 +213,29 @@ export declare const textBase: {
96
213
  fontVariant: string;
97
214
  };
98
215
  };
216
+ variants: {
217
+ lightBot: {
218
+ true: {
219
+ 'p:last-child': {
220
+ marginBottom: number;
221
+ };
222
+ };
223
+ };
224
+ };
99
225
  };
100
226
  export declare const textWrapper: {
101
227
  color: string;
102
228
  background: string;
103
229
  borderRadius: string;
230
+ boxSizing: string;
104
231
  padding: string;
105
232
  variants: {
233
+ currentElement: {
234
+ true: {};
235
+ };
236
+ lightBot: {
237
+ true: {};
238
+ };
106
239
  align: {
107
240
  center: {
108
241
  textAlign: string;
@@ -112,6 +245,28 @@ export declare const textWrapper: {
112
245
  };
113
246
  };
114
247
  };
248
+ compoundVariants: {
249
+ currentElement: boolean;
250
+ lightBot: boolean;
251
+ css: {
252
+ visibility: string;
253
+ width: number;
254
+ height: number;
255
+ animation: string;
256
+ animationDelay: string;
257
+ animationFillMode: string;
258
+ };
259
+ }[];
260
+ };
261
+ export declare const textLoader: {
262
+ '&:after': {
263
+ content: string;
264
+ animation: string;
265
+ };
266
+ padding: string;
267
+ animation: string;
268
+ animationDelay: string;
269
+ animationFillMode: string;
115
270
  };
116
271
  export declare const errorWrapper: {
117
272
  display: string;
@@ -190,4 +345,29 @@ export declare const questionnaireError: {
190
345
  marginBottom: string;
191
346
  };
192
347
  };
348
+ export declare const lightBotAnswerBubble: {
349
+ display: string;
350
+ justifyContent: string;
351
+ '> div': {
352
+ backgroundColor: string;
353
+ color: string;
354
+ borderColor: string;
355
+ borderWidth: string;
356
+ borderStyle: string;
357
+ fontSize: string;
358
+ fontWeight: string;
359
+ fontFamily: string;
360
+ lineHeight: string;
361
+ fontVariant: string;
362
+ fontStyle: string;
363
+ padding: string;
364
+ marginTop: string;
365
+ borderRadius: string;
366
+ borderTopRightRadius: string;
367
+ };
368
+ };
369
+ export declare const lightBotGroupLabel: {
370
+ color: string;
371
+ fontWeight: string;
372
+ };
193
373
  //# sourceMappingURL=questionnaire.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"questionnaire.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Embed/styles/questionnaire.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;CAInB,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;CAQhC,CAAA;AAED,eAAO,MAAM,yBAAyB;;;;;;;;CASrC,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;CAOvB,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B7B,CAAA;AAED,eAAO,MAAM,WAAW;;;CAGvB,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;CAG9B,CAAA;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;CAcpB,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;CAWvB,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;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