imxc 0.6.7 → 0.6.8

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/emitter.js CHANGED
@@ -1648,7 +1648,7 @@ function emitText(node, lines, indent) {
1648
1648
  function emitButton(node, lines, indent, depth) {
1649
1649
  emitLocComment(node.loc, 'Button', lines, indent);
1650
1650
  const title = asCharPtr(node.title);
1651
- const disabledArg = node.disabled ? ', {}, true' : '';
1651
+ const disabledArg = node.disabled !== undefined ? `, {}, ${node.disabled}` : '';
1652
1652
  const pressedVar = node.action.length > 0 ? nextWidgetTemp('button_pressed') : undefined;
1653
1653
  const resultVar = emitBoolWidgetCall(`imx::renderer::button(${title}${disabledArg})`, node.item, lines, indent, pressedVar);
1654
1654
  if (node.action.length > 0 && resultVar) {
package/dist/init.js CHANGED
@@ -39,7 +39,7 @@ export function addToProject(projectDir) {
39
39
  console.log(' include(FetchContent)');
40
40
  console.log(' FetchContent_Declare(imx');
41
41
  console.log(' GIT_REPOSITORY https://github.com/bgocumlu/imx.git');
42
- console.log(' GIT_TAG v0.6.7');
42
+ console.log(' GIT_TAG v0.6.8');
43
43
  console.log(' )');
44
44
  console.log(' FetchContent_MakeAvailable(imx)');
45
45
  console.log(' include(ImxCompile)');
package/dist/ir.d.ts CHANGED
@@ -138,7 +138,7 @@ export interface IRButton {
138
138
  kind: 'button';
139
139
  title: string;
140
140
  action: string[];
141
- disabled?: boolean;
141
+ disabled?: string;
142
142
  style?: string;
143
143
  item?: IRItemInteraction;
144
144
  loc?: SourceLoc;
package/dist/lowering.js CHANGED
@@ -1045,7 +1045,7 @@ function lowerButton(attrs, rawAttrs, body, ctx, loc) {
1045
1045
  if (onPressExpr) {
1046
1046
  action = extractActionStatements(onPressExpr, ctx);
1047
1047
  }
1048
- const disabled = attrs['disabled'] === 'true' ? true : undefined;
1048
+ const disabled = attrs['disabled'];
1049
1049
  const style = attrs['style'];
1050
1050
  const item = lowerItemInteraction(attrs, rawAttrs, ctx);
1051
1051
  body.push({ kind: 'button', title, action, disabled, style, item, loc });
@@ -428,7 +428,7 @@ set(FETCHCONTENT_QUIET OFF)
428
428
  FetchContent_Declare(
429
429
  imx
430
430
  GIT_REPOSITORY https://github.com/bgocumlu/imx.git
431
- GIT_TAG v0.6.7
431
+ GIT_TAG v0.6.8
432
432
  GIT_SHALLOW TRUE
433
433
  GIT_PROGRESS TRUE
434
434
  )
@@ -313,7 +313,7 @@ set(FETCHCONTENT_QUIET OFF)
313
313
  FetchContent_Declare(
314
314
  imx
315
315
  GIT_REPOSITORY https://github.com/bgocumlu/imx.git
316
- GIT_TAG v0.6.7
316
+ GIT_TAG v0.6.8
317
317
  GIT_SHALLOW TRUE
318
318
  GIT_PROGRESS TRUE
319
319
  )
@@ -402,7 +402,7 @@ set(FETCHCONTENT_QUIET OFF)
402
402
  FetchContent_Declare(
403
403
  imx
404
404
  GIT_REPOSITORY ${repoUrl}
405
- GIT_TAG v0.6.7
405
+ GIT_TAG v0.6.8
406
406
  GIT_SHALLOW TRUE
407
407
  GIT_PROGRESS TRUE
408
408
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imxc",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "Compiler for IMX — compiles React-like .tsx to native Dear ImGui C++",
5
5
  "type": "module",
6
6
  "bin": {