@apps-in-toss/web-framework 0.0.36 → 0.0.38
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 +369 -27
- package/dist/prebuilt/dev.android.js +33 -11
- package/dist/prebuilt/dev.ios.js +33 -11
- package/dist/prebuilt/prod.android.js +31 -2
- package/dist/prebuilt/prod.ios.js +31 -2
- package/dist/prebuilt/prod.json +4 -4
- package/package.json +10 -8
package/dist/cli/index.js
CHANGED
|
@@ -51608,6 +51608,30 @@ var require_lib7 = __commonJS({
|
|
|
51608
51608
|
}
|
|
51609
51609
|
});
|
|
51610
51610
|
|
|
51611
|
+
// ../../.yarn/__virtual__/typia-virtual-93fdc6e779/0/cache/typia-npm-8.0.4-b2444b63f3-1028a8a121.zip/node_modules/typia/lib/internal/_validateReport.js
|
|
51612
|
+
var require_validateReport = __commonJS({
|
|
51613
|
+
"../../.yarn/__virtual__/typia-virtual-93fdc6e779/0/cache/typia-npm-8.0.4-b2444b63f3-1028a8a121.zip/node_modules/typia/lib/internal/_validateReport.js"(exports) {
|
|
51614
|
+
"use strict";
|
|
51615
|
+
init_esm_shims();
|
|
51616
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51617
|
+
exports._validateReport = void 0;
|
|
51618
|
+
var _validateReport2 = (array) => {
|
|
51619
|
+
const reportable = (path9) => {
|
|
51620
|
+
if (array.length === 0)
|
|
51621
|
+
return true;
|
|
51622
|
+
const last = array[array.length - 1].path;
|
|
51623
|
+
return path9.length > last.length || last.substring(0, path9.length) !== path9;
|
|
51624
|
+
};
|
|
51625
|
+
return (exceptable, error) => {
|
|
51626
|
+
if (exceptable && reportable(error.path))
|
|
51627
|
+
array.push(error);
|
|
51628
|
+
return false;
|
|
51629
|
+
};
|
|
51630
|
+
};
|
|
51631
|
+
exports._validateReport = _validateReport2;
|
|
51632
|
+
}
|
|
51633
|
+
});
|
|
51634
|
+
|
|
51611
51635
|
// ../../.yarn/cache/isexe-npm-2.0.0-ac27b2c17a-228cfa503f.zip/node_modules/isexe/windows.js
|
|
51612
51636
|
var require_windows = __commonJS({
|
|
51613
51637
|
"../../.yarn/cache/isexe-npm-2.0.0-ac27b2c17a-228cfa503f.zip/node_modules/isexe/windows.js"(exports, module) {
|
|
@@ -58154,16 +58178,10 @@ function babelJsonReplacementPlugin(_2, opts) {
|
|
|
58154
58178
|
|
|
58155
58179
|
// src/plugins/appsInTossWeb.ts
|
|
58156
58180
|
init_esm_shims();
|
|
58181
|
+
var __typia_transform__validateReport = __toESM(require_validateReport(), 1);
|
|
58157
58182
|
import fs from "fs";
|
|
58158
58183
|
import path6 from "path";
|
|
58159
|
-
import {
|
|
58160
|
-
appsInTossAppJson,
|
|
58161
|
-
createArtifact,
|
|
58162
|
-
appsInTossEsbuildConfig,
|
|
58163
|
-
appsInTossMetroConfig,
|
|
58164
|
-
setupRuntimeSetupScript,
|
|
58165
|
-
collectDependencyVersions
|
|
58166
|
-
} from "@apps-in-toss/plugins";
|
|
58184
|
+
import { appsInTossAppJson, createArtifact, appsInTossEsbuildConfig, appsInTossMetroConfig, setupRuntimeSetupScript, collectDependencyVersions } from "@apps-in-toss/plugins";
|
|
58167
58185
|
import { getPackageRoot as getPackageRoot2 } from "@react-native-bedrock/utils";
|
|
58168
58186
|
|
|
58169
58187
|
// ../../.yarn/cache/execa-npm-9.5.2-ac35c57136-94782a6282.zip/node_modules/execa/index.js
|
|
@@ -65166,6 +65184,323 @@ function getPackageManager({ isExecutor = false } = {}) {
|
|
|
65166
65184
|
}
|
|
65167
65185
|
|
|
65168
65186
|
// src/plugins/appsInTossWeb.ts
|
|
65187
|
+
var validateAppInTossWebPluginOptions = /* @__PURE__ */ (() => {
|
|
65188
|
+
const _io0 = (input) => "object" === typeof input.commands && null !== input.commands && _io1(input.commands) && ("object" === typeof input.brand && null !== input.brand && _io2(input.brand)) && (void 0 === input.webViewProps || "object" === typeof input.webViewProps && null !== input.webViewProps && false === Array.isArray(input.webViewProps) && _io3(input.webViewProps)) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem)));
|
|
65189
|
+
const _io1 = (input) => "string" === typeof input.build;
|
|
65190
|
+
const _io2 = (input) => "string" === typeof input.displayName && "string" === typeof input.primaryColor && "string" === typeof input.icon && ("basic" === input.bridgeColorMode || "inverted" === input.bridgeColorMode);
|
|
65191
|
+
const _io3 = (input) => (void 0 === input.type || "partner" === input.type || "external" === input.type || "game" === input.type) && (void 0 === input.header || "object" === typeof input.header && null !== input.header && false === Array.isArray(input.header) && _io4(input.header)) && (void 0 === input.allowsInlineMediaPlayback || "boolean" === typeof input.allowsInlineMediaPlayback) && (void 0 === input.bounces || "boolean" === typeof input.bounces) && (void 0 === input.pullToRefreshEnabled || "boolean" === typeof input.pullToRefreshEnabled) && (void 0 === input.overScrollMode || "always" === input.overScrollMode || "content" === input.overScrollMode || "never" === input.overScrollMode) && (void 0 === input.mediaPlaybackRequiresUserAction || "boolean" === typeof input.mediaPlaybackRequiresUserAction) && (void 0 === input.allowsBackForwardNavigationGestures || "boolean" === typeof input.allowsBackForwardNavigationGestures);
|
|
65192
|
+
const _io4 = (input) => (void 0 === input.withBackButton || "boolean" === typeof input.withBackButton) && (void 0 === input.initialAccessoryButtons || Array.isArray(input.initialAccessoryButtons) && input.initialAccessoryButtons.every((elem) => "object" === typeof elem && null !== elem && _io5(elem)));
|
|
65193
|
+
const _io5 = (input) => "string" === typeof input.id && "string" === typeof input.title && ("object" === typeof input.icon && null !== input.icon && _iu1(input.icon));
|
|
65194
|
+
const _io6 = (input) => "object" === typeof input.source && null !== input.source && _io7(input.source) && (null !== input.name && void 0 === input.name);
|
|
65195
|
+
const _io7 = (input) => "string" === typeof input.uri;
|
|
65196
|
+
const _io8 = (input) => "string" === typeof input.name && (null !== input.source && void 0 === input.source);
|
|
65197
|
+
const _io9 = (input) => "clipboard" === input.name && ("read" === input.access || "write" === input.access);
|
|
65198
|
+
const _io10 = (input) => "geolocation" === input.name && "access" === input.access;
|
|
65199
|
+
const _io11 = (input) => "contacts" === input.name && ("read" === input.access || "write" === input.access);
|
|
65200
|
+
const _io12 = (input) => "photos" === input.name && ("read" === input.access || "write" === input.access);
|
|
65201
|
+
const _io13 = (input) => "camera" === input.name && "access" === input.access;
|
|
65202
|
+
const _iu0 = (input) => (() => {
|
|
65203
|
+
if ("camera" === input.name)
|
|
65204
|
+
return _io13(input);
|
|
65205
|
+
else if ("photos" === input.name)
|
|
65206
|
+
return _io12(input);
|
|
65207
|
+
else if ("contacts" === input.name)
|
|
65208
|
+
return _io11(input);
|
|
65209
|
+
else if ("geolocation" === input.name)
|
|
65210
|
+
return _io10(input);
|
|
65211
|
+
else if ("clipboard" === input.name)
|
|
65212
|
+
return _io9(input);
|
|
65213
|
+
else
|
|
65214
|
+
return false;
|
|
65215
|
+
})();
|
|
65216
|
+
const _iu1 = (input) => (() => {
|
|
65217
|
+
if ("string" === typeof input.name)
|
|
65218
|
+
return _io8(input);
|
|
65219
|
+
else if ("object" === typeof input.source && null !== input.source && _io7(input.source))
|
|
65220
|
+
return _io6(input);
|
|
65221
|
+
else
|
|
65222
|
+
return false;
|
|
65223
|
+
})();
|
|
65224
|
+
const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.commands && null !== input.commands || _report(_exceptionable, {
|
|
65225
|
+
path: _path + ".commands",
|
|
65226
|
+
expected: "__type",
|
|
65227
|
+
value: input.commands
|
|
65228
|
+
})) && _vo1(input.commands, _path + ".commands", _exceptionable) || _report(_exceptionable, {
|
|
65229
|
+
path: _path + ".commands",
|
|
65230
|
+
expected: "__type",
|
|
65231
|
+
value: input.commands
|
|
65232
|
+
}), ("object" === typeof input.brand && null !== input.brand || _report(_exceptionable, {
|
|
65233
|
+
path: _path + ".brand",
|
|
65234
|
+
expected: "__type.o1",
|
|
65235
|
+
value: input.brand
|
|
65236
|
+
})) && _vo2(input.brand, _path + ".brand", _exceptionable) || _report(_exceptionable, {
|
|
65237
|
+
path: _path + ".brand",
|
|
65238
|
+
expected: "__type.o1",
|
|
65239
|
+
value: input.brand
|
|
65240
|
+
}), void 0 === input.webViewProps || ("object" === typeof input.webViewProps && null !== input.webViewProps && false === Array.isArray(input.webViewProps) || _report(_exceptionable, {
|
|
65241
|
+
path: _path + ".webViewProps",
|
|
65242
|
+
expected: "(__type.o2 | undefined)",
|
|
65243
|
+
value: input.webViewProps
|
|
65244
|
+
})) && _vo3(input.webViewProps, _path + ".webViewProps", _exceptionable) || _report(_exceptionable, {
|
|
65245
|
+
path: _path + ".webViewProps",
|
|
65246
|
+
expected: "(__type.o2 | undefined)",
|
|
65247
|
+
value: input.webViewProps
|
|
65248
|
+
}), (Array.isArray(input.permissions) || _report(_exceptionable, {
|
|
65249
|
+
path: _path + ".permissions",
|
|
65250
|
+
expected: "Array<Permission>",
|
|
65251
|
+
value: input.permissions
|
|
65252
|
+
})) && input.permissions.map((elem, _index3) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
65253
|
+
path: _path + ".permissions[" + _index3 + "]",
|
|
65254
|
+
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
|
|
65255
|
+
value: elem
|
|
65256
|
+
})) && _vu0(elem, _path + ".permissions[" + _index3 + "]", _exceptionable) || _report(_exceptionable, {
|
|
65257
|
+
path: _path + ".permissions[" + _index3 + "]",
|
|
65258
|
+
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
|
|
65259
|
+
value: elem
|
|
65260
|
+
})).every((flag) => flag) || _report(_exceptionable, {
|
|
65261
|
+
path: _path + ".permissions",
|
|
65262
|
+
expected: "Array<Permission>",
|
|
65263
|
+
value: input.permissions
|
|
65264
|
+
})].every((flag) => flag);
|
|
65265
|
+
const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.build || _report(_exceptionable, {
|
|
65266
|
+
path: _path + ".build",
|
|
65267
|
+
expected: "string",
|
|
65268
|
+
value: input.build
|
|
65269
|
+
})].every((flag) => flag);
|
|
65270
|
+
const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.displayName || _report(_exceptionable, {
|
|
65271
|
+
path: _path + ".displayName",
|
|
65272
|
+
expected: "string",
|
|
65273
|
+
value: input.displayName
|
|
65274
|
+
}), "string" === typeof input.primaryColor || _report(_exceptionable, {
|
|
65275
|
+
path: _path + ".primaryColor",
|
|
65276
|
+
expected: "string",
|
|
65277
|
+
value: input.primaryColor
|
|
65278
|
+
}), "string" === typeof input.icon || _report(_exceptionable, {
|
|
65279
|
+
path: _path + ".icon",
|
|
65280
|
+
expected: "string",
|
|
65281
|
+
value: input.icon
|
|
65282
|
+
}), "basic" === input.bridgeColorMode || "inverted" === input.bridgeColorMode || _report(_exceptionable, {
|
|
65283
|
+
path: _path + ".bridgeColorMode",
|
|
65284
|
+
expected: '("basic" | "inverted")',
|
|
65285
|
+
value: input.bridgeColorMode
|
|
65286
|
+
})].every((flag) => flag);
|
|
65287
|
+
const _vo3 = (input, _path, _exceptionable = true) => [void 0 === input.type || "partner" === input.type || "external" === input.type || "game" === input.type || _report(_exceptionable, {
|
|
65288
|
+
path: _path + ".type",
|
|
65289
|
+
expected: '("external" | "game" | "partner" | undefined)',
|
|
65290
|
+
value: input.type
|
|
65291
|
+
}), void 0 === input.header || ("object" === typeof input.header && null !== input.header && false === Array.isArray(input.header) || _report(_exceptionable, {
|
|
65292
|
+
path: _path + ".header",
|
|
65293
|
+
expected: "(__type.o3 | undefined)",
|
|
65294
|
+
value: input.header
|
|
65295
|
+
})) && _vo4(input.header, _path + ".header", _exceptionable) || _report(_exceptionable, {
|
|
65296
|
+
path: _path + ".header",
|
|
65297
|
+
expected: "(__type.o3 | undefined)",
|
|
65298
|
+
value: input.header
|
|
65299
|
+
}), void 0 === input.allowsInlineMediaPlayback || "boolean" === typeof input.allowsInlineMediaPlayback || _report(_exceptionable, {
|
|
65300
|
+
path: _path + ".allowsInlineMediaPlayback",
|
|
65301
|
+
expected: "(boolean | undefined)",
|
|
65302
|
+
value: input.allowsInlineMediaPlayback
|
|
65303
|
+
}), void 0 === input.bounces || "boolean" === typeof input.bounces || _report(_exceptionable, {
|
|
65304
|
+
path: _path + ".bounces",
|
|
65305
|
+
expected: "(boolean | undefined)",
|
|
65306
|
+
value: input.bounces
|
|
65307
|
+
}), void 0 === input.pullToRefreshEnabled || "boolean" === typeof input.pullToRefreshEnabled || _report(_exceptionable, {
|
|
65308
|
+
path: _path + ".pullToRefreshEnabled",
|
|
65309
|
+
expected: "(boolean | undefined)",
|
|
65310
|
+
value: input.pullToRefreshEnabled
|
|
65311
|
+
}), void 0 === input.overScrollMode || "always" === input.overScrollMode || "content" === input.overScrollMode || "never" === input.overScrollMode || _report(_exceptionable, {
|
|
65312
|
+
path: _path + ".overScrollMode",
|
|
65313
|
+
expected: '("always" | "content" | "never" | undefined)',
|
|
65314
|
+
value: input.overScrollMode
|
|
65315
|
+
}), void 0 === input.mediaPlaybackRequiresUserAction || "boolean" === typeof input.mediaPlaybackRequiresUserAction || _report(_exceptionable, {
|
|
65316
|
+
path: _path + ".mediaPlaybackRequiresUserAction",
|
|
65317
|
+
expected: "(boolean | undefined)",
|
|
65318
|
+
value: input.mediaPlaybackRequiresUserAction
|
|
65319
|
+
}), void 0 === input.allowsBackForwardNavigationGestures || "boolean" === typeof input.allowsBackForwardNavigationGestures || _report(_exceptionable, {
|
|
65320
|
+
path: _path + ".allowsBackForwardNavigationGestures",
|
|
65321
|
+
expected: "(boolean | undefined)",
|
|
65322
|
+
value: input.allowsBackForwardNavigationGestures
|
|
65323
|
+
})].every((flag) => flag);
|
|
65324
|
+
const _vo4 = (input, _path, _exceptionable = true) => [void 0 === input.withBackButton || "boolean" === typeof input.withBackButton || _report(_exceptionable, {
|
|
65325
|
+
path: _path + ".withBackButton",
|
|
65326
|
+
expected: "(boolean | undefined)",
|
|
65327
|
+
value: input.withBackButton
|
|
65328
|
+
}), void 0 === input.initialAccessoryButtons || (Array.isArray(input.initialAccessoryButtons) || _report(_exceptionable, {
|
|
65329
|
+
path: _path + ".initialAccessoryButtons",
|
|
65330
|
+
expected: "(Array<InitialAccessoryButton> | undefined)",
|
|
65331
|
+
value: input.initialAccessoryButtons
|
|
65332
|
+
})) && input.initialAccessoryButtons.map((elem, _index4) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
65333
|
+
path: _path + ".initialAccessoryButtons[" + _index4 + "]",
|
|
65334
|
+
expected: "InitialAccessoryButton",
|
|
65335
|
+
value: elem
|
|
65336
|
+
})) && _vo5(elem, _path + ".initialAccessoryButtons[" + _index4 + "]", _exceptionable) || _report(_exceptionable, {
|
|
65337
|
+
path: _path + ".initialAccessoryButtons[" + _index4 + "]",
|
|
65338
|
+
expected: "InitialAccessoryButton",
|
|
65339
|
+
value: elem
|
|
65340
|
+
})).every((flag) => flag) || _report(_exceptionable, {
|
|
65341
|
+
path: _path + ".initialAccessoryButtons",
|
|
65342
|
+
expected: "(Array<InitialAccessoryButton> | undefined)",
|
|
65343
|
+
value: input.initialAccessoryButtons
|
|
65344
|
+
})].every((flag) => flag);
|
|
65345
|
+
const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
65346
|
+
path: _path + ".id",
|
|
65347
|
+
expected: "string",
|
|
65348
|
+
value: input.id
|
|
65349
|
+
}), "string" === typeof input.title || _report(_exceptionable, {
|
|
65350
|
+
path: _path + ".title",
|
|
65351
|
+
expected: "string",
|
|
65352
|
+
value: input.title
|
|
65353
|
+
}), ("object" === typeof input.icon && null !== input.icon || _report(_exceptionable, {
|
|
65354
|
+
path: _path + ".icon",
|
|
65355
|
+
expected: "(__type.o4 | __type.o6)",
|
|
65356
|
+
value: input.icon
|
|
65357
|
+
})) && _vu1(input.icon, _path + ".icon", _exceptionable) || _report(_exceptionable, {
|
|
65358
|
+
path: _path + ".icon",
|
|
65359
|
+
expected: "(__type.o4 | __type.o6)",
|
|
65360
|
+
value: input.icon
|
|
65361
|
+
})].every((flag) => flag);
|
|
65362
|
+
const _vo6 = (input, _path, _exceptionable = true) => [("object" === typeof input.source && null !== input.source || _report(_exceptionable, {
|
|
65363
|
+
path: _path + ".source",
|
|
65364
|
+
expected: "__type.o5",
|
|
65365
|
+
value: input.source
|
|
65366
|
+
})) && _vo7(input.source, _path + ".source", _exceptionable) || _report(_exceptionable, {
|
|
65367
|
+
path: _path + ".source",
|
|
65368
|
+
expected: "__type.o5",
|
|
65369
|
+
value: input.source
|
|
65370
|
+
}), (null !== input.name || _report(_exceptionable, {
|
|
65371
|
+
path: _path + ".name",
|
|
65372
|
+
expected: "undefined",
|
|
65373
|
+
value: input.name
|
|
65374
|
+
})) && (void 0 === input.name || _report(_exceptionable, {
|
|
65375
|
+
path: _path + ".name",
|
|
65376
|
+
expected: "undefined",
|
|
65377
|
+
value: input.name
|
|
65378
|
+
}))].every((flag) => flag);
|
|
65379
|
+
const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || _report(_exceptionable, {
|
|
65380
|
+
path: _path + ".uri",
|
|
65381
|
+
expected: "string",
|
|
65382
|
+
value: input.uri
|
|
65383
|
+
})].every((flag) => flag);
|
|
65384
|
+
const _vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
65385
|
+
path: _path + ".name",
|
|
65386
|
+
expected: "string",
|
|
65387
|
+
value: input.name
|
|
65388
|
+
}), (null !== input.source || _report(_exceptionable, {
|
|
65389
|
+
path: _path + ".source",
|
|
65390
|
+
expected: "undefined",
|
|
65391
|
+
value: input.source
|
|
65392
|
+
})) && (void 0 === input.source || _report(_exceptionable, {
|
|
65393
|
+
path: _path + ".source",
|
|
65394
|
+
expected: "undefined",
|
|
65395
|
+
value: input.source
|
|
65396
|
+
}))].every((flag) => flag);
|
|
65397
|
+
const _vo9 = (input, _path, _exceptionable = true) => ["clipboard" === input.name || _report(_exceptionable, {
|
|
65398
|
+
path: _path + ".name",
|
|
65399
|
+
expected: '"clipboard"',
|
|
65400
|
+
value: input.name
|
|
65401
|
+
}), "read" === input.access || "write" === input.access || _report(_exceptionable, {
|
|
65402
|
+
path: _path + ".access",
|
|
65403
|
+
expected: '("read" | "write")',
|
|
65404
|
+
value: input.access
|
|
65405
|
+
})].every((flag) => flag);
|
|
65406
|
+
const _vo10 = (input, _path, _exceptionable = true) => ["geolocation" === input.name || _report(_exceptionable, {
|
|
65407
|
+
path: _path + ".name",
|
|
65408
|
+
expected: '"geolocation"',
|
|
65409
|
+
value: input.name
|
|
65410
|
+
}), "access" === input.access || _report(_exceptionable, {
|
|
65411
|
+
path: _path + ".access",
|
|
65412
|
+
expected: '"access"',
|
|
65413
|
+
value: input.access
|
|
65414
|
+
})].every((flag) => flag);
|
|
65415
|
+
const _vo11 = (input, _path, _exceptionable = true) => ["contacts" === input.name || _report(_exceptionable, {
|
|
65416
|
+
path: _path + ".name",
|
|
65417
|
+
expected: '"contacts"',
|
|
65418
|
+
value: input.name
|
|
65419
|
+
}), "read" === input.access || "write" === input.access || _report(_exceptionable, {
|
|
65420
|
+
path: _path + ".access",
|
|
65421
|
+
expected: '("read" | "write")',
|
|
65422
|
+
value: input.access
|
|
65423
|
+
})].every((flag) => flag);
|
|
65424
|
+
const _vo12 = (input, _path, _exceptionable = true) => ["photos" === input.name || _report(_exceptionable, {
|
|
65425
|
+
path: _path + ".name",
|
|
65426
|
+
expected: '"photos"',
|
|
65427
|
+
value: input.name
|
|
65428
|
+
}), "read" === input.access || "write" === input.access || _report(_exceptionable, {
|
|
65429
|
+
path: _path + ".access",
|
|
65430
|
+
expected: '("read" | "write")',
|
|
65431
|
+
value: input.access
|
|
65432
|
+
})].every((flag) => flag);
|
|
65433
|
+
const _vo13 = (input, _path, _exceptionable = true) => ["camera" === input.name || _report(_exceptionable, {
|
|
65434
|
+
path: _path + ".name",
|
|
65435
|
+
expected: '"camera"',
|
|
65436
|
+
value: input.name
|
|
65437
|
+
}), "access" === input.access || _report(_exceptionable, {
|
|
65438
|
+
path: _path + ".access",
|
|
65439
|
+
expected: '"access"',
|
|
65440
|
+
value: input.access
|
|
65441
|
+
})].every((flag) => flag);
|
|
65442
|
+
const _vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
65443
|
+
if ("camera" === input.name)
|
|
65444
|
+
return _vo13(input, _path, _exceptionable);
|
|
65445
|
+
else if ("photos" === input.name)
|
|
65446
|
+
return _vo12(input, _path, _exceptionable);
|
|
65447
|
+
else if ("contacts" === input.name)
|
|
65448
|
+
return _vo11(input, _path, _exceptionable);
|
|
65449
|
+
else if ("geolocation" === input.name)
|
|
65450
|
+
return _vo10(input, _path, _exceptionable);
|
|
65451
|
+
else if ("clipboard" === input.name)
|
|
65452
|
+
return _vo9(input, _path, _exceptionable);
|
|
65453
|
+
else
|
|
65454
|
+
return _report(_exceptionable, {
|
|
65455
|
+
path: _path,
|
|
65456
|
+
expected: "(CameraPermission | PhotosPermission | ContactsPermission | GeolocationPermission | ClipboardPermission)",
|
|
65457
|
+
value: input
|
|
65458
|
+
});
|
|
65459
|
+
})();
|
|
65460
|
+
const _vu1 = (input, _path, _exceptionable = true) => (() => {
|
|
65461
|
+
if ("string" === typeof input.name)
|
|
65462
|
+
return _vo8(input, _path, _exceptionable);
|
|
65463
|
+
else if ("object" === typeof input.source && null !== input.source && _vo7(input.source, _path + ".source", false))
|
|
65464
|
+
return _vo6(input, _path, _exceptionable);
|
|
65465
|
+
else
|
|
65466
|
+
return _report(_exceptionable, {
|
|
65467
|
+
path: _path,
|
|
65468
|
+
expected: "(__type.o6 | __type.o4)",
|
|
65469
|
+
value: input
|
|
65470
|
+
});
|
|
65471
|
+
})();
|
|
65472
|
+
const __is = (input) => "object" === typeof input && null !== input && _io0(input);
|
|
65473
|
+
let errors;
|
|
65474
|
+
let _report;
|
|
65475
|
+
return (input) => {
|
|
65476
|
+
if (false === __is(input)) {
|
|
65477
|
+
errors = [];
|
|
65478
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
65479
|
+
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _report(true, {
|
|
65480
|
+
path: _path + "",
|
|
65481
|
+
expected: "AppsInTossWebPluginOptions",
|
|
65482
|
+
value: input2
|
|
65483
|
+
})) && _vo0(input2, _path + "", true) || _report(true, {
|
|
65484
|
+
path: _path + "",
|
|
65485
|
+
expected: "AppsInTossWebPluginOptions",
|
|
65486
|
+
value: input2
|
|
65487
|
+
}))(input, "$input", true);
|
|
65488
|
+
const success = 0 === errors.length;
|
|
65489
|
+
return success ? {
|
|
65490
|
+
success,
|
|
65491
|
+
data: input
|
|
65492
|
+
} : {
|
|
65493
|
+
success,
|
|
65494
|
+
errors,
|
|
65495
|
+
data: input
|
|
65496
|
+
};
|
|
65497
|
+
}
|
|
65498
|
+
return {
|
|
65499
|
+
success: true,
|
|
65500
|
+
data: input
|
|
65501
|
+
};
|
|
65502
|
+
};
|
|
65503
|
+
})();
|
|
65169
65504
|
function appsInTossWebBuild(options) {
|
|
65170
65505
|
const packageRoot = getPackageRoot2();
|
|
65171
65506
|
return {
|
|
@@ -65193,14 +65528,10 @@ function appsInTossWebBuild(options) {
|
|
|
65193
65528
|
}
|
|
65194
65529
|
const webDistFiles = await fs.promises.readdir(webDistDir);
|
|
65195
65530
|
if (webDistFiles.length === 0) {
|
|
65196
|
-
throw new Error(
|
|
65197
|
-
`\uC6F9 \uBE4C\uB4DC \uACB0\uACFC\uBB3C\uC774 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. bedrock.config.ts\uC5D0\uC11C \uC124\uC815\uD55C outdir \uACBD\uB85C\uC640 \uBE4C\uB4DC \uBA85\uB839\uC5B4(web.commands.build)\uC758 \uACB0\uACFC\uBB3C \uACBD\uB85C\uAC00 \uAC19\uC740\uC9C0 \uD655\uC778\uD558\uC138\uC694.`
|
|
65198
|
-
);
|
|
65531
|
+
throw new Error(`\uC6F9 \uBE4C\uB4DC \uACB0\uACFC\uBB3C\uC774 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. bedrock.config.ts\uC5D0\uC11C \uC124\uC815\uD55C outdir \uACBD\uB85C\uC640 \uBE4C\uB4DC \uBA85\uB839\uC5B4(web.commands.build)\uC758 \uACB0\uACFC\uBB3C \uACBD\uB85C\uAC00 \uAC19\uC740\uC9C0 \uD655\uC778\uD558\uC138\uC694.`);
|
|
65199
65532
|
}
|
|
65200
65533
|
if (!webDistFiles.includes("index.html")) {
|
|
65201
|
-
throw new Error(
|
|
65202
|
-
`\uC6F9 \uBE4C\uB4DC \uACB0\uACFC\uBB3C\uC5D0 ${outdir}/web/index.html \uD30C\uC77C\uC774 \uD544\uC694\uD574\uC694. \uD604\uC7AC\uB294 CSR / SSG \uD658\uACBD\uB9CC \uC9C0\uC6D0\uD558\uACE0 \uC788\uC5B4\uC694.`
|
|
65203
|
-
);
|
|
65534
|
+
throw new Error(`\uC6F9 \uBE4C\uB4DC \uACB0\uACFC\uBB3C\uC5D0 ${outdir}/web/index.html \uD30C\uC77C\uC774 \uD544\uC694\uD574\uC694. \uD604\uC7AC\uB294 CSR / SSG \uD658\uACBD\uB9CC \uC9C0\uC6D0\uD558\uACE0 \uC788\uC5B4\uC694.`);
|
|
65204
65535
|
}
|
|
65205
65536
|
}
|
|
65206
65537
|
}
|
|
@@ -65210,19 +65541,15 @@ async function getWebDistFiles(webDistDir) {
|
|
|
65210
65541
|
const additionalFilesToZip = [];
|
|
65211
65542
|
try {
|
|
65212
65543
|
const allFiles = await fs.promises.readdir(webDistDir, { recursive: true });
|
|
65213
|
-
const webFiles = await Promise.all(
|
|
65214
|
-
|
|
65215
|
-
|
|
65216
|
-
|
|
65217
|
-
|
|
65218
|
-
|
|
65219
|
-
|
|
65220
|
-
|
|
65221
|
-
|
|
65222
|
-
path: path6.join(webDistDir, file),
|
|
65223
|
-
name: path6.join("web", file)
|
|
65224
|
-
}))
|
|
65225
|
-
);
|
|
65544
|
+
const webFiles = await Promise.all(allFiles.map(async (file) => {
|
|
65545
|
+
const filePath = path6.join(webDistDir, file);
|
|
65546
|
+
const stat = await fs.promises.stat(filePath);
|
|
65547
|
+
return stat.isFile() ? file : null;
|
|
65548
|
+
})).then((files) => files.filter((file) => file !== null));
|
|
65549
|
+
additionalFilesToZip.push(...webFiles.map((file) => ({
|
|
65550
|
+
path: path6.join(webDistDir, file),
|
|
65551
|
+
name: path6.join("web", file)
|
|
65552
|
+
})));
|
|
65226
65553
|
} catch {
|
|
65227
65554
|
}
|
|
65228
65555
|
return additionalFilesToZip;
|
|
@@ -65267,6 +65594,11 @@ function appsInTossCreateArtifact(deploymentId) {
|
|
|
65267
65594
|
};
|
|
65268
65595
|
}
|
|
65269
65596
|
function appsInTossWeb(deploymentId, options) {
|
|
65597
|
+
const result = validateAppInTossWebPluginOptions(options);
|
|
65598
|
+
if (!result.success) {
|
|
65599
|
+
console.error("[Apps In Toss Plugin] \uD50C\uB7EC\uADF8\uC778 \uC635\uC158\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. bedrock.config.ts \uAD6C\uC131\uC744 \uD655\uC778\uD574\uC8FC\uC138\uC694.");
|
|
65600
|
+
process.exit(1);
|
|
65601
|
+
}
|
|
65270
65602
|
const { contents, path: envScriptPath } = setupRuntimeSetupScript({
|
|
65271
65603
|
brand: options.brand,
|
|
65272
65604
|
deploymentId
|
|
@@ -67878,6 +68210,16 @@ var DevCommand = class extends Command {
|
|
|
67878
68210
|
async execute() {
|
|
67879
68211
|
const packageRoot = getPackageRoot5();
|
|
67880
68212
|
const config = await loadConfig();
|
|
68213
|
+
const result = validateAppInTossWebPluginOptions({
|
|
68214
|
+
commands: config.web.commands,
|
|
68215
|
+
permissions: config.permissions,
|
|
68216
|
+
brand: config.brand,
|
|
68217
|
+
webViewProps: config.webViewProps
|
|
68218
|
+
});
|
|
68219
|
+
if (!result.success) {
|
|
68220
|
+
console.error("[Apps In Toss Plugin] \uD50C\uB7EC\uADF8\uC778 \uC635\uC158\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. bedrock.config.ts \uAD6C\uC131\uC744 \uD655\uC778\uD574\uC8FC\uC138\uC694.");
|
|
68221
|
+
process.exit(1);
|
|
68222
|
+
}
|
|
67881
68223
|
const { app, wss } = createApp(config);
|
|
67882
68224
|
const server = serve(
|
|
67883
68225
|
{
|
|
@@ -87493,7 +87493,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
87493
87493
|
var _default = exports.default = TurboModuleRegistry.get('LinkingManager');
|
|
87494
87494
|
},412,[34],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/Linking/NativeLinkingManager.js");
|
|
87495
87495
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
87496
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
87496
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
87497
87497
|
"__packager_asset": true,
|
|
87498
87498
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
87499
87499
|
"width": 28,
|
|
@@ -89172,7 +89172,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89172
89172
|
var _default = exports.default = NativeStatusBarManager;
|
|
89173
89173
|
},429,[34],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js");
|
|
89174
89174
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89175
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89175
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
89176
89176
|
"__packager_asset": true,
|
|
89177
89177
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89178
89178
|
"width": 16,
|
|
@@ -89184,7 +89184,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89184
89184
|
});
|
|
89185
89185
|
},430,[414],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-left.png");
|
|
89186
89186
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89187
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89187
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
89188
89188
|
"__packager_asset": true,
|
|
89189
89189
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89190
89190
|
"width": 16,
|
|
@@ -89818,7 +89818,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89818
89818
|
var _default = exports.default = LogBoxInspectorSourceMapStatus;
|
|
89819
89819
|
},435,[315,274,243,379,407,408,8,49,436,437],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js");
|
|
89820
89820
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89821
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89821
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
89822
89822
|
"__packager_asset": true,
|
|
89823
89823
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89824
89824
|
"width": 48,
|
|
@@ -89830,7 +89830,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89830
89830
|
});
|
|
89831
89831
|
},436,[414],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png");
|
|
89832
89832
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89833
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89833
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
89834
89834
|
"__packager_asset": true,
|
|
89835
89835
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89836
89836
|
"width": 44,
|
|
@@ -108470,7 +108470,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
108470
108470
|
}
|
|
108471
108471
|
},650,[511,8,11,49],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/PlatformPressable.tsx");
|
|
108472
108472
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
108473
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
108473
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
108474
108474
|
"__packager_asset": true,
|
|
108475
108475
|
"httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/assets",
|
|
108476
108476
|
"width": 24,
|
|
@@ -108482,7 +108482,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
108482
108482
|
});
|
|
108483
108483
|
},651,[414],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/assets/back-icon.png");
|
|
108484
108484
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
108485
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
108485
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
108486
108486
|
"__packager_asset": true,
|
|
108487
108487
|
"httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/assets",
|
|
108488
108488
|
"width": 50,
|
|
@@ -156890,7 +156890,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156890
156890
|
value = _ref38[1];
|
|
156891
156891
|
acc[key] = typeof value === "function" ? value() : value;
|
|
156892
156892
|
return acc;
|
|
156893
|
-
}, {}))), originalInjectedJavaScript, "true"].join("\n");
|
|
156893
|
+
}, {})), ";"), originalInjectedJavaScript, "true"].join("\n");
|
|
156894
156894
|
}, [constantHandlerMap, originalInjectedJavaScript]);
|
|
156895
156895
|
var createHandleOnEvent = function createHandleOnEvent(functionName, eventId) {
|
|
156896
156896
|
return function (response) {
|
|
@@ -157288,8 +157288,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157288
157288
|
var bottom = (0, import_private3.useSafeAreaBottom)();
|
|
157289
157289
|
var global2 = getAppsInTossGlobals();
|
|
157290
157290
|
var partner = (0, import_react_native20.usePartnerNavigation)();
|
|
157291
|
+
var disableTextSelectionCSS = "\n (function() {\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n })();\n ";
|
|
157291
157292
|
var handler = useBridgeHandler({
|
|
157292
157293
|
onMessage: onMessage,
|
|
157294
|
+
injectedJavaScript: [disableTextSelectionCSS].join("\n"),
|
|
157293
157295
|
eventListenerMap: _objectSpread(_objectSpread({}, event_bridges_exports), {}, {
|
|
157294
157296
|
navigationAccessoryEvent: function navigationAccessoryEvent(_ref46) {
|
|
157295
157297
|
var onEvent = _ref46.onEvent,
|
|
@@ -157437,14 +157439,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157437
157439
|
}, [type, props]);
|
|
157438
157440
|
var BaseWebView = WEBVIEW_TYPES[type];
|
|
157439
157441
|
var webViewDebuggingEnabled = operationalEnvironment === "sandbox";
|
|
157442
|
+
var _ref53 = (0, import_react10.useState)(false),
|
|
157443
|
+
_ref54 = _slicedToArray(_ref53, 2),
|
|
157444
|
+
canHistoryGoBack = _ref54[0],
|
|
157445
|
+
setCanHistoryGoBack = _ref54[1];
|
|
157440
157446
|
var handleNavigationStateChange = (0, import_react10.useCallback)(function (event) {
|
|
157441
157447
|
if (event.url) {
|
|
157442
157448
|
trackScreen(event.url);
|
|
157443
157449
|
}
|
|
157444
|
-
|
|
157450
|
+
setCanHistoryGoBack(event.canGoBack);
|
|
157451
|
+
}, [setCanHistoryGoBack]);
|
|
157445
157452
|
var userAgent = _useCreateUserAgent({
|
|
157446
157453
|
colorPreference: "light"
|
|
157447
157454
|
});
|
|
157455
|
+
var backEvent = (0, import_react_native_bedrock18.useBackEvent)();
|
|
157456
|
+
var handleBackEvent = (0, import_react10.useCallback)(function () {
|
|
157457
|
+
if (canHistoryGoBack) {
|
|
157458
|
+
var _handler$ref$current;
|
|
157459
|
+
(_handler$ref$current = handler.ref.current) === null || _handler$ref$current === void 0 || _handler$ref$current.goBack();
|
|
157460
|
+
} else {
|
|
157461
|
+
(0, import_react_native_bedrock18.closeView)();
|
|
157462
|
+
}
|
|
157463
|
+
}, [canHistoryGoBack, handler]);
|
|
157464
|
+
(0, import_react10.useEffect)(function () {
|
|
157465
|
+
backEvent.addEventListener(handleBackEvent);
|
|
157466
|
+
return function () {
|
|
157467
|
+
return backEvent.removeEventListener(handleBackEvent);
|
|
157468
|
+
};
|
|
157469
|
+
}, [backEvent, handleBackEvent]);
|
|
157448
157470
|
return (0, import_jsx_runtime7.jsx)(BaseWebView, _objectSpread(_objectSpread(_objectSpread({
|
|
157449
157471
|
ref: handler.ref
|
|
157450
157472
|
}, props), baseProps), {}, {
|
|
@@ -225877,7 +225899,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
225877
225899
|
}
|
|
225878
225900
|
},2210,[511,8,11,49],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/PlatformPressable.tsx");
|
|
225879
225901
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
225880
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
225902
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
225881
225903
|
"__packager_asset": true,
|
|
225882
225904
|
"httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/assets",
|
|
225883
225905
|
"width": 24,
|
|
@@ -225889,7 +225911,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
225889
225911
|
});
|
|
225890
225912
|
},2211,[414],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/assets/back-icon.png");
|
|
225891
225913
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
225892
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
225914
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
225893
225915
|
"__packager_asset": true,
|
|
225894
225916
|
"httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/assets",
|
|
225895
225917
|
"width": 50,
|
package/dist/prebuilt/dev.ios.js
CHANGED
|
@@ -87621,7 +87621,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
87621
87621
|
var _default = exports.default = TurboModuleRegistry.get('LinkingManager');
|
|
87622
87622
|
},415,[34],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/Linking/NativeLinkingManager.js");
|
|
87623
87623
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
87624
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
87624
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
87625
87625
|
"__packager_asset": true,
|
|
87626
87626
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
87627
87627
|
"width": 28,
|
|
@@ -89309,7 +89309,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89309
89309
|
var _default = exports.default = NativeStatusBarManager;
|
|
89310
89310
|
},432,[34],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js");
|
|
89311
89311
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89312
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89312
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
89313
89313
|
"__packager_asset": true,
|
|
89314
89314
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89315
89315
|
"width": 16,
|
|
@@ -89321,7 +89321,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89321
89321
|
});
|
|
89322
89322
|
},433,[417],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-left.png");
|
|
89323
89323
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89324
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89324
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
89325
89325
|
"__packager_asset": true,
|
|
89326
89326
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89327
89327
|
"width": 16,
|
|
@@ -89955,7 +89955,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89955
89955
|
var _default = exports.default = LogBoxInspectorSourceMapStatus;
|
|
89956
89956
|
},438,[318,277,246,382,410,411,8,49,439,440],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js");
|
|
89957
89957
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89958
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89958
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
89959
89959
|
"__packager_asset": true,
|
|
89960
89960
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89961
89961
|
"width": 48,
|
|
@@ -89967,7 +89967,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89967
89967
|
});
|
|
89968
89968
|
},439,[417],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png");
|
|
89969
89969
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89970
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89970
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
89971
89971
|
"__packager_asset": true,
|
|
89972
89972
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89973
89973
|
"width": 44,
|
|
@@ -108298,7 +108298,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
108298
108298
|
}
|
|
108299
108299
|
},648,[509,8,11,49],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/PlatformPressable.tsx");
|
|
108300
108300
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
108301
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
108301
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
108302
108302
|
"__packager_asset": true,
|
|
108303
108303
|
"httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/assets",
|
|
108304
108304
|
"width": 12,
|
|
@@ -108310,7 +108310,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
108310
108310
|
});
|
|
108311
108311
|
},649,[417],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/assets/back-icon.png");
|
|
108312
108312
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
108313
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
108313
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
108314
108314
|
"__packager_asset": true,
|
|
108315
108315
|
"httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/assets",
|
|
108316
108316
|
"width": 50,
|
|
@@ -156679,7 +156679,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156679
156679
|
value = _ref38[1];
|
|
156680
156680
|
acc[key] = typeof value === "function" ? value() : value;
|
|
156681
156681
|
return acc;
|
|
156682
|
-
}, {}))), originalInjectedJavaScript, "true"].join("\n");
|
|
156682
|
+
}, {})), ";"), originalInjectedJavaScript, "true"].join("\n");
|
|
156683
156683
|
}, [constantHandlerMap, originalInjectedJavaScript]);
|
|
156684
156684
|
var createHandleOnEvent = function createHandleOnEvent(functionName, eventId) {
|
|
156685
156685
|
return function (response) {
|
|
@@ -157077,8 +157077,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157077
157077
|
var bottom = (0, import_private3.useSafeAreaBottom)();
|
|
157078
157078
|
var global2 = getAppsInTossGlobals();
|
|
157079
157079
|
var partner = (0, import_react_native20.usePartnerNavigation)();
|
|
157080
|
+
var disableTextSelectionCSS = "\n (function() {\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n })();\n ";
|
|
157080
157081
|
var handler = useBridgeHandler({
|
|
157081
157082
|
onMessage: onMessage,
|
|
157083
|
+
injectedJavaScript: [disableTextSelectionCSS].join("\n"),
|
|
157082
157084
|
eventListenerMap: _objectSpread(_objectSpread({}, event_bridges_exports), {}, {
|
|
157083
157085
|
navigationAccessoryEvent: function navigationAccessoryEvent(_ref46) {
|
|
157084
157086
|
var onEvent = _ref46.onEvent,
|
|
@@ -157226,14 +157228,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157226
157228
|
}, [type, props]);
|
|
157227
157229
|
var BaseWebView = WEBVIEW_TYPES[type];
|
|
157228
157230
|
var webViewDebuggingEnabled = operationalEnvironment === "sandbox";
|
|
157231
|
+
var _ref53 = (0, import_react10.useState)(false),
|
|
157232
|
+
_ref54 = _slicedToArray(_ref53, 2),
|
|
157233
|
+
canHistoryGoBack = _ref54[0],
|
|
157234
|
+
setCanHistoryGoBack = _ref54[1];
|
|
157229
157235
|
var handleNavigationStateChange = (0, import_react10.useCallback)(function (event) {
|
|
157230
157236
|
if (event.url) {
|
|
157231
157237
|
trackScreen(event.url);
|
|
157232
157238
|
}
|
|
157233
|
-
|
|
157239
|
+
setCanHistoryGoBack(event.canGoBack);
|
|
157240
|
+
}, [setCanHistoryGoBack]);
|
|
157234
157241
|
var userAgent = _useCreateUserAgent({
|
|
157235
157242
|
colorPreference: "light"
|
|
157236
157243
|
});
|
|
157244
|
+
var backEvent = (0, import_react_native_bedrock18.useBackEvent)();
|
|
157245
|
+
var handleBackEvent = (0, import_react10.useCallback)(function () {
|
|
157246
|
+
if (canHistoryGoBack) {
|
|
157247
|
+
var _handler$ref$current;
|
|
157248
|
+
(_handler$ref$current = handler.ref.current) === null || _handler$ref$current === void 0 || _handler$ref$current.goBack();
|
|
157249
|
+
} else {
|
|
157250
|
+
(0, import_react_native_bedrock18.closeView)();
|
|
157251
|
+
}
|
|
157252
|
+
}, [canHistoryGoBack, handler]);
|
|
157253
|
+
(0, import_react10.useEffect)(function () {
|
|
157254
|
+
backEvent.addEventListener(handleBackEvent);
|
|
157255
|
+
return function () {
|
|
157256
|
+
return backEvent.removeEventListener(handleBackEvent);
|
|
157257
|
+
};
|
|
157258
|
+
}, [backEvent, handleBackEvent]);
|
|
157237
157259
|
return (0, import_jsx_runtime7.jsx)(BaseWebView, _objectSpread(_objectSpread(_objectSpread({
|
|
157238
157260
|
ref: handler.ref
|
|
157239
157261
|
}, props), baseProps), {}, {
|
|
@@ -225589,7 +225611,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
225589
225611
|
}
|
|
225590
225612
|
},2209,[509,8,11,49],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/PlatformPressable.tsx");
|
|
225591
225613
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
225592
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
225614
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
225593
225615
|
"__packager_asset": true,
|
|
225594
225616
|
"httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/assets",
|
|
225595
225617
|
"width": 12,
|
|
@@ -225601,7 +225623,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
225601
225623
|
});
|
|
225602
225624
|
},2210,[417],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/assets/back-icon.png");
|
|
225603
225625
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
225604
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
225626
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
225605
225627
|
"__packager_asset": true,
|
|
225606
225628
|
"httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/assets",
|
|
225607
225629
|
"width": 50,
|
|
@@ -39561,7 +39561,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
39561
39561
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
39562
39562
|
acc[key] = typeof value === "function" ? value() : value;
|
|
39563
39563
|
return acc;
|
|
39564
|
-
}, {}))),
|
|
39564
|
+
}, {})), ";"),
|
|
39565
39565
|
originalInjectedJavaScript,
|
|
39566
39566
|
"true"
|
|
39567
39567
|
].join("\n");
|
|
@@ -39873,8 +39873,12 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
39873
39873
|
var bottom = useSafeAreaBottom();
|
|
39874
39874
|
var global2 = getAppsInTossGlobals();
|
|
39875
39875
|
var partner = usePartnerNavigation();
|
|
39876
|
+
var disableTextSelectionCSS = "\n (function() {\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n })();\n ";
|
|
39876
39877
|
var handler = useBridgeHandler({
|
|
39877
39878
|
onMessage,
|
|
39879
|
+
injectedJavaScript: [
|
|
39880
|
+
disableTextSelectionCSS
|
|
39881
|
+
].join("\n"),
|
|
39878
39882
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
39879
39883
|
eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
|
|
39880
39884
|
navigationAccessoryEvent: function(param) {
|
|
@@ -40010,14 +40014,39 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40010
40014
|
]);
|
|
40011
40015
|
var BaseWebView = WEBVIEW_TYPES[type];
|
|
40012
40016
|
var webViewDebuggingEnabled = operationalEnvironment === "sandbox";
|
|
40017
|
+
var _useState4 = _sliced_to_array((0, import_react161.useState)(false), 2), canHistoryGoBack = _useState4[0], setCanHistoryGoBack = _useState4[1];
|
|
40013
40018
|
var handleNavigationStateChange = (0, import_react161.useCallback)(function(event) {
|
|
40014
40019
|
if (event.url) {
|
|
40015
40020
|
trackScreen(event.url);
|
|
40016
40021
|
}
|
|
40017
|
-
|
|
40022
|
+
setCanHistoryGoBack(event.canGoBack);
|
|
40023
|
+
}, [
|
|
40024
|
+
setCanHistoryGoBack
|
|
40025
|
+
]);
|
|
40018
40026
|
var userAgent = useCreateUserAgent({
|
|
40019
40027
|
colorPreference: "light"
|
|
40020
40028
|
});
|
|
40029
|
+
var backEvent = useBackEvent();
|
|
40030
|
+
var handleBackEvent = (0, import_react161.useCallback)(function() {
|
|
40031
|
+
if (canHistoryGoBack) {
|
|
40032
|
+
var _handler_ref_current;
|
|
40033
|
+
(_handler_ref_current = handler.ref.current) === null || _handler_ref_current === void 0 ? void 0 : _handler_ref_current.goBack();
|
|
40034
|
+
} else {
|
|
40035
|
+
closeView();
|
|
40036
|
+
}
|
|
40037
|
+
}, [
|
|
40038
|
+
canHistoryGoBack,
|
|
40039
|
+
handler
|
|
40040
|
+
]);
|
|
40041
|
+
(0, import_react161.useEffect)(function() {
|
|
40042
|
+
backEvent.addEventListener(handleBackEvent);
|
|
40043
|
+
return function() {
|
|
40044
|
+
return backEvent.removeEventListener(handleBackEvent);
|
|
40045
|
+
};
|
|
40046
|
+
}, [
|
|
40047
|
+
backEvent,
|
|
40048
|
+
handleBackEvent
|
|
40049
|
+
]);
|
|
40021
40050
|
return /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(BaseWebView, _object_spread_props(_object_spread({
|
|
40022
40051
|
ref: handler.ref
|
|
40023
40052
|
}, props, baseProps), {
|
|
@@ -39616,7 +39616,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
39616
39616
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
39617
39617
|
acc[key] = typeof value === "function" ? value() : value;
|
|
39618
39618
|
return acc;
|
|
39619
|
-
}, {}))),
|
|
39619
|
+
}, {})), ";"),
|
|
39620
39620
|
originalInjectedJavaScript,
|
|
39621
39621
|
"true"
|
|
39622
39622
|
].join("\n");
|
|
@@ -39928,8 +39928,12 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
39928
39928
|
var bottom = useSafeAreaBottom();
|
|
39929
39929
|
var global2 = getAppsInTossGlobals();
|
|
39930
39930
|
var partner = usePartnerNavigation();
|
|
39931
|
+
var disableTextSelectionCSS = "\n (function() {\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n })();\n ";
|
|
39931
39932
|
var handler = useBridgeHandler({
|
|
39932
39933
|
onMessage,
|
|
39934
|
+
injectedJavaScript: [
|
|
39935
|
+
disableTextSelectionCSS
|
|
39936
|
+
].join("\n"),
|
|
39933
39937
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
39934
39938
|
eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
|
|
39935
39939
|
navigationAccessoryEvent: function(param) {
|
|
@@ -40065,14 +40069,39 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40065
40069
|
]);
|
|
40066
40070
|
var BaseWebView = WEBVIEW_TYPES[type];
|
|
40067
40071
|
var webViewDebuggingEnabled = operationalEnvironment === "sandbox";
|
|
40072
|
+
var _useState4 = _sliced_to_array((0, import_react161.useState)(false), 2), canHistoryGoBack = _useState4[0], setCanHistoryGoBack = _useState4[1];
|
|
40068
40073
|
var handleNavigationStateChange = (0, import_react161.useCallback)(function(event) {
|
|
40069
40074
|
if (event.url) {
|
|
40070
40075
|
trackScreen(event.url);
|
|
40071
40076
|
}
|
|
40072
|
-
|
|
40077
|
+
setCanHistoryGoBack(event.canGoBack);
|
|
40078
|
+
}, [
|
|
40079
|
+
setCanHistoryGoBack
|
|
40080
|
+
]);
|
|
40073
40081
|
var userAgent = useCreateUserAgent({
|
|
40074
40082
|
colorPreference: "light"
|
|
40075
40083
|
});
|
|
40084
|
+
var backEvent = useBackEvent();
|
|
40085
|
+
var handleBackEvent = (0, import_react161.useCallback)(function() {
|
|
40086
|
+
if (canHistoryGoBack) {
|
|
40087
|
+
var _handler_ref_current;
|
|
40088
|
+
(_handler_ref_current = handler.ref.current) === null || _handler_ref_current === void 0 ? void 0 : _handler_ref_current.goBack();
|
|
40089
|
+
} else {
|
|
40090
|
+
closeView();
|
|
40091
|
+
}
|
|
40092
|
+
}, [
|
|
40093
|
+
canHistoryGoBack,
|
|
40094
|
+
handler
|
|
40095
|
+
]);
|
|
40096
|
+
(0, import_react161.useEffect)(function() {
|
|
40097
|
+
backEvent.addEventListener(handleBackEvent);
|
|
40098
|
+
return function() {
|
|
40099
|
+
return backEvent.removeEventListener(handleBackEvent);
|
|
40100
|
+
};
|
|
40101
|
+
}, [
|
|
40102
|
+
backEvent,
|
|
40103
|
+
handleBackEvent
|
|
40104
|
+
]);
|
|
40076
40105
|
return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(BaseWebView, _object_spread_props(_object_spread({
|
|
40077
40106
|
ref: handler.ref
|
|
40078
40107
|
}, props, baseProps), {
|
package/dist/prebuilt/prod.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
"platform": "ios",
|
|
4
4
|
"totalModuleCount": 1622,
|
|
5
|
-
"duration":
|
|
6
|
-
"size":
|
|
5
|
+
"duration": 1004.4969169999999,
|
|
6
|
+
"size": 1616080
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"platform": "android",
|
|
10
10
|
"totalModuleCount": 1622,
|
|
11
|
-
"duration":
|
|
12
|
-
"size":
|
|
11
|
+
"duration": 992.4125419999996,
|
|
12
|
+
"size": 1614439
|
|
13
13
|
}
|
|
14
14
|
]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/web-framework",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.38",
|
|
5
5
|
"description": "Web Framework for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepack": "yarn build",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"config.d.ts"
|
|
52
52
|
],
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@apps-in-toss/framework": "0.0.
|
|
54
|
+
"@apps-in-toss/framework": "0.0.38",
|
|
55
55
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
56
56
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
|
|
57
57
|
"@babel/plugin-proposal-numeric-separator": "^7.16.7",
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"@react-native-bedrock/mpack-next": "0.0.25",
|
|
73
73
|
"@react-native-bedrock/native": "0.0.25",
|
|
74
74
|
"@react-native-bedrock/plugin-core": "0.0.25",
|
|
75
|
+
"@ryoppippi/unplugin-typia": "^2.1.3",
|
|
75
76
|
"@toss-design-system/react-native": "0.7.2",
|
|
76
77
|
"@types/babel__core": "^7.20.5",
|
|
77
78
|
"@types/babel__traverse": "^7",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"react-native-bedrock": "0.0.25",
|
|
96
97
|
"tsup": "^8.3.5",
|
|
97
98
|
"typescript": "5.8.3",
|
|
99
|
+
"typia": "^8.0.4",
|
|
98
100
|
"uuidv7": "^1.0.2",
|
|
99
101
|
"vitest": "^3.0.5",
|
|
100
102
|
"wait-port": "^1.1.0",
|
|
@@ -102,16 +104,16 @@
|
|
|
102
104
|
"zod": "3.24.4"
|
|
103
105
|
},
|
|
104
106
|
"dependencies": {
|
|
105
|
-
"@apps-in-toss/bridge-core": "0.0.
|
|
106
|
-
"@apps-in-toss/cli": "0.0.
|
|
107
|
-
"@apps-in-toss/plugins": "0.0.
|
|
108
|
-
"@apps-in-toss/web-analytics": "0.0.
|
|
109
|
-
"@apps-in-toss/web-bridge": "0.0.
|
|
107
|
+
"@apps-in-toss/bridge-core": "0.0.38",
|
|
108
|
+
"@apps-in-toss/cli": "0.0.38",
|
|
109
|
+
"@apps-in-toss/plugins": "0.0.38",
|
|
110
|
+
"@apps-in-toss/web-analytics": "0.0.38",
|
|
111
|
+
"@apps-in-toss/web-bridge": "0.0.38",
|
|
110
112
|
"@babel/core": "7.23.9",
|
|
111
113
|
"@react-native-bedrock/utils": "0.0.25"
|
|
112
114
|
},
|
|
113
115
|
"publishConfig": {
|
|
114
116
|
"access": "public"
|
|
115
117
|
},
|
|
116
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "ce9e4e922e27220978e7975e350539e863088b38"
|
|
117
119
|
}
|