@popcraft/cli 0.9.2 → 0.9.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.
Files changed (2) hide show
  1. package/dist/popcraft.mjs +4 -13
  2. package/package.json +2 -2
package/dist/popcraft.mjs CHANGED
@@ -1173,7 +1173,7 @@ function operations(spec = openapi) {
1173
1173
  }
1174
1174
  async function call(target2, method, path, opts = {}) {
1175
1175
  const qs = new URLSearchParams(opts.query ?? {}).toString();
1176
- const headers = { "user-agent": `popcraft-cli/${"0.9.2"}`, ...opts.headers };
1176
+ const headers = { "user-agent": `popcraft-cli/${"0.9.3"}`, ...opts.headers };
1177
1177
  if (target2.token) headers.authorization = `Bearer ${target2.token}`;
1178
1178
  if (opts.contentType) headers["content-type"] = opts.contentType;
1179
1179
  try {
@@ -253703,7 +253703,6 @@ function formatDate(date5, opts = { month: "short", day: "numeric", year: "numer
253703
253703
  var cache5, nf;
253704
253704
  var init_format = __esm({
253705
253705
  "lib/i18n/format.ts"() {
253706
- "use strict";
253707
253706
  init_runtime();
253708
253707
  cache5 = /* @__PURE__ */ new Map();
253709
253708
  nf = (opts) => cached2("n", opts, (l) => new Intl.NumberFormat(l, opts));
@@ -300898,6 +300897,7 @@ function importSVGFile(file2, document2, parentId) {
300898
300897
  var ENTITIES, decode3, I, mul2, apply2, scaleOf, NUM2, nums, near, NAMED, INHERITED, PRESENTATION, len2, CAP, JOIN, SKIPPED, refId;
300899
300898
  var init_svg_import = __esm({
300900
300899
  "lib/io/svg-import.ts"() {
300900
+ "use strict";
300901
300901
  init_dist_node();
300902
300902
  init_types();
300903
300903
  ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', apos: "'", nbsp: "\xA0" };
@@ -301726,7 +301726,6 @@ async function createFreshFileOrExplain(place4 = {}, seed2 = {}) {
301726
301726
  var online, goesLocal;
301727
301727
  var init_new_file = __esm({
301728
301728
  "lib/client/cloud/new-file.ts"() {
301729
- "use strict";
301730
301729
  init_scene_graph();
301731
301730
  init_print_pages();
301732
301731
  init_page_presets();
@@ -303483,7 +303482,6 @@ function applyTextPath(layout2, path, tp, rebase = true) {
303483
303482
  var defaultCircleRadius, ownsPath, mapPoint;
303484
303483
  var init_text_path = __esm({
303485
303484
  "lib/engine/text/text-path.ts"() {
303486
- "use strict";
303487
303485
  init_scene_graph();
303488
303486
  init_transform();
303489
303487
  init_shape_to_path();
@@ -303601,7 +303599,6 @@ function areaBounds(rings) {
303601
303599
  }
303602
303600
  var init_text_area = __esm({
303603
303601
  "lib/engine/text/text-area.ts"() {
303604
- "use strict";
303605
303602
  }
303606
303603
  });
303607
303604
 
@@ -307833,7 +307830,6 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
307833
307830
  var MIME, DEFAULT_EXPORT, exportSettingsOf;
307834
307831
  var init_export = __esm({
307835
307832
  "lib/io/export.ts"() {
307836
- "use strict";
307837
307833
  init_download();
307838
307834
  init_scene_graph();
307839
307835
  init_codecs();
@@ -316205,7 +316201,6 @@ popcraftMount(document.querySelector('[data-pc="0"]'), ${JSON.stringify(spec)});
316205
316201
  var routeFile, routeUp, bytesOf;
316206
316202
  var init_files = __esm({
316207
316203
  "lib/io/web/project/files.ts"() {
316208
- "use strict";
316209
316204
  routeFile = (route2) => route2 === "/" ? "index.html" : `${route2.replace(/^\//, "")}/index.html`;
316210
316205
  routeUp = (route2) => route2 === "/" ? "" : "../".repeat(route2.replace(/^\//, "").split("/").length);
316211
316206
  bytesOf = (f2) => typeof f2.content === "string" ? new TextEncoder().encode(f2.content) : f2.content;
@@ -317232,7 +317227,7 @@ var init_package = __esm({
317232
317227
  "packages/runtime/package.json"() {
317233
317228
  package_default = {
317234
317229
  name: "@popcraft/runtime",
317235
- version: "0.9.2",
317230
+ version: "0.9.3",
317236
317231
  description: "What code exported from PopCraft shares: the meaning of expressions (operators and functions) and, as it grows, the parts of a design's behaviour that are common code rather than generated React.",
317237
317232
  license: "MIT",
317238
317233
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -317858,7 +317853,6 @@ function routesOf(screens) {
317858
317853
  var slug2;
317859
317854
  var init_routes = __esm({
317860
317855
  "lib/document/routes.ts"() {
317861
- "use strict";
317862
317856
  slug2 = (s) => s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
317863
317857
  }
317864
317858
  });
@@ -317988,7 +317982,6 @@ function fieldPart(nodes, id3) {
317988
317982
  var cleanName2;
317989
317983
  var init_controls = __esm({
317990
317984
  "lib/document/controls.ts"() {
317991
- "use strict";
317992
317985
  cleanName2 = (raw) => raw.trim().replace(/[^A-Za-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
317993
317986
  }
317994
317987
  });
@@ -342833,7 +342826,6 @@ function hashOf(text) {
342833
342826
  }
342834
342827
  var init_hash = __esm({
342835
342828
  "lib/code/hash.ts"() {
342836
- "use strict";
342837
342829
  }
342838
342830
  });
342839
342831
 
@@ -345958,7 +345950,6 @@ function diagnosticsText(diagnostics) {
345958
345950
  var HARNESS_NAMES, plainDiagnostics;
345959
345951
  var init_shader_diagnostics = __esm({
345960
345952
  "lib/engine/shader-diagnostics.ts"() {
345961
- "use strict";
345962
345953
  HARNESS_NAMES = ["ShaderUniforms", "VOut", "vs_main", "fs_main", "u", "p"];
345963
345954
  plainDiagnostics = (errors2) => errors2.map((message) => ({ line: null, column: null, message, severity: "error" }));
345964
345955
  }
@@ -397796,7 +397787,7 @@ init_resources();
397796
397787
  init_desktop();
397797
397788
  init_hypery();
397798
397789
  import { createInterface } from "node:readline";
397799
- var VERSION2 = "0.9.2";
397790
+ var VERSION2 = "0.9.3";
397800
397791
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
397801
397792
 
397802
397793
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "The PopCraft command line: edit .popcraft files headlessly, call the REST API, publish to the marketplace and manage the desktop app's local plugins, themes, fonts, skills and agents.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://popcraft.app/docs/api/cli",
@@ -34,7 +34,7 @@
34
34
  "esbuild": "0.28.2"
35
35
  },
36
36
  "dependencies": {
37
- "@popcraft/kit": "0.9.2"
37
+ "@popcraft/kit": "0.9.3"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",