@patterkit/cli 0.2.3 → 0.2.4

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 (2) hide show
  1. package/dist/cli.js +6 -0
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -196971,6 +196971,7 @@ async function runReportXlsx(data) {
196971
196971
  const totalRow = scenes.addRow(sceneRow("TOTAL", totals));
196972
196972
  totalRow.font = { bold: true };
196973
196973
  scenes.getRow(1).font = { bold: true };
196974
+ scenes.views = [{ state: "frozen", ySplit: 1 }];
196974
196975
  const chars = wb.addWorksheet("Characters");
196975
196976
  chars.columns = [
196976
196977
  { header: "Character", key: "character", width: 20 },
@@ -196989,6 +196990,7 @@ async function runReportXlsx(data) {
196989
196990
  });
196990
196991
  }
196991
196992
  chars.getRow(1).font = { bold: true };
196993
+ chars.views = [{ state: "frozen", ySplit: 1 }];
196992
196994
  if (data.locales.length > 0) {
196993
196995
  const loc = wb.addWorksheet("Localisation");
196994
196996
  loc.columns = [
@@ -197000,6 +197002,7 @@ async function runReportXlsx(data) {
197000
197002
  ];
197001
197003
  for (const l2 of data.locales) loc.addRow(l2);
197002
197004
  loc.getRow(1).font = { bold: true };
197005
+ loc.views = [{ state: "frozen", ySplit: 1 }];
197003
197006
  }
197004
197007
  if (data.estimating && data.coverage.estimated > 0) {
197005
197008
  const plan = wb.addWorksheet("Estimates");
@@ -197012,6 +197015,7 @@ async function runReportXlsx(data) {
197012
197015
  const coverageRow = plan.addRow({ name: `coverage: ${data.coverage.estimated}/${data.coverage.totalScenes} scenes estimated` });
197013
197016
  coverageRow.font = { italic: true };
197014
197017
  plan.getRow(1).font = { bold: true };
197018
+ plan.views = [{ state: "frozen", ySplit: 1 }];
197015
197019
  }
197016
197020
  return Buffer.from(await wb.xlsx.writeBuffer());
197017
197021
  }
@@ -197343,6 +197347,7 @@ async function catalogToXlsx(catalog) {
197343
197347
  { header: "Gender", key: "gender", width: 12 }
197344
197348
  ];
197345
197349
  ws.getRow(1).font = { bold: true };
197350
+ ws.views = [{ state: "frozen", ySplit: 1 }];
197346
197351
  for (const e of entries) {
197347
197352
  ws.addRow({
197348
197353
  id: e.id,
@@ -197472,6 +197477,7 @@ async function voiceScriptToXlsx(data) {
197472
197477
  { header: "Status", key: "status", width: 12 }
197473
197478
  ];
197474
197479
  ws.getRow(1).font = { bold: true };
197480
+ ws.views = [{ state: "frozen", ySplit: 1 }];
197475
197481
  for (const l2 of data.lines) {
197476
197482
  const row = ws.addRow({
197477
197483
  scope: l2.scope,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patterkit/cli",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "The `patter` CLI: validate, format, export, and play a Patter project.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@patterkit/core": "0.2.0",
33
- "@patterkit/ops": "0.3.3",
33
+ "@patterkit/ops": "0.3.4",
34
34
  "@wildwinter/simple-vc-lib": "^0.4.1"
35
35
  }
36
36
  }