@swisper.ai/web-chat-ui 0.5.0 → 0.5.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/components/html-viewer/html-viewer.stories.d.ts +6 -0
- package/dist/components/html-viewer/html-viewer.stories.d.ts.map +1 -1
- package/dist/components/html-viewer/utils.d.ts.map +1 -1
- package/dist/index.es.js +469 -468
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/components/html-viewer/__stories__/transactional-email.html +154 -0
- package/src/components/html-viewer/html-viewer.json +1 -0
- package/src/components/html-viewer/html-viewer.stories.tsx +27 -0
- package/src/components/html-viewer/utils.ts +8 -1
|
@@ -11,4 +11,10 @@ export declare const CustomComponents: Story;
|
|
|
11
11
|
export declare const Sanitized: Story;
|
|
12
12
|
/** Email-template HTML with a `width="600"` layout table, in a 320px container: `width`, `height` and `noWrap` are stripped, so it fits. */
|
|
13
13
|
export declare const FixedSizeHtml: Story;
|
|
14
|
+
/**
|
|
15
|
+
* A whole email document (`<!doctype>`, `<head>` with `<title>` and `<style>`, nested layout
|
|
16
|
+
* tables, inline styles, comments) in a 320px container. `<title>` and `<style>` are removed with
|
|
17
|
+
* their text, inline styles and comments are dropped, and the layout tables fit.
|
|
18
|
+
*/
|
|
19
|
+
export declare const ComplexEmail: Story;
|
|
14
20
|
//# sourceMappingURL=html-viewer.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-viewer.stories.d.ts","sourceRoot":"","sources":["../../../src/components/html-viewer/html-viewer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"html-viewer.stories.d.ts","sourceRoot":"","sources":["../../../src/components/html-viewer/html-viewer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAsB3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAgCjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,sFAAsF;AACtF,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAWjC,yFAAyF;AACzF,eAAO,MAAM,gBAAgB,EAAE,KAI9B,CAAC;AAEF,qFAAqF;AACrF,eAAO,MAAM,SAAS,EAAE,KAavB,CAAC;AAEF,4IAA4I;AAC5I,eAAO,MAAM,aAAa,EAAE,KAmB3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,KAmB1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/html-viewer/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/html-viewer/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAgCxD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,wBAAwB,GAAG,wBAAwB,CAyB9F"}
|