@social-mail/social-mail-client 1.2.159 → 1.2.161

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.
Files changed (34) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +13 -3
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +3 -3
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/common/apiPath.d.ts +1 -0
  6. package/dist/common/apiPath.d.ts.map +1 -1
  7. package/dist/common/apiPath.js +2 -1
  8. package/dist/common/apiPath.js.map +1 -1
  9. package/dist/common/commands/CommonCommands.d.ts.map +1 -1
  10. package/dist/common/commands/CommonCommands.js +5 -2
  11. package/dist/common/commands/CommonCommands.js.map +1 -1
  12. package/dist/public/channel/ChannelView.pack.js +8 -1
  13. package/dist/public/channel/ChannelView.pack.js.map +1 -1
  14. package/dist/public/channel/ChannelView.pack.min.js +2 -2
  15. package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
  16. package/dist/tsconfig.tsbuildinfo +1 -1
  17. package/dist/web/AppIndex.d.ts.map +1 -1
  18. package/dist/web/AppIndex.js +5 -3
  19. package/dist/web/AppIndex.js.map +1 -1
  20. package/dist/web/AppIndex.pack.js +18 -6
  21. package/dist/web/AppIndex.pack.js.map +1 -1
  22. package/dist/web/AppIndex.pack.min.js +4 -4
  23. package/dist/web/AppIndex.pack.min.js.map +1 -1
  24. package/node_modules/@web-atoms/core/dist/core/Command.d.ts +1 -0
  25. package/node_modules/@web-atoms/core/dist/core/Command.d.ts.map +1 -1
  26. package/node_modules/@web-atoms/core/dist/core/Command.js +6 -0
  27. package/node_modules/@web-atoms/core/dist/core/Command.js.map +1 -1
  28. package/node_modules/@web-atoms/core/dist/tsconfig.tsbuildinfo +1 -1
  29. package/node_modules/@web-atoms/core/package.json +1 -1
  30. package/node_modules/@web-atoms/core/src/core/Command.ts +7 -0
  31. package/package.json +2 -2
  32. package/src/common/apiPath.ts +3 -0
  33. package/src/common/commands/CommonCommands.ts +2 -0
  34. package/src/web/AppIndex.tsx +2 -1
@@ -4986,6 +4986,11 @@ System.register(["tslib", "./EventScope", "./Route", "./types"], function (_expo
4986
4986
  }) {
4987
4987
  let cmd = new Command(name, eventScope, registerOnClick);
4988
4988
  if (route) {
4989
+ if (this.routePrefix) {
4990
+ if (!route.startsWith(this.routePrefix)) {
4991
+ route = this.routePrefix + route;
4992
+ }
4993
+ }
4989
4994
  cmd = cmd.withRoute(route, routeQueries, routeOrder, routeDefaults);
4990
4995
  }
4991
4996
  cmd.listener = listener;
@@ -5143,6 +5148,7 @@ System.register(["tslib", "./EventScope", "./Route", "./types"], function (_expo
5143
5148
  });
5144
5149
  }
5145
5150
  });
5151
+ Command.routePrefix = "";
5146
5152
  Command.registry = new Map();
5147
5153
  Command.routes = [];
5148
5154
  _export("Commands", Commands = class Commands {
@@ -13211,7 +13217,7 @@ System.register(["@web-atoms/core/dist/style/styled"], function (_export, _conte
13211
13217
  System.register([], function (_export, _context) {
13212
13218
  "use strict";
13213
13219
 
13214
- var root, apiPath;
13220
+ var root, apiPath, apiPathRoot;
13215
13221
  return {
13216
13222
  setters: [],
13217
13223
  execute: function () {
@@ -13222,6 +13228,7 @@ System.register([], function (_export, _context) {
13222
13228
  _export("apiPath", apiPath = root ? url => {
13223
13229
  return root + url;
13224
13230
  } : url => url);
13231
+ _export("apiPathRoot", apiPathRoot = root);
13225
13232
  }
13226
13233
  };
13227
13234
  });
@@ -45267,17 +45274,20 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
45267
45274
 
45268
45275
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/pages/websites/list/WebSiteListPage");
45269
45276
 
45270
- System.register(["@web-atoms/core/dist/core/Command"], function (_export, _context) {
45277
+ System.register(["@web-atoms/core/dist/core/Command", "../apiPath"], function (_export, _context) {
45271
45278
  "use strict";
45272
45279
 
45273
- var Command, Commands, CommonCommands;
45280
+ var Command, Commands, apiPathRoot, CommonCommands;
45274
45281
  _export("default", void 0);
45275
45282
  return {
45276
45283
  setters: [function (_webAtomsCoreDistCoreCommand) {
45277
45284
  Command = _webAtomsCoreDistCoreCommand.default;
45278
45285
  Commands = _webAtomsCoreDistCoreCommand.Commands;
45286
+ }, function (_apiPath) {
45287
+ apiPathRoot = _apiPath.apiPathRoot;
45279
45288
  }],
45280
45289
  execute: function () {
45290
+ Command.routePrefix = apiPathRoot;
45281
45291
  _export("default", CommonCommands = class CommonCommands extends Commands {});
45282
45292
  CommonCommands.openMailbox = Command.create({
45283
45293
  route: "/mailbox/{id}",