@daeryun/dr_components 0.6.81 → 0.6.82

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daeryun/dr_components",
3
- "version": "0.6.81",
3
+ "version": "0.6.82",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,2 +0,0 @@
1
- declare const TestChannelTalk: () => import("react").JSX.Element;
2
- export default TestChannelTalk;
@@ -1,39 +0,0 @@
1
- import Script from 'next/script';
2
- const TestChannelTalk = () => {
3
- return (<Script id="channel-io" strategy="lazyOnload" dangerouslySetInnerHTML={{
4
- __html: `
5
- (function(){
6
- var w = window;
7
- if(w.ChannelIO){
8
- return w.console.error("ChannelIO script included twice.");
9
- }
10
- var ch = function(){ ch.c(arguments); };
11
- ch.q = [];
12
- ch.c = function(args){ ch.q.push(args); };
13
- w.ChannelIO = ch;
14
- function l(){
15
- if(w.ChannelIOInitialized){ return; }
16
- w.ChannelIOInitialized = true;
17
- var s = document.createElement("script");
18
- s.type = "text/javascript";
19
- s.async = true;
20
- s.src = "https://cdn.channel.io/plugin/ch-plugin-web.js";
21
- var x = document.getElementsByTagName("script")[0];
22
- if(x.parentNode){
23
- x.parentNode.insertBefore(s, x);
24
- }
25
- }
26
- if(document.readyState === "complete"){
27
- l();
28
- } else {
29
- w.addEventListener("DOMContentLoaded", l);
30
- w.addEventListener("load", l);
31
- }
32
- })();
33
- ChannelIO('boot', {
34
- "pluginKey": "17c9f84d-f891-486e-ac58-332dfc3dbe64"
35
- });
36
- `
37
- }}/>);
38
- };
39
- export default TestChannelTalk;
@@ -1,47 +0,0 @@
1
- import Script from 'next/script';
2
-
3
- const TestChannelTalk = () => {
4
- return (
5
- <Script
6
- id="channel-io"
7
- strategy="lazyOnload"
8
- dangerouslySetInnerHTML={{
9
- __html: `
10
- (function(){
11
- var w = window;
12
- if(w.ChannelIO){
13
- return w.console.error("ChannelIO script included twice.");
14
- }
15
- var ch = function(){ ch.c(arguments); };
16
- ch.q = [];
17
- ch.c = function(args){ ch.q.push(args); };
18
- w.ChannelIO = ch;
19
- function l(){
20
- if(w.ChannelIOInitialized){ return; }
21
- w.ChannelIOInitialized = true;
22
- var s = document.createElement("script");
23
- s.type = "text/javascript";
24
- s.async = true;
25
- s.src = "https://cdn.channel.io/plugin/ch-plugin-web.js";
26
- var x = document.getElementsByTagName("script")[0];
27
- if(x.parentNode){
28
- x.parentNode.insertBefore(s, x);
29
- }
30
- }
31
- if(document.readyState === "complete"){
32
- l();
33
- } else {
34
- w.addEventListener("DOMContentLoaded", l);
35
- w.addEventListener("load", l);
36
- }
37
- })();
38
- ChannelIO('boot', {
39
- "pluginKey": "17c9f84d-f891-486e-ac58-332dfc3dbe64"
40
- });
41
- `
42
- }}
43
- />
44
- );
45
- };
46
-
47
- export default TestChannelTalk;