@apps-in-toss/plugins 1.2.2 → 1.4.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/index.cjs +8 -2
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +8 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -507,7 +507,7 @@ var validateAppManifest = /* @__PURE__ */ (() => {
|
|
|
507
507
|
};
|
|
508
508
|
})();
|
|
509
509
|
var validateAppInTossPluginOptions = /* @__PURE__ */ (() => {
|
|
510
|
-
const _io0 = (input) => "object" === typeof input.brand && null !== input.brand && _io1(input.brand) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem))) && (void 0 === input.navigationBar || "object" === typeof input.navigationBar && null !== input.navigationBar && false === Array.isArray(input.navigationBar) && _io7(input.navigationBar));
|
|
510
|
+
const _io0 = (input) => (void 0 === input.appType || "general" === input.appType || "game" === input.appType) && ("object" === typeof input.brand && null !== input.brand && _io1(input.brand)) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem))) && (void 0 === input.navigationBar || "object" === typeof input.navigationBar && null !== input.navigationBar && false === Array.isArray(input.navigationBar) && _io7(input.navigationBar));
|
|
511
511
|
const _io1 = (input) => "string" === typeof input.displayName && "string" === typeof input.primaryColor && "string" === typeof input.icon && ("basic" === input.bridgeColorMode || "inverted" === input.bridgeColorMode);
|
|
512
512
|
const _io2 = (input) => "clipboard" === input.name && ("read" === input.access || "write" === input.access);
|
|
513
513
|
const _io3 = (input) => "geolocation" === input.name && "access" === input.access;
|
|
@@ -541,7 +541,11 @@ var validateAppInTossPluginOptions = /* @__PURE__ */ (() => {
|
|
|
541
541
|
else
|
|
542
542
|
return false;
|
|
543
543
|
})();
|
|
544
|
-
const _vo0 = (input, _path, _exceptionable = true) => [
|
|
544
|
+
const _vo0 = (input, _path, _exceptionable = true) => [void 0 === input.appType || "general" === input.appType || "game" === input.appType || _report(_exceptionable, {
|
|
545
|
+
path: _path + ".appType",
|
|
546
|
+
expected: '("game" | "general" | undefined)',
|
|
547
|
+
value: input.appType
|
|
548
|
+
}), ("object" === typeof input.brand && null !== input.brand || _report(_exceptionable, {
|
|
545
549
|
path: _path + ".brand",
|
|
546
550
|
expected: "__type",
|
|
547
551
|
value: input.brand
|
|
@@ -1132,6 +1136,7 @@ var import_esbuild = require("esbuild");
|
|
|
1132
1136
|
function setupRuntimeSetupScript(config) {
|
|
1133
1137
|
const script = getRuntimeSetupScript(
|
|
1134
1138
|
{
|
|
1139
|
+
appType: config.appType,
|
|
1135
1140
|
deploymentId: config.deploymentId,
|
|
1136
1141
|
brandBridgeColorMode: config.brand.bridgeColorMode,
|
|
1137
1142
|
brandDisplayName: config.brand.displayName,
|
|
@@ -1246,6 +1251,7 @@ function getMicroFrontendCompatScript() {
|
|
|
1246
1251
|
// src/appsInToss.ts
|
|
1247
1252
|
function withAppsInTossCommon(plugins, options) {
|
|
1248
1253
|
const { contents, path: envScriptPath } = setupRuntimeSetupScript({
|
|
1254
|
+
appType: options.appType,
|
|
1249
1255
|
brand: options.brand,
|
|
1250
1256
|
deploymentId: options.deploymentId,
|
|
1251
1257
|
navigationBar: options.navigationBar
|
package/dist/index.d.cts
CHANGED
|
@@ -48,6 +48,7 @@ interface InitialAccessoryButton {
|
|
|
48
48
|
}
|
|
49
49
|
declare const validateAppManifest: (input: unknown) => typia.IValidation<AppManifest>;
|
|
50
50
|
interface AppsInTossPluginOptions {
|
|
51
|
+
appType?: 'general' | 'game';
|
|
51
52
|
brand: {
|
|
52
53
|
displayName: string;
|
|
53
54
|
primaryColor: string;
|
|
@@ -110,7 +111,7 @@ interface CreateArtifactOptions {
|
|
|
110
111
|
declare function validateZip(zipPath: string): Promise<void>;
|
|
111
112
|
declare function createArtifact(options: CreateArtifactOptions): Promise<string>;
|
|
112
113
|
|
|
113
|
-
declare function setupRuntimeSetupScript(config: Pick<AppsInTossPluginOptions, 'brand' | 'navigationBar'> & {
|
|
114
|
+
declare function setupRuntimeSetupScript(config: Pick<AppsInTossPluginOptions, 'appType' | 'brand' | 'navigationBar'> & {
|
|
114
115
|
deploymentId: string;
|
|
115
116
|
}): {
|
|
116
117
|
contents: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ interface InitialAccessoryButton {
|
|
|
48
48
|
}
|
|
49
49
|
declare const validateAppManifest: (input: unknown) => typia.IValidation<AppManifest>;
|
|
50
50
|
interface AppsInTossPluginOptions {
|
|
51
|
+
appType?: 'general' | 'game';
|
|
51
52
|
brand: {
|
|
52
53
|
displayName: string;
|
|
53
54
|
primaryColor: string;
|
|
@@ -110,7 +111,7 @@ interface CreateArtifactOptions {
|
|
|
110
111
|
declare function validateZip(zipPath: string): Promise<void>;
|
|
111
112
|
declare function createArtifact(options: CreateArtifactOptions): Promise<string>;
|
|
112
113
|
|
|
113
|
-
declare function setupRuntimeSetupScript(config: Pick<AppsInTossPluginOptions, 'brand' | 'navigationBar'> & {
|
|
114
|
+
declare function setupRuntimeSetupScript(config: Pick<AppsInTossPluginOptions, 'appType' | 'brand' | 'navigationBar'> & {
|
|
114
115
|
deploymentId: string;
|
|
115
116
|
}): {
|
|
116
117
|
contents: string;
|
package/dist/index.js
CHANGED
|
@@ -480,7 +480,7 @@ var validateAppManifest = /* @__PURE__ */ (() => {
|
|
|
480
480
|
};
|
|
481
481
|
})();
|
|
482
482
|
var validateAppInTossPluginOptions = /* @__PURE__ */ (() => {
|
|
483
|
-
const _io0 = (input) => "object" === typeof input.brand && null !== input.brand && _io1(input.brand) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem))) && (void 0 === input.navigationBar || "object" === typeof input.navigationBar && null !== input.navigationBar && false === Array.isArray(input.navigationBar) && _io7(input.navigationBar));
|
|
483
|
+
const _io0 = (input) => (void 0 === input.appType || "general" === input.appType || "game" === input.appType) && ("object" === typeof input.brand && null !== input.brand && _io1(input.brand)) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem))) && (void 0 === input.navigationBar || "object" === typeof input.navigationBar && null !== input.navigationBar && false === Array.isArray(input.navigationBar) && _io7(input.navigationBar));
|
|
484
484
|
const _io1 = (input) => "string" === typeof input.displayName && "string" === typeof input.primaryColor && "string" === typeof input.icon && ("basic" === input.bridgeColorMode || "inverted" === input.bridgeColorMode);
|
|
485
485
|
const _io2 = (input) => "clipboard" === input.name && ("read" === input.access || "write" === input.access);
|
|
486
486
|
const _io3 = (input) => "geolocation" === input.name && "access" === input.access;
|
|
@@ -514,7 +514,11 @@ var validateAppInTossPluginOptions = /* @__PURE__ */ (() => {
|
|
|
514
514
|
else
|
|
515
515
|
return false;
|
|
516
516
|
})();
|
|
517
|
-
const _vo0 = (input, _path, _exceptionable = true) => [
|
|
517
|
+
const _vo0 = (input, _path, _exceptionable = true) => [void 0 === input.appType || "general" === input.appType || "game" === input.appType || _report(_exceptionable, {
|
|
518
|
+
path: _path + ".appType",
|
|
519
|
+
expected: '("game" | "general" | undefined)',
|
|
520
|
+
value: input.appType
|
|
521
|
+
}), ("object" === typeof input.brand && null !== input.brand || _report(_exceptionable, {
|
|
518
522
|
path: _path + ".brand",
|
|
519
523
|
expected: "__type",
|
|
520
524
|
value: input.brand
|
|
@@ -1105,6 +1109,7 @@ import { transformSync } from "esbuild";
|
|
|
1105
1109
|
function setupRuntimeSetupScript(config) {
|
|
1106
1110
|
const script = getRuntimeSetupScript(
|
|
1107
1111
|
{
|
|
1112
|
+
appType: config.appType,
|
|
1108
1113
|
deploymentId: config.deploymentId,
|
|
1109
1114
|
brandBridgeColorMode: config.brand.bridgeColorMode,
|
|
1110
1115
|
brandDisplayName: config.brand.displayName,
|
|
@@ -1219,6 +1224,7 @@ function getMicroFrontendCompatScript() {
|
|
|
1219
1224
|
// src/appsInToss.ts
|
|
1220
1225
|
function withAppsInTossCommon(plugins, options) {
|
|
1221
1226
|
const { contents, path: envScriptPath } = setupRuntimeSetupScript({
|
|
1227
|
+
appType: options.appType,
|
|
1222
1228
|
brand: options.brand,
|
|
1223
1229
|
deploymentId: options.deploymentId,
|
|
1224
1230
|
navigationBar: options.navigationBar
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/plugins",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.0",
|
|
5
5
|
"description": "The plugins for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepack": "yarn build",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "b75a03ae2d9de16548e7ec020cbe036fe9896016"
|
|
56
56
|
}
|