framer-dalton 0.0.30 → 0.0.31

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.
package/dist/cli.js CHANGED
@@ -12,7 +12,7 @@ import net from 'net';
12
12
  import { fileURLToPath } from 'url';
13
13
  import { createTRPCClient, httpLink } from '@trpc/client';
14
14
 
15
- /* @framer/ai CLI v0.0.30 */
15
+ /* @framer/ai CLI v0.0.31 */
16
16
  var __defProp = Object.defineProperty;
17
17
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
18
18
 
@@ -375,7 +375,7 @@ __name(markTelemetryNoticeShown, "markTelemetryNoticeShown");
375
375
  // src/version.ts
376
376
  var VERSION = (
377
377
  // typeof is used to ensure this can be used just via tsx or node etc. without build
378
- "0.0.30"
378
+ "0.0.31"
379
379
  );
380
380
  var trackingEndpoint = "https://events.framer.com/track";
381
381
  var inProgressTrackings = /* @__PURE__ */ new Set();
@@ -14,7 +14,7 @@ import { z } from 'zod';
14
14
  import { createRequire } from 'module';
15
15
  import * as vm from 'vm';
16
16
 
17
- /* @framer/ai relay server v0.0.30 */
17
+ /* @framer/ai relay server v0.0.31 */
18
18
  var __defProp = Object.defineProperty;
19
19
  var __knownSymbol = (name2, symbol) => (symbol = Symbol[name2]) ? symbol : /* @__PURE__ */ Symbol.for("Symbol." + name2);
20
20
  var __typeError = (msg) => {
@@ -199,7 +199,7 @@ __name(debug, "debug");
199
199
  // src/version.ts
200
200
  var VERSION = (
201
201
  // typeof is used to ensure this can be used just via tsx or node etc. without build
202
- "0.0.30"
202
+ "0.0.31"
203
203
  );
204
204
 
205
205
  // src/relay-client.ts
@@ -262,7 +262,7 @@ const commands = rows.flatMap((row, i) => {
262
262
  return [`+CollectionItemNode ${itemId} parent="${collectionId}";`, `SET ${itemId} ${sets.join(" ")};`];
263
263
  });
264
264
 
265
- await framer.agent.applyChanges(commands.join(" "));
265
+ console.log(await framer.agent.applyChanges(commands.join(" ")));
266
266
  ```
267
267
 
268
268
  #### Writing enum fields
@@ -275,10 +275,10 @@ const collection = (await framer.agent.getNodesOfTypes({ types: ["CollectionNode
275
275
  const statusField = collection.variables.find((v) => v.name === "Status");
276
276
  const status = statusField.cases.find((name) => name === "New");
277
277
 
278
- await framer.agent.applyChanges(
278
+ console.log(await framer.agent.applyChanges(
279
279
  `+CollectionItemNode newPost parent="${collection.id}";
280
280
  SET newPost $control__slug="hello-world" ${statusField.key}="${status}";`,
281
- );
281
+ ));
282
282
  ```
283
283
 
284
284
  #### Sync external data
@@ -306,7 +306,7 @@ const commands = source.flatMap((row, i) => {
306
306
  });
307
307
  existing.filter((item) => !seen.has(item.id)).forEach((item) => commands.push(`DEL ${item.id};`));
308
308
 
309
- await framer.agent.applyChanges(commands.join(" "));
309
+ console.log(await framer.agent.applyChanges(commands.join(" ")));
310
310
  ```
311
311
 
312
312
  #### Field Types
@@ -383,10 +383,10 @@ console.log(state.diagnostics);
383
383
  state.component = state.codeFile.exports.find(
384
384
  (exportItem) => exportItem.type === "component" && exportItem.isDefaultExport,
385
385
  );
386
- await framer.agent.applyChanges(
386
+ console.log(await framer.agent.applyChanges(
387
387
  `+ComponentInstanceNode badge parent="wrapper" component="${state.component.componentId}"; SET badge width=120 height=48;`,
388
388
  { pagePath: "/" },
389
- );
389
+ ));
390
390
  ```
391
391
 
392
392
  #### Editing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framer-dalton",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "type": "module",
5
5
  "bin": "./dist/cli.js",
6
6
  "main": "./dist/cli.js",
@@ -30,7 +30,7 @@
30
30
  "devDependencies": {
31
31
  "@biomejs/biome": "^2.4.13",
32
32
  "@framerjs/framer-events": "0.0.185",
33
- "@types/node": "24.12.4",
33
+ "@types/node": "24.13.0",
34
34
  "tsup": "^8.0.2",
35
35
  "tsx": "^4.22.3",
36
36
  "typescript": "^5.9.2",