@adview/react 1.0.13 → 1.0.15

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 (107) hide show
  1. package/dist/AdViewUnit/AdViewUnit.cjs +273 -243
  2. package/dist/AdViewUnit/AdViewUnit.cjs.map +1 -1
  3. package/dist/AdViewUnit/AdViewUnit.client.cjs +234 -198
  4. package/dist/AdViewUnit/AdViewUnit.client.cjs.map +1 -1
  5. package/dist/AdViewUnit/AdViewUnit.client.d.cts +2 -2
  6. package/dist/AdViewUnit/AdViewUnit.client.d.ts +2 -2
  7. package/dist/AdViewUnit/AdViewUnit.client.js +226 -190
  8. package/dist/AdViewUnit/AdViewUnit.client.js.map +1 -1
  9. package/dist/AdViewUnit/AdViewUnit.d.cts +1 -1
  10. package/dist/AdViewUnit/AdViewUnit.d.ts +1 -1
  11. package/dist/AdViewUnit/AdViewUnit.js +261 -231
  12. package/dist/AdViewUnit/AdViewUnit.js.map +1 -1
  13. package/dist/AdViewUnit/AdViewUnit.server.cjs +229 -157
  14. package/dist/AdViewUnit/AdViewUnit.server.cjs.map +1 -1
  15. package/dist/AdViewUnit/AdViewUnit.server.d.cts +3 -3
  16. package/dist/AdViewUnit/AdViewUnit.server.d.ts +3 -3
  17. package/dist/AdViewUnit/AdViewUnit.server.js +227 -155
  18. package/dist/AdViewUnit/AdViewUnit.server.js.map +1 -1
  19. package/dist/AdViewUnit/{AdViewUnitBanner.cjs → AdViewUnitBannerTemplate.cjs} +36 -14
  20. package/dist/AdViewUnit/AdViewUnitBannerTemplate.cjs.map +1 -0
  21. package/dist/AdViewUnit/AdViewUnitBannerTemplate.d.cts +17 -0
  22. package/dist/AdViewUnit/AdViewUnitBannerTemplate.d.ts +17 -0
  23. package/dist/AdViewUnit/AdViewUnitBannerTemplate.js +51 -0
  24. package/dist/AdViewUnit/AdViewUnitBannerTemplate.js.map +1 -0
  25. package/dist/AdViewUnit/AdViewUnitDefaultTemplate.cjs +66 -0
  26. package/dist/AdViewUnit/AdViewUnitDefaultTemplate.cjs.map +1 -0
  27. package/dist/AdViewUnit/AdViewUnitDefaultTemplate.d.cts +16 -0
  28. package/dist/AdViewUnit/AdViewUnitDefaultTemplate.d.ts +16 -0
  29. package/dist/AdViewUnit/AdViewUnitDefaultTemplate.js +35 -0
  30. package/dist/AdViewUnit/AdViewUnitDefaultTemplate.js.map +1 -0
  31. package/dist/AdViewUnit/{AdViewUnitNative.cjs → AdViewUnitNativeTemplate.cjs} +31 -13
  32. package/dist/AdViewUnit/AdViewUnitNativeTemplate.cjs.map +1 -0
  33. package/dist/AdViewUnit/AdViewUnitNativeTemplate.d.cts +16 -0
  34. package/dist/AdViewUnit/AdViewUnitNativeTemplate.d.ts +16 -0
  35. package/dist/AdViewUnit/{AdViewUnitNative.js → AdViewUnitNativeTemplate.js} +28 -10
  36. package/dist/AdViewUnit/AdViewUnitNativeTemplate.js.map +1 -0
  37. package/dist/AdViewUnit/{AdViewUnitProxy.cjs → AdViewUnitProxyTemplate.cjs} +33 -13
  38. package/dist/AdViewUnit/AdViewUnitProxyTemplate.cjs.map +1 -0
  39. package/dist/AdViewUnit/AdViewUnitProxyTemplate.d.cts +17 -0
  40. package/dist/AdViewUnit/AdViewUnitProxyTemplate.d.ts +17 -0
  41. package/dist/AdViewUnit/AdViewUnitProxyTemplate.js +52 -0
  42. package/dist/AdViewUnit/AdViewUnitProxyTemplate.js.map +1 -0
  43. package/dist/AdViewUnit/AdViewUnitTemplate.cjs +132 -0
  44. package/dist/AdViewUnit/AdViewUnitTemplate.cjs.map +1 -1
  45. package/dist/AdViewUnit/AdViewUnitTemplate.d.cts +14 -1
  46. package/dist/AdViewUnit/AdViewUnitTemplate.d.ts +14 -1
  47. package/dist/AdViewUnit/AdViewUnitTemplate.js +95 -0
  48. package/dist/AdViewUnit/AdViewUnitTemplate.js.map +1 -1
  49. package/dist/AdViewUnit/useAdViewController.cjs +5 -3
  50. package/dist/AdViewUnit/useAdViewController.cjs.map +1 -1
  51. package/dist/AdViewUnit/useAdViewController.d.cts +2 -2
  52. package/dist/AdViewUnit/useAdViewController.d.ts +2 -2
  53. package/dist/AdViewUnit/useAdViewController.js +5 -3
  54. package/dist/AdViewUnit/useAdViewController.js.map +1 -1
  55. package/dist/AdViewUnit/utils.cjs +33 -0
  56. package/dist/AdViewUnit/utils.cjs.map +1 -0
  57. package/dist/AdViewUnit/utils.d.cts +7 -0
  58. package/dist/AdViewUnit/utils.d.ts +7 -0
  59. package/dist/AdViewUnit/utils.js +8 -0
  60. package/dist/AdViewUnit/utils.js.map +1 -0
  61. package/dist/index.cjs +305 -204
  62. package/dist/index.cjs.map +1 -1
  63. package/dist/index.d.cts +8 -7
  64. package/dist/index.d.ts +8 -7
  65. package/dist/index.js +286 -193
  66. package/dist/index.js.map +1 -1
  67. package/dist/server.cjs +302 -167
  68. package/dist/server.cjs.map +1 -1
  69. package/dist/server.d.cts +7 -6
  70. package/dist/server.d.ts +7 -6
  71. package/dist/server.js +288 -160
  72. package/dist/server.js.map +1 -1
  73. package/dist/{types-BaV07oMT.d.cts → types-DHjNgnRW.d.cts} +35 -43
  74. package/dist/{types-BaV07oMT.d.ts → types-DHjNgnRW.d.ts} +35 -43
  75. package/package.json +1 -1
  76. package/dist/AdViewUnit/AdViewUnitBanner.cjs.map +0 -1
  77. package/dist/AdViewUnit/AdViewUnitBanner.d.cts +0 -10
  78. package/dist/AdViewUnit/AdViewUnitBanner.d.ts +0 -10
  79. package/dist/AdViewUnit/AdViewUnitBanner.js +0 -29
  80. package/dist/AdViewUnit/AdViewUnitBanner.js.map +0 -1
  81. package/dist/AdViewUnit/AdViewUnitNative.cjs.map +0 -1
  82. package/dist/AdViewUnit/AdViewUnitNative.d.cts +0 -10
  83. package/dist/AdViewUnit/AdViewUnitNative.d.ts +0 -10
  84. package/dist/AdViewUnit/AdViewUnitNative.js.map +0 -1
  85. package/dist/AdViewUnit/AdViewUnitProxy.cjs.map +0 -1
  86. package/dist/AdViewUnit/AdViewUnitProxy.d.cts +0 -10
  87. package/dist/AdViewUnit/AdViewUnitProxy.d.ts +0 -10
  88. package/dist/AdViewUnit/AdViewUnitProxy.js +0 -32
  89. package/dist/AdViewUnit/AdViewUnitProxy.js.map +0 -1
  90. package/dist/AdViewUnit/AdViewUnitTypeSwitch.cjs +0 -203
  91. package/dist/AdViewUnit/AdViewUnitTypeSwitch.cjs.map +0 -1
  92. package/dist/AdViewUnit/AdViewUnitTypeSwitch.d.cts +0 -12
  93. package/dist/AdViewUnit/AdViewUnitTypeSwitch.d.ts +0 -12
  94. package/dist/AdViewUnit/AdViewUnitTypeSwitch.js +0 -170
  95. package/dist/AdViewUnit/AdViewUnitTypeSwitch.js.map +0 -1
  96. package/dist/AdViewUnit/AdViewUnitWrapper.client.cjs +0 -250
  97. package/dist/AdViewUnit/AdViewUnitWrapper.client.cjs.map +0 -1
  98. package/dist/AdViewUnit/AdViewUnitWrapper.client.d.cts +0 -11
  99. package/dist/AdViewUnit/AdViewUnitWrapper.client.d.ts +0 -11
  100. package/dist/AdViewUnit/AdViewUnitWrapper.client.js +0 -220
  101. package/dist/AdViewUnit/AdViewUnitWrapper.client.js.map +0 -1
  102. package/dist/AdViewUnit/AdViewUnitWrapper.server.cjs +0 -232
  103. package/dist/AdViewUnit/AdViewUnitWrapper.server.cjs.map +0 -1
  104. package/dist/AdViewUnit/AdViewUnitWrapper.server.d.cts +0 -11
  105. package/dist/AdViewUnit/AdViewUnitWrapper.server.d.ts +0 -11
  106. package/dist/AdViewUnit/AdViewUnitWrapper.server.js +0 -201
  107. package/dist/AdViewUnit/AdViewUnitWrapper.server.js.map +0 -1
@@ -1,203 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/AdViewUnit/AdViewUnitTypeSwitch.tsx
31
- var AdViewUnitTypeSwitch_exports = {};
32
- __export(AdViewUnitTypeSwitch_exports, {
33
- default: () => AdViewUnitTypeSwitch_default
34
- });
35
- module.exports = __toCommonJS(AdViewUnitTypeSwitch_exports);
36
-
37
- // src/AdViewUnit/AdViewUnitNative.tsx
38
- var import_utils = require("@adview/core/utils");
39
- var import_react = __toESM(require("react"), 1);
40
- function AdViewUnitNative({
41
- assets,
42
- fields,
43
- url,
44
- classNames
45
- }) {
46
- const asset = (0, import_utils.getAssetByName)("main", assets);
47
- if (!url) {
48
- return null;
49
- }
50
- return /* @__PURE__ */ import_react.default.createElement("div", { className: classNames?.container }, /* @__PURE__ */ import_react.default.createElement(
51
- "a",
52
- {
53
- target: "_blank",
54
- rel: "noopener noreferrer",
55
- href: (0, import_utils.getPrepareURL)(url),
56
- className: classNames?.imageLink
57
- },
58
- asset && /* @__PURE__ */ import_react.default.createElement(
59
- "img",
60
- {
61
- alt: fields?.title,
62
- title: fields?.title,
63
- src: asset.path,
64
- srcSet: asset.thumbs ? (0, import_utils.getSrcSetCSSThumbs)(asset.thumbs) : void 0,
65
- className: classNames?.image,
66
- style: { objectFit: "cover", width: "100%", height: "100%" }
67
- }
68
- )
69
- ), /* @__PURE__ */ import_react.default.createElement("div", { className: classNames?.label }, fields?.title && /* @__PURE__ */ import_react.default.createElement(
70
- "a",
71
- {
72
- target: "_blank",
73
- rel: "noopener noreferrer",
74
- href: (0, import_utils.getPrepareURL)(url),
75
- "data-class": "titleLink",
76
- className: classNames?.titleLink
77
- },
78
- fields.title
79
- ), fields?.description && /* @__PURE__ */ import_react.default.createElement(
80
- "a",
81
- {
82
- target: "_blank",
83
- rel: "noopener noreferrer",
84
- href: (0, import_utils.getPrepareURL)(url),
85
- "data-class": "descriptionLink",
86
- className: classNames?.descriptionLink
87
- },
88
- fields.description
89
- ), fields?.brandname && /* @__PURE__ */ import_react.default.createElement(
90
- "a",
91
- {
92
- target: "_blank",
93
- rel: "noopener noreferrer",
94
- href: (0, import_utils.getPrepareURL)(url),
95
- "data-class": "brandNameLink",
96
- className: classNames?.brandNameLink
97
- },
98
- fields.brandname
99
- ), fields?.phone && /* @__PURE__ */ import_react.default.createElement(
100
- "a",
101
- {
102
- target: "_blank",
103
- rel: "noopener noreferrer",
104
- href: (0, import_utils.getPrepareURL)(url),
105
- "data-class": "phoneLink",
106
- className: classNames?.phoneLink
107
- },
108
- fields.phone
109
- ), fields?.url && /* @__PURE__ */ import_react.default.createElement(
110
- "a",
111
- {
112
- target: "_blank",
113
- rel: "noopener noreferrer",
114
- href: (0, import_utils.getPrepareURL)(url),
115
- "data-class": "urlLink",
116
- className: classNames?.urlLink
117
- },
118
- fields?.url
119
- )));
120
- }
121
- var AdViewUnitNative_default = AdViewUnitNative;
122
-
123
- // src/AdViewUnit/AdViewUnitProxy.tsx
124
- var import_react2 = __toESM(require("react"), 1);
125
- function AdViewUnitProxy({
126
- // assets,
127
- fields,
128
- url
129
- }) {
130
- const iframeSrc = fields?.url || url;
131
- if (!iframeSrc) {
132
- return null;
133
- }
134
- return /* @__PURE__ */ import_react2.default.createElement(
135
- "iframe",
136
- {
137
- width: "100%",
138
- height: "100%",
139
- frameBorder: "0",
140
- marginWidth: 0,
141
- marginHeight: 0,
142
- allowTransparency: true,
143
- scrolling: "no",
144
- allowFullScreen: true,
145
- style: { width: "100%", height: "100%" },
146
- src: iframeSrc
147
- }
148
- );
149
- }
150
- var AdViewUnitProxy_default = AdViewUnitProxy;
151
-
152
- // src/AdViewUnit/AdViewUnitBanner.tsx
153
- var import_utils2 = require("@adview/core/utils");
154
- var import_react3 = __toESM(require("react"), 1);
155
- function AdViewUnitBanner({ assets, url }) {
156
- const asset = (0, import_utils2.getAssetByName)("main", assets);
157
- return /* @__PURE__ */ import_react3.default.createElement("center", null, /* @__PURE__ */ import_react3.default.createElement(
158
- "a",
159
- {
160
- target: "_blank",
161
- rel: "noopener noreferrer",
162
- href: (0, import_utils2.getPrepareURL)(url),
163
- className: "banner",
164
- style: { fontSize: 0 }
165
- },
166
- asset && /* @__PURE__ */ import_react3.default.createElement(
167
- "img",
168
- {
169
- alt: "main",
170
- src: asset.path,
171
- srcSet: asset.thumbs ? (0, import_utils2.getSrcSetCSSThumbs)(asset.thumbs) : ""
172
- }
173
- )
174
- ));
175
- }
176
- var AdViewUnitBanner_default = AdViewUnitBanner;
177
-
178
- // src/AdViewUnit/AdViewUnitTypeSwitch.tsx
179
- var import_react4 = __toESM(require("react"), 1);
180
- function AdViewUnitTypeSwitch({
181
- data,
182
- classNames,
183
- onDefault
184
- }) {
185
- switch (data?.type) {
186
- case "native":
187
- return /* @__PURE__ */ import_react4.default.createElement(AdViewUnitNative_default, { ...data, classNames: classNames?.native });
188
- case "proxy":
189
- return /* @__PURE__ */ import_react4.default.createElement(AdViewUnitProxy_default, { ...data, classNames: classNames?.proxy });
190
- case "banner":
191
- return /* @__PURE__ */ import_react4.default.createElement(AdViewUnitBanner_default, { ...data, classNames: classNames?.banner });
192
- default:
193
- if (import_react4.default.isValidElement(onDefault)) {
194
- return import_react4.default.cloneElement(onDefault);
195
- }
196
- if (typeof onDefault === "function") {
197
- return onDefault();
198
- }
199
- return null;
200
- }
201
- }
202
- var AdViewUnitTypeSwitch_default = AdViewUnitTypeSwitch;
203
- //# sourceMappingURL=AdViewUnitTypeSwitch.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/AdViewUnit/AdViewUnitTypeSwitch.tsx","../../src/AdViewUnit/AdViewUnitNative.tsx","../../src/AdViewUnit/AdViewUnitProxy.tsx","../../src/AdViewUnit/AdViewUnitBanner.tsx"],"sourcesContent":["import {\n AdViewDataClient,\n AdViewStyleTokens,\n AdViewUnitDefault,\n} from '../types';\nimport AdViewUnitNative from './AdViewUnitNative';\nimport AdViewUnitProxy from './AdViewUnitProxy';\nimport AdViewUnitBanner from './AdViewUnitBanner';\nimport React from 'react';\n\ntype AdViewUnitDefaultProps = {\n data?: AdViewDataClient;\n classNames?: AdViewStyleTokens;\n onDefault?: AdViewUnitDefault;\n};\n\nfunction AdViewUnitTypeSwitch({\n data,\n classNames,\n onDefault,\n}: AdViewUnitDefaultProps) {\n switch (data?.type) {\n case 'native':\n return <AdViewUnitNative {...data} classNames={classNames?.native} />;\n case 'proxy':\n return <AdViewUnitProxy {...data} classNames={classNames?.proxy} />;\n case 'banner':\n return <AdViewUnitBanner {...data} classNames={classNames?.banner} />;\n default:\n if (React.isValidElement(onDefault)) {\n return React.cloneElement(onDefault);\n }\n\n if (typeof onDefault === 'function') {\n return onDefault();\n }\n\n return null;\n }\n}\n\nexport default AdViewUnitTypeSwitch;\n","import { getAssetByName, getPrepareURL, getSrcSetCSSThumbs } from '@adview/core/utils';\nimport React from 'react';\nimport { AdViewDataClient, AdViewStyleTokensNative } from '../types';\n\ntype AdViewUnitNativeProps = AdViewDataClient & {\n classNames?: AdViewStyleTokensNative;\n};\n\nfunction AdViewUnitNative({\n assets,\n fields,\n url,\n classNames,\n}: AdViewUnitNativeProps) {\n const asset = getAssetByName('main', assets);\n\n if (!url) {\n return null;\n }\n\n return (\n <div className={classNames?.container}>\n <a\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n href={getPrepareURL(url)}\n className={classNames?.imageLink}\n >\n {asset && (\n <img\n alt={fields?.title}\n title={fields?.title}\n src={asset.path}\n srcSet={asset.thumbs ? getSrcSetCSSThumbs(asset.thumbs) : undefined}\n className={classNames?.image}\n style={{ objectFit: 'cover', width: '100%', height: '100%' }}\n />\n )}\n </a>\n <div className={classNames?.label}>\n {fields?.title && (\n <a\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n href={getPrepareURL(url)}\n data-class=\"titleLink\"\n className={classNames?.titleLink}\n >\n {fields.title}\n </a>\n )}\n {fields?.description && (\n <a\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n href={getPrepareURL(url)}\n data-class=\"descriptionLink\"\n className={classNames?.descriptionLink}\n >\n {fields.description}\n </a>\n )}\n {fields?.brandname && (\n <a\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n href={getPrepareURL(url)}\n data-class=\"brandNameLink\"\n className={classNames?.brandNameLink}\n >\n {fields.brandname}\n </a>\n )}\n {fields?.phone && (\n <a\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n href={getPrepareURL(url)}\n data-class=\"phoneLink\"\n className={classNames?.phoneLink}\n >\n {fields.phone}\n </a>\n )}\n {fields?.url && (\n <a\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n href={getPrepareURL(url)}\n data-class=\"urlLink\"\n className={classNames?.urlLink}\n >\n {fields?.url}\n </a>\n )}\n </div>\n </div>\n );\n}\n\nexport default AdViewUnitNative;\n","import React from 'react';\nimport { AdViewDataClient, AdViewStyleTokensNative } from '../types';\n\ntype AdViewUnitProxyProps = AdViewDataClient & {\n classNames?: AdViewStyleTokensNative;\n};\n\nfunction AdViewUnitProxy({\n // assets,\n fields,\n url,\n}: AdViewUnitProxyProps) {\n const iframeSrc = fields?.url || url;\n\n if (!iframeSrc) {\n return null;\n }\n\n return (\n <iframe\n width=\"100%\"\n height=\"100%\"\n frameBorder=\"0\"\n marginWidth={0}\n marginHeight={0}\n allowTransparency={true}\n scrolling=\"no\"\n allowFullScreen={true}\n style={{ width: '100%', height: '100%' }}\n src={iframeSrc}\n ></iframe>\n );\n}\n\nexport default AdViewUnitProxy;\n","import { getAssetByName, getPrepareURL, getSrcSetCSSThumbs } from '@adview/core/utils';\nimport React from 'react';\nimport { AdViewDataClient, AdViewStyleTokensNative } from '../types';\n\ntype AdViewUnitBannerProps = AdViewDataClient & {\n classNames?: AdViewStyleTokensNative;\n};\n\nfunction AdViewUnitBanner({ assets, url }: AdViewUnitBannerProps) {\n const asset = getAssetByName('main', assets);\n\n return (\n <center>\n <a\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n href={getPrepareURL(url)}\n className=\"banner\"\n style={{ fontSize: 0 }}\n >\n {asset && (\n <img\n alt=\"main\"\n src={asset.path}\n srcSet={asset.thumbs ? getSrcSetCSSThumbs(asset.thumbs) : ''}\n />\n )}\n </a>\n </center>\n );\n}\n\nexport default AdViewUnitBanner;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAkE;AAClE,mBAAkB;AAOlB,SAAS,iBAAiB;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA0B;AACxB,QAAM,YAAQ,6BAAe,QAAQ,MAAM;AAE3C,MAAI,CAAC,KAAK;AACR,WAAO;AAAA,EACT;AAEA,SACE,6BAAAA,QAAA,cAAC,SAAI,WAAW,YAAY,aAC1B,6BAAAA,QAAA;AAAA,IAAC;AAAA;AAAA,MACC,QAAO;AAAA,MACP,KAAI;AAAA,MACJ,UAAM,4BAAc,GAAG;AAAA,MACvB,WAAW,YAAY;AAAA;AAAA,IAEtB,SACC,6BAAAA,QAAA;AAAA,MAAC;AAAA;AAAA,QACC,KAAK,QAAQ;AAAA,QACb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AAQ;AAAA,IACrE,KAAK;AACH,aAAO,8BAAAA,QAAA,cAAC,2BAAiB,GAAG,MAAM,YAAY,YAAY,OAAO;AAAA,IACnE,KAAK;AACH,aAAO,8BAAAA,QAAA,cAAC,4BAAkB,GAAG,MAAM,YAAY,YAAY,QAAQ;AAAA,IACrE;AACE,UAAI,cAAAA,QAAM,eAAe,SAAS,GAAG;AACnC,eAAO,cAAAA,QAAM,aAAa,SAAS;AAAA,MACrC;AAEA,UAAI,OAAO,cAAc,YAAY;AACnC,eAAO,UAAU;AAAA,MACnB;AAEA,aAAO;AAAA,EACX;AACF;AAEA,IAAO,+BAAQ;","names":["React","import_react","React","import_utils","import_react","React","import_react","React"]}
@@ -1,12 +0,0 @@
1
- import { c as AdViewDataClient, e as AdViewStyleTokens, f as AdViewUnitDefault } from '../types-BaV07oMT.cjs';
2
- import React from 'react';
3
- import '@adview/core/typings';
4
-
5
- type AdViewUnitDefaultProps = {
6
- data?: AdViewDataClient;
7
- classNames?: AdViewStyleTokens;
8
- onDefault?: AdViewUnitDefault;
9
- };
10
- declare function AdViewUnitTypeSwitch({ data, classNames, onDefault, }: AdViewUnitDefaultProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
11
-
12
- export { AdViewUnitTypeSwitch as default };
@@ -1,12 +0,0 @@
1
- import { c as AdViewDataClient, e as AdViewStyleTokens, f as AdViewUnitDefault } from '../types-BaV07oMT.js';
2
- import React from 'react';
3
- import '@adview/core/typings';
4
-
5
- type AdViewUnitDefaultProps = {
6
- data?: AdViewDataClient;
7
- classNames?: AdViewStyleTokens;
8
- onDefault?: AdViewUnitDefault;
9
- };
10
- declare function AdViewUnitTypeSwitch({ data, classNames, onDefault, }: AdViewUnitDefaultProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
11
-
12
- export { AdViewUnitTypeSwitch as default };
@@ -1,170 +0,0 @@
1
- // src/AdViewUnit/AdViewUnitNative.tsx
2
- import { getAssetByName, getPrepareURL, getSrcSetCSSThumbs } from "@adview/core/utils";
3
- import React from "react";
4
- function AdViewUnitNative({
5
- assets,
6
- fields,
7
- url,
8
- classNames
9
- }) {
10
- const asset = getAssetByName("main", assets);
11
- if (!url) {
12
- return null;
13
- }
14
- return /* @__PURE__ */ React.createElement("div", { className: classNames?.container }, /* @__PURE__ */ React.createElement(
15
- "a",
16
- {
17
- target: "_blank",
18
- rel: "noopener noreferrer",
19
- href: getPrepareURL(url),
20
- className: classNames?.imageLink
21
- },
22
- asset && /* @__PURE__ */ React.createElement(
23
- "img",
24
- {
25
- alt: fields?.title,
26
- title: fields?.title,
27
- src: asset.path,
28
- srcSet: asset.thumbs ? getSrcSetCSSThumbs(asset.thumbs) : void 0,
29
- className: classNames?.image,
30
- style: { objectFit: "cover", width: "100%", height: "100%" }
31
- }
32
- )
33
- ), /* @__PURE__ */ React.createElement("div", { className: classNames?.label }, fields?.title && /* @__PURE__ */ React.createElement(
34
- "a",
35
- {
36
- target: "_blank",
37
- rel: "noopener noreferrer",
38
- href: getPrepareURL(url),
39
- "data-class": "titleLink",
40
- className: classNames?.titleLink
41
- },
42
- fields.title
43
- ), fields?.description && /* @__PURE__ */ React.createElement(
44
- "a",
45
- {
46
- target: "_blank",
47
- rel: "noopener noreferrer",
48
- href: getPrepareURL(url),
49
- "data-class": "descriptionLink",
50
- className: classNames?.descriptionLink
51
- },
52
- fields.description
53
- ), fields?.brandname && /* @__PURE__ */ React.createElement(
54
- "a",
55
- {
56
- target: "_blank",
57
- rel: "noopener noreferrer",
58
- href: getPrepareURL(url),
59
- "data-class": "brandNameLink",
60
- className: classNames?.brandNameLink
61
- },
62
- fields.brandname
63
- ), fields?.phone && /* @__PURE__ */ React.createElement(
64
- "a",
65
- {
66
- target: "_blank",
67
- rel: "noopener noreferrer",
68
- href: getPrepareURL(url),
69
- "data-class": "phoneLink",
70
- className: classNames?.phoneLink
71
- },
72
- fields.phone
73
- ), fields?.url && /* @__PURE__ */ React.createElement(
74
- "a",
75
- {
76
- target: "_blank",
77
- rel: "noopener noreferrer",
78
- href: getPrepareURL(url),
79
- "data-class": "urlLink",
80
- className: classNames?.urlLink
81
- },
82
- fields?.url
83
- )));
84
- }
85
- var AdViewUnitNative_default = AdViewUnitNative;
86
-
87
- // src/AdViewUnit/AdViewUnitProxy.tsx
88
- import React2 from "react";
89
- function AdViewUnitProxy({
90
- // assets,
91
- fields,
92
- url
93
- }) {
94
- const iframeSrc = fields?.url || url;
95
- if (!iframeSrc) {
96
- return null;
97
- }
98
- return /* @__PURE__ */ React2.createElement(
99
- "iframe",
100
- {
101
- width: "100%",
102
- height: "100%",
103
- frameBorder: "0",
104
- marginWidth: 0,
105
- marginHeight: 0,
106
- allowTransparency: true,
107
- scrolling: "no",
108
- allowFullScreen: true,
109
- style: { width: "100%", height: "100%" },
110
- src: iframeSrc
111
- }
112
- );
113
- }
114
- var AdViewUnitProxy_default = AdViewUnitProxy;
115
-
116
- // src/AdViewUnit/AdViewUnitBanner.tsx
117
- import { getAssetByName as getAssetByName2, getPrepareURL as getPrepareURL2, getSrcSetCSSThumbs as getSrcSetCSSThumbs2 } from "@adview/core/utils";
118
- import React3 from "react";
119
- function AdViewUnitBanner({ assets, url }) {
120
- const asset = getAssetByName2("main", assets);
121
- return /* @__PURE__ */ React3.createElement("center", null, /* @__PURE__ */ React3.createElement(
122
- "a",
123
- {
124
- target: "_blank",
125
- rel: "noopener noreferrer",
126
- href: getPrepareURL2(url),
127
- className: "banner",
128
- style: { fontSize: 0 }
129
- },
130
- asset && /* @__PURE__ */ React3.createElement(
131
- "img",
132
- {
133
- alt: "main",
134
- src: asset.path,
135
- srcSet: asset.thumbs ? getSrcSetCSSThumbs2(asset.thumbs) : ""
136
- }
137
- )
138
- ));
139
- }
140
- var AdViewUnitBanner_default = AdViewUnitBanner;
141
-
142
- // src/AdViewUnit/AdViewUnitTypeSwitch.tsx
143
- import React4 from "react";
144
- function AdViewUnitTypeSwitch({
145
- data,
146
- classNames,
147
- onDefault
148
- }) {
149
- switch (data?.type) {
150
- case "native":
151
- return /* @__PURE__ */ React4.createElement(AdViewUnitNative_default, { ...data, classNames: classNames?.native });
152
- case "proxy":
153
- return /* @__PURE__ */ React4.createElement(AdViewUnitProxy_default, { ...data, classNames: classNames?.proxy });
154
- case "banner":
155
- return /* @__PURE__ */ React4.createElement(AdViewUnitBanner_default, { ...data, classNames: classNames?.banner });
156
- default:
157
- if (React4.isValidElement(onDefault)) {
158
- return React4.cloneElement(onDefault);
159
- }
160
- if (typeof onDefault === "function") {
161
- return onDefault();
162
- }
163
- return null;
164
- }
165
- }
166
- var AdViewUnitTypeSwitch_default = AdViewUnitTypeSwitch;
167
- export {
168
- AdViewUnitTypeSwitch_default as default
169
- };
170
- //# sourceMappingURL=AdViewUnitTypeSwitch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/AdViewUnit/AdViewUnitNative.tsx","../../src/AdViewUnit/AdViewUnitProxy.tsx","../../src/AdViewUnit/AdViewUnitBanner.tsx","../../src/AdViewUnit/AdViewUnitTypeSwitch.tsx"],"sourcesContent":["import { getAssetByName, getPrepareURL, getSrcSetCSSThumbs } from '@adview/core/utils';\nimport React from 'react';\nimport { AdViewDataClient, AdViewStyleTokensNative } from '../types';\n\ntype AdViewUnitNativeProps = AdViewDataClient & {\n classNames?: AdViewStyleTokensNative;\n};\n\nfunction AdViewUnitNative({\n assets,\n fields,\n url,\n classNames,\n}: AdViewUnitNativeProps) {\n const asset = getAssetByName('main', assets);\n\n if (!url) {\n return null;\n }\n\n return (\n <div className={classNames?.container}>\n <a\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n href={getPrepareURL(url)}\n className={classNames?.imageLink}\n >\n {asset && (\n <img\n alt={fields?.title}\n title={fields?.title}\n src={asset.path}\n srcSet={asset.thumbs ? getSrcSetCSSThumbs(asset.thumbs) : undefined}\n className={classNames?.image}\n style={{ objectFit: 'cover', width: '100%', height: '100%' }}\n />\n )}\n </a>\n <div className={classNames?.label}>\n {fields?.title && (\n <a\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n href={getPrepareURL(url)}\n data-class=\"titleLink\"\n className={classNames?.titleLink}\n >\n {fields.title}\n </a>\n )}\n {fields?.description && (\n <a\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n href={getPrepareURL(url)}\n data-class=\"descriptionLink\"\n className={classNames?.descriptionLink}\n >\n {fields.description}\n </a>\n )}\n {fields?.brandname && (\n <a\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n href={getPrepareURL(url)}\n data-class=\"brandNameLink\"\n className={classNames?.brandNameLink}\n >\n {fields.brandname}\n </a>\n )}\n {fields?.phone && (\n <a\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n href={getPrepareURL(url)}\n data-class=\"phoneLink\"\n className={classNames?.phoneLink}\n >\n {fields.phone}\n </a>\n )}\n {fields?.url && (\n <a\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n href={getPrepareURL(url)}\n data-class=\"urlLink\"\n className={classNames?.urlLink}\n >\n {fields?.url}\n </a>\n )}\n </div>\n </div>\n );\n}\n\nexport default AdViewUnitNative;\n","import React from 'react';\nimport { AdViewDataClient, AdViewStyleTokensNative } from '../types';\n\ntype AdViewUnitProxyProps = AdViewDataClient & {\n classNames?: AdViewStyleTokensNative;\n};\n\nfunction AdViewUnitProxy({\n // assets,\n fields,\n url,\n}: AdViewUnitProxyProps) {\n const iframeSrc = fields?.url || url;\n\n if (!iframeSrc) {\n return null;\n }\n\n return (\n <iframe\n width=\"100%\"\n height=\"100%\"\n frameBorder=\"0\"\n marginWidth={0}\n marginHeight={0}\n allowTransparency={true}\n scrolling=\"no\"\n allowFullScreen={true}\n style={{ width: '100%', height: '100%' }}\n src={iframeSrc}\n ></iframe>\n );\n}\n\nexport default AdViewUnitProxy;\n","import { getAssetByName, getPrepareURL, getSrcSetCSSThumbs } from '@adview/core/utils';\nimport React from 'react';\nimport { AdViewDataClient, AdViewStyleTokensNative } from '../types';\n\ntype AdViewUnitBannerProps = AdViewDataClient & {\n classNames?: AdViewStyleTokensNative;\n};\n\nfunction AdViewUnitBanner({ assets, url }: AdViewUnitBannerProps) {\n const asset = getAssetByName('main', assets);\n\n return (\n <center>\n <a\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n href={getPrepareURL(url)}\n className=\"banner\"\n style={{ fontSize: 0 }}\n >\n {asset && (\n <img\n alt=\"main\"\n src={asset.path}\n srcSet={asset.thumbs ? getSrcSetCSSThumbs(asset.thumbs) : ''}\n />\n )}\n </a>\n </center>\n );\n}\n\nexport default AdViewUnitBanner;\n","import {\n AdViewDataClient,\n AdViewStyleTokens,\n AdViewUnitDefault,\n} from '../types';\nimport AdViewUnitNative from './AdViewUnitNative';\nimport AdViewUnitProxy from './AdViewUnitProxy';\nimport AdViewUnitBanner from './AdViewUnitBanner';\nimport React from 'react';\n\ntype AdViewUnitDefaultProps = {\n data?: AdViewDataClient;\n classNames?: AdViewStyleTokens;\n onDefault?: AdViewUnitDefault;\n};\n\nfunction AdViewUnitTypeSwitch({\n data,\n classNames,\n onDefault,\n}: AdViewUnitDefaultProps) {\n switch (data?.type) {\n case 'native':\n return <AdViewUnitNative {...data} classNames={classNames?.native} />;\n case 'proxy':\n return <AdViewUnitProxy {...data} classNames={classNames?.proxy} />;\n case 'banner':\n return <AdViewUnitBanner {...data} classNames={classNames?.banner} />;\n default:\n if (React.isValidElement(onDefault)) {\n return React.cloneElement(onDefault);\n }\n\n if (typeof onDefault === 'function') {\n return onDefault();\n }\n\n return null;\n }\n}\n\nexport default AdViewUnitTypeSwitch;\n"],"mappings":";AAAA,SAAS,gBAAgB,eAAe,0BAA0B;AAClE,OAAO,WAAW;AAOlB,SAAS,iBA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