@apps-in-toss/web-framework 0.0.11 → 0.0.13

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
@@ -86516,14 +86516,13 @@ init_esm_shims2();
86516
86516
  var __typia_transform__isFormatUuid = __toESM2(require_isFormatUuid(), 1);
86517
86517
  var __typia_transform__validateReport = __toESM2(require_validateReport(), 1);
86518
86518
  var validateAppManifest = /* @__PURE__ */ (() => {
86519
- const _io0 = (input) => "string" === typeof input.appName && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem))) && ("object" === typeof input.oauth && null !== input.oauth && _io6(input.oauth)) && ("object" === typeof input._metadata && null !== input._metadata && _io7(input._metadata));
86519
+ const _io0 = (input) => "string" === typeof input.appName && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem))) && ("object" === typeof input._metadata && null !== input._metadata && _io6(input._metadata));
86520
86520
  const _io1 = (input) => "clipboard" === input.name && ("read" === input.access || "write" === input.access);
86521
86521
  const _io2 = (input) => "geolocation" === input.name && "access" === input.access;
86522
86522
  const _io3 = (input) => "contacts" === input.name && ("read" === input.access || "write" === input.access);
86523
86523
  const _io4 = (input) => "photos" === input.name && ("read" === input.access || "write" === input.access);
86524
86524
  const _io5 = (input) => "camera" === input.name && "access" === input.access;
86525
- const _io6 = (input) => Array.isArray(input.scopes) && input.scopes.every((elem) => "user_name" === elem || "user_phone" === elem || "user_birthday" === elem || "user_ci" === elem || "user_gender" === elem || "user_nationality" === elem || "user_email" === elem);
86526
- const _io7 = (input) => Array.isArray(input.bundleFiles) && input.bundleFiles.every((elem) => "string" === typeof elem) && ("string" === typeof input.deploymentId && __typia_transform__isFormatUuid._isFormatUuid(input.deploymentId));
86525
+ const _io6 = (input) => Array.isArray(input.bundleFiles) && input.bundleFiles.every((elem) => "string" === typeof elem) && ("string" === typeof input.deploymentId && __typia_transform__isFormatUuid._isFormatUuid(input.deploymentId));
86527
86526
  const _iu0 = (input) => (() => {
86528
86527
  if ("camera" === input.name)
86529
86528
  return _io5(input);
@@ -86546,33 +86545,25 @@ var validateAppManifest = /* @__PURE__ */ (() => {
86546
86545
  path: _path + ".permissions",
86547
86546
  expected: "Array<Permission>",
86548
86547
  value: input.permissions
86549
- })) && input.permissions.map((elem, _index4) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
86550
- path: _path + ".permissions[" + _index4 + "]",
86548
+ })) && input.permissions.map((elem, _index3) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
86549
+ path: _path + ".permissions[" + _index3 + "]",
86551
86550
  expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
86552
86551
  value: elem
86553
- })) && _vu0(elem, _path + ".permissions[" + _index4 + "]", _exceptionable) || _report(_exceptionable, {
86554
- path: _path + ".permissions[" + _index4 + "]",
86552
+ })) && _vu0(elem, _path + ".permissions[" + _index3 + "]", _exceptionable) || _report(_exceptionable, {
86553
+ path: _path + ".permissions[" + _index3 + "]",
86555
86554
  expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
86556
86555
  value: elem
86557
86556
  })).every((flag) => flag) || _report(_exceptionable, {
86558
86557
  path: _path + ".permissions",
86559
86558
  expected: "Array<Permission>",
86560
86559
  value: input.permissions
86561
- }), ("object" === typeof input.oauth && null !== input.oauth || _report(_exceptionable, {
86562
- path: _path + ".oauth",
86563
- expected: "__type",
86564
- value: input.oauth
86565
- })) && _vo6(input.oauth, _path + ".oauth", _exceptionable) || _report(_exceptionable, {
86566
- path: _path + ".oauth",
86567
- expected: "__type",
86568
- value: input.oauth
86569
86560
  }), ("object" === typeof input._metadata && null !== input._metadata || _report(_exceptionable, {
86570
86561
  path: _path + "._metadata",
86571
- expected: "__type.o1",
86562
+ expected: "__type",
86572
86563
  value: input._metadata
86573
- })) && _vo7(input._metadata, _path + "._metadata", _exceptionable) || _report(_exceptionable, {
86564
+ })) && _vo6(input._metadata, _path + "._metadata", _exceptionable) || _report(_exceptionable, {
86574
86565
  path: _path + "._metadata",
86575
- expected: "__type.o1",
86566
+ expected: "__type",
86576
86567
  value: input._metadata
86577
86568
  })].every((flag) => flag);
86578
86569
  const _vo1 = (input, _path, _exceptionable = true) => ["clipboard" === input.name || _report(_exceptionable, {
@@ -86620,25 +86611,12 @@ var validateAppManifest = /* @__PURE__ */ (() => {
86620
86611
  expected: '"access"',
86621
86612
  value: input.access
86622
86613
  })].every((flag) => flag);
86623
- const _vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.scopes) || _report(_exceptionable, {
86624
- path: _path + ".scopes",
86625
- expected: "Array<OAuthScope>",
86626
- value: input.scopes
86627
- })) && input.scopes.map((elem, _index5) => "user_name" === elem || "user_phone" === elem || "user_birthday" === elem || "user_ci" === elem || "user_gender" === elem || "user_nationality" === elem || "user_email" === elem || _report(_exceptionable, {
86628
- path: _path + ".scopes[" + _index5 + "]",
86629
- expected: '("user_birthday" | "user_ci" | "user_email" | "user_gender" | "user_name" | "user_nationality" | "user_phone")',
86630
- value: elem
86631
- })).every((flag) => flag) || _report(_exceptionable, {
86632
- path: _path + ".scopes",
86633
- expected: "Array<OAuthScope>",
86634
- value: input.scopes
86635
- })].every((flag) => flag);
86636
- const _vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.bundleFiles) || _report(_exceptionable, {
86614
+ const _vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.bundleFiles) || _report(_exceptionable, {
86637
86615
  path: _path + ".bundleFiles",
86638
86616
  expected: "Array<string>",
86639
86617
  value: input.bundleFiles
86640
- })) && input.bundleFiles.map((elem, _index6) => "string" === typeof elem || _report(_exceptionable, {
86641
- path: _path + ".bundleFiles[" + _index6 + "]",
86618
+ })) && input.bundleFiles.map((elem, _index4) => "string" === typeof elem || _report(_exceptionable, {
86619
+ path: _path + ".bundleFiles[" + _index4 + "]",
86642
86620
  expected: "string",
86643
86621
  value: elem
86644
86622
  })).every((flag) => flag) || _report(_exceptionable, {
@@ -86734,15 +86712,13 @@ async function createArtifact(options, deps) {
86734
86712
  init_esm_shims2();
86735
86713
  init_esm_shims2();
86736
86714
  init_esm_shims2();
86737
- init_esm_shims2();
86738
86715
  async function appsInTossAppJson(options) {
86739
86716
  const packageRoot = getPackageRoot2();
86740
86717
  const handleAppJson = async (appName) => {
86741
86718
  const appJsonPath = path12.join(packageRoot, ".bedrock", APP_MANIFEST_NAME);
86742
86719
  const appJsonObject = {
86743
86720
  appName,
86744
- permissions: options.permissions,
86745
- oauth: options.oauth
86721
+ permissions: options.permissions
86746
86722
  };
86747
86723
  await fs5.promises.mkdir(path12.dirname(appJsonPath), { recursive: true });
86748
86724
  try {
@@ -86750,8 +86726,7 @@ async function appsInTossAppJson(options) {
86750
86726
  const existingAppJsonObject = JSON.parse(existingAppJson);
86751
86727
  Object.assign(appJsonObject, existingAppJsonObject, {
86752
86728
  appName,
86753
- permissions: appJsonObject.permissions,
86754
- oauth: appJsonObject.oauth
86729
+ permissions: appJsonObject.permissions
86755
86730
  });
86756
86731
  } catch (error) {
86757
86732
  }
@@ -93980,9 +93955,8 @@ async function resolvePlugins(plugins) {
93980
93955
 
93981
93956
  // src/runPrebuildToBuild.ts
93982
93957
  async function babelBuild({
93983
- appName,
93984
- outdir,
93985
93958
  platform: platform3,
93959
+ config,
93986
93960
  buildNumber,
93987
93961
  deploymentId
93988
93962
  }) {
@@ -93995,11 +93969,12 @@ async function babelBuild({
93995
93969
  babelJsonReplacementPlugin,
93996
93970
  {
93997
93971
  json: {
93998
- appName,
93972
+ appName: config.appName,
93999
93973
  webPort: "NOOP",
94000
93974
  webHost: "NOOP",
94001
93975
  buildNumber,
94002
- deploymentId
93976
+ deploymentId,
93977
+ ...config.webViewProps
94003
93978
  },
94004
93979
  identifierName: "Ait"
94005
93980
  }
@@ -94009,8 +93984,8 @@ async function babelBuild({
94009
93984
  if (!result?.code) {
94010
93985
  throw new Error(`Failed to build ${platform3}`);
94011
93986
  }
94012
- await fs8.promises.mkdir(path20.join(packageRoot, outdir), { recursive: true });
94013
- await fs8.promises.writeFile(path20.join(packageRoot, outdir, `${appName}.${platform3}.js`), result.code);
93987
+ await fs8.promises.mkdir(path20.join(packageRoot, config.outdir), { recursive: true });
93988
+ await fs8.promises.writeFile(path20.join(packageRoot, config.outdir, `${config.appName}.${platform3}.js`), result.code);
94014
93989
  }
94015
93990
  function getBuildNumber() {
94016
93991
  const date = /* @__PURE__ */ new Date();
@@ -94025,11 +94000,9 @@ function getBuildNumber() {
94025
94000
  async function runPrebuildToBuild(cwd, config) {
94026
94001
  const buildNumber = getBuildNumber();
94027
94002
  const deploymentId = uuidv7();
94028
- const { outdir = "dist" } = config;
94029
94003
  const resolvedPlugins = await resolvePlugins([
94030
94004
  appsInTossWeb(deploymentId, {
94031
94005
  commands: config.web.commands,
94032
- oauth: config.oauth,
94033
94006
  permissions: config.permissions
94034
94007
  })
94035
94008
  ]);
@@ -94038,7 +94011,7 @@ async function runPrebuildToBuild(cwd, config) {
94038
94011
  cwd,
94039
94012
  entryFile: "",
94040
94013
  appName: config.appName,
94041
- outdir,
94014
+ outdir: config.outdir,
94042
94015
  buildResults: []
94043
94016
  });
94044
94017
  }
@@ -94047,8 +94020,7 @@ async function runPrebuildToBuild(cwd, config) {
94047
94020
  title: `Building ${platform3}`,
94048
94021
  task: async () => {
94049
94022
  await babelBuild({
94050
- appName: config.appName,
94051
- outdir,
94023
+ config,
94052
94024
  platform: platform3,
94053
94025
  buildNumber,
94054
94026
  deploymentId
@@ -94069,13 +94041,13 @@ async function runPrebuildToBuild(cwd, config) {
94069
94041
  cwd,
94070
94042
  entryFile: "",
94071
94043
  appName: config.appName,
94072
- outdir,
94044
+ outdir: config.outdir,
94073
94045
  buildResults: [
94074
94046
  {
94075
94047
  errors: [],
94076
94048
  warnings: [],
94077
94049
  tag: `${config.appName}-ios`,
94078
- outfile: path20.join(cwd, outdir, `${config.appName}.ios.js`),
94050
+ outfile: path20.join(cwd, config.outdir, `${config.appName}.ios.js`),
94079
94051
  extra: {},
94080
94052
  outputFiles: [],
94081
94053
  metafile: { inputs: {}, outputs: {} },
@@ -94087,7 +94059,7 @@ async function runPrebuildToBuild(cwd, config) {
94087
94059
  errors: [],
94088
94060
  warnings: [],
94089
94061
  tag: `${config.appName}-android`,
94090
- outfile: path20.join(cwd, outdir, `${config.appName}.android.js`),
94062
+ outfile: path20.join(cwd, config.outdir, `${config.appName}.android.js`),
94091
94063
  extra: {},
94092
94064
  outputFiles: [],
94093
94065
  metafile: { inputs: {}, outputs: {} },
@@ -96208,12 +96180,7 @@ function parsePermissions(permissions) {
96208
96180
  }
96209
96181
  return Array.from(permissionMap.entries()).map(([name, accesses]) => `${name}:${Array.from(accesses).sort().join("")}`).sort().join(",");
96210
96182
  }
96211
- var createApp = ({
96212
- appName,
96213
- web,
96214
- oauth,
96215
- permissions
96216
- }) => {
96183
+ var createApp = ({ appName, web, permissions, webViewProps }) => {
96217
96184
  const app = new Hono2();
96218
96185
  app.get("/status", (c5) => {
96219
96186
  c5.header("X-React-Native-Project-Root", path21.resolve(__dirname, "..", "react-native"));
@@ -96222,10 +96189,6 @@ var createApp = ({
96222
96189
  app.get("/permissions", (c5) => {
96223
96190
  return c5.text(parsePermissions(permissions));
96224
96191
  });
96225
- app.get("/oauth/scope", (c5) => {
96226
- const scope = oauth.scopes.sort().join(";");
96227
- return c5.text(scope);
96228
- });
96229
96192
  app.get("/index.bundle", async (c5) => {
96230
96193
  const platform3 = c5.req.query("platform");
96231
96194
  const prebuilt = import.meta.resolve(`@apps-in-toss/web-framework/prebuilt/dev/${platform3}`).replace("file://", "");
@@ -96243,7 +96206,8 @@ var createApp = ({
96243
96206
  json: {
96244
96207
  appName,
96245
96208
  webPort: web.port,
96246
- webHost: web.host
96209
+ webHost: web.host,
96210
+ ...webViewProps
96247
96211
  },
96248
96212
  identifierName: "Ait"
96249
96213
  }
@@ -96291,15 +96255,7 @@ var DevCommand = class extends Command {
96291
96255
  async execute() {
96292
96256
  const packageRoot = getPackageRoot();
96293
96257
  const config = await loadConfig();
96294
- const app = createApp({
96295
- appName: config.appName,
96296
- web: {
96297
- port: config.web.port,
96298
- host: config.web.host ?? "localhost"
96299
- },
96300
- oauth: config.oauth,
96301
- permissions: config.permissions
96302
- });
96258
+ const app = createApp(config);
96303
96259
  serve(
96304
96260
  {
96305
96261
  hostname: "0.0.0.0",
@@ -1,3 +1,9 @@
1
+ type NotNill<T> = T extends null | undefined ? never : T;
2
+ type Primitive = undefined | null | boolean | string | number;
3
+ type DeepRequired<T> = T extends Primitive ? NotNill<T> : T extends Array<infer U> ? Array<DeepRequired<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepRequired<U>> : {
4
+ [P in keyof T]-?: DeepRequired<T[P]>;
5
+ };
6
+
1
7
  type PermissionReadWrite = 'read' | 'write';
2
8
  type PermissionAccess = 'access';
3
9
  type ClipboardPermission = {
@@ -21,18 +27,6 @@ type CameraPermission = {
21
27
  access: PermissionAccess;
22
28
  };
23
29
  type Permission = ClipboardPermission | GeolocationPermission | ContactsPermission | PhotosPermission | CameraPermission;
24
- /**
25
- * OAuth 인증시 사용할 수 있는 Scope 값이에요.
26
- *
27
- * - `user_name`: 유저 이름이에요.
28
- * - `user_phone`: 유저 휴대폰 번호예요.
29
- * - `user_birthday`: 유저 생년월일이에요.
30
- * - `user_ci`: 유저를 식별하는 키인 CI(Connection Information) 값이에요.
31
- * - `user_gender`: 유저의 성별이에요.
32
- * - `user_nationality`: 유저의 국적이에요.
33
- * - `user_email`: 유저의 이메일이에요. 토스 회원의 email이 존재하지 않는 경우 null 응답을 반환해요.
34
- */
35
- type OAuthScope = 'user_name' | 'user_phone' | 'user_birthday' | 'user_ci' | 'user_gender' | 'user_nationality' | 'user_email';
36
30
  interface AppsInTossWebConfig {
37
31
  appName: string;
38
32
  web: {
@@ -46,15 +40,48 @@ interface AppsInTossWebConfig {
46
40
  build: string;
47
41
  };
48
42
  };
49
- permissions: Permission[];
50
- oauth: {
51
- scopes: OAuthScope[];
43
+ webViewProps?: {
44
+ /**
45
+ *
46
+ * @default false
47
+ * @platform — ios
48
+ *
49
+ * Boolean that determines whether HTML5 videos play inline or use the native full-screen controller. The default value is false.
50
+ * NOTE : In order for video to play inline, not only does this property need to be set to true, but the video element in the HTML document must also include the webkit-playsinline attribute.
51
+ */
52
+ allowsInlineMediaPlayback?: boolean;
53
+ /**
54
+ * @default true
55
+ * @platform — ios
56
+ *
57
+ * Boolean value that determines whether the web view bounces when it reaches the edge of the content.
58
+ *
59
+ */
60
+ bounces?: boolean;
61
+ /**
62
+ *
63
+ * @default true
64
+ * @platform - ios
65
+ * Boolean value that determines whether a pull to refresh gesture is available in the WebView. The default value is false. If true, sets bounces automatically to true
66
+ */
67
+ pullToRefreshEnabled?: boolean;
68
+ /**
69
+ * https://developer.android.com/reference/android/view/View#OVER_SCROLL_NEVER Sets the overScrollMode. Possible values are:
70
+ * 'always' (default)
71
+ * 'content'
72
+ * 'never'
73
+ * @platform — android
74
+ * @default 'always'
75
+ */
76
+ overScrollMode?: 'never' | 'always' | 'auto';
52
77
  };
78
+ permissions: Permission[];
53
79
  /**
54
80
  * @default 'dist'
55
81
  */
56
82
  outdir?: string;
57
83
  }
58
- declare const defineConfig: (config: AppsInTossWebConfig) => AppsInTossWebConfig;
84
+ type AppsInTossWebConfigResponse = DeepRequired<AppsInTossWebConfig>;
85
+ declare const defineConfig: (config: AppsInTossWebConfig) => AppsInTossWebConfigResponse;
59
86
 
60
- export { type AppsInTossWebConfig, defineConfig };
87
+ export { type AppsInTossWebConfig, type AppsInTossWebConfigResponse, defineConfig };
@@ -1,12 +1,57 @@
1
- // src/config/defineConfig.ts
2
- var defineConfig = (config) => {
3
- if (!config.outdir) {
4
- config.outdir = "dist";
1
+ // ../../.yarn/cache/es-toolkit-npm-1.32.0-019fc7c155-56ba965570.zip/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
2
+ function isPlainObject(value) {
3
+ if (!value || typeof value !== "object") {
4
+ return false;
5
+ }
6
+ const proto = Object.getPrototypeOf(value);
7
+ const hasObjectPrototype = proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null;
8
+ if (!hasObjectPrototype) {
9
+ return false;
5
10
  }
6
- if (!config.web.host) {
7
- config.web.host = "localhost";
11
+ return Object.prototype.toString.call(value) === "[object Object]";
12
+ }
13
+
14
+ // ../../.yarn/cache/es-toolkit-npm-1.32.0-019fc7c155-56ba965570.zip/node_modules/es-toolkit/dist/object/merge.mjs
15
+ function merge(target, source) {
16
+ const sourceKeys = Object.keys(source);
17
+ for (let i = 0; i < sourceKeys.length; i++) {
18
+ const key = sourceKeys[i];
19
+ const sourceValue = source[key];
20
+ const targetValue = target[key];
21
+ if (Array.isArray(sourceValue)) {
22
+ if (Array.isArray(targetValue)) {
23
+ target[key] = merge(targetValue, sourceValue);
24
+ } else {
25
+ target[key] = merge([], sourceValue);
26
+ }
27
+ } else if (isPlainObject(sourceValue)) {
28
+ if (isPlainObject(targetValue)) {
29
+ target[key] = merge(targetValue, sourceValue);
30
+ } else {
31
+ target[key] = merge({}, sourceValue);
32
+ }
33
+ } else if (targetValue === void 0 || sourceValue !== void 0) {
34
+ target[key] = sourceValue;
35
+ }
8
36
  }
9
- return config;
37
+ return target;
38
+ }
39
+
40
+ // src/config/defineConfig.ts
41
+ var defineConfig = (config) => {
42
+ const defaultConfig = {
43
+ outdir: "dist",
44
+ web: {
45
+ host: "localhost"
46
+ },
47
+ webViewProps: {
48
+ allowsInlineMediaPlayback: false,
49
+ bounces: true,
50
+ pullToRefreshEnabled: true,
51
+ overScrollMode: "always"
52
+ }
53
+ };
54
+ return merge(defaultConfig, config);
10
55
  };
11
56
  export {
12
57
  defineConfig
@@ -154810,18 +154810,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154810
154810
  }));
154811
154811
  case 7:
154812
154812
  albumPhotos = _context5.sent;
154813
- if (!options.base64) {
154814
- _context5.next = 10;
154815
- break;
154816
- }
154817
- return _context5.abrupt("return", albumPhotos.map(function (photo) {
154818
- return _objectSpread(_objectSpread({}, photo), {}, {
154819
- dataUri: "data:image/jpeg;base64,".concat(photo.dataUri)
154820
- });
154821
- }));
154822
- case 10:
154823
154813
  return _context5.abrupt("return", albumPhotos);
154824
- case 11:
154814
+ case 9:
154825
154815
  case "end":
154826
154816
  return _context5.stop();
154827
154817
  }
@@ -154957,6 +154947,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154957
154947
  return _getOperationalEnvironment;
154958
154948
  }
154959
154949
  });
154950
+ var _env = {
154951
+ getDeploymentId: function getDeploymentId() {
154952
+ var _global$__appsInToss;
154953
+ return __DEV__ ? "local" : (_global$__appsInToss = global.__appsInToss) === null || _global$__appsInToss === void 0 ? void 0 : _global$__appsInToss.deploymentId;
154954
+ }
154955
+ };
154960
154956
  var event_bridges_exports = {};
154961
154957
  __export(event_bridges_exports, {
154962
154958
  startUpdateLocation: function startUpdateLocation() {
@@ -154972,7 +154968,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154972
154968
  if (__DEV__) {
154973
154969
  return "http://".concat(local.host, ":").concat(local.port);
154974
154970
  }
154975
- return AppsInTossModule.getWebBundleURL({}).url;
154971
+ var url = new URL(AppsInTossModule.getWebBundleURL({}).url);
154972
+ var deploymentId = _env.getDeploymentId();
154973
+ if (deploymentId) {
154974
+ url.searchParams.set("_deploymentId", deploymentId);
154975
+ }
154976
+ return url.toString();
154976
154977
  }, [local]);
154977
154978
  var handler = (0, import_react_native_bedrock4.useBridgeHandler)({
154978
154979
  onMessage: onMessage,
@@ -154988,6 +154989,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154988
154989
  },
154989
154990
  sharedCookiesEnabled: true,
154990
154991
  thirdPartyCookiesEnabled: true,
154992
+ cacheEnabled: false,
154993
+ cacheMode: "LOAD_NO_CACHE",
154991
154994
  onMessage: handler.onMessage,
154992
154995
  injectedJavaScript: handler.injectedJavaScript,
154993
154996
  injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript
@@ -155020,12 +155023,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155020
155023
  }, [accuracy, distanceInterval, timeInterval, isVisible]);
155021
155024
  return location;
155022
155025
  }
155023
- var _env = {
155024
- getDeploymentId: function getDeploymentId() {
155025
- var _global$__appsInToss;
155026
- return __DEV__ ? "local" : (_global$__appsInToss = global.__appsInToss) === null || _global$__appsInToss === void 0 ? void 0 : _global$__appsInToss.deploymentId;
155027
- }
155028
- };
155029
155026
  var Accuracy2 = function (Accuracy3) {
155030
155027
  Accuracy3[Accuracy3["Lowest"] = 1] = "Lowest";
155031
155028
  Accuracy3[Accuracy3["Low"] = 2] = "Low";
@@ -155794,7 +155791,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155794
155791
  local: {
155795
155792
  port: Ait.webPort,
155796
155793
  host: Ait.webHost
155797
- }
155794
+ },
155795
+ allowsInlineMediaPlayback: Ait.allowsInlineMediaPlayback,
155796
+ bounces: Ait.bounces,
155797
+ overScrollMode: Ait.overScrollMode,
155798
+ pullToRefreshEnabled: Ait.pullToRefreshEnabled
155798
155799
  })
155799
155800
  });
155800
155801
  }
@@ -154637,18 +154637,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154637
154637
  }));
154638
154638
  case 7:
154639
154639
  albumPhotos = _context5.sent;
154640
- if (!options.base64) {
154641
- _context5.next = 10;
154642
- break;
154643
- }
154644
- return _context5.abrupt("return", albumPhotos.map(function (photo) {
154645
- return _objectSpread(_objectSpread({}, photo), {}, {
154646
- dataUri: "data:image/jpeg;base64,".concat(photo.dataUri)
154647
- });
154648
- }));
154649
- case 10:
154650
154640
  return _context5.abrupt("return", albumPhotos);
154651
- case 11:
154641
+ case 9:
154652
154642
  case "end":
154653
154643
  return _context5.stop();
154654
154644
  }
@@ -154784,6 +154774,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154784
154774
  return _getOperationalEnvironment;
154785
154775
  }
154786
154776
  });
154777
+ var _env = {
154778
+ getDeploymentId: function getDeploymentId() {
154779
+ var _global$__appsInToss;
154780
+ return __DEV__ ? "local" : (_global$__appsInToss = global.__appsInToss) === null || _global$__appsInToss === void 0 ? void 0 : _global$__appsInToss.deploymentId;
154781
+ }
154782
+ };
154787
154783
  var event_bridges_exports = {};
154788
154784
  __export(event_bridges_exports, {
154789
154785
  startUpdateLocation: function startUpdateLocation() {
@@ -154799,7 +154795,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154799
154795
  if (__DEV__) {
154800
154796
  return "http://".concat(local.host, ":").concat(local.port);
154801
154797
  }
154802
- return AppsInTossModule.getWebBundleURL({}).url;
154798
+ var url = new URL(AppsInTossModule.getWebBundleURL({}).url);
154799
+ var deploymentId = _env.getDeploymentId();
154800
+ if (deploymentId) {
154801
+ url.searchParams.set("_deploymentId", deploymentId);
154802
+ }
154803
+ return url.toString();
154803
154804
  }, [local]);
154804
154805
  var handler = (0, import_react_native_bedrock4.useBridgeHandler)({
154805
154806
  onMessage: onMessage,
@@ -154815,6 +154816,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154815
154816
  },
154816
154817
  sharedCookiesEnabled: true,
154817
154818
  thirdPartyCookiesEnabled: true,
154819
+ cacheEnabled: false,
154820
+ cacheMode: "LOAD_NO_CACHE",
154818
154821
  onMessage: handler.onMessage,
154819
154822
  injectedJavaScript: handler.injectedJavaScript,
154820
154823
  injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript
@@ -154847,12 +154850,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154847
154850
  }, [accuracy, distanceInterval, timeInterval, isVisible]);
154848
154851
  return location;
154849
154852
  }
154850
- var _env = {
154851
- getDeploymentId: function getDeploymentId() {
154852
- var _global$__appsInToss;
154853
- return __DEV__ ? "local" : (_global$__appsInToss = global.__appsInToss) === null || _global$__appsInToss === void 0 ? void 0 : _global$__appsInToss.deploymentId;
154854
- }
154855
- };
154856
154853
  var Accuracy2 = function (Accuracy3) {
154857
154854
  Accuracy3[Accuracy3["Lowest"] = 1] = "Lowest";
154858
154855
  Accuracy3[Accuracy3["Low"] = 2] = "Low";
@@ -155735,7 +155732,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155735
155732
  local: {
155736
155733
  port: Ait.webPort,
155737
155734
  host: Ait.webHost
155738
- }
155735
+ },
155736
+ allowsInlineMediaPlayback: Ait.allowsInlineMediaPlayback,
155737
+ bounces: Ait.bounces,
155738
+ overScrollMode: Ait.overScrollMode,
155739
+ pullToRefreshEnabled: Ait.pullToRefreshEnabled
155739
155740
  })
155740
155741
  });
155741
155742
  }