@apps-in-toss/web-framework 1.13.0 → 1.14.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/dist/cli/index.js CHANGED
@@ -52274,7 +52274,7 @@ var require_package = __commonJS({
52274
52274
  module.exports = {
52275
52275
  name: "@apps-in-toss/web-framework",
52276
52276
  type: "module",
52277
- version: "1.13.0",
52277
+ version: "1.14.0",
52278
52278
  description: "Web Framework for Apps In Toss",
52279
52279
  scripts: {
52280
52280
  typecheck: "tsc --noEmit",
@@ -153365,10 +153365,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
153365
153365
  "use strict";
153366
153366
 
153367
153367
  var _defineProperty = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/defineProperty");
153368
- var _classCallCheck = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck");
153369
- var _createClass = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass");
153370
- var _toConsumableArray = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/toConsumableArray");
153371
- var _objectWithoutProperties = _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/objectWithoutProperties");
153368
+ var _toConsumableArray = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/toConsumableArray");
153369
+ var _objectWithoutProperties = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/objectWithoutProperties");
153370
+ var _classCallCheck = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/classCallCheck");
153371
+ var _createClass = _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/createClass");
153372
153372
  var _asyncToGenerator = _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/asyncToGenerator");
153373
153373
  var _slicedToArray = _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/slicedToArray");
153374
153374
  var _objectDestructuringEmpty = _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/objectDestructuringEmpty");
@@ -153441,9 +153441,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
153441
153441
  env: function env() {
153442
153442
  return _env;
153443
153443
  },
153444
+ homeEvent: function homeEvent() {
153445
+ return _homeEvent;
153446
+ },
153444
153447
  loadFullScreenAd: function loadFullScreenAd() {
153445
153448
  return _loadFullScreenAd;
153446
153449
  },
153450
+ safeAreaInsetsChange: function safeAreaInsetsChange() {
153451
+ return _safeAreaInsetsChange;
153452
+ },
153447
153453
  showFullScreenAd: function showFullScreenAd() {
153448
153454
  return _showFullScreenAd;
153449
153455
  },
@@ -154159,6 +154165,71 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154159
154165
  };
154160
154166
  }(), [brandDisplayName, openConfirm]);
154161
154167
  }
154168
+ var EventEmitter = function () {
154169
+ function EventEmitter() {
154170
+ _classCallCheck(this, EventEmitter);
154171
+ this.listeners = {};
154172
+ }
154173
+ return _createClass(EventEmitter, [{
154174
+ key: "subscribe",
154175
+ value: function subscribe(event, listener) {
154176
+ var _this = this;
154177
+ if (!this.listeners[event]) {
154178
+ this.listeners[event] = [];
154179
+ }
154180
+ this.listeners[event].push(listener);
154181
+ return function () {
154182
+ var _this$listeners$event, _this$listeners$event2;
154183
+ _this.listeners[event] = (_this$listeners$event = (_this$listeners$event2 = _this.listeners[event]) == null ? void 0 : _this$listeners$event2.filter(function (l) {
154184
+ return l !== listener;
154185
+ })) != null ? _this$listeners$event : [];
154186
+ };
154187
+ }
154188
+ }, {
154189
+ key: "hasSubscriptions",
154190
+ value: function hasSubscriptions(event) {
154191
+ return this.listeners[event] != null && this.listeners[event].length > 0;
154192
+ }
154193
+ }, {
154194
+ key: "clearSubscriptions",
154195
+ value: function clearSubscriptions(event) {
154196
+ this.listeners[event] = [];
154197
+ }
154198
+ }, {
154199
+ key: "emit",
154200
+ value: function emit(event) {
154201
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
154202
+ args[_key - 1] = arguments[_key];
154203
+ }
154204
+ if (!this.listeners[event]) {
154205
+ return;
154206
+ }
154207
+ this.listeners[event].forEach(function (listener) {
154208
+ return listener.apply(void 0, args);
154209
+ });
154210
+ }
154211
+ }]);
154212
+ }();
154213
+ var eventEmitter = new EventEmitter();
154214
+ function createEvent(event) {
154215
+ return {
154216
+ name: event,
154217
+ subscribe: function subscribe(listener) {
154218
+ return eventEmitter.subscribe(event, listener);
154219
+ },
154220
+ hasSubscriptions: function hasSubscriptions() {
154221
+ return eventEmitter.hasSubscriptions(event);
154222
+ },
154223
+ clearSubscriptions: function clearSubscriptions() {
154224
+ return eventEmitter.clearSubscriptions(event);
154225
+ },
154226
+ emit: function emit(data) {
154227
+ return eventEmitter.emit(event, data);
154228
+ }
154229
+ };
154230
+ }
154231
+ var _homeEvent = createEvent("homeEvent");
154232
+ var _safeAreaInsetsChange = createEvent("safeAreaInsetsChange");
154162
154233
  var import_native_modules7 = _$$_REQUIRE(_dependencyMap[9], "@apps-in-toss/native-modules");
154163
154234
  var import_react_native13 = _$$_REQUIRE(_dependencyMap[10], "@granite-js/react-native");
154164
154235
  var NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
@@ -154270,7 +154341,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154270
154341
  },
154271
154342
  handleHomeButtonClick: function handleHomeButtonClick() {
154272
154343
  logging.homeButtonClick();
154273
- navigation.navigate("/");
154344
+ if (_homeEvent.hasSubscriptions()) {
154345
+ _homeEvent.emit({});
154346
+ } else {
154347
+ navigation.navigate("/");
154348
+ }
154274
154349
  },
154275
154350
  handleCloseButtonClick: function handleCloseButtonClick() {
154276
154351
  logging.closeButtonClick();
@@ -155588,58 +155663,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155588
155663
  }
155589
155664
  var import_react_native_safe_area_context3 = _$$_REQUIRE(_dependencyMap[17], "@granite-js/native/react-native-safe-area-context");
155590
155665
  var import_react23 = _$$_REQUIRE(_dependencyMap[13], "react");
155591
- var EventEmitter = function () {
155592
- function EventEmitter() {
155593
- _classCallCheck(this, EventEmitter);
155594
- this.listeners = {};
155595
- }
155596
- return _createClass(EventEmitter, [{
155597
- key: "on",
155598
- value: function on(event, listener) {
155599
- if (!this.listeners[event]) {
155600
- this.listeners[event] = [];
155601
- }
155602
- this.listeners[event].push(listener);
155603
- }
155604
- }, {
155605
- key: "emit",
155606
- value: function emit(event) {
155607
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
155608
- args[_key - 1] = arguments[_key];
155609
- }
155610
- if (!this.listeners[event]) {
155611
- return;
155612
- }
155613
- this.listeners[event].forEach(function (listener) {
155614
- return listener.apply(void 0, args);
155615
- });
155616
- }
155617
- }, {
155618
- key: "off",
155619
- value: function off(event, listener) {
155620
- if (!this.listeners[event]) {
155621
- return;
155622
- }
155623
- this.listeners[event] = this.listeners[event].filter(function (l) {
155624
- return l !== listener;
155625
- });
155626
- }
155627
- }]);
155628
- }();
155629
- function useSafeAreaInsetsEmitter() {
155666
+ function useSafeAreaInsetsEvent() {
155630
155667
  var insets = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
155631
- var emitter = (0, import_react23.useMemo)(function () {
155632
- return new EventEmitter();
155633
- }, []);
155634
155668
  (0, import_react23.useEffect)(function () {
155635
- emitter.emit("safeAreaInsetsChange", insets);
155669
+ _safeAreaInsetsChange.emit(insets);
155670
+ }, [insets]);
155671
+ (0, import_react23.useEffect)(function () {
155636
155672
  return function () {
155637
- emitter.off("safeAreaInsetsChange", function (listener) {
155638
- return listener(insets);
155639
- });
155673
+ return _safeAreaInsetsChange.clearSubscriptions();
155640
155674
  };
155641
- }, [emitter, insets]);
155642
- return emitter;
155675
+ }, []);
155676
+ return _safeAreaInsetsChange;
155643
155677
  }
155644
155678
  var import_react_native33 = _$$_REQUIRE(_dependencyMap[10], "@granite-js/react-native");
155645
155679
  var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[11], "@toss/tds-react-native");
@@ -155770,10 +155804,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155770
155804
  var handleWebHome = (0, import_react25.useCallback)(function () {
155771
155805
  var _webViewRef$current2;
155772
155806
  logging.homeButtonClick();
155773
- if (hasWebBackEvent) {
155774
- for (var handler of webBackHandlersRef) {
155775
- handler();
155776
- }
155807
+ if (_homeEvent.hasSubscriptions()) {
155808
+ _homeEvent.emit({});
155777
155809
  return;
155778
155810
  }
155779
155811
  (_webViewRef$current2 = webViewRef.current) == null ? void 0 : _webViewRef$current2.injectJavaScript(`
@@ -156149,7 +156181,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156149
156181
  var insets = (0, import_react_native_safe_area_context4.useSafeAreaInsets)();
156150
156182
  var global2 = getAppsInTossGlobals();
156151
156183
  var navigationBarContext = useNavigationBarContext();
156152
- var safeAreaInsetsEmitter = useSafeAreaInsetsEmitter();
156184
+ var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
156153
156185
  var _ref82 = (0, import_react28.useState)(props.allowsBackForwardNavigationGestures),
156154
156186
  _ref83 = _slicedToArray(_ref82, 2),
156155
156187
  allowsBackForwardNavigationGestures = _ref83[0],
@@ -156172,27 +156204,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156172
156204
  webBackHandler.removeEventListener(onEvent);
156173
156205
  };
156174
156206
  },
156175
- updateLocationEvent: function updateLocationEvent(_ref86) {
156176
- var onEvent = _ref86.onEvent,
156177
- onError = _ref86.onError,
156178
- options = _ref86.options;
156207
+ homeEvent: function homeEvent(_ref86) {
156208
+ var onEvent = _ref86.onEvent;
156209
+ return _homeEvent.subscribe(onEvent);
156210
+ },
156211
+ updateLocationEvent: function updateLocationEvent(_ref87) {
156212
+ var onEvent = _ref87.onEvent,
156213
+ onError = _ref87.onError,
156214
+ options = _ref87.options;
156179
156215
  return import_native_modules24.appsInTossEvent.addEventListener("updateLocationEvent", {
156180
156216
  onEvent: onEvent,
156181
156217
  onError: onError,
156182
156218
  options: options
156183
156219
  });
156184
156220
  },
156185
- safeAreaInsetsChange: function safeAreaInsetsChange(_ref87) {
156186
- var onEvent = _ref87.onEvent;
156187
- safeAreaInsetsEmitter.on("safeAreaInsetsChange", onEvent);
156188
- return function () {
156189
- safeAreaInsetsEmitter.off("safeAreaInsetsChange", onEvent);
156190
- };
156221
+ safeAreaInsetsChange: function safeAreaInsetsChange(_ref88) {
156222
+ var onEvent = _ref88.onEvent;
156223
+ return safeAreaInsetsEvent.subscribe(onEvent);
156191
156224
  },
156192
- appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref88) {
156193
- var onEvent = _ref88.onEvent,
156194
- onError = _ref88.onError,
156195
- options = _ref88.options;
156225
+ appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref89) {
156226
+ var onEvent = _ref89.onEvent,
156227
+ onError = _ref89.onError,
156228
+ options = _ref89.options;
156196
156229
  return import_native_modules24.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
156197
156230
  onEvent: onEvent,
156198
156231
  onError: onError,
@@ -156217,10 +156250,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156217
156250
  right: insets.right
156218
156251
  };
156219
156252
  }
156220
- }, Object.fromEntries(Object.entries(global2).map(function (_ref89) {
156221
- var _ref90 = _slicedToArray(_ref89, 2),
156222
- key = _ref90[0],
156223
- value = _ref90[1];
156253
+ }, Object.fromEntries(Object.entries(global2).map(function (_ref90) {
156254
+ var _ref91 = _slicedToArray(_ref90, 2),
156255
+ key = _ref91[0],
156256
+ value = _ref91[1];
156224
156257
  return [key, function () {
156225
156258
  return value;
156226
156259
  }];
@@ -156596,9 +156629,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156596
156629
  };
156597
156630
  }
156598
156631
  if (response.resultType !== "SUCCESS") {
156599
- var _ref98, _response$error$reaso, _response$error, _mappedError$code;
156632
+ var _ref99, _response$error$reaso, _response$error, _mappedError$code;
156600
156633
  var mappedError = API_RESULT_ERROR_MAP[response.resultType];
156601
- var errorMessage = (_ref98 = (_response$error$reaso = (_response$error = response.error) == null ? void 0 : _response$error.reason) != null ? _response$error$reaso : mappedError == null ? void 0 : mappedError.message) != null ? _ref98 : ERROR_MESSAGES[ERROR_CODES.INTERNAL_ERROR];
156634
+ var errorMessage = (_ref99 = (_response$error$reaso = (_response$error = response.error) == null ? void 0 : _response$error.reason) != null ? _response$error$reaso : mappedError == null ? void 0 : mappedError.message) != null ? _ref99 : ERROR_MESSAGES[ERROR_CODES.INTERNAL_ERROR];
156602
156635
  var errorCode = (_mappedError$code = mappedError == null ? void 0 : mappedError.code) != null ? _mappedError$code : ERROR_CODES.INTERNAL_ERROR;
156603
156636
  return {
156604
156637
  type: "error",
@@ -156730,7 +156763,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156730
156763
  key: "track",
156731
156764
  value: function () {
156732
156765
  var _track = _asyncToGenerator(function* (eventType) {
156733
- var _this = this;
156766
+ var _this2 = this;
156734
156767
  if (!this.eventTypes.has(eventType)) {
156735
156768
  return;
156736
156769
  }
@@ -156749,7 +156782,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156749
156782
  data: this.eventPayload
156750
156783
  };
156751
156784
  yield Promise.allSettled(this.eventTrackingUrls.map(function (url) {
156752
- return _this.sendTrackingRequest(url, payload);
156785
+ return _this2.sendTrackingRequest(url, payload);
156753
156786
  }));
156754
156787
  if (!this.repeatableEvents.has(eventType) && this.requestId && this.creativeId) {
156755
156788
  globalEventDeduplicator.markTracked(this.requestId, this.creativeId, eventType);
@@ -156789,20 +156822,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156789
156822
  var import_react_native42 = _$$_REQUIRE(_dependencyMap[12], "react-native");
156790
156823
  var import_jsx_runtime20 = _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime");
156791
156824
  var ARROW_PATH = "m7.5 20.4c-.5-.5-.5-1.2 0-1.7l6.7-6.7-6.8-6.7c-.5-.5-.5-1.2 0-1.7s1.2-.5 1.7 0l7.5 7.5c.5.5.5 1.2 0 1.7l-7.5 7.5c-.2.3-.5.4-.8.4s-.6-.1-.8-.3z";
156792
- function FeedBannerAdView(_ref91) {
156793
- var brandName = _ref91.brandName,
156794
- brandLogoUri = _ref91.brandLogoUri,
156795
- title = _ref91.title,
156796
- subtitle = _ref91.subtitle,
156797
- mainImageUri = _ref91.mainImageUri,
156798
- ctaText = _ref91.ctaText,
156799
- ctaTextColor = _ref91.ctaTextColor,
156800
- ctaBackgroundColor = _ref91.ctaBackgroundColor,
156801
- adClearanceText = _ref91.adClearanceText,
156802
- colors = _ref91.colors,
156803
- isAdBadgeEnabled = _ref91.isAdBadgeEnabled,
156804
- paddingStyle = _ref91.paddingStyle,
156805
- _onPress2 = _ref91.onPress;
156825
+ function FeedBannerAdView(_ref92) {
156826
+ var brandName = _ref92.brandName,
156827
+ brandLogoUri = _ref92.brandLogoUri,
156828
+ title = _ref92.title,
156829
+ subtitle = _ref92.subtitle,
156830
+ mainImageUri = _ref92.mainImageUri,
156831
+ ctaText = _ref92.ctaText,
156832
+ ctaTextColor = _ref92.ctaTextColor,
156833
+ ctaBackgroundColor = _ref92.ctaBackgroundColor,
156834
+ adClearanceText = _ref92.adClearanceText,
156835
+ colors = _ref92.colors,
156836
+ isAdBadgeEnabled = _ref92.isAdBadgeEnabled,
156837
+ paddingStyle = _ref92.paddingStyle,
156838
+ _onPress2 = _ref92.onPress;
156806
156839
  var scale = (0, import_react29.useRef)(new import_react_native42.Animated.Value(1)).current;
156807
156840
  var animateScale = function animateScale(toValue) {
156808
156841
  import_react_native42.Animated.timing(scale, {
@@ -157090,15 +157123,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157090
157123
  var import_react_native43 = _$$_REQUIRE(_dependencyMap[12], "react-native");
157091
157124
  var import_jsx_runtime21 = _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime");
157092
157125
  var SQUIRCLE_PATH = "M0 17.352C0 3.564 3.564 0 17.352 0H18.648C32.436 0 36 3.564 36 17.352V18.648C36 32.436 32.436 36 18.648 36H17.352C3.564 36 0 32.436 0 18.648V17.352Z";
157093
- function ListBannerAdView(_ref92) {
157094
- var title = _ref92.title,
157095
- subtitle = _ref92.subtitle,
157096
- adClearanceText = _ref92.adClearanceText,
157097
- adClearanceFontSize = _ref92.adClearanceFontSize,
157098
- imageUri = _ref92.imageUri,
157099
- paddingStyle = _ref92.paddingStyle,
157100
- colors = _ref92.colors,
157101
- _onPress3 = _ref92.onPress;
157126
+ function ListBannerAdView(_ref93) {
157127
+ var title = _ref93.title,
157128
+ subtitle = _ref93.subtitle,
157129
+ adClearanceText = _ref93.adClearanceText,
157130
+ adClearanceFontSize = _ref93.adClearanceFontSize,
157131
+ imageUri = _ref93.imageUri,
157132
+ paddingStyle = _ref93.paddingStyle,
157133
+ colors = _ref93.colors,
157134
+ _onPress3 = _ref93.onPress;
157102
157135
  var scale = (0, import_react30.useRef)(new import_react_native43.Animated.Value(1)).current;
157103
157136
  var clipIdRef = (0, import_react30.useRef)(`clip-${Math.random().toString(36).slice(2)}`);
157104
157137
  var animateScale = function animateScale(toValue) {
@@ -157410,7 +157443,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157410
157443
  return false;
157411
157444
  }
157412
157445
  function _InlineAd(props) {
157413
- var _ad$requestId3, _ad$creative$id2, _ad$creative2, _listCreative$subTitl, _ref97, _listCreative$adClear;
157446
+ var _ad$requestId3, _ad$creative$id2, _ad$creative2, _listCreative$subTitl, _ref98, _listCreative$adClear;
157414
157447
  var adGroupId = props.adGroupId,
157415
157448
  theme = props.theme,
157416
157449
  tone = props.tone,
@@ -157423,14 +157456,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157423
157456
  onAdFailedToRender = props.onAdFailedToRender,
157424
157457
  onNoFill = props.onNoFill;
157425
157458
  var slotIdRef = (0, import_react31.useRef)(createSlotId());
157426
- var _ref93 = (0, import_react31.useState)(null),
157427
- _ref94 = _slicedToArray(_ref93, 2),
157428
- ad = _ref94[0],
157429
- setAd = _ref94[1];
157430
- var _ref95 = (0, import_react31.useState)(true),
157431
- _ref96 = _slicedToArray(_ref95, 2),
157432
- isAdBadgeEnabled = _ref96[0],
157433
- setIsAdBadgeEnabled = _ref96[1];
157459
+ var _ref94 = (0, import_react31.useState)(null),
157460
+ _ref95 = _slicedToArray(_ref94, 2),
157461
+ ad = _ref95[0],
157462
+ setAd = _ref95[1];
157463
+ var _ref96 = (0, import_react31.useState)(true),
157464
+ _ref97 = _slicedToArray(_ref96, 2),
157465
+ isAdBadgeEnabled = _ref97[0],
157466
+ setIsAdBadgeEnabled = _ref97[1];
157434
157467
  var eventTrackerRef = (0, import_react31.useRef)(null);
157435
157468
  var eventPayloadRef = (0, import_react31.useRef)(null);
157436
157469
  var hasRenderedRef = (0, import_react31.useRef)(false);
@@ -157570,7 +157603,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157570
157603
  var listCreative = isListBanner ? ad.creative : null;
157571
157604
  var feedCreative = isFeedBanner ? ad.creative : null;
157572
157605
  var subtitleText = listCreative && isAdBadgeEnabled ? `${listCreative.subTitle} \u2022 AD` : (_listCreative$subTitl = listCreative == null ? void 0 : listCreative.subTitle) != null ? _listCreative$subTitl : "";
157573
- var adClearanceText = (_ref97 = (_listCreative$adClear = listCreative == null ? void 0 : listCreative.adClearanceText) != null ? _listCreative$adClear : feedCreative == null ? void 0 : feedCreative.adClearanceText) != null ? _ref97 : void 0;
157606
+ var adClearanceText = (_ref98 = (_listCreative$adClear = listCreative == null ? void 0 : listCreative.adClearanceText) != null ? _listCreative$adClear : feedCreative == null ? void 0 : feedCreative.adClearanceText) != null ? _ref98 : void 0;
157574
157607
  var adClearanceFontSize = adClearanceText && adClearanceText.length >= 60 ? 6 : 8;
157575
157608
  var imageUri = listCreative != null && listCreative.imageUrl && isSafeUrl(listCreative.imageUrl) ? listCreative.imageUrl : null;
157576
157609
  var brandLogoUri = feedCreative != null && feedCreative.brandLogoUrl && isSafeUrl(feedCreative.brandLogoUrl) ? feedCreative.brandLogoUrl : null;
@@ -157717,7 +157750,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157717
157750
  OverlayProvider: OverlayProvider,
157718
157751
  WebView: _WebView,
157719
157752
  env: _env,
157753
+ homeEvent: _homeEvent,
157720
157754
  loadFullScreenAd: _loadFullScreenAd,
157755
+ safeAreaInsetsChange: _safeAreaInsetsChange,
157721
157756
  showFullScreenAd: _showFullScreenAd,
157722
157757
  useCreateUserAgent: _useCreateUserAgent,
157723
157758
  useGeolocation: _useGeolocation,
@@ -157725,7 +157760,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157725
157760
  useTopNavigation: _useTopNavigation,
157726
157761
  useWaitForReturnNavigator: _useWaitForReturnNavigator
157727
157762
  }, _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/analytics"), _$$_REQUIRE(_dependencyMap[9], "@apps-in-toss/native-modules"), _$$_REQUIRE(_dependencyMap[23], "@apps-in-toss/types")));
157728
- },1256,[93,24,25,32,207,16,61,1257,1258,1259,2,1446,18,6,9,2468,2568,534,2569,2607,2614,2630,2477,1260,644],"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.cjs");
157763
+ },1256,[93,32,207,24,25,16,61,1257,1258,1259,2,1446,18,6,9,2468,2568,534,2569,2607,2614,2630,2477,1260,644],"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.cjs");
157729
157764
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
157730
157765
  function _objectDestructuringEmpty(obj) {
157731
157766
  if (obj == null) throw new TypeError("Cannot destructure undefined");