@popcraft/cli 0.20.1 → 0.20.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 +13 -6
  2. package/package.json +2 -2
package/dist/popcraft.mjs CHANGED
@@ -1186,7 +1186,7 @@ function operations(spec = openapi) {
1186
1186
  }
1187
1187
  async function call(target2, method, path, opts = {}) {
1188
1188
  const qs = new URLSearchParams(opts.query ?? {}).toString();
1189
- const headers = { "user-agent": `popcraft-cli/${"0.20.1"}`, ...opts.headers };
1189
+ const headers = { "user-agent": `popcraft-cli/${"0.20.3"}`, ...opts.headers };
1190
1190
  if (target2.token) headers.authorization = `Bearer ${target2.token}`;
1191
1191
  if (opts.contentType) headers["content-type"] = opts.contentType;
1192
1192
  try {
@@ -34888,6 +34888,7 @@ var init_en2 = __esm({
34888
34888
  "pluginImport.noImporterIsInstalledFor": "No importer is installed for \u201C{name}\u201D",
34889
34889
  "pluginImport.openAFileToImport": "Open a file to import into",
34890
34890
  "pluginImport.producedNoLayers": "\u201C{name}\u201D produced no layers",
34891
+ "pluginOverlays.addsExport": "Adds File \u203A Export \u203A {label}",
34891
34892
  "pluginOverlays.allowAndRun": "Allow and run",
34892
34893
  "pluginOverlays.allowTo": "Allow \u201C{name}\u201D to:",
34893
34894
  "pluginOverlays.applied": "Applied {name}",
@@ -34913,7 +34914,9 @@ var init_en2 = __esm({
34913
34914
  "pluginOverlays.noPluginsInstalledBrowseThe": "No plugins installed. Browse the marketplace, or install a",
34914
34915
  "pluginOverlays.noPluginsMatchYourSearch": "No plugins match your search.",
34915
34916
  "pluginOverlays.noPluginsPublishedYet": "No plugins published yet.",
34917
+ "pluginOverlays.openPanel": "Open {title}",
34916
34918
  "pluginOverlays.openPluginsFolder": "Open plugins folder",
34919
+ "pluginOverlays.panelHint": "Adds the {title} tab to the sidebar while it is enabled",
34917
34920
  "pluginOverlays.pluginPermissions": "Plugin permissions",
34918
34921
  "pluginOverlays.plugins": "Plugins",
34919
34922
  "pluginOverlays.published": "Published {name} {version}",
@@ -34925,6 +34928,7 @@ var init_en2 = __esm({
34925
34928
  "pluginOverlays.removeFrom": "Remove from {name}",
34926
34929
  "pluginOverlays.removeItFromThePlugins": "Remove it from the plugins folder to uninstall",
34927
34930
  "pluginOverlays.run": "Run",
34931
+ "pluginOverlays.running": "Running",
34928
34932
  "pluginOverlays.searchPlugins": "Search plugins",
34929
34933
  "pluginOverlays.signInToInstallPublish": "Sign in to install, publish and share plugins with your workspace.",
34930
34934
  "pluginOverlays.submittedForReview": "Submitted {name} {version} for review",
@@ -256247,6 +256251,7 @@ function planEntryAction({ home }) {
256247
256251
  var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
256248
256252
  var init_team = __esm({
256249
256253
  "lib/client/cloud/team.ts"() {
256254
+ "use strict";
256250
256255
  init_esm();
256251
256256
  init_api4();
256252
256257
  init_session();
@@ -264829,7 +264834,7 @@ function applyYEventsToDocument(ydoc, current3, events) {
264829
264834
  if (!structure && !tree) return { ...current3, nodes };
264830
264835
  return finishDocument(ydoc, current3, nodes);
264831
264836
  }
264832
- var LOCAL_ORIGIN, RECORD_FIELDS, META_FIELDS, yRecordMaps, TRACK_PREFIX, MACHINE_PARTS, MACHINE_PREFIX, MAX_DOC_NAME, UNSAFE_KEYS, isSafeKey, yNodes, yPages, yMeta;
264837
+ var LOCAL_ORIGIN, RECORD_FIELDS, META_FIELDS, sameSyncedFields, yRecordMaps, TRACK_PREFIX, MACHINE_PARTS, MACHINE_PREFIX, MAX_DOC_NAME, UNSAFE_KEYS, isSafeKey, yNodes, yPages, yMeta;
264833
264838
  var init_ydoc = __esm({
264834
264839
  "lib/collab/ydoc.ts"() {
264835
264840
  "use strict";
@@ -264837,6 +264842,7 @@ var init_ydoc = __esm({
264837
264842
  LOCAL_ORIGIN = "popcraft-local";
264838
264843
  RECORD_FIELDS = ["styles", "variables", "variableCollections", "libraries", "compositions", "collections", "records", "codeModules", "pluginData"];
264839
264844
  META_FIELDS = ["name", "thumbnailNodeId", "voteResults", "settings", "site"];
264845
+ sameSyncedFields = (prev, next2) => prev.nodes === next2.nodes && prev.pages === next2.pages && META_FIELDS.every((f2) => prev[f2] === next2[f2]) && RECORD_FIELDS.every((f2) => prev[f2] === next2[f2]);
264840
264846
  yRecordMaps = (ydoc) => RECORD_FIELDS.map((f2) => ydoc.getMap(f2));
264841
264847
  TRACK_PREFIX = "motion.tracks/";
264842
264848
  MACHINE_PARTS = ["states", "transitions", "inputs", "listeners"];
@@ -265979,7 +265985,7 @@ function startCollabSession(docId, opts) {
265979
265985
  }
265980
265986
  if (!bound || !client.canWrite() || !isActive()) return;
265981
265987
  const shared = withoutPrivate(document2);
265982
- if (synced && shared.nodes === synced.nodes && shared.pages === synced.pages && shared.name === synced.name && shared.styles === synced.styles && shared.variables === synced.variables && shared.variableCollections === synced.variableCollections && shared.libraries === synced.libraries && shared.thumbnailNodeId === synced.thumbnailNodeId && shared.voteResults === synced.voteResults && shared.settings === synced.settings) return;
265988
+ if (synced && sameSyncedFields(synced, shared)) return;
265983
265989
  lastSend = performance.now();
265984
265990
  applyDocumentToYdoc(ydoc, synced, shared, LOCAL_ORIGIN);
265985
265991
  synced = shared;
@@ -303947,7 +303953,6 @@ async function createFreshFileOrExplain(place4 = {}, seed2 = {}) {
303947
303953
  var online, goesLocal;
303948
303954
  var init_new_file = __esm({
303949
303955
  "lib/client/cloud/new-file.ts"() {
303950
- "use strict";
303951
303956
  init_scene_graph();
303952
303957
  init_print_pages();
303953
303958
  init_page_presets();
@@ -304666,6 +304671,7 @@ async function dispatchShaped(key5, options) {
304666
304671
  var onViolation;
304667
304672
  var init_dispatch = __esm({
304668
304673
  "lib/commands/dispatch.ts"() {
304674
+ "use strict";
304669
304675
  init_errors();
304670
304676
  init_registry();
304671
304677
  init_confirm();
@@ -320594,7 +320600,7 @@ var init_package = __esm({
320594
320600
  "packages/runtime/package.json"() {
320595
320601
  package_default = {
320596
320602
  name: "@popcraft/runtime",
320597
- version: "0.20.1",
320603
+ version: "0.20.3",
320598
320604
  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.",
320599
320605
  license: "MIT",
320600
320606
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -354036,6 +354042,7 @@ var init_publish = __esm({
354036
354042
  var storeOpsSeam;
354037
354043
  var init_seams = __esm({
354038
354044
  "lib/commands/seams.ts"() {
354045
+ "use strict";
354039
354046
  storeOpsSeam = (st) => ({
354040
354047
  booleanOperation: (op4) => st().booleanOperation(op4),
354041
354048
  flatten: () => st().flattenSelection(),
@@ -403055,7 +403062,7 @@ init_resources();
403055
403062
  init_desktop();
403056
403063
  init_hypery();
403057
403064
  import { createInterface } from "node:readline";
403058
- var VERSION2 = "0.20.1";
403065
+ var VERSION2 = "0.20.3";
403059
403066
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
403060
403067
 
403061
403068
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.20.1",
3
+ "version": "0.20.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.20.1"
37
+ "@popcraft/kit": "0.20.3"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",