@apps-in-toss/plugins 2.7.0 → 2.8.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 CHANGED
@@ -208,7 +208,7 @@ var require_package = __commonJS({
208
208
  module2.exports = {
209
209
  name: "@apps-in-toss/plugins",
210
210
  type: "module",
211
- version: "2.7.0",
211
+ version: "2.8.0",
212
212
  description: "The plugins for Apps In Toss",
213
213
  scripts: {
214
214
  test: "vitest --run",
@@ -1098,7 +1098,7 @@ var validateAppInTossPluginOptions = (() => {
1098
1098
  const _io5 = (input) => "photos" === input.name && ("read" === input.access || "write" === input.access);
1099
1099
  const _io6 = (input) => "camera" === input.name && "access" === input.access;
1100
1100
  const _io7 = (input) => "microphone" === input.name && "access" === input.access;
1101
- const _io8 = (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 && _io9(input.initialAccessoryButton));
1101
+ const _io8 = (input) => (void 0 === input.withBackButton || "boolean" === typeof input.withBackButton) && (void 0 === input.withHomeButton || "boolean" === typeof input.withHomeButton) && (void 0 === input.transparentBackground || "boolean" === typeof input.transparentBackground) && (void 0 === input.theme || "light" === input.theme || "dark" === input.theme) && (void 0 === input.initialAccessoryButton || "object" === typeof input.initialAccessoryButton && null !== input.initialAccessoryButton && _io9(input.initialAccessoryButton));
1102
1102
  const _io9 = (input) => "string" === typeof input.id && "string" === typeof input.title && ("object" === typeof input.icon && null !== input.icon && _iu1(input.icon));
1103
1103
  const _io10 = (input) => "object" === typeof input.source && null !== input.source && _io11(input.source) && (null !== input.name && void 0 === input.name);
1104
1104
  const _io11 = (input) => "string" === typeof input.uri;
@@ -1243,6 +1243,14 @@ var validateAppInTossPluginOptions = (() => {
1243
1243
  path: _path + ".withHomeButton",
1244
1244
  expected: "(boolean | undefined)",
1245
1245
  value: input.withHomeButton
1246
+ }), void 0 === input.transparentBackground || "boolean" === typeof input.transparentBackground || _report(_exceptionable, {
1247
+ path: _path + ".transparentBackground",
1248
+ expected: "(boolean | undefined)",
1249
+ value: input.transparentBackground
1250
+ }), void 0 === input.theme || "light" === input.theme || "dark" === input.theme || _report(_exceptionable, {
1251
+ path: _path + ".theme",
1252
+ expected: '("dark" | "light" | undefined)',
1253
+ value: input.theme
1246
1254
  }), void 0 === input.initialAccessoryButton || ("object" === typeof input.initialAccessoryButton && null !== input.initialAccessoryButton || _report(_exceptionable, {
1247
1255
  path: _path + ".initialAccessoryButton",
1248
1256
  expected: "(InitialAccessoryButton | undefined)",
package/dist/index.d.cts CHANGED
@@ -65,6 +65,8 @@ interface AppsInTossPluginOptions {
65
65
  navigationBar?: {
66
66
  withBackButton?: boolean;
67
67
  withHomeButton?: boolean;
68
+ transparentBackground?: boolean;
69
+ theme?: 'light' | 'dark';
68
70
  initialAccessoryButton?: InitialAccessoryButton;
69
71
  };
70
72
  }
package/dist/index.d.ts CHANGED
@@ -65,6 +65,8 @@ interface AppsInTossPluginOptions {
65
65
  navigationBar?: {
66
66
  withBackButton?: boolean;
67
67
  withHomeButton?: boolean;
68
+ transparentBackground?: boolean;
69
+ theme?: 'light' | 'dark';
68
70
  initialAccessoryButton?: InitialAccessoryButton;
69
71
  };
70
72
  }
package/dist/index.js CHANGED
@@ -206,7 +206,7 @@ var require_package = __commonJS({
206
206
  module.exports = {
207
207
  name: "@apps-in-toss/plugins",
208
208
  type: "module",
209
- version: "2.7.0",
209
+ version: "2.8.0",
210
210
  description: "The plugins for Apps In Toss",
211
211
  scripts: {
212
212
  test: "vitest --run",
@@ -1072,7 +1072,7 @@ var validateAppInTossPluginOptions = (() => {
1072
1072
  const _io5 = (input) => "photos" === input.name && ("read" === input.access || "write" === input.access);
1073
1073
  const _io6 = (input) => "camera" === input.name && "access" === input.access;
1074
1074
  const _io7 = (input) => "microphone" === input.name && "access" === input.access;
1075
- const _io8 = (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 && _io9(input.initialAccessoryButton));
1075
+ const _io8 = (input) => (void 0 === input.withBackButton || "boolean" === typeof input.withBackButton) && (void 0 === input.withHomeButton || "boolean" === typeof input.withHomeButton) && (void 0 === input.transparentBackground || "boolean" === typeof input.transparentBackground) && (void 0 === input.theme || "light" === input.theme || "dark" === input.theme) && (void 0 === input.initialAccessoryButton || "object" === typeof input.initialAccessoryButton && null !== input.initialAccessoryButton && _io9(input.initialAccessoryButton));
1076
1076
  const _io9 = (input) => "string" === typeof input.id && "string" === typeof input.title && ("object" === typeof input.icon && null !== input.icon && _iu1(input.icon));
1077
1077
  const _io10 = (input) => "object" === typeof input.source && null !== input.source && _io11(input.source) && (null !== input.name && void 0 === input.name);
1078
1078
  const _io11 = (input) => "string" === typeof input.uri;
@@ -1217,6 +1217,14 @@ var validateAppInTossPluginOptions = (() => {
1217
1217
  path: _path + ".withHomeButton",
1218
1218
  expected: "(boolean | undefined)",
1219
1219
  value: input.withHomeButton
1220
+ }), void 0 === input.transparentBackground || "boolean" === typeof input.transparentBackground || _report(_exceptionable, {
1221
+ path: _path + ".transparentBackground",
1222
+ expected: "(boolean | undefined)",
1223
+ value: input.transparentBackground
1224
+ }), void 0 === input.theme || "light" === input.theme || "dark" === input.theme || _report(_exceptionable, {
1225
+ path: _path + ".theme",
1226
+ expected: '("dark" | "light" | undefined)',
1227
+ value: input.theme
1220
1228
  }), void 0 === input.initialAccessoryButton || ("object" === typeof input.initialAccessoryButton && null !== input.initialAccessoryButton || _report(_exceptionable, {
1221
1229
  path: _path + ".initialAccessoryButton",
1222
1230
  expected: "(InitialAccessoryButton | undefined)",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/plugins",
3
3
  "type": "module",
4
- "version": "2.7.0",
4
+ "version": "2.8.0",
5
5
  "description": "The plugins for Apps In Toss",
6
6
  "scripts": {
7
7
  "test": "vitest --run",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@apps-in-toss/ait-format": "1.0.0",
42
- "@apps-in-toss/plugin-compat": "2.7.0",
42
+ "@apps-in-toss/plugin-compat": "2.8.0",
43
43
  "@granite-js/plugin-core": "1.0.20",
44
44
  "@granite-js/plugin-micro-frontend": "1.0.20",
45
45
  "@granite-js/plugin-sentry": "1.0.20",