@uniformdev/cli 19.186.4-alpha.4 → 19.187.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 (2) hide show
  1. package/dist/index.mjs +16 -5
  2. package/package.json +8 -8
package/dist/index.mjs CHANGED
@@ -1960,7 +1960,17 @@ var ComponentPatternListModule = {
1960
1960
  import { UncachedCanvasClient as UncachedCanvasClient9 } from "@uniformdev/canvas";
1961
1961
 
1962
1962
  // src/commands/canvas/commands/composition/_util.ts
1963
- var selectIdentifier3 = (component) => component.composition._id;
1963
+ var selectIdentifier3 = (response) => {
1964
+ let baseId = response.composition._id;
1965
+ if (response.editionId) {
1966
+ baseId += ` (${response.editionId})`;
1967
+ }
1968
+ return baseId;
1969
+ };
1970
+ function parseCompositionSerializedId(providerId) {
1971
+ const [compositionId, editionId] = providerId.split(" (");
1972
+ return { compositionId, editionId: editionId?.slice(0, -1) };
1973
+ }
1964
1974
  var selectDisplayName3 = (component) => `${component.composition._name ?? component.composition._slug ?? component.composition._id} (pid: ${component.composition._id})`;
1965
1975
 
1966
1976
  // src/commands/canvas/componentInstanceEngineDataSource.ts
@@ -1984,7 +1994,8 @@ function createComponentInstanceEngineDataSource({
1984
1994
  skipPatternResolution: true,
1985
1995
  skipOverridesResolution: true,
1986
1996
  withComponentIDs: true,
1987
- patternType
1997
+ patternType,
1998
+ editions: "all"
1988
1999
  })).compositions,
1989
2000
  { pageSize: 100 }
1990
2001
  );
@@ -1992,7 +2003,7 @@ function createComponentInstanceEngineDataSource({
1992
2003
  const result = {
1993
2004
  id: selectIdentifier3(compositionListItem),
1994
2005
  displayName: selectDisplayName3(compositionListItem),
1995
- providerId: compositionListItem.composition._id,
2006
+ providerId: selectIdentifier3(compositionListItem),
1996
2007
  object: prepCompositionForDisk(compositionListItem)
1997
2008
  };
1998
2009
  yield result;
@@ -2002,7 +2013,7 @@ function createComponentInstanceEngineDataSource({
2002
2013
  name: "Uniform API",
2003
2014
  objects: getObjects(),
2004
2015
  deleteObject: async (providerId) => {
2005
- await client.removeComposition({ compositionId: providerId });
2016
+ await client.removeComposition(parseCompositionSerializedId(providerId));
2006
2017
  },
2007
2018
  writeObject: async (object) => {
2008
2019
  await client.updateComposition({ ...object.object, state: stateId });
@@ -7474,7 +7485,7 @@ import { PostHog } from "posthog-node";
7474
7485
  // package.json
7475
7486
  var package_default = {
7476
7487
  name: "@uniformdev/cli",
7477
- version: "19.186.3",
7488
+ version: "19.187.0",
7478
7489
  description: "Uniform command line interface tool",
7479
7490
  license: "SEE LICENSE IN LICENSE.txt",
7480
7491
  main: "./cli.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "19.186.4-alpha.4+1424f4a2db",
3
+ "version": "19.187.0",
4
4
  "description": "Uniform command line interface tool",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./cli.js",
@@ -27,12 +27,12 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@thi.ng/mime": "^2.2.23",
30
- "@uniformdev/assets": "19.186.4-alpha.4+1424f4a2db",
31
- "@uniformdev/canvas": "19.186.4-alpha.4+1424f4a2db",
32
- "@uniformdev/context": "19.186.4-alpha.4+1424f4a2db",
33
- "@uniformdev/files": "19.186.4-alpha.4+1424f4a2db",
34
- "@uniformdev/project-map": "19.186.4-alpha.4+1424f4a2db",
35
- "@uniformdev/redirect": "19.186.4-alpha.4+1424f4a2db",
30
+ "@uniformdev/assets": "19.187.0",
31
+ "@uniformdev/canvas": "19.187.0",
32
+ "@uniformdev/context": "19.187.0",
33
+ "@uniformdev/files": "19.187.0",
34
+ "@uniformdev/project-map": "19.187.0",
35
+ "@uniformdev/redirect": "19.187.0",
36
36
  "call-bind": "^1.0.2",
37
37
  "colorette": "2.0.20",
38
38
  "cosmiconfig": "9.0.0",
@@ -78,5 +78,5 @@
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "gitHead": "1424f4a2db7b2f40aab77fee598eb714ac00b807"
81
+ "gitHead": "9ccfdb652e2d67d66fe90e2df1845c3c2e3bee8b"
82
82
  }