pixel-react 1.14.0 → 1.14.1

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.
@@ -69,4 +69,7 @@ export type TreeNodeProps = {
69
69
  hideResources?: boolean;
70
70
  hidePreOrPost?: boolean;
71
71
  isScript?: boolean;
72
+ stepId?: string;
73
+ conditionId?: string;
74
+ machInstanceId?: string;
72
75
  };
package/lib/index.d.ts CHANGED
@@ -2168,6 +2168,9 @@ type TreeNodeProps = {
2168
2168
  hideResources?: boolean;
2169
2169
  hidePreOrPost?: boolean;
2170
2170
  isScript?: boolean;
2171
+ stepId?: string;
2172
+ conditionId?: string;
2173
+ machInstanceId?: string;
2171
2174
  };
2172
2175
 
2173
2176
  interface NewNode$1 {
@@ -1,4 +1,4 @@
1
- import { __exports as tokenizer } from '../../../../../_virtual/tokenizer.js';
1
+ import { __exports as tokenizer } from '../../../../../_virtual/tokenizer2.js';
2
2
  import { __require as requireTokenizer$1 } from '../core/tokenizer.js';
3
3
  import { __require as requireDirectives } from '../core/directives.js';
4
4
  import { __require as requireTemplatablepattern } from '../core/templatablepattern.js';
@@ -1,4 +1,4 @@
1
- import { __exports as tokenizer } from '../../../../../_virtual/tokenizer2.js';
1
+ import { __exports as tokenizer } from '../../../../../_virtual/tokenizer.js';
2
2
  import { __require as requireInputscanner } from '../core/inputscanner.js';
3
3
  import { __require as requireTokenizer$1 } from '../core/tokenizer.js';
4
4
  import { __require as requireDirectives } from '../core/directives.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pixel-react",
3
3
  "description": "Great for pixel-perfect, design-focused components in React",
4
- "version": "1.14.0",
4
+ "version": "1.14.1",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -1,2 +0,0 @@
1
- import { TreeNodeProps as TreeNode } from '../../ComponentProps/TreeNodeProps';
2
- export declare function togglePrePostConditions(data: TreeNode[], isHide: boolean, isScript: boolean): TreeNode[];
@@ -1,13 +0,0 @@
1
- function togglePrePostConditions(data, isHide, isScript) {
2
- if (!Array.isArray(data)) {
3
- throw new Error('Input data must be an array of TreeNode objects.');
4
- }
5
- const hideTypeArray = isScript ? ['Script'] : ['PRE', 'POST'];
6
- return data.map(node => hideTypeArray.includes(node.entityType ?? '') ? {
7
- ...node,
8
- hide: isHide
9
- } : node);
10
- }
11
-
12
- export { togglePrePostConditions };
13
- //# sourceMappingURL=togglePrePostCondition.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"togglePrePostCondition.js","sources":["../../../src/utils/togglePrePostCondition/togglePrePostCondition.ts"],"sourcesContent":[null],"names":["togglePrePostConditions","data","isHide","isScript","Array","isArray","Error","hideTypeArray","map","node","includes","entityType","hide"],"mappings":"SACgBA,uBAAuBA,CACrCC,IAAgB,EAChBC,MAAe,EACfC,QAAiB,EAAA;AAEjB,EAAA,IAAI,CAACC,KAAK,CAACC,OAAO,CAACJ,IAAI,CAAC,EAAE;AACxB,IAAA,MAAM,IAAIK,KAAK,CAAC,kDAAkD,CAAC;AACrE;AAEA,EAAA,MAAMC,aAAa,GAAGJ,QAAQ,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC;AAE7D,EAAA,OAAOF,IAAI,CAACO,GAAG,CAAEC,IAAI,IACnBF,aAAa,CAACG,QAAQ,CAACD,IAAI,CAACE,UAAU,IAAI,EAAE,CAAC,GACzC;AAAE,IAAA,GAAGF,IAAI;AAAEG,IAAAA,IAAI,EAAEV;GAAQ,GACzBO,IAAI,CACT;AACH;;;;"}