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.
- package/lib/ComponentProps/TreeNodeProps.d.ts +3 -0
- package/lib/index.d.ts +3 -0
- package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
- package/package.json +1 -1
- package/lib/utils/togglePrePostCondition/togglePrePostCondition.d.ts +0 -2
- package/lib/utils/togglePrePostCondition/togglePrePostCondition.js +0 -13
- package/lib/utils/togglePrePostCondition/togglePrePostCondition.js.map +0 -1
package/lib/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { __exports as tokenizer } from '../../../../../_virtual/
|
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/
|
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,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;;;;"}
|