@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 CHANGED
@@ -18,6 +18,7 @@ type InlineAdStyles = {
18
18
  imageContainer: StyleProp<ViewStyle>;
19
19
  contentContainer: StyleProp<TextStyle>;
20
20
  image: StyleProp<ImageStyle>;
21
+ adBadge: StyleProp<ViewStyle>;
21
22
  };
22
23
  type MarkdownStyles = {
23
24
  link: StyleProp<TextStyle>;
package/dist/index.d.ts CHANGED
@@ -18,6 +18,7 @@ type InlineAdStyles = {
18
18
  imageContainer: StyleProp<ViewStyle>;
19
19
  contentContainer: StyleProp<TextStyle>;
20
20
  image: StyleProp<ImageStyle>;
21
+ adBadge: StyleProp<ViewStyle>;
21
22
  };
22
23
  type MarkdownStyles = {
23
24
  link: StyleProp<TextStyle>;
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.jsx)(import_react_native4.Text, { style: styles?.contentContainer, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
3161
- MarkdownText,
3162
- {
3163
- onLinkClick: () => context?.onAdClickInternal(ad),
3164
- content: adContent
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__ */ jsx5(Text3, { style: styles?.contentContainer, children: /* @__PURE__ */ jsx5(
3136
- MarkdownText,
3137
- {
3138
- onLinkClick: () => context?.onAdClickInternal(ad),
3139
- content: adContent
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
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontextso/sdk-react-native",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-rc.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",