@sellwild/react-native-sdk 1.1.0 → 1.3.0
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/android/build/.transforms/055edc6990905b0d0e7b2a38f451ea8f/results.bin +1 -0
- package/android/build/.transforms/055edc6990905b0d0e7b2a38f451ea8f/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/9adcec60aa21840716976bd52bc3bd4a/results.bin +1 -0
- package/android/build/.transforms/9adcec60aa21840716976bd52bc3bd4a/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/f6cdcb296ca6520e70a1cebbdcbe808e/results.bin +1 -0
- package/android/build/.transforms/f6cdcb296ca6520e70a1cebbdcbe808e/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/generated/source/buildConfig/debug/com/sellwild/rnsdk/BuildConfig.java +10 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +7 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/java_res/debug/out/META-INF/sellwild-react-native-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/classes/com/sellwild/rnsdk/BuildConfig.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +2 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +7 -0
- package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +7 -0
- package/android/build/intermediates/navigation_json/debug/navigation.json +1 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +1 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +16 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/sellwild-react-native-sdk_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/sellwild/rnsdk/SellwildBannerViewManager$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/sellwild/rnsdk/SellwildBannerViewManager$PendingProps.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/sellwild/rnsdk/SellwildBannerViewManager$createViewInstance$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/sellwild/rnsdk/SellwildBannerViewManager.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/sellwild/rnsdk/SellwildSdkPackage.class +0 -0
- package/android/build.gradle +68 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/com/sellwild/rnsdk/SellwildBannerViewManager.kt +200 -0
- package/android/src/main/java/com/sellwild/rnsdk/SellwildSdkPackage.kt +18 -0
- package/ios/SellwildBannerViewManager.m +24 -0
- package/ios/SellwildBannerViewManager.swift +168 -0
- package/ios/SellwildSDK-RN.podspec +31 -0
- package/package.json +2 -2
- package/src/SellwildBanner.tsx +105 -39
- package/src/htmlBuilder.ts +41 -18
- package/src/index.ts +3 -0
package/src/htmlBuilder.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SellwildConfig, AdSize } from '@sellwild/sdk-core'
|
|
2
|
+
import { resolveListingsUrl } from '@sellwild/sdk-core'
|
|
2
3
|
|
|
3
4
|
const WIDGET_CDN = 'https://widget.sellwild.com'
|
|
4
5
|
|
|
@@ -109,7 +110,7 @@ function configToAttributes(config: SellwildConfig): string {
|
|
|
109
110
|
|
|
110
111
|
// Identity / listings
|
|
111
112
|
add('partner-code', config.partnerCode)
|
|
112
|
-
add('listings', config
|
|
113
|
+
add('listings', resolveListingsUrl(config))
|
|
113
114
|
|
|
114
115
|
// Disable remote customization fetch — the widget defaults to fetching
|
|
115
116
|
// https://widget.sellwild.com/{partnerCode}/{slug}.json which (a) doesn't
|
|
@@ -182,23 +183,10 @@ function configToAttributes(config: SellwildConfig): string {
|
|
|
182
183
|
add('consent-management', config.consentManagement)
|
|
183
184
|
add('schain-sid', config.schainSid)
|
|
184
185
|
add('s2s-config', config.s2sConfig)
|
|
185
|
-
add('iab-cats', config.iabCats
|
|
186
|
-
|
|
187
|
-
//
|
|
188
|
-
|
|
189
|
-
add('openx', config.openx)
|
|
190
|
-
add('pubmatic', config.pubmatic)
|
|
191
|
-
add('appnexus', config.appnexus)
|
|
192
|
-
add('rubicon', config.rubicon)
|
|
193
|
-
add('apstag', config.apstag)
|
|
194
|
-
|
|
195
|
-
// Waterfall
|
|
196
|
-
add('pub-ventures', config.pubVentures)
|
|
197
|
-
add('saambaa', config.saambaa)
|
|
198
|
-
add('opsco', config.opsco)
|
|
199
|
-
add('bidstream', config.bidstream)
|
|
200
|
-
|
|
201
|
-
// Third-party
|
|
186
|
+
add('iab-cats', Array.isArray(config.iabCats) ? config.iabCats.join(',') : config.iabCats)
|
|
187
|
+
|
|
188
|
+
// Third-party (typed fields with defaults — kept emitted explicitly for
|
|
189
|
+
// backwards compatibility with static buildConfig() callers)
|
|
202
190
|
add('boltive', config.boltive || undefined)
|
|
203
191
|
add('boltive-client-id', config.boltiveClientId)
|
|
204
192
|
add('lotame', config.lotame || undefined)
|
|
@@ -215,6 +203,41 @@ function configToAttributes(config: SellwildConfig): string {
|
|
|
215
203
|
add('debug', config.debug || undefined)
|
|
216
204
|
add('membership-type', config.membershipType)
|
|
217
205
|
|
|
206
|
+
// ─── Remote passthrough ────────────────────────────────────────────────────
|
|
207
|
+
// Forward the raw CDN payload verbatim. The widget's attribute parser is
|
|
208
|
+
// case-insensitive (kebab-case / camelCase / CONSTANT_CASE all work) and
|
|
209
|
+
// accepts unknown keys, so every CMS-defined bidder, waterfall partner, or
|
|
210
|
+
// ad-network setting flows through to the WebView without an SDK release.
|
|
211
|
+
//
|
|
212
|
+
// Skip keys that we already emitted via typed fields above to avoid
|
|
213
|
+
// double-emission. Identity fields (CODE, SLUG, NAME, LISTINGS) are handled
|
|
214
|
+
// by the typed block; everything else (bidders, third-party, etc.) lands
|
|
215
|
+
// here as the canonical CONSTANT_CASE attribute.
|
|
216
|
+
const emittedFromTyped = new Set<string>([
|
|
217
|
+
'CODE', 'SLUG', 'NAME', 'LISTINGS',
|
|
218
|
+
'TITLE', 'LINK_TEXT', 'BUY_NOW_TEXT', 'TITLE_COLOR', 'LINK_COLOR',
|
|
219
|
+
'FONT_FAMILY', 'FONT_URL', 'FONT_COLOR', 'PRICE_COLOR', 'PRICE_FONT_COLOR',
|
|
220
|
+
'MARGIN_BOTTOM', 'CARD_WIDTH', 'OVERLAY_TITLE', 'COLORS', 'CSS',
|
|
221
|
+
'WATERMARK', 'WATERMARK_TITLE',
|
|
222
|
+
'BANNER_ZID', 'BOTTOM_BANNER_ZID', 'MOBILE_BANNER_ZID', 'MOBILE_ZID',
|
|
223
|
+
'DISPLAY_ZID', 'HIDE_BANNER_TOP', 'HIDE_BANNER_BOTTOM', 'GAM',
|
|
224
|
+
'DISABLE_GPT', 'AD_UNITS', 'SAFE_FRAME', 'AD_DISABLE_DISPLAY',
|
|
225
|
+
'AD_REFRESH_MAX', 'AD_REFRESH_MAX_MOBILE', 'AD_REFRESH_INTERVAL',
|
|
226
|
+
'MAX_FAILED_AUCTIONS', 'PREBID_DEFER', 'PREBID_SRC',
|
|
227
|
+
'AD_GEO_BLOCK', 'AD_GEO_BLOCK_REFRESH',
|
|
228
|
+
'GPP_ENABLED', 'TCF_VERSION', 'CONSENT_MANAGEMENT', 'SCHAIN_SID',
|
|
229
|
+
'S2S_CONFIG', 'IAB_CATS',
|
|
230
|
+
'ENABLE_INTERSTITIAL', 'ENABLE_FULLSCREEN_VIDEO',
|
|
231
|
+
'INTERSTITIALS_PER_SESSION', 'VIDEO_TAKEOVERS_PER_SESSION',
|
|
232
|
+
'BOLTIVE', 'BOLTIVE_CLIENT_ID', 'LOTAME', 'GROWTHCODE', 'BH_TAG',
|
|
233
|
+
])
|
|
234
|
+
if (config.remote) {
|
|
235
|
+
for (const [key, value] of Object.entries(config.remote)) {
|
|
236
|
+
if (emittedFromTyped.has(key)) continue
|
|
237
|
+
add(key, value)
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
218
241
|
return parts.join('\n ')
|
|
219
242
|
}
|
|
220
243
|
|
package/src/index.ts
CHANGED
|
@@ -22,9 +22,12 @@ export type {
|
|
|
22
22
|
} from '@sellwild/sdk-core'
|
|
23
23
|
|
|
24
24
|
export {
|
|
25
|
+
configure,
|
|
25
26
|
buildConfig,
|
|
26
27
|
buildConfigWithRemote,
|
|
27
28
|
currencyToSymbol,
|
|
28
29
|
fetchRemoteConfig,
|
|
29
30
|
clearRemoteConfigCache,
|
|
30
31
|
} from '@sellwild/sdk-core'
|
|
32
|
+
|
|
33
|
+
export type { ConfigureOptions } from '@sellwild/sdk-core'
|