@apps-in-toss/web-framework 2.0.8 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +0 -471
- package/dist/config/index.js +534 -1
- package/dist/prebuilt/dev.android.rn84.js +10 -0
- package/dist/prebuilt/dev.ios.rn84.js +10 -0
- package/dist/prebuilt/prod.android.rn72.js +1 -0
- package/dist/prebuilt/prod.android.rn84.js +1 -0
- package/dist/prebuilt/prod.ios.rn72.js +1 -0
- package/dist/prebuilt/prod.ios.rn84.js +1 -0
- package/package.json +8 -8
package/dist/cli/index.js
CHANGED
|
@@ -638,152 +638,6 @@ var require_cross_spawn = __commonJS({
|
|
|
638
638
|
}
|
|
639
639
|
});
|
|
640
640
|
|
|
641
|
-
// ../../../.yarn/__virtual__/typia-virtual-6e1bbef80b/0/cache/typia-npm-9.7.2-987d15a303-1b19baddfe.zip/node_modules/typia/lib/internal/_validateReport.js
|
|
642
|
-
var require_validateReport = __commonJS({
|
|
643
|
-
"../../../.yarn/__virtual__/typia-virtual-6e1bbef80b/0/cache/typia-npm-9.7.2-987d15a303-1b19baddfe.zip/node_modules/typia/lib/internal/_validateReport.js"(exports) {
|
|
644
|
-
"use strict";
|
|
645
|
-
init_esm_shims();
|
|
646
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
647
|
-
exports._validateReport = void 0;
|
|
648
|
-
var _validateReport2 = (array) => {
|
|
649
|
-
const reportable = (path3) => {
|
|
650
|
-
if (array.length === 0)
|
|
651
|
-
return true;
|
|
652
|
-
const last = array[array.length - 1].path;
|
|
653
|
-
return path3.length > last.length || last.substring(0, path3.length) !== path3;
|
|
654
|
-
};
|
|
655
|
-
return (exceptable, error) => {
|
|
656
|
-
var _a;
|
|
657
|
-
if (exceptable && reportable(error.path)) {
|
|
658
|
-
if (error.value === void 0)
|
|
659
|
-
(_a = error.description) !== null && _a !== void 0 ? _a : error.description = [
|
|
660
|
-
"The value at this path is `undefined`.",
|
|
661
|
-
"",
|
|
662
|
-
`Please fill the \`${error.expected}\` typed value next time.`
|
|
663
|
-
].join("\n");
|
|
664
|
-
array.push(error);
|
|
665
|
-
}
|
|
666
|
-
return false;
|
|
667
|
-
};
|
|
668
|
-
};
|
|
669
|
-
exports._validateReport = _validateReport2;
|
|
670
|
-
}
|
|
671
|
-
});
|
|
672
|
-
|
|
673
|
-
// ../../../.yarn/__virtual__/typia-virtual-6e1bbef80b/0/cache/typia-npm-9.7.2-987d15a303-1b19baddfe.zip/node_modules/typia/lib/internal/_createStandardSchema.js
|
|
674
|
-
var require_createStandardSchema = __commonJS({
|
|
675
|
-
"../../../.yarn/__virtual__/typia-virtual-6e1bbef80b/0/cache/typia-npm-9.7.2-987d15a303-1b19baddfe.zip/node_modules/typia/lib/internal/_createStandardSchema.js"(exports) {
|
|
676
|
-
"use strict";
|
|
677
|
-
init_esm_shims();
|
|
678
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
679
|
-
exports._createStandardSchema = void 0;
|
|
680
|
-
var _createStandardSchema2 = (fn) => Object.assign(fn, {
|
|
681
|
-
"~standard": {
|
|
682
|
-
version: 1,
|
|
683
|
-
vendor: "typia",
|
|
684
|
-
validate: (input) => {
|
|
685
|
-
const result = fn(input);
|
|
686
|
-
if (result.success) {
|
|
687
|
-
return {
|
|
688
|
-
value: result.data
|
|
689
|
-
};
|
|
690
|
-
} else {
|
|
691
|
-
return {
|
|
692
|
-
issues: result.errors.map((error) => ({
|
|
693
|
-
message: `expected ${error.expected}, got ${error.value}`,
|
|
694
|
-
path: typiaPathToStandardSchemaPath(error.path)
|
|
695
|
-
}))
|
|
696
|
-
};
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
});
|
|
701
|
-
exports._createStandardSchema = _createStandardSchema2;
|
|
702
|
-
var PathParserState;
|
|
703
|
-
(function(PathParserState2) {
|
|
704
|
-
PathParserState2[PathParserState2["Start"] = 0] = "Start";
|
|
705
|
-
PathParserState2[PathParserState2["Property"] = 1] = "Property";
|
|
706
|
-
PathParserState2[PathParserState2["StringKey"] = 2] = "StringKey";
|
|
707
|
-
PathParserState2[PathParserState2["NumberKey"] = 3] = "NumberKey";
|
|
708
|
-
})(PathParserState || (PathParserState = {}));
|
|
709
|
-
var typiaPathToStandardSchemaPath = (path3) => {
|
|
710
|
-
if (!path3.startsWith("$input")) {
|
|
711
|
-
throw new Error(`Invalid path: ${JSON.stringify(path3)}`);
|
|
712
|
-
}
|
|
713
|
-
const segments = [];
|
|
714
|
-
let currentSegment = "";
|
|
715
|
-
let state = PathParserState.Start;
|
|
716
|
-
let index = "$input".length - 1;
|
|
717
|
-
while (index < path3.length - 1) {
|
|
718
|
-
index++;
|
|
719
|
-
const char = path3[index];
|
|
720
|
-
if (state === PathParserState.Property) {
|
|
721
|
-
if (char === "." || char === "[") {
|
|
722
|
-
segments.push({
|
|
723
|
-
key: currentSegment
|
|
724
|
-
});
|
|
725
|
-
state = PathParserState.Start;
|
|
726
|
-
} else if (index === path3.length - 1) {
|
|
727
|
-
currentSegment += char;
|
|
728
|
-
segments.push({
|
|
729
|
-
key: currentSegment
|
|
730
|
-
});
|
|
731
|
-
index++;
|
|
732
|
-
state = PathParserState.Start;
|
|
733
|
-
} else {
|
|
734
|
-
currentSegment += char;
|
|
735
|
-
}
|
|
736
|
-
} else if (state === PathParserState.StringKey) {
|
|
737
|
-
if (char === '"') {
|
|
738
|
-
segments.push({
|
|
739
|
-
key: JSON.parse(currentSegment + char)
|
|
740
|
-
});
|
|
741
|
-
index += 2;
|
|
742
|
-
state = PathParserState.Start;
|
|
743
|
-
} else if (char === "\\") {
|
|
744
|
-
currentSegment += path3[index];
|
|
745
|
-
index++;
|
|
746
|
-
currentSegment += path3[index];
|
|
747
|
-
} else {
|
|
748
|
-
currentSegment += char;
|
|
749
|
-
}
|
|
750
|
-
} else if (state === PathParserState.NumberKey) {
|
|
751
|
-
if (char === "]") {
|
|
752
|
-
segments.push({
|
|
753
|
-
key: Number.parseInt(currentSegment)
|
|
754
|
-
});
|
|
755
|
-
index++;
|
|
756
|
-
state = PathParserState.Start;
|
|
757
|
-
} else {
|
|
758
|
-
currentSegment += char;
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
if (state === PathParserState.Start && index < path3.length - 1) {
|
|
762
|
-
const newChar = path3[index];
|
|
763
|
-
currentSegment = "";
|
|
764
|
-
if (newChar === "[") {
|
|
765
|
-
if (path3[index + 1] === '"') {
|
|
766
|
-
state = PathParserState.StringKey;
|
|
767
|
-
index++;
|
|
768
|
-
currentSegment = '"';
|
|
769
|
-
} else {
|
|
770
|
-
state = PathParserState.NumberKey;
|
|
771
|
-
}
|
|
772
|
-
} else if (newChar === ".") {
|
|
773
|
-
state = PathParserState.Property;
|
|
774
|
-
} else {
|
|
775
|
-
throw new Error("Unreachable: pointer points invalid character");
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
if (state !== PathParserState.Start) {
|
|
780
|
-
throw new Error(`Failed to parse path: ${JSON.stringify(path3)}`);
|
|
781
|
-
}
|
|
782
|
-
return segments;
|
|
783
|
-
};
|
|
784
|
-
}
|
|
785
|
-
});
|
|
786
|
-
|
|
787
641
|
// ../../../.yarn/__virtual__/ws-virtual-a7b6462606/0/cache/ws-npm-8.18.1-166778b26f-e498965d69.zip/node_modules/ws/lib/constants.js
|
|
788
642
|
var require_constants = __commonJS({
|
|
789
643
|
"../../../.yarn/__virtual__/ws-virtual-a7b6462606/0/cache/ws-npm-8.18.1-166778b26f-e498965d69.zip/node_modules/ws/lib/constants.js"(exports, module) {
|
|
@@ -13705,320 +13559,6 @@ var {
|
|
|
13705
13559
|
getCancelSignal: getCancelSignal2
|
|
13706
13560
|
} = getIpcExport();
|
|
13707
13561
|
|
|
13708
|
-
// src/plugins/appsInTossWeb.ts
|
|
13709
|
-
init_esm_shims();
|
|
13710
|
-
var __typia_transform__validateReport = __toESM(require_validateReport(), 1);
|
|
13711
|
-
var __typia_transform__createStandardSchema = __toESM(require_createStandardSchema(), 1);
|
|
13712
|
-
var validateAppInTossWebPluginOptions = (() => {
|
|
13713
|
-
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.navigationBar || "object" === typeof input.navigationBar && null !== input.navigationBar && false === Array.isArray(input.navigationBar) && _io3(input.navigationBar)) && (void 0 === input.webViewProps || "object" === typeof input.webViewProps && null !== input.webViewProps && false === Array.isArray(input.webViewProps) && _io8(input.webViewProps)) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem)));
|
|
13714
|
-
const _io1 = (input) => "string" === typeof input.build;
|
|
13715
|
-
const _io2 = (input) => "string" === typeof input.displayName && "string" === typeof input.primaryColor && "string" === typeof input.icon;
|
|
13716
|
-
const _io3 = (input) => (void 0 === input.withBackButton || "boolean" === typeof input.withBackButton) && (void 0 === input.withHomeButton || "boolean" === typeof input.withHomeButton) && (void 0 === input.initialAccessoryButton || "object" === typeof input.initialAccessoryButton && null !== input.initialAccessoryButton && _io4(input.initialAccessoryButton));
|
|
13717
|
-
const _io4 = (input) => "string" === typeof input.id && "string" === typeof input.title && ("object" === typeof input.icon && null !== input.icon && _iu1(input.icon));
|
|
13718
|
-
const _io5 = (input) => "object" === typeof input.source && null !== input.source && _io6(input.source) && (null !== input.name && void 0 === input.name);
|
|
13719
|
-
const _io6 = (input) => "string" === typeof input.uri;
|
|
13720
|
-
const _io7 = (input) => "string" === typeof input.name && (null !== input.source && void 0 === input.source);
|
|
13721
|
-
const _io8 = (input) => (void 0 === input.type || "partner" === input.type || "external" === input.type || "game" === input.type) && (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);
|
|
13722
|
-
const _io9 = (input) => "clipboard" === input.name && ("read" === input.access || "write" === input.access);
|
|
13723
|
-
const _io10 = (input) => "geolocation" === input.name && "access" === input.access;
|
|
13724
|
-
const _io11 = (input) => "contacts" === input.name && ("read" === input.access || "write" === input.access);
|
|
13725
|
-
const _io12 = (input) => "photos" === input.name && ("read" === input.access || "write" === input.access);
|
|
13726
|
-
const _io13 = (input) => "camera" === input.name && "access" === input.access;
|
|
13727
|
-
const _iu0 = (input) => (() => {
|
|
13728
|
-
if ("camera" === input.name)
|
|
13729
|
-
return _io13(input);
|
|
13730
|
-
else if ("photos" === input.name)
|
|
13731
|
-
return _io12(input);
|
|
13732
|
-
else if ("contacts" === input.name)
|
|
13733
|
-
return _io11(input);
|
|
13734
|
-
else if ("geolocation" === input.name)
|
|
13735
|
-
return _io10(input);
|
|
13736
|
-
else if ("clipboard" === input.name)
|
|
13737
|
-
return _io9(input);
|
|
13738
|
-
else
|
|
13739
|
-
return false;
|
|
13740
|
-
})();
|
|
13741
|
-
const _iu1 = (input) => (() => {
|
|
13742
|
-
if ("string" === typeof input.name)
|
|
13743
|
-
return _io7(input);
|
|
13744
|
-
else if ("object" === typeof input.source && null !== input.source && _io6(input.source))
|
|
13745
|
-
return _io5(input);
|
|
13746
|
-
else
|
|
13747
|
-
return false;
|
|
13748
|
-
})();
|
|
13749
|
-
const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.commands && null !== input.commands || _report(_exceptionable, {
|
|
13750
|
-
path: _path + ".commands",
|
|
13751
|
-
expected: "__type",
|
|
13752
|
-
value: input.commands
|
|
13753
|
-
})) && _vo1(input.commands, _path + ".commands", _exceptionable) || _report(_exceptionable, {
|
|
13754
|
-
path: _path + ".commands",
|
|
13755
|
-
expected: "__type",
|
|
13756
|
-
value: input.commands
|
|
13757
|
-
}), ("object" === typeof input.brand && null !== input.brand || _report(_exceptionable, {
|
|
13758
|
-
path: _path + ".brand",
|
|
13759
|
-
expected: "__type.o1",
|
|
13760
|
-
value: input.brand
|
|
13761
|
-
})) && _vo2(input.brand, _path + ".brand", _exceptionable) || _report(_exceptionable, {
|
|
13762
|
-
path: _path + ".brand",
|
|
13763
|
-
expected: "__type.o1",
|
|
13764
|
-
value: input.brand
|
|
13765
|
-
}), void 0 === input.navigationBar || ("object" === typeof input.navigationBar && null !== input.navigationBar && false === Array.isArray(input.navigationBar) || _report(_exceptionable, {
|
|
13766
|
-
path: _path + ".navigationBar",
|
|
13767
|
-
expected: "(__type.o2 | undefined)",
|
|
13768
|
-
value: input.navigationBar
|
|
13769
|
-
})) && _vo3(input.navigationBar, _path + ".navigationBar", _exceptionable) || _report(_exceptionable, {
|
|
13770
|
-
path: _path + ".navigationBar",
|
|
13771
|
-
expected: "(__type.o2 | undefined)",
|
|
13772
|
-
value: input.navigationBar
|
|
13773
|
-
}), void 0 === input.webViewProps || ("object" === typeof input.webViewProps && null !== input.webViewProps && false === Array.isArray(input.webViewProps) || _report(_exceptionable, {
|
|
13774
|
-
path: _path + ".webViewProps",
|
|
13775
|
-
expected: "(__type.o6 | undefined)",
|
|
13776
|
-
value: input.webViewProps
|
|
13777
|
-
})) && _vo8(input.webViewProps, _path + ".webViewProps", _exceptionable) || _report(_exceptionable, {
|
|
13778
|
-
path: _path + ".webViewProps",
|
|
13779
|
-
expected: "(__type.o6 | undefined)",
|
|
13780
|
-
value: input.webViewProps
|
|
13781
|
-
}), (Array.isArray(input.permissions) || _report(_exceptionable, {
|
|
13782
|
-
path: _path + ".permissions",
|
|
13783
|
-
expected: "Array<Permission>",
|
|
13784
|
-
value: input.permissions
|
|
13785
|
-
})) && input.permissions.map((elem, _index2) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
13786
|
-
path: _path + ".permissions[" + _index2 + "]",
|
|
13787
|
-
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
|
|
13788
|
-
value: elem
|
|
13789
|
-
})) && _vu0(elem, _path + ".permissions[" + _index2 + "]", _exceptionable) || _report(_exceptionable, {
|
|
13790
|
-
path: _path + ".permissions[" + _index2 + "]",
|
|
13791
|
-
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
|
|
13792
|
-
value: elem
|
|
13793
|
-
})).every((flag) => flag) || _report(_exceptionable, {
|
|
13794
|
-
path: _path + ".permissions",
|
|
13795
|
-
expected: "Array<Permission>",
|
|
13796
|
-
value: input.permissions
|
|
13797
|
-
})].every((flag) => flag);
|
|
13798
|
-
const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.build || _report(_exceptionable, {
|
|
13799
|
-
path: _path + ".build",
|
|
13800
|
-
expected: "string",
|
|
13801
|
-
value: input.build
|
|
13802
|
-
})].every((flag) => flag);
|
|
13803
|
-
const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.displayName || _report(_exceptionable, {
|
|
13804
|
-
path: _path + ".displayName",
|
|
13805
|
-
expected: "string",
|
|
13806
|
-
value: input.displayName
|
|
13807
|
-
}), "string" === typeof input.primaryColor || _report(_exceptionable, {
|
|
13808
|
-
path: _path + ".primaryColor",
|
|
13809
|
-
expected: "string",
|
|
13810
|
-
value: input.primaryColor
|
|
13811
|
-
}), "string" === typeof input.icon || _report(_exceptionable, {
|
|
13812
|
-
path: _path + ".icon",
|
|
13813
|
-
expected: "string",
|
|
13814
|
-
value: input.icon
|
|
13815
|
-
})].every((flag) => flag);
|
|
13816
|
-
const _vo3 = (input, _path, _exceptionable = true) => [void 0 === input.withBackButton || "boolean" === typeof input.withBackButton || _report(_exceptionable, {
|
|
13817
|
-
path: _path + ".withBackButton",
|
|
13818
|
-
expected: "(boolean | undefined)",
|
|
13819
|
-
value: input.withBackButton
|
|
13820
|
-
}), void 0 === input.withHomeButton || "boolean" === typeof input.withHomeButton || _report(_exceptionable, {
|
|
13821
|
-
path: _path + ".withHomeButton",
|
|
13822
|
-
expected: "(boolean | undefined)",
|
|
13823
|
-
value: input.withHomeButton
|
|
13824
|
-
}), void 0 === input.initialAccessoryButton || ("object" === typeof input.initialAccessoryButton && null !== input.initialAccessoryButton || _report(_exceptionable, {
|
|
13825
|
-
path: _path + ".initialAccessoryButton",
|
|
13826
|
-
expected: "(InitialAccessoryButton | undefined)",
|
|
13827
|
-
value: input.initialAccessoryButton
|
|
13828
|
-
})) && _vo4(input.initialAccessoryButton, _path + ".initialAccessoryButton", _exceptionable) || _report(_exceptionable, {
|
|
13829
|
-
path: _path + ".initialAccessoryButton",
|
|
13830
|
-
expected: "(InitialAccessoryButton | undefined)",
|
|
13831
|
-
value: input.initialAccessoryButton
|
|
13832
|
-
})].every((flag) => flag);
|
|
13833
|
-
const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
13834
|
-
path: _path + ".id",
|
|
13835
|
-
expected: "string",
|
|
13836
|
-
value: input.id
|
|
13837
|
-
}), "string" === typeof input.title || _report(_exceptionable, {
|
|
13838
|
-
path: _path + ".title",
|
|
13839
|
-
expected: "string",
|
|
13840
|
-
value: input.title
|
|
13841
|
-
}), ("object" === typeof input.icon && null !== input.icon || _report(_exceptionable, {
|
|
13842
|
-
path: _path + ".icon",
|
|
13843
|
-
expected: "(__type.o3 | __type.o5)",
|
|
13844
|
-
value: input.icon
|
|
13845
|
-
})) && _vu1(input.icon, _path + ".icon", _exceptionable) || _report(_exceptionable, {
|
|
13846
|
-
path: _path + ".icon",
|
|
13847
|
-
expected: "(__type.o3 | __type.o5)",
|
|
13848
|
-
value: input.icon
|
|
13849
|
-
})].every((flag) => flag);
|
|
13850
|
-
const _vo5 = (input, _path, _exceptionable = true) => [("object" === typeof input.source && null !== input.source || _report(_exceptionable, {
|
|
13851
|
-
path: _path + ".source",
|
|
13852
|
-
expected: "__type.o4",
|
|
13853
|
-
value: input.source
|
|
13854
|
-
})) && _vo6(input.source, _path + ".source", _exceptionable) || _report(_exceptionable, {
|
|
13855
|
-
path: _path + ".source",
|
|
13856
|
-
expected: "__type.o4",
|
|
13857
|
-
value: input.source
|
|
13858
|
-
}), (null !== input.name || _report(_exceptionable, {
|
|
13859
|
-
path: _path + ".name",
|
|
13860
|
-
expected: "undefined",
|
|
13861
|
-
value: input.name
|
|
13862
|
-
})) && (void 0 === input.name || _report(_exceptionable, {
|
|
13863
|
-
path: _path + ".name",
|
|
13864
|
-
expected: "undefined",
|
|
13865
|
-
value: input.name
|
|
13866
|
-
}))].every((flag) => flag);
|
|
13867
|
-
const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || _report(_exceptionable, {
|
|
13868
|
-
path: _path + ".uri",
|
|
13869
|
-
expected: "string",
|
|
13870
|
-
value: input.uri
|
|
13871
|
-
})].every((flag) => flag);
|
|
13872
|
-
const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
13873
|
-
path: _path + ".name",
|
|
13874
|
-
expected: "string",
|
|
13875
|
-
value: input.name
|
|
13876
|
-
}), (null !== input.source || _report(_exceptionable, {
|
|
13877
|
-
path: _path + ".source",
|
|
13878
|
-
expected: "undefined",
|
|
13879
|
-
value: input.source
|
|
13880
|
-
})) && (void 0 === input.source || _report(_exceptionable, {
|
|
13881
|
-
path: _path + ".source",
|
|
13882
|
-
expected: "undefined",
|
|
13883
|
-
value: input.source
|
|
13884
|
-
}))].every((flag) => flag);
|
|
13885
|
-
const _vo8 = (input, _path, _exceptionable = true) => [void 0 === input.type || "partner" === input.type || "external" === input.type || "game" === input.type || _report(_exceptionable, {
|
|
13886
|
-
path: _path + ".type",
|
|
13887
|
-
expected: '("external" | "game" | "partner" | undefined)',
|
|
13888
|
-
value: input.type
|
|
13889
|
-
}), void 0 === input.allowsInlineMediaPlayback || "boolean" === typeof input.allowsInlineMediaPlayback || _report(_exceptionable, {
|
|
13890
|
-
path: _path + ".allowsInlineMediaPlayback",
|
|
13891
|
-
expected: "(boolean | undefined)",
|
|
13892
|
-
value: input.allowsInlineMediaPlayback
|
|
13893
|
-
}), void 0 === input.bounces || "boolean" === typeof input.bounces || _report(_exceptionable, {
|
|
13894
|
-
path: _path + ".bounces",
|
|
13895
|
-
expected: "(boolean | undefined)",
|
|
13896
|
-
value: input.bounces
|
|
13897
|
-
}), void 0 === input.pullToRefreshEnabled || "boolean" === typeof input.pullToRefreshEnabled || _report(_exceptionable, {
|
|
13898
|
-
path: _path + ".pullToRefreshEnabled",
|
|
13899
|
-
expected: "(boolean | undefined)",
|
|
13900
|
-
value: input.pullToRefreshEnabled
|
|
13901
|
-
}), void 0 === input.overScrollMode || "always" === input.overScrollMode || "content" === input.overScrollMode || "never" === input.overScrollMode || _report(_exceptionable, {
|
|
13902
|
-
path: _path + ".overScrollMode",
|
|
13903
|
-
expected: '("always" | "content" | "never" | undefined)',
|
|
13904
|
-
value: input.overScrollMode
|
|
13905
|
-
}), void 0 === input.mediaPlaybackRequiresUserAction || "boolean" === typeof input.mediaPlaybackRequiresUserAction || _report(_exceptionable, {
|
|
13906
|
-
path: _path + ".mediaPlaybackRequiresUserAction",
|
|
13907
|
-
expected: "(boolean | undefined)",
|
|
13908
|
-
value: input.mediaPlaybackRequiresUserAction
|
|
13909
|
-
}), void 0 === input.allowsBackForwardNavigationGestures || "boolean" === typeof input.allowsBackForwardNavigationGestures || _report(_exceptionable, {
|
|
13910
|
-
path: _path + ".allowsBackForwardNavigationGestures",
|
|
13911
|
-
expected: "(boolean | undefined)",
|
|
13912
|
-
value: input.allowsBackForwardNavigationGestures
|
|
13913
|
-
})].every((flag) => flag);
|
|
13914
|
-
const _vo9 = (input, _path, _exceptionable = true) => ["clipboard" === input.name || _report(_exceptionable, {
|
|
13915
|
-
path: _path + ".name",
|
|
13916
|
-
expected: '"clipboard"',
|
|
13917
|
-
value: input.name
|
|
13918
|
-
}), "read" === input.access || "write" === input.access || _report(_exceptionable, {
|
|
13919
|
-
path: _path + ".access",
|
|
13920
|
-
expected: '("read" | "write")',
|
|
13921
|
-
value: input.access
|
|
13922
|
-
})].every((flag) => flag);
|
|
13923
|
-
const _vo10 = (input, _path, _exceptionable = true) => ["geolocation" === input.name || _report(_exceptionable, {
|
|
13924
|
-
path: _path + ".name",
|
|
13925
|
-
expected: '"geolocation"',
|
|
13926
|
-
value: input.name
|
|
13927
|
-
}), "access" === input.access || _report(_exceptionable, {
|
|
13928
|
-
path: _path + ".access",
|
|
13929
|
-
expected: '"access"',
|
|
13930
|
-
value: input.access
|
|
13931
|
-
})].every((flag) => flag);
|
|
13932
|
-
const _vo11 = (input, _path, _exceptionable = true) => ["contacts" === input.name || _report(_exceptionable, {
|
|
13933
|
-
path: _path + ".name",
|
|
13934
|
-
expected: '"contacts"',
|
|
13935
|
-
value: input.name
|
|
13936
|
-
}), "read" === input.access || "write" === input.access || _report(_exceptionable, {
|
|
13937
|
-
path: _path + ".access",
|
|
13938
|
-
expected: '("read" | "write")',
|
|
13939
|
-
value: input.access
|
|
13940
|
-
})].every((flag) => flag);
|
|
13941
|
-
const _vo12 = (input, _path, _exceptionable = true) => ["photos" === input.name || _report(_exceptionable, {
|
|
13942
|
-
path: _path + ".name",
|
|
13943
|
-
expected: '"photos"',
|
|
13944
|
-
value: input.name
|
|
13945
|
-
}), "read" === input.access || "write" === input.access || _report(_exceptionable, {
|
|
13946
|
-
path: _path + ".access",
|
|
13947
|
-
expected: '("read" | "write")',
|
|
13948
|
-
value: input.access
|
|
13949
|
-
})].every((flag) => flag);
|
|
13950
|
-
const _vo13 = (input, _path, _exceptionable = true) => ["camera" === input.name || _report(_exceptionable, {
|
|
13951
|
-
path: _path + ".name",
|
|
13952
|
-
expected: '"camera"',
|
|
13953
|
-
value: input.name
|
|
13954
|
-
}), "access" === input.access || _report(_exceptionable, {
|
|
13955
|
-
path: _path + ".access",
|
|
13956
|
-
expected: '"access"',
|
|
13957
|
-
value: input.access
|
|
13958
|
-
})].every((flag) => flag);
|
|
13959
|
-
const _vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
13960
|
-
if ("camera" === input.name)
|
|
13961
|
-
return _vo13(input, _path, _exceptionable);
|
|
13962
|
-
else if ("photos" === input.name)
|
|
13963
|
-
return _vo12(input, _path, _exceptionable);
|
|
13964
|
-
else if ("contacts" === input.name)
|
|
13965
|
-
return _vo11(input, _path, _exceptionable);
|
|
13966
|
-
else if ("geolocation" === input.name)
|
|
13967
|
-
return _vo10(input, _path, _exceptionable);
|
|
13968
|
-
else if ("clipboard" === input.name)
|
|
13969
|
-
return _vo9(input, _path, _exceptionable);
|
|
13970
|
-
else
|
|
13971
|
-
return _report(_exceptionable, {
|
|
13972
|
-
path: _path,
|
|
13973
|
-
expected: "(CameraPermission | PhotosPermission | ContactsPermission | GeolocationPermission | ClipboardPermission)",
|
|
13974
|
-
value: input
|
|
13975
|
-
});
|
|
13976
|
-
})();
|
|
13977
|
-
const _vu1 = (input, _path, _exceptionable = true) => (() => {
|
|
13978
|
-
if ("string" === typeof input.name)
|
|
13979
|
-
return _vo7(input, _path, _exceptionable);
|
|
13980
|
-
else if ("object" === typeof input.source && null !== input.source && _vo6(input.source, _path + ".source", false))
|
|
13981
|
-
return _vo5(input, _path, _exceptionable);
|
|
13982
|
-
else
|
|
13983
|
-
return _report(_exceptionable, {
|
|
13984
|
-
path: _path,
|
|
13985
|
-
expected: "(__type.o5 | __type.o3)",
|
|
13986
|
-
value: input
|
|
13987
|
-
});
|
|
13988
|
-
})();
|
|
13989
|
-
const __is = (input) => "object" === typeof input && null !== input && _io0(input);
|
|
13990
|
-
let errors;
|
|
13991
|
-
let _report;
|
|
13992
|
-
return __typia_transform__createStandardSchema._createStandardSchema((input) => {
|
|
13993
|
-
if (false === __is(input)) {
|
|
13994
|
-
errors = [];
|
|
13995
|
-
_report = __typia_transform__validateReport._validateReport(errors);
|
|
13996
|
-
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _report(true, {
|
|
13997
|
-
path: _path + "",
|
|
13998
|
-
expected: "AppsInTossWebPluginOptions",
|
|
13999
|
-
value: input2
|
|
14000
|
-
})) && _vo0(input2, _path + "", true) || _report(true, {
|
|
14001
|
-
path: _path + "",
|
|
14002
|
-
expected: "AppsInTossWebPluginOptions",
|
|
14003
|
-
value: input2
|
|
14004
|
-
}))(input, "$input", true);
|
|
14005
|
-
const success = 0 === errors.length;
|
|
14006
|
-
return success ? {
|
|
14007
|
-
success,
|
|
14008
|
-
data: input
|
|
14009
|
-
} : {
|
|
14010
|
-
success,
|
|
14011
|
-
errors,
|
|
14012
|
-
data: input
|
|
14013
|
-
};
|
|
14014
|
-
}
|
|
14015
|
-
return {
|
|
14016
|
-
success: true,
|
|
14017
|
-
data: input
|
|
14018
|
-
};
|
|
14019
|
-
});
|
|
14020
|
-
})();
|
|
14021
|
-
|
|
14022
13562
|
// src/server.ts
|
|
14023
13563
|
init_esm_shims();
|
|
14024
13564
|
import fs from "fs";
|
|
@@ -15980,17 +15520,6 @@ var DevCommand = class extends Command {
|
|
|
15980
15520
|
async execute() {
|
|
15981
15521
|
const packageRoot = getPackageRoot();
|
|
15982
15522
|
const config = await loadConfig();
|
|
15983
|
-
const result = validateAppInTossWebPluginOptions({
|
|
15984
|
-
commands: config.web.commands,
|
|
15985
|
-
permissions: config.permissions,
|
|
15986
|
-
brand: config.brand,
|
|
15987
|
-
navigationBar: config.navigationBar,
|
|
15988
|
-
webViewProps: config.webViewProps
|
|
15989
|
-
});
|
|
15990
|
-
if (!result.success) {
|
|
15991
|
-
console.error("[Apps In Toss Plugin] \uD50C\uB7EC\uADF8\uC778 \uC635\uC158\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. granite.config.ts \uAD6C\uC131\uC744 \uD655\uC778\uD574\uC8FC\uC138\uC694.");
|
|
15992
|
-
process.exit(1);
|
|
15993
|
-
}
|
|
15994
15523
|
const { app, wss } = createApp({ ...config, production: this.experimental === true });
|
|
15995
15524
|
const server = serve(
|
|
15996
15525
|
{
|
package/dist/config/index.js
CHANGED
|
@@ -1,4 +1,196 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __esm = (fn, res) => function __init() {
|
|
8
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
9
|
+
};
|
|
10
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
11
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
|
|
30
|
+
// ../../../.yarn/__virtual__/tsup-virtual-5fd798e2dc/0/cache/tsup-npm-8.3.5-ed25596739-7794953cbc.zip/node_modules/tsup/assets/esm_shims.js
|
|
31
|
+
var init_esm_shims = __esm({
|
|
32
|
+
"../../../.yarn/__virtual__/tsup-virtual-5fd798e2dc/0/cache/tsup-npm-8.3.5-ed25596739-7794953cbc.zip/node_modules/tsup/assets/esm_shims.js"() {
|
|
33
|
+
"use strict";
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
// ../../../.yarn/__virtual__/typia-virtual-6e1bbef80b/0/cache/typia-npm-9.7.2-987d15a303-1b19baddfe.zip/node_modules/typia/lib/internal/_validateReport.js
|
|
38
|
+
var require_validateReport = __commonJS({
|
|
39
|
+
"../../../.yarn/__virtual__/typia-virtual-6e1bbef80b/0/cache/typia-npm-9.7.2-987d15a303-1b19baddfe.zip/node_modules/typia/lib/internal/_validateReport.js"(exports) {
|
|
40
|
+
"use strict";
|
|
41
|
+
init_esm_shims();
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports._validateReport = void 0;
|
|
44
|
+
var _validateReport2 = (array) => {
|
|
45
|
+
const reportable = (path) => {
|
|
46
|
+
if (array.length === 0)
|
|
47
|
+
return true;
|
|
48
|
+
const last = array[array.length - 1].path;
|
|
49
|
+
return path.length > last.length || last.substring(0, path.length) !== path;
|
|
50
|
+
};
|
|
51
|
+
return (exceptable, error) => {
|
|
52
|
+
var _a;
|
|
53
|
+
if (exceptable && reportable(error.path)) {
|
|
54
|
+
if (error.value === void 0)
|
|
55
|
+
(_a = error.description) !== null && _a !== void 0 ? _a : error.description = [
|
|
56
|
+
"The value at this path is `undefined`.",
|
|
57
|
+
"",
|
|
58
|
+
`Please fill the \`${error.expected}\` typed value next time.`
|
|
59
|
+
].join("\n");
|
|
60
|
+
array.push(error);
|
|
61
|
+
}
|
|
62
|
+
return false;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
exports._validateReport = _validateReport2;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
// ../../../.yarn/__virtual__/typia-virtual-6e1bbef80b/0/cache/typia-npm-9.7.2-987d15a303-1b19baddfe.zip/node_modules/typia/lib/internal/_createStandardSchema.js
|
|
70
|
+
var require_createStandardSchema = __commonJS({
|
|
71
|
+
"../../../.yarn/__virtual__/typia-virtual-6e1bbef80b/0/cache/typia-npm-9.7.2-987d15a303-1b19baddfe.zip/node_modules/typia/lib/internal/_createStandardSchema.js"(exports) {
|
|
72
|
+
"use strict";
|
|
73
|
+
init_esm_shims();
|
|
74
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75
|
+
exports._createStandardSchema = void 0;
|
|
76
|
+
var _createStandardSchema2 = (fn) => Object.assign(fn, {
|
|
77
|
+
"~standard": {
|
|
78
|
+
version: 1,
|
|
79
|
+
vendor: "typia",
|
|
80
|
+
validate: (input) => {
|
|
81
|
+
const result = fn(input);
|
|
82
|
+
if (result.success) {
|
|
83
|
+
return {
|
|
84
|
+
value: result.data
|
|
85
|
+
};
|
|
86
|
+
} else {
|
|
87
|
+
return {
|
|
88
|
+
issues: result.errors.map((error) => ({
|
|
89
|
+
message: `expected ${error.expected}, got ${error.value}`,
|
|
90
|
+
path: typiaPathToStandardSchemaPath(error.path)
|
|
91
|
+
}))
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
exports._createStandardSchema = _createStandardSchema2;
|
|
98
|
+
var PathParserState;
|
|
99
|
+
(function(PathParserState2) {
|
|
100
|
+
PathParserState2[PathParserState2["Start"] = 0] = "Start";
|
|
101
|
+
PathParserState2[PathParserState2["Property"] = 1] = "Property";
|
|
102
|
+
PathParserState2[PathParserState2["StringKey"] = 2] = "StringKey";
|
|
103
|
+
PathParserState2[PathParserState2["NumberKey"] = 3] = "NumberKey";
|
|
104
|
+
})(PathParserState || (PathParserState = {}));
|
|
105
|
+
var typiaPathToStandardSchemaPath = (path) => {
|
|
106
|
+
if (!path.startsWith("$input")) {
|
|
107
|
+
throw new Error(`Invalid path: ${JSON.stringify(path)}`);
|
|
108
|
+
}
|
|
109
|
+
const segments = [];
|
|
110
|
+
let currentSegment = "";
|
|
111
|
+
let state = PathParserState.Start;
|
|
112
|
+
let index = "$input".length - 1;
|
|
113
|
+
while (index < path.length - 1) {
|
|
114
|
+
index++;
|
|
115
|
+
const char = path[index];
|
|
116
|
+
if (state === PathParserState.Property) {
|
|
117
|
+
if (char === "." || char === "[") {
|
|
118
|
+
segments.push({
|
|
119
|
+
key: currentSegment
|
|
120
|
+
});
|
|
121
|
+
state = PathParserState.Start;
|
|
122
|
+
} else if (index === path.length - 1) {
|
|
123
|
+
currentSegment += char;
|
|
124
|
+
segments.push({
|
|
125
|
+
key: currentSegment
|
|
126
|
+
});
|
|
127
|
+
index++;
|
|
128
|
+
state = PathParserState.Start;
|
|
129
|
+
} else {
|
|
130
|
+
currentSegment += char;
|
|
131
|
+
}
|
|
132
|
+
} else if (state === PathParserState.StringKey) {
|
|
133
|
+
if (char === '"') {
|
|
134
|
+
segments.push({
|
|
135
|
+
key: JSON.parse(currentSegment + char)
|
|
136
|
+
});
|
|
137
|
+
index += 2;
|
|
138
|
+
state = PathParserState.Start;
|
|
139
|
+
} else if (char === "\\") {
|
|
140
|
+
currentSegment += path[index];
|
|
141
|
+
index++;
|
|
142
|
+
currentSegment += path[index];
|
|
143
|
+
} else {
|
|
144
|
+
currentSegment += char;
|
|
145
|
+
}
|
|
146
|
+
} else if (state === PathParserState.NumberKey) {
|
|
147
|
+
if (char === "]") {
|
|
148
|
+
segments.push({
|
|
149
|
+
key: Number.parseInt(currentSegment)
|
|
150
|
+
});
|
|
151
|
+
index++;
|
|
152
|
+
state = PathParserState.Start;
|
|
153
|
+
} else {
|
|
154
|
+
currentSegment += char;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
if (state === PathParserState.Start && index < path.length - 1) {
|
|
158
|
+
const newChar = path[index];
|
|
159
|
+
currentSegment = "";
|
|
160
|
+
if (newChar === "[") {
|
|
161
|
+
if (path[index + 1] === '"') {
|
|
162
|
+
state = PathParserState.StringKey;
|
|
163
|
+
index++;
|
|
164
|
+
currentSegment = '"';
|
|
165
|
+
} else {
|
|
166
|
+
state = PathParserState.NumberKey;
|
|
167
|
+
}
|
|
168
|
+
} else if (newChar === ".") {
|
|
169
|
+
state = PathParserState.Property;
|
|
170
|
+
} else {
|
|
171
|
+
throw new Error("Unreachable: pointer points invalid character");
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
if (state !== PathParserState.Start) {
|
|
176
|
+
throw new Error(`Failed to parse path: ${JSON.stringify(path)}`);
|
|
177
|
+
}
|
|
178
|
+
return segments;
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
// src/config/index.ts
|
|
184
|
+
init_esm_shims();
|
|
185
|
+
|
|
186
|
+
// src/config/defineConfig.ts
|
|
187
|
+
init_esm_shims();
|
|
188
|
+
|
|
189
|
+
// ../../../.yarn/cache/es-toolkit-npm-1.32.0-019fc7c155-56ba965570.zip/node_modules/es-toolkit/dist/index.mjs
|
|
190
|
+
init_esm_shims();
|
|
191
|
+
|
|
1
192
|
// ../../../.yarn/cache/es-toolkit-npm-1.32.0-019fc7c155-56ba965570.zip/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
|
|
193
|
+
init_esm_shims();
|
|
2
194
|
function isPlainObject(value) {
|
|
3
195
|
if (!value || typeof value !== "object") {
|
|
4
196
|
return false;
|
|
@@ -12,6 +204,7 @@ function isPlainObject(value) {
|
|
|
12
204
|
}
|
|
13
205
|
|
|
14
206
|
// ../../../.yarn/cache/es-toolkit-npm-1.32.0-019fc7c155-56ba965570.zip/node_modules/es-toolkit/dist/object/merge.mjs
|
|
207
|
+
init_esm_shims();
|
|
15
208
|
function merge(target, source) {
|
|
16
209
|
const sourceKeys = Object.keys(source);
|
|
17
210
|
for (let i = 0; i < sourceKeys.length; i++) {
|
|
@@ -37,6 +230,334 @@ function merge(target, source) {
|
|
|
37
230
|
return target;
|
|
38
231
|
}
|
|
39
232
|
|
|
233
|
+
// src/plugins/appsInTossWeb.ts
|
|
234
|
+
init_esm_shims();
|
|
235
|
+
var __typia_transform__validateReport = __toESM(require_validateReport(), 1);
|
|
236
|
+
var __typia_transform__createStandardSchema = __toESM(require_createStandardSchema(), 1);
|
|
237
|
+
var validateAppInTossWebPluginOptions = (() => {
|
|
238
|
+
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.navigationBar || "object" === typeof input.navigationBar && null !== input.navigationBar && false === Array.isArray(input.navigationBar) && _io3(input.navigationBar)) && (void 0 === input.webViewProps || "object" === typeof input.webViewProps && null !== input.webViewProps && false === Array.isArray(input.webViewProps) && _io8(input.webViewProps)) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem)));
|
|
239
|
+
const _io1 = (input) => "string" === typeof input.build;
|
|
240
|
+
const _io2 = (input) => "string" === typeof input.displayName && "string" === typeof input.primaryColor && "string" === typeof input.icon;
|
|
241
|
+
const _io3 = (input) => (void 0 === input.withBackButton || "boolean" === typeof input.withBackButton) && (void 0 === input.withHomeButton || "boolean" === typeof input.withHomeButton) && (void 0 === input.initialAccessoryButton || "object" === typeof input.initialAccessoryButton && null !== input.initialAccessoryButton && _io4(input.initialAccessoryButton));
|
|
242
|
+
const _io4 = (input) => "string" === typeof input.id && "string" === typeof input.title && ("object" === typeof input.icon && null !== input.icon && _iu1(input.icon));
|
|
243
|
+
const _io5 = (input) => "object" === typeof input.source && null !== input.source && _io6(input.source) && (null !== input.name && void 0 === input.name);
|
|
244
|
+
const _io6 = (input) => "string" === typeof input.uri;
|
|
245
|
+
const _io7 = (input) => "string" === typeof input.name && (null !== input.source && void 0 === input.source);
|
|
246
|
+
const _io8 = (input) => (void 0 === input.type || "partner" === input.type || "external" === input.type || "game" === input.type) && (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);
|
|
247
|
+
const _io9 = (input) => "clipboard" === input.name && ("read" === input.access || "write" === input.access);
|
|
248
|
+
const _io10 = (input) => "geolocation" === input.name && "access" === input.access;
|
|
249
|
+
const _io11 = (input) => "contacts" === input.name && ("read" === input.access || "write" === input.access);
|
|
250
|
+
const _io12 = (input) => "photos" === input.name && ("read" === input.access || "write" === input.access);
|
|
251
|
+
const _io13 = (input) => "camera" === input.name && "access" === input.access;
|
|
252
|
+
const _io14 = (input) => "microphone" === input.name && "access" === input.access;
|
|
253
|
+
const _iu0 = (input) => (() => {
|
|
254
|
+
if ("microphone" === input.name)
|
|
255
|
+
return _io14(input);
|
|
256
|
+
else if ("camera" === input.name)
|
|
257
|
+
return _io13(input);
|
|
258
|
+
else if ("photos" === input.name)
|
|
259
|
+
return _io12(input);
|
|
260
|
+
else if ("contacts" === input.name)
|
|
261
|
+
return _io11(input);
|
|
262
|
+
else if ("geolocation" === input.name)
|
|
263
|
+
return _io10(input);
|
|
264
|
+
else if ("clipboard" === input.name)
|
|
265
|
+
return _io9(input);
|
|
266
|
+
else
|
|
267
|
+
return false;
|
|
268
|
+
})();
|
|
269
|
+
const _iu1 = (input) => (() => {
|
|
270
|
+
if ("string" === typeof input.name)
|
|
271
|
+
return _io7(input);
|
|
272
|
+
else if ("object" === typeof input.source && null !== input.source && _io6(input.source))
|
|
273
|
+
return _io5(input);
|
|
274
|
+
else
|
|
275
|
+
return false;
|
|
276
|
+
})();
|
|
277
|
+
const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.commands && null !== input.commands || _report(_exceptionable, {
|
|
278
|
+
path: _path + ".commands",
|
|
279
|
+
expected: "__type",
|
|
280
|
+
value: input.commands
|
|
281
|
+
})) && _vo1(input.commands, _path + ".commands", _exceptionable) || _report(_exceptionable, {
|
|
282
|
+
path: _path + ".commands",
|
|
283
|
+
expected: "__type",
|
|
284
|
+
value: input.commands
|
|
285
|
+
}), ("object" === typeof input.brand && null !== input.brand || _report(_exceptionable, {
|
|
286
|
+
path: _path + ".brand",
|
|
287
|
+
expected: "__type.o1",
|
|
288
|
+
value: input.brand
|
|
289
|
+
})) && _vo2(input.brand, _path + ".brand", _exceptionable) || _report(_exceptionable, {
|
|
290
|
+
path: _path + ".brand",
|
|
291
|
+
expected: "__type.o1",
|
|
292
|
+
value: input.brand
|
|
293
|
+
}), void 0 === input.navigationBar || ("object" === typeof input.navigationBar && null !== input.navigationBar && false === Array.isArray(input.navigationBar) || _report(_exceptionable, {
|
|
294
|
+
path: _path + ".navigationBar",
|
|
295
|
+
expected: "(__type.o2 | undefined)",
|
|
296
|
+
value: input.navigationBar
|
|
297
|
+
})) && _vo3(input.navigationBar, _path + ".navigationBar", _exceptionable) || _report(_exceptionable, {
|
|
298
|
+
path: _path + ".navigationBar",
|
|
299
|
+
expected: "(__type.o2 | undefined)",
|
|
300
|
+
value: input.navigationBar
|
|
301
|
+
}), void 0 === input.webViewProps || ("object" === typeof input.webViewProps && null !== input.webViewProps && false === Array.isArray(input.webViewProps) || _report(_exceptionable, {
|
|
302
|
+
path: _path + ".webViewProps",
|
|
303
|
+
expected: "(__type.o6 | undefined)",
|
|
304
|
+
value: input.webViewProps
|
|
305
|
+
})) && _vo8(input.webViewProps, _path + ".webViewProps", _exceptionable) || _report(_exceptionable, {
|
|
306
|
+
path: _path + ".webViewProps",
|
|
307
|
+
expected: "(__type.o6 | undefined)",
|
|
308
|
+
value: input.webViewProps
|
|
309
|
+
}), (Array.isArray(input.permissions) || _report(_exceptionable, {
|
|
310
|
+
path: _path + ".permissions",
|
|
311
|
+
expected: "Array<Permission>",
|
|
312
|
+
value: input.permissions
|
|
313
|
+
})) && input.permissions.map((elem, _index2) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
314
|
+
path: _path + ".permissions[" + _index2 + "]",
|
|
315
|
+
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | MicrophonePermission | PhotosPermission)",
|
|
316
|
+
value: elem
|
|
317
|
+
})) && _vu0(elem, _path + ".permissions[" + _index2 + "]", _exceptionable) || _report(_exceptionable, {
|
|
318
|
+
path: _path + ".permissions[" + _index2 + "]",
|
|
319
|
+
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | MicrophonePermission | PhotosPermission)",
|
|
320
|
+
value: elem
|
|
321
|
+
})).every((flag) => flag) || _report(_exceptionable, {
|
|
322
|
+
path: _path + ".permissions",
|
|
323
|
+
expected: "Array<Permission>",
|
|
324
|
+
value: input.permissions
|
|
325
|
+
})].every((flag) => flag);
|
|
326
|
+
const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.build || _report(_exceptionable, {
|
|
327
|
+
path: _path + ".build",
|
|
328
|
+
expected: "string",
|
|
329
|
+
value: input.build
|
|
330
|
+
})].every((flag) => flag);
|
|
331
|
+
const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.displayName || _report(_exceptionable, {
|
|
332
|
+
path: _path + ".displayName",
|
|
333
|
+
expected: "string",
|
|
334
|
+
value: input.displayName
|
|
335
|
+
}), "string" === typeof input.primaryColor || _report(_exceptionable, {
|
|
336
|
+
path: _path + ".primaryColor",
|
|
337
|
+
expected: "string",
|
|
338
|
+
value: input.primaryColor
|
|
339
|
+
}), "string" === typeof input.icon || _report(_exceptionable, {
|
|
340
|
+
path: _path + ".icon",
|
|
341
|
+
expected: "string",
|
|
342
|
+
value: input.icon
|
|
343
|
+
})].every((flag) => flag);
|
|
344
|
+
const _vo3 = (input, _path, _exceptionable = true) => [void 0 === input.withBackButton || "boolean" === typeof input.withBackButton || _report(_exceptionable, {
|
|
345
|
+
path: _path + ".withBackButton",
|
|
346
|
+
expected: "(boolean | undefined)",
|
|
347
|
+
value: input.withBackButton
|
|
348
|
+
}), void 0 === input.withHomeButton || "boolean" === typeof input.withHomeButton || _report(_exceptionable, {
|
|
349
|
+
path: _path + ".withHomeButton",
|
|
350
|
+
expected: "(boolean | undefined)",
|
|
351
|
+
value: input.withHomeButton
|
|
352
|
+
}), void 0 === input.initialAccessoryButton || ("object" === typeof input.initialAccessoryButton && null !== input.initialAccessoryButton || _report(_exceptionable, {
|
|
353
|
+
path: _path + ".initialAccessoryButton",
|
|
354
|
+
expected: "(InitialAccessoryButton | undefined)",
|
|
355
|
+
value: input.initialAccessoryButton
|
|
356
|
+
})) && _vo4(input.initialAccessoryButton, _path + ".initialAccessoryButton", _exceptionable) || _report(_exceptionable, {
|
|
357
|
+
path: _path + ".initialAccessoryButton",
|
|
358
|
+
expected: "(InitialAccessoryButton | undefined)",
|
|
359
|
+
value: input.initialAccessoryButton
|
|
360
|
+
})].every((flag) => flag);
|
|
361
|
+
const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
362
|
+
path: _path + ".id",
|
|
363
|
+
expected: "string",
|
|
364
|
+
value: input.id
|
|
365
|
+
}), "string" === typeof input.title || _report(_exceptionable, {
|
|
366
|
+
path: _path + ".title",
|
|
367
|
+
expected: "string",
|
|
368
|
+
value: input.title
|
|
369
|
+
}), ("object" === typeof input.icon && null !== input.icon || _report(_exceptionable, {
|
|
370
|
+
path: _path + ".icon",
|
|
371
|
+
expected: "(__type.o3 | __type.o5)",
|
|
372
|
+
value: input.icon
|
|
373
|
+
})) && _vu1(input.icon, _path + ".icon", _exceptionable) || _report(_exceptionable, {
|
|
374
|
+
path: _path + ".icon",
|
|
375
|
+
expected: "(__type.o3 | __type.o5)",
|
|
376
|
+
value: input.icon
|
|
377
|
+
})].every((flag) => flag);
|
|
378
|
+
const _vo5 = (input, _path, _exceptionable = true) => [("object" === typeof input.source && null !== input.source || _report(_exceptionable, {
|
|
379
|
+
path: _path + ".source",
|
|
380
|
+
expected: "__type.o4",
|
|
381
|
+
value: input.source
|
|
382
|
+
})) && _vo6(input.source, _path + ".source", _exceptionable) || _report(_exceptionable, {
|
|
383
|
+
path: _path + ".source",
|
|
384
|
+
expected: "__type.o4",
|
|
385
|
+
value: input.source
|
|
386
|
+
}), (null !== input.name || _report(_exceptionable, {
|
|
387
|
+
path: _path + ".name",
|
|
388
|
+
expected: "undefined",
|
|
389
|
+
value: input.name
|
|
390
|
+
})) && (void 0 === input.name || _report(_exceptionable, {
|
|
391
|
+
path: _path + ".name",
|
|
392
|
+
expected: "undefined",
|
|
393
|
+
value: input.name
|
|
394
|
+
}))].every((flag) => flag);
|
|
395
|
+
const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || _report(_exceptionable, {
|
|
396
|
+
path: _path + ".uri",
|
|
397
|
+
expected: "string",
|
|
398
|
+
value: input.uri
|
|
399
|
+
})].every((flag) => flag);
|
|
400
|
+
const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
401
|
+
path: _path + ".name",
|
|
402
|
+
expected: "string",
|
|
403
|
+
value: input.name
|
|
404
|
+
}), (null !== input.source || _report(_exceptionable, {
|
|
405
|
+
path: _path + ".source",
|
|
406
|
+
expected: "undefined",
|
|
407
|
+
value: input.source
|
|
408
|
+
})) && (void 0 === input.source || _report(_exceptionable, {
|
|
409
|
+
path: _path + ".source",
|
|
410
|
+
expected: "undefined",
|
|
411
|
+
value: input.source
|
|
412
|
+
}))].every((flag) => flag);
|
|
413
|
+
const _vo8 = (input, _path, _exceptionable = true) => [void 0 === input.type || "partner" === input.type || "external" === input.type || "game" === input.type || _report(_exceptionable, {
|
|
414
|
+
path: _path + ".type",
|
|
415
|
+
expected: '("external" | "game" | "partner" | undefined)',
|
|
416
|
+
value: input.type
|
|
417
|
+
}), void 0 === input.allowsInlineMediaPlayback || "boolean" === typeof input.allowsInlineMediaPlayback || _report(_exceptionable, {
|
|
418
|
+
path: _path + ".allowsInlineMediaPlayback",
|
|
419
|
+
expected: "(boolean | undefined)",
|
|
420
|
+
value: input.allowsInlineMediaPlayback
|
|
421
|
+
}), void 0 === input.bounces || "boolean" === typeof input.bounces || _report(_exceptionable, {
|
|
422
|
+
path: _path + ".bounces",
|
|
423
|
+
expected: "(boolean | undefined)",
|
|
424
|
+
value: input.bounces
|
|
425
|
+
}), void 0 === input.pullToRefreshEnabled || "boolean" === typeof input.pullToRefreshEnabled || _report(_exceptionable, {
|
|
426
|
+
path: _path + ".pullToRefreshEnabled",
|
|
427
|
+
expected: "(boolean | undefined)",
|
|
428
|
+
value: input.pullToRefreshEnabled
|
|
429
|
+
}), void 0 === input.overScrollMode || "always" === input.overScrollMode || "content" === input.overScrollMode || "never" === input.overScrollMode || _report(_exceptionable, {
|
|
430
|
+
path: _path + ".overScrollMode",
|
|
431
|
+
expected: '("always" | "content" | "never" | undefined)',
|
|
432
|
+
value: input.overScrollMode
|
|
433
|
+
}), void 0 === input.mediaPlaybackRequiresUserAction || "boolean" === typeof input.mediaPlaybackRequiresUserAction || _report(_exceptionable, {
|
|
434
|
+
path: _path + ".mediaPlaybackRequiresUserAction",
|
|
435
|
+
expected: "(boolean | undefined)",
|
|
436
|
+
value: input.mediaPlaybackRequiresUserAction
|
|
437
|
+
}), void 0 === input.allowsBackForwardNavigationGestures || "boolean" === typeof input.allowsBackForwardNavigationGestures || _report(_exceptionable, {
|
|
438
|
+
path: _path + ".allowsBackForwardNavigationGestures",
|
|
439
|
+
expected: "(boolean | undefined)",
|
|
440
|
+
value: input.allowsBackForwardNavigationGestures
|
|
441
|
+
})].every((flag) => flag);
|
|
442
|
+
const _vo9 = (input, _path, _exceptionable = true) => ["clipboard" === input.name || _report(_exceptionable, {
|
|
443
|
+
path: _path + ".name",
|
|
444
|
+
expected: '"clipboard"',
|
|
445
|
+
value: input.name
|
|
446
|
+
}), "read" === input.access || "write" === input.access || _report(_exceptionable, {
|
|
447
|
+
path: _path + ".access",
|
|
448
|
+
expected: '("read" | "write")',
|
|
449
|
+
value: input.access
|
|
450
|
+
})].every((flag) => flag);
|
|
451
|
+
const _vo10 = (input, _path, _exceptionable = true) => ["geolocation" === input.name || _report(_exceptionable, {
|
|
452
|
+
path: _path + ".name",
|
|
453
|
+
expected: '"geolocation"',
|
|
454
|
+
value: input.name
|
|
455
|
+
}), "access" === input.access || _report(_exceptionable, {
|
|
456
|
+
path: _path + ".access",
|
|
457
|
+
expected: '"access"',
|
|
458
|
+
value: input.access
|
|
459
|
+
})].every((flag) => flag);
|
|
460
|
+
const _vo11 = (input, _path, _exceptionable = true) => ["contacts" === input.name || _report(_exceptionable, {
|
|
461
|
+
path: _path + ".name",
|
|
462
|
+
expected: '"contacts"',
|
|
463
|
+
value: input.name
|
|
464
|
+
}), "read" === input.access || "write" === input.access || _report(_exceptionable, {
|
|
465
|
+
path: _path + ".access",
|
|
466
|
+
expected: '("read" | "write")',
|
|
467
|
+
value: input.access
|
|
468
|
+
})].every((flag) => flag);
|
|
469
|
+
const _vo12 = (input, _path, _exceptionable = true) => ["photos" === input.name || _report(_exceptionable, {
|
|
470
|
+
path: _path + ".name",
|
|
471
|
+
expected: '"photos"',
|
|
472
|
+
value: input.name
|
|
473
|
+
}), "read" === input.access || "write" === input.access || _report(_exceptionable, {
|
|
474
|
+
path: _path + ".access",
|
|
475
|
+
expected: '("read" | "write")',
|
|
476
|
+
value: input.access
|
|
477
|
+
})].every((flag) => flag);
|
|
478
|
+
const _vo13 = (input, _path, _exceptionable = true) => ["camera" === input.name || _report(_exceptionable, {
|
|
479
|
+
path: _path + ".name",
|
|
480
|
+
expected: '"camera"',
|
|
481
|
+
value: input.name
|
|
482
|
+
}), "access" === input.access || _report(_exceptionable, {
|
|
483
|
+
path: _path + ".access",
|
|
484
|
+
expected: '"access"',
|
|
485
|
+
value: input.access
|
|
486
|
+
})].every((flag) => flag);
|
|
487
|
+
const _vo14 = (input, _path, _exceptionable = true) => ["microphone" === input.name || _report(_exceptionable, {
|
|
488
|
+
path: _path + ".name",
|
|
489
|
+
expected: '"microphone"',
|
|
490
|
+
value: input.name
|
|
491
|
+
}), "access" === input.access || _report(_exceptionable, {
|
|
492
|
+
path: _path + ".access",
|
|
493
|
+
expected: '"access"',
|
|
494
|
+
value: input.access
|
|
495
|
+
})].every((flag) => flag);
|
|
496
|
+
const _vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
497
|
+
if ("microphone" === input.name)
|
|
498
|
+
return _vo14(input, _path, _exceptionable);
|
|
499
|
+
else if ("camera" === input.name)
|
|
500
|
+
return _vo13(input, _path, _exceptionable);
|
|
501
|
+
else if ("photos" === input.name)
|
|
502
|
+
return _vo12(input, _path, _exceptionable);
|
|
503
|
+
else if ("contacts" === input.name)
|
|
504
|
+
return _vo11(input, _path, _exceptionable);
|
|
505
|
+
else if ("geolocation" === input.name)
|
|
506
|
+
return _vo10(input, _path, _exceptionable);
|
|
507
|
+
else if ("clipboard" === input.name)
|
|
508
|
+
return _vo9(input, _path, _exceptionable);
|
|
509
|
+
else
|
|
510
|
+
return _report(_exceptionable, {
|
|
511
|
+
path: _path,
|
|
512
|
+
expected: "(MicrophonePermission | CameraPermission | PhotosPermission | ContactsPermission | GeolocationPermission | ClipboardPermission)",
|
|
513
|
+
value: input
|
|
514
|
+
});
|
|
515
|
+
})();
|
|
516
|
+
const _vu1 = (input, _path, _exceptionable = true) => (() => {
|
|
517
|
+
if ("string" === typeof input.name)
|
|
518
|
+
return _vo7(input, _path, _exceptionable);
|
|
519
|
+
else if ("object" === typeof input.source && null !== input.source && _vo6(input.source, _path + ".source", false))
|
|
520
|
+
return _vo5(input, _path, _exceptionable);
|
|
521
|
+
else
|
|
522
|
+
return _report(_exceptionable, {
|
|
523
|
+
path: _path,
|
|
524
|
+
expected: "(__type.o5 | __type.o3)",
|
|
525
|
+
value: input
|
|
526
|
+
});
|
|
527
|
+
})();
|
|
528
|
+
const __is = (input) => "object" === typeof input && null !== input && _io0(input);
|
|
529
|
+
let errors;
|
|
530
|
+
let _report;
|
|
531
|
+
return __typia_transform__createStandardSchema._createStandardSchema((input) => {
|
|
532
|
+
if (false === __is(input)) {
|
|
533
|
+
errors = [];
|
|
534
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
535
|
+
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _report(true, {
|
|
536
|
+
path: _path + "",
|
|
537
|
+
expected: "AppsInTossWebPluginOptions",
|
|
538
|
+
value: input2
|
|
539
|
+
})) && _vo0(input2, _path + "", true) || _report(true, {
|
|
540
|
+
path: _path + "",
|
|
541
|
+
expected: "AppsInTossWebPluginOptions",
|
|
542
|
+
value: input2
|
|
543
|
+
}))(input, "$input", true);
|
|
544
|
+
const success = 0 === errors.length;
|
|
545
|
+
return success ? {
|
|
546
|
+
success,
|
|
547
|
+
data: input
|
|
548
|
+
} : {
|
|
549
|
+
success,
|
|
550
|
+
errors,
|
|
551
|
+
data: input
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
return {
|
|
555
|
+
success: true,
|
|
556
|
+
data: input
|
|
557
|
+
};
|
|
558
|
+
});
|
|
559
|
+
})();
|
|
560
|
+
|
|
40
561
|
// src/config/defineConfig.ts
|
|
41
562
|
var defineConfig = (config) => {
|
|
42
563
|
const defaultConfig = {
|
|
@@ -59,7 +580,19 @@ var defineConfig = (config) => {
|
|
|
59
580
|
withHomeButton: false
|
|
60
581
|
}
|
|
61
582
|
};
|
|
62
|
-
|
|
583
|
+
const merged = merge(defaultConfig, config);
|
|
584
|
+
const result = validateAppInTossWebPluginOptions({
|
|
585
|
+
commands: merged.web.commands,
|
|
586
|
+
permissions: merged.permissions,
|
|
587
|
+
brand: merged.brand,
|
|
588
|
+
navigationBar: merged.navigationBar,
|
|
589
|
+
webViewProps: merged.webViewProps
|
|
590
|
+
});
|
|
591
|
+
if (!result.success) {
|
|
592
|
+
console.error("[Apps In Toss Plugin] \uD50C\uB7EC\uADF8\uC778 \uC635\uC158\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. granite.config.ts \uAD6C\uC131\uC744 \uD655\uC778\uD574\uC8FC\uC138\uC694.");
|
|
593
|
+
process.exit(1);
|
|
594
|
+
}
|
|
595
|
+
return merged;
|
|
63
596
|
};
|
|
64
597
|
export {
|
|
65
598
|
defineConfig
|
|
@@ -139741,6 +139741,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139741
139741
|
props.onNavigationStateChange?.(event);
|
|
139742
139742
|
webBackHandler.onNavigationStateChange(event);
|
|
139743
139743
|
},
|
|
139744
|
+
textZoom: 100,
|
|
139744
139745
|
userAgent: import_react_native38.Platform.OS === "ios" ? userAgent : void 0,
|
|
139745
139746
|
sharedCookiesEnabled: true,
|
|
139746
139747
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
@@ -140259,6 +140260,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140259
140260
|
onPressIn: handlePressIn,
|
|
140260
140261
|
onPressOut: handlePressOut,
|
|
140261
140262
|
children: (0, import_jsx_runtime20.jsx)(import_react_native40.Text, {
|
|
140263
|
+
allowFontScaling: false,
|
|
140262
140264
|
numberOfLines: 1,
|
|
140263
140265
|
style: [styles.brandName, {
|
|
140264
140266
|
color: colors.brandName
|
|
@@ -140266,6 +140268,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140266
140268
|
children: brandName
|
|
140267
140269
|
})
|
|
140268
140270
|
}), isAdBadgeEnabled ? (0, import_jsx_runtime20.jsx)(import_react_native40.Text, {
|
|
140271
|
+
allowFontScaling: false,
|
|
140269
140272
|
numberOfLines: 1,
|
|
140270
140273
|
style: [styles.adBadge, {
|
|
140271
140274
|
color: colors.adBadge
|
|
@@ -140281,6 +140284,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140281
140284
|
onPressIn: handlePressIn,
|
|
140282
140285
|
onPressOut: handlePressOut,
|
|
140283
140286
|
children: (0, import_jsx_runtime20.jsx)(import_react_native40.Text, {
|
|
140287
|
+
allowFontScaling: false,
|
|
140284
140288
|
style: [styles.title, {
|
|
140285
140289
|
color: colors.title
|
|
140286
140290
|
}],
|
|
@@ -140292,6 +140296,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140292
140296
|
onPressIn: handlePressIn,
|
|
140293
140297
|
onPressOut: handlePressOut,
|
|
140294
140298
|
children: (0, import_jsx_runtime20.jsx)(import_react_native40.Text, {
|
|
140299
|
+
allowFontScaling: false,
|
|
140295
140300
|
style: [styles.subtitle, {
|
|
140296
140301
|
color: colors.subtitle
|
|
140297
140302
|
}],
|
|
@@ -140326,6 +140331,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140326
140331
|
backgroundColor: resolvedCtaBackground
|
|
140327
140332
|
}],
|
|
140328
140333
|
children: [(0, import_jsx_runtime20.jsx)(import_react_native40.Text, {
|
|
140334
|
+
allowFontScaling: false,
|
|
140329
140335
|
style: [styles.ctaText, {
|
|
140330
140336
|
color: resolvedCtaTextColor
|
|
140331
140337
|
}],
|
|
@@ -140345,6 +140351,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140345
140351
|
}]
|
|
140346
140352
|
})]
|
|
140347
140353
|
}), adClearanceText ? (0, import_jsx_runtime20.jsx)(import_react_native40.Text, {
|
|
140354
|
+
allowFontScaling: false,
|
|
140348
140355
|
style: [styles.adClearance, {
|
|
140349
140356
|
color: colors.adClearance
|
|
140350
140357
|
}],
|
|
@@ -140555,6 +140562,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140555
140562
|
onPressIn: handlePressIn,
|
|
140556
140563
|
onPressOut: handlePressOut,
|
|
140557
140564
|
children: (0, import_jsx_runtime21.jsx)(import_react_native41.Text, {
|
|
140565
|
+
allowFontScaling: false,
|
|
140558
140566
|
style: [styles2.title, {
|
|
140559
140567
|
color: colors.title
|
|
140560
140568
|
}],
|
|
@@ -140566,6 +140574,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140566
140574
|
onPressIn: handlePressIn,
|
|
140567
140575
|
onPressOut: handlePressOut,
|
|
140568
140576
|
children: (0, import_jsx_runtime21.jsx)(import_react_native41.Text, {
|
|
140577
|
+
allowFontScaling: false,
|
|
140569
140578
|
style: [styles2.subtitle, {
|
|
140570
140579
|
color: colors.subtitle
|
|
140571
140580
|
}],
|
|
@@ -140574,6 +140583,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140574
140583
|
})]
|
|
140575
140584
|
})]
|
|
140576
140585
|
}), adClearanceText ? (0, import_jsx_runtime21.jsx)(import_react_native41.Text, {
|
|
140586
|
+
allowFontScaling: false,
|
|
140577
140587
|
style: [styles2.adClearance, {
|
|
140578
140588
|
color: colors.adClearance,
|
|
140579
140589
|
fontSize: adClearanceFontSize,
|
|
@@ -139280,6 +139280,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139280
139280
|
props.onNavigationStateChange?.(event);
|
|
139281
139281
|
webBackHandler.onNavigationStateChange(event);
|
|
139282
139282
|
},
|
|
139283
|
+
textZoom: 100,
|
|
139283
139284
|
userAgent: import_react_native38.Platform.OS === "ios" ? userAgent : void 0,
|
|
139284
139285
|
sharedCookiesEnabled: true,
|
|
139285
139286
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
@@ -139798,6 +139799,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139798
139799
|
onPressIn: handlePressIn,
|
|
139799
139800
|
onPressOut: handlePressOut,
|
|
139800
139801
|
children: (0, import_jsx_runtime20.jsx)(import_react_native40.Text, {
|
|
139802
|
+
allowFontScaling: false,
|
|
139801
139803
|
numberOfLines: 1,
|
|
139802
139804
|
style: [styles.brandName, {
|
|
139803
139805
|
color: colors.brandName
|
|
@@ -139805,6 +139807,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139805
139807
|
children: brandName
|
|
139806
139808
|
})
|
|
139807
139809
|
}), isAdBadgeEnabled ? (0, import_jsx_runtime20.jsx)(import_react_native40.Text, {
|
|
139810
|
+
allowFontScaling: false,
|
|
139808
139811
|
numberOfLines: 1,
|
|
139809
139812
|
style: [styles.adBadge, {
|
|
139810
139813
|
color: colors.adBadge
|
|
@@ -139820,6 +139823,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139820
139823
|
onPressIn: handlePressIn,
|
|
139821
139824
|
onPressOut: handlePressOut,
|
|
139822
139825
|
children: (0, import_jsx_runtime20.jsx)(import_react_native40.Text, {
|
|
139826
|
+
allowFontScaling: false,
|
|
139823
139827
|
style: [styles.title, {
|
|
139824
139828
|
color: colors.title
|
|
139825
139829
|
}],
|
|
@@ -139831,6 +139835,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139831
139835
|
onPressIn: handlePressIn,
|
|
139832
139836
|
onPressOut: handlePressOut,
|
|
139833
139837
|
children: (0, import_jsx_runtime20.jsx)(import_react_native40.Text, {
|
|
139838
|
+
allowFontScaling: false,
|
|
139834
139839
|
style: [styles.subtitle, {
|
|
139835
139840
|
color: colors.subtitle
|
|
139836
139841
|
}],
|
|
@@ -139865,6 +139870,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139865
139870
|
backgroundColor: resolvedCtaBackground
|
|
139866
139871
|
}],
|
|
139867
139872
|
children: [(0, import_jsx_runtime20.jsx)(import_react_native40.Text, {
|
|
139873
|
+
allowFontScaling: false,
|
|
139868
139874
|
style: [styles.ctaText, {
|
|
139869
139875
|
color: resolvedCtaTextColor
|
|
139870
139876
|
}],
|
|
@@ -139884,6 +139890,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139884
139890
|
}]
|
|
139885
139891
|
})]
|
|
139886
139892
|
}), adClearanceText ? (0, import_jsx_runtime20.jsx)(import_react_native40.Text, {
|
|
139893
|
+
allowFontScaling: false,
|
|
139887
139894
|
style: [styles.adClearance, {
|
|
139888
139895
|
color: colors.adClearance
|
|
139889
139896
|
}],
|
|
@@ -140094,6 +140101,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140094
140101
|
onPressIn: handlePressIn,
|
|
140095
140102
|
onPressOut: handlePressOut,
|
|
140096
140103
|
children: (0, import_jsx_runtime21.jsx)(import_react_native41.Text, {
|
|
140104
|
+
allowFontScaling: false,
|
|
140097
140105
|
style: [styles2.title, {
|
|
140098
140106
|
color: colors.title
|
|
140099
140107
|
}],
|
|
@@ -140105,6 +140113,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140105
140113
|
onPressIn: handlePressIn,
|
|
140106
140114
|
onPressOut: handlePressOut,
|
|
140107
140115
|
children: (0, import_jsx_runtime21.jsx)(import_react_native41.Text, {
|
|
140116
|
+
allowFontScaling: false,
|
|
140108
140117
|
style: [styles2.subtitle, {
|
|
140109
140118
|
color: colors.subtitle
|
|
140110
140119
|
}],
|
|
@@ -140113,6 +140122,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140113
140122
|
})]
|
|
140114
140123
|
})]
|
|
140115
140124
|
}), adClearanceText ? (0, import_jsx_runtime21.jsx)(import_react_native41.Text, {
|
|
140125
|
+
allowFontScaling: false,
|
|
140116
140126
|
style: [styles2.adClearance, {
|
|
140117
140127
|
color: colors.adClearance,
|
|
140118
140128
|
fontSize: adClearanceFontSize,
|
|
@@ -47322,6 +47322,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47322
47322
|
(_props_onNavigationStateChange = props.onNavigationStateChange) === null || _props_onNavigationStateChange === void 0 ? void 0 : _props_onNavigationStateChange.call(props, event);
|
|
47323
47323
|
webBackHandler.onNavigationStateChange(event);
|
|
47324
47324
|
},
|
|
47325
|
+
textZoom: 100,
|
|
47325
47326
|
userAgent: import_react_native207.Platform.OS === "ios" ? userAgent : void 0,
|
|
47326
47327
|
sharedCookiesEnabled: true,
|
|
47327
47328
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
@@ -46709,6 +46709,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46709
46709
|
(_props_onNavigationStateChange = props.onNavigationStateChange) === null || _props_onNavigationStateChange === void 0 ? void 0 : _props_onNavigationStateChange.call(props, event);
|
|
46710
46710
|
webBackHandler.onNavigationStateChange(event);
|
|
46711
46711
|
},
|
|
46712
|
+
textZoom: 100,
|
|
46712
46713
|
userAgent: import_react_native207.Platform.OS === "ios" ? userAgent : void 0,
|
|
46713
46714
|
sharedCookiesEnabled: true,
|
|
46714
46715
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
@@ -47331,6 +47331,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47331
47331
|
(_props_onNavigationStateChange = props.onNavigationStateChange) === null || _props_onNavigationStateChange === void 0 ? void 0 : _props_onNavigationStateChange.call(props, event);
|
|
47332
47332
|
webBackHandler.onNavigationStateChange(event);
|
|
47333
47333
|
},
|
|
47334
|
+
textZoom: 100,
|
|
47334
47335
|
userAgent: import_react_native207.Platform.OS === "ios" ? userAgent : void 0,
|
|
47335
47336
|
sharedCookiesEnabled: true,
|
|
47336
47337
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
@@ -46718,6 +46718,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46718
46718
|
(_props_onNavigationStateChange = props.onNavigationStateChange) === null || _props_onNavigationStateChange === void 0 ? void 0 : _props_onNavigationStateChange.call(props, event);
|
|
46719
46719
|
webBackHandler.onNavigationStateChange(event);
|
|
46720
46720
|
},
|
|
46721
|
+
textZoom: 100,
|
|
46721
46722
|
userAgent: import_react_native207.Platform.OS === "ios" ? userAgent : void 0,
|
|
46722
46723
|
sharedCookiesEnabled: true,
|
|
46723
46724
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/web-framework",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"description": "Web Framework for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"typecheck": "tsc --noEmit",
|
|
@@ -86,13 +86,13 @@
|
|
|
86
86
|
"zod": "3.24.4"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@apps-in-toss/bridge-core": "2.0
|
|
90
|
-
"@apps-in-toss/cli": "2.0
|
|
91
|
-
"@apps-in-toss/framework": "2.0
|
|
92
|
-
"@apps-in-toss/plugins": "2.0
|
|
93
|
-
"@apps-in-toss/web-analytics": "2.0
|
|
94
|
-
"@apps-in-toss/web-bridge": "2.0
|
|
95
|
-
"@apps-in-toss/web-config": "2.0
|
|
89
|
+
"@apps-in-toss/bridge-core": "2.1.0",
|
|
90
|
+
"@apps-in-toss/cli": "2.1.0",
|
|
91
|
+
"@apps-in-toss/framework": "2.1.0",
|
|
92
|
+
"@apps-in-toss/plugins": "2.1.0",
|
|
93
|
+
"@apps-in-toss/web-analytics": "2.1.0",
|
|
94
|
+
"@apps-in-toss/web-bridge": "2.1.0",
|
|
95
|
+
"@apps-in-toss/web-config": "2.1.0",
|
|
96
96
|
"@babel/core": "7.23.9",
|
|
97
97
|
"@granite-js/cli": "1.0.4",
|
|
98
98
|
"@granite-js/mpack": "1.0.4",
|