@kontextso/sdk-react-native 0.1.0 → 0.1.1-rc.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/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10 -8
- package/dist/index.mjs +10 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3133,7 +3133,6 @@ var InlineAd = ({ code, messageId, wrapper }) => {
|
|
|
3133
3133
|
}
|
|
3134
3134
|
const styles = getStyles(context)?.inlineAd;
|
|
3135
3135
|
const content = /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react_native4.View, { style: styles?.container, children: [
|
|
3136
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react_native4.View, { style: styles?.adBadgeContainer, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react_native4.Text, { style: styles?.adBadgeText, children: "Ad" }) }),
|
|
3137
3136
|
ad.imageUrl && ad.mediaPlacement === "top" && !ad.isStreaming && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
3138
3137
|
import_react_native4.TouchableOpacity,
|
|
3139
3138
|
{
|
|
@@ -3157,13 +3156,16 @@ var InlineAd = ({ code, messageId, wrapper }) => {
|
|
|
3157
3156
|
clickUrl: ad.url
|
|
3158
3157
|
}
|
|
3159
3158
|
),
|
|
3160
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3159
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react_native4.Text, { style: styles?.contentContainer, children: [
|
|
3160
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react_native4.View, { style: styles?.adBadgeContainer, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react_native4.View, { style: styles?.adBadge, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react_native4.Text, { style: styles?.adBadgeText, children: "Ad" }) }) }),
|
|
3161
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
3162
|
+
MarkdownText,
|
|
3163
|
+
{
|
|
3164
|
+
onLinkClick: () => context?.onAdClickInternal(ad),
|
|
3165
|
+
content: adContent
|
|
3166
|
+
}
|
|
3167
|
+
)
|
|
3168
|
+
] }),
|
|
3167
3169
|
ad.imageUrl && ad.mediaPlacement === "bottom" && !ad.isStreaming && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
3168
3170
|
import_react_native4.TouchableOpacity,
|
|
3169
3171
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -3108,7 +3108,6 @@ var InlineAd = ({ code, messageId, wrapper }) => {
|
|
|
3108
3108
|
}
|
|
3109
3109
|
const styles = getStyles(context)?.inlineAd;
|
|
3110
3110
|
const content = /* @__PURE__ */ jsxs2(View3, { style: styles?.container, children: [
|
|
3111
|
-
/* @__PURE__ */ jsx5(View3, { style: styles?.adBadgeContainer, children: /* @__PURE__ */ jsx5(Text3, { style: styles?.adBadgeText, children: "Ad" }) }),
|
|
3112
3111
|
ad.imageUrl && ad.mediaPlacement === "top" && !ad.isStreaming && /* @__PURE__ */ jsx5(
|
|
3113
3112
|
TouchableOpacity2,
|
|
3114
3113
|
{
|
|
@@ -3132,13 +3131,16 @@ var InlineAd = ({ code, messageId, wrapper }) => {
|
|
|
3132
3131
|
clickUrl: ad.url
|
|
3133
3132
|
}
|
|
3134
3133
|
),
|
|
3135
|
-
/* @__PURE__ */
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3134
|
+
/* @__PURE__ */ jsxs2(Text3, { style: styles?.contentContainer, children: [
|
|
3135
|
+
/* @__PURE__ */ jsx5(View3, { style: styles?.adBadgeContainer, children: /* @__PURE__ */ jsx5(View3, { style: styles?.adBadge, children: /* @__PURE__ */ jsx5(Text3, { style: styles?.adBadgeText, children: "Ad" }) }) }),
|
|
3136
|
+
/* @__PURE__ */ jsx5(
|
|
3137
|
+
MarkdownText,
|
|
3138
|
+
{
|
|
3139
|
+
onLinkClick: () => context?.onAdClickInternal(ad),
|
|
3140
|
+
content: adContent
|
|
3141
|
+
}
|
|
3142
|
+
)
|
|
3143
|
+
] }),
|
|
3142
3144
|
ad.imageUrl && ad.mediaPlacement === "bottom" && !ad.isStreaming && /* @__PURE__ */ jsx5(
|
|
3143
3145
|
TouchableOpacity2,
|
|
3144
3146
|
{
|