@dialecte/plc 0.0.9 → 0.0.11

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.
@@ -6730,16 +6730,12 @@ function j(e, t, n) {
6730
6730
  function M(e, t, n) {
6731
6731
  let r = e.createElementNS(p, "FbdObject");
6732
6732
  r.setAttributeNS(m, "xsi:type", "DataSource"), r.setAttribute("identifier", U(t)), H(e, r, t);
6733
- let i = t.getAttribute("localId") ?? "", a = e.createElementNS(p, "OutputVariables");
6734
- return a.appendChild(j(e, "value", n.get(`${i}|`))), r.appendChild(a), r;
6733
+ let i = t.getAttribute("localId") ?? "", a = e.createElementNS(p, "ConnectionPointOut"), o = n.get(`${i}|`);
6734
+ return o && a.setAttribute("connectionPointOutId", o), r.appendChild(a), r;
6735
6735
  }
6736
6736
  function N(e, t, n) {
6737
6737
  let r = e.createElementNS(p, "FbdObject");
6738
- r.setAttributeNS(m, "xsi:type", "DataSink"), r.setAttribute("identifier", U(t)), H(e, r, t);
6739
- let i = e.createElementNS(p, "InputVariable");
6740
- i.setAttribute("parameterName", "value"), i.appendChild(V(e, t.querySelector("connectionPointIn"), n));
6741
- let a = e.createElementNS(p, "InputVariables");
6742
- return a.appendChild(i), r.appendChild(a), r;
6738
+ return r.setAttributeNS(m, "xsi:type", "DataSink"), r.setAttribute("identifier", U(t)), H(e, r, t), r.appendChild(V(e, t.querySelector("connectionPointIn"), n)), r;
6743
6739
  }
6744
6740
  function P(e, t) {
6745
6741
  let n = e.createElementNS(p, "CommonObject");
@@ -18,8 +18,8 @@ import { IOHooks } from '@dialecte/core';
18
18
  * - `block` → `FbdObject xsi:type="Block"` with `InputVariables >
19
19
  * InputVariable[parameterName] > ConnectionPointIn > Connection` and
20
20
  * `OutputVariables > OutputVariable[parameterName] > ConnectionPointOut`.
21
- * - `inVariable` → `FbdObject xsi:type="DataSource"` (`OutputVariable` "value").
22
- * - `outVariable` → `FbdObject xsi:type="DataSink"` (`InputVariable` "value").
21
+ * - `inVariable` → `FbdObject xsi:type="DataSource"` (direct `ConnectionPointOut`).
22
+ * - `outVariable` → `FbdObject xsi:type="DataSink"` (direct `ConnectionPointIn`).
23
23
  * - `comment` → `CommonObject xsi:type="Comment"`.
24
24
  * - `connector`/`continuation` → `CommonObject xsi:type="Connector"|"Continuation"`.
25
25
  * 5. Wiring uses `connectionPointOutId`/`refConnectionPointOutId`: every output
@@ -1 +1 @@
1
- {"version":3,"file":"io-hooks.d.ts","sourceRoot":"","sources":["../../../../src/v1/hooks/io/io-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAUH;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAG9C;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAqDpD;AAwdD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,eAAO,MAAM,QAAQ,EAAE,OAEtB,CAAA"}
1
+ {"version":3,"file":"io-hooks.d.ts","sourceRoot":"","sources":["../../../../src/v1/hooks/io/io-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAUH;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAG9C;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAqDpD;AAsdD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,eAAO,MAAM,QAAQ,EAAE,OAEtB,CAAA"}
package/dist/v1/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, i as t, n, r, t as i } from "../config-CIpITnIQ.js";
1
+ import { a as e, i as t, n, r, t as i } from "../config-CzSp25dd.js";
2
2
  import { Project as a } from "@dialecte/core";
3
3
  //#region src/v1/dialecte.ts
4
4
  function o(e) {
package/dist/v1/test.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as e, t } from "../config-CIpITnIQ.js";
1
+ import { r as e, t } from "../config-CzSp25dd.js";
2
2
  import { CUSTOM_RECORD_ID_ATTRIBUTE as n, CUSTOM_RECORD_ID_ATTRIBUTE_NAME as r, XMLNS_XSI_NAMESPACE as i } from "@dialecte/core/helpers";
3
3
  import { XMLNS_DEV_NAMESPACE as a, createTestProject as o, createTestRecordFactory as s, createTestRunner as c, createXmlAssertions as l } from "@dialecte/core/test";
4
4
  //#region src/v1/test/hydrated-test.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dialecte/plc",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "Dialecte - PLC (Programmable Logic Controller) sdk",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -50,7 +50,7 @@
50
50
  "prepare": "husky"
51
51
  },
52
52
  "dependencies": {
53
- "@dialecte/core": "0.2.21"
53
+ "@dialecte/core": "0.2.22"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@dialecte/cli": "0.0.1",
@@ -65,7 +65,7 @@
65
65
  "playwright": "^1.60.0",
66
66
  "tsx": "^4.22.4",
67
67
  "typescript": "^6.0.3",
68
- "vite": "^8.0.16",
68
+ "vite": "8.0.16",
69
69
  "vite-plugin-dts": "^5.0.2",
70
70
  "vitepress": "^2.0.0-alpha.17",
71
71
  "vitepress-plugin-llms": "^1.13.1",