@crowdin/app-project-module 2.1.0 → 2.3.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.
Files changed (59) hide show
  1. package/out/index.d.ts +1 -0
  2. package/out/index.js +5 -1
  3. package/out/middlewares/ui-module.js +1 -2
  4. package/out/modules/about.d.ts +4 -0
  5. package/out/modules/about.js +25 -3
  6. package/out/modules/advisor-inspector/handlers/recheck.d.ts +4 -0
  7. package/out/modules/advisor-inspector/handlers/recheck.js +44 -0
  8. package/out/modules/advisor-inspector/index.d.ts +6 -0
  9. package/out/modules/advisor-inspector/index.js +35 -0
  10. package/out/modules/advisor-inspector/key.d.ts +4 -0
  11. package/out/modules/advisor-inspector/key.js +13 -0
  12. package/out/modules/advisor-inspector/report-insight.d.ts +3 -0
  13. package/out/modules/advisor-inspector/report-insight.js +61 -0
  14. package/out/modules/advisor-inspector/types.d.ts +59 -0
  15. package/out/modules/advisor-inspector/types.js +2 -0
  16. package/out/modules/manifest.js +15 -0
  17. package/out/static/css/styles.css +2 -342
  18. package/out/static/ui/about.bundle.js +542 -0
  19. package/out/static/ui/about.bundle.js.map +1 -0
  20. package/out/static/ui/error.bundle.js +120 -2
  21. package/out/static/ui/error.bundle.js.map +1 -1
  22. package/out/static/ui/form.bundle.js +164 -12
  23. package/out/static/ui/form.bundle.js.map +1 -1
  24. package/out/static/ui/install.bundle.js +8 -2
  25. package/out/static/ui/install.bundle.js.map +1 -1
  26. package/out/static/ui/login.bundle.js +425 -35
  27. package/out/static/ui/login.bundle.js.map +1 -1
  28. package/out/static/ui/main.bundle.js +718 -366
  29. package/out/static/ui/main.bundle.js.map +1 -1
  30. package/out/static/ui/oauth.bundle.js +8 -2
  31. package/out/static/ui/oauth.bundle.js.map +1 -1
  32. package/out/static/ui/subscription.bundle.js +542 -0
  33. package/out/static/ui/subscription.bundle.js.map +1 -0
  34. package/out/storage/drizzle/postgresql/migrations/0002_equal_skrulls.sql +3 -0
  35. package/out/storage/drizzle/postgresql/migrations/meta/0002_snapshot.json +646 -0
  36. package/out/storage/drizzle/postgresql/migrations/meta/_journal.json +7 -0
  37. package/out/storage/drizzle/postgresql/schema.js +2 -1
  38. package/out/storage/drizzle/sqlite/migrations/0001_new_rhodey.sql +26 -0
  39. package/out/storage/drizzle/sqlite/migrations/meta/0001_snapshot.json +687 -0
  40. package/out/storage/drizzle/sqlite/migrations/meta/_journal.json +7 -0
  41. package/out/storage/drizzle/sqlite/schema.js +2 -1
  42. package/out/types.d.ts +6 -0
  43. package/out/util/jsx-renderer.d.ts +2 -1
  44. package/out/util/jsx-renderer.js +8 -8
  45. package/out/views/FormPage.js +2 -2
  46. package/out/views/index.d.ts +0 -2
  47. package/out/views/index.js +1 -5
  48. package/out/views/layout/Head.js +0 -10
  49. package/package.json +5 -2
  50. package/out/static/css/about.css +0 -128
  51. package/out/static/css/crowdin-ui-colors.css +0 -115
  52. package/out/static/js/dependent.js +0 -315
  53. package/out/static/js/main.js +0 -96
  54. package/out/static/js/polyfills/fetch.js +0 -494
  55. package/out/static/js/polyfills/promise.js +0 -375
  56. package/out/views/AboutPage.d.ts +0 -10
  57. package/out/views/AboutPage.js +0 -88
  58. package/out/views/SubscriptionPage.d.ts +0 -7
  59. package/out/views/SubscriptionPage.js +0 -26
@@ -518,19 +518,25 @@
518
518
 
519
519
  var clientExports = requireClient();
520
520
 
521
+ function readPageProps() {
522
+ const element = document.getElementById('__PAGE_PROPS__');
523
+ return JSON.parse((element === null || element === void 0 ? void 0 : element.textContent) || '{}');
524
+ }
525
+
521
526
  var reactExports = requireReact();
522
527
 
523
528
  const OAuthPage = ({ message, oauthMode }) => {
524
529
  reactExports.useEffect(() => {
525
530
  if (oauthMode !== 'polling') {
526
- window.opener.postMessage(message);
531
+ window.opener.postMessage(message, window.location.origin);
527
532
  }
528
533
  window.close();
529
534
  });
530
535
  return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
531
536
  };
532
537
 
533
- clientExports.createRoot(document.getElementById('root')).render(jsxRuntimeExports.jsx(OAuthPage, { ...window.__PAGE_PROPS__ }));
538
+ const props = readPageProps();
539
+ clientExports.createRoot(document.getElementById('root')).render(jsxRuntimeExports.jsx(OAuthPage, { ...props }));
534
540
 
535
541
  })();
536
542
  //# sourceMappingURL=oauth.bundle.js.map