@amiable-dev/docusaurus-plugin-stentorosaur 0.21.1 → 0.21.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAC,WAAW,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAC,aAAa,EAAE,UAAU,EAA6E,MAAM,SAAS,CAAC;AAInI,OAAO,EAAC,eAAe,EAAC,MAAM,WAAW,CAAC;AAqS1C;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,EAAE,CAalD;AAED,wBAA8B,YAAY,CACxC,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CA0iB7B;AAED,OAAO,EAAC,KAAK,aAAa,EAAC,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAC,WAAW,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAC,aAAa,EAAE,UAAU,EAA6E,MAAM,SAAS,CAAC;AAInI,OAAO,EAAC,eAAe,EAAC,MAAM,WAAW,CAAC;AAqS1C;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,EAAE,CAalD;AAED,wBAA8B,YAAY,CACxC,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAsjB7B;AAED,OAAO,EAAC,KAAK,aAAa,EAAC,MAAM,SAAS,CAAC"}
package/lib/index.js CHANGED
@@ -304,6 +304,7 @@ async function pluginStatus(context, options) {
304
304
  showPerformanceMetrics,
305
305
  useDemoData: true,
306
306
  fetchUrl: options.fetchUrl,
307
+ statusCardLayout: options.statusCardLayout,
307
308
  };
308
309
  // Ensure directory exists
309
310
  await fs_extra_1.default.ensureDir(statusDataDir);
@@ -528,6 +529,7 @@ async function pluginStatus(context, options) {
528
529
  showPerformanceMetrics,
529
530
  useDemoData: shouldUseDemoData,
530
531
  fetchUrl: options.fetchUrl,
532
+ statusCardLayout: options.statusCardLayout,
531
533
  };
532
534
  // Ensure directory exists
533
535
  await fs_extra_1.default.ensureDir(statusDataDir);
@@ -618,6 +620,12 @@ async function pluginStatus(context, options) {
618
620
  console.log('[docusaurus-plugin-stentorosaur] Copying archives from monitoring data');
619
621
  await fs_extra_1.default.copy(sourceArchives, path_1.default.join(buildStatusDir, 'archives'));
620
622
  }
623
+ // Copy daily-summary.json if it exists (needed for minimal layout UptimeBar)
624
+ const sourceDailySummary = path_1.default.join(sourceDataDir, 'daily-summary.json');
625
+ if (await fs_extra_1.default.pathExists(sourceDailySummary)) {
626
+ console.log('[docusaurus-plugin-stentorosaur] Copying daily-summary.json for minimal layout');
627
+ await fs_extra_1.default.copy(sourceDailySummary, path_1.default.join(buildStatusDir, 'daily-summary.json'));
628
+ }
621
629
  // Copy incidents.json if it exists
622
630
  const sourceIncidents = path_1.default.join(sourceDataDir, 'incidents.json');
623
631
  if (await fs_extra_1.default.pathExists(sourceIncidents)) {
package/lib/version.d.ts CHANGED
@@ -2,5 +2,5 @@
2
2
  * Plugin version - auto-generated during build
3
3
  * DO NOT EDIT MANUALLY - This file is generated from package.json
4
4
  */
5
- export declare const PLUGIN_VERSION = "0.21.1";
5
+ export declare const PLUGIN_VERSION = "0.21.3";
6
6
  //# sourceMappingURL=version.d.ts.map
package/lib/version.js CHANGED
@@ -5,4 +5,4 @@
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.PLUGIN_VERSION = void 0;
8
- exports.PLUGIN_VERSION = '0.21.1';
8
+ exports.PLUGIN_VERSION = '0.21.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amiable-dev/docusaurus-plugin-stentorosaur",
3
- "version": "0.21.1",
3
+ "version": "0.21.3",
4
4
  "description": "A Docusaurus plugin for displaying status monitoring dashboard powered by GitHub Issues and Actions, similar to Upptime",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/plugin-status.d.ts",