@constela/compiler 0.15.11 → 0.15.12

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Program, ConstelaError, Expression, IslandStrategy, IslandStrategyOptions, LayoutProgram, ComponentDef, ViewNode } from '@constela/core';
1
+ import { Program, ConstelaError, Expression, IslandStrategy, IslandStrategyOptions, StylePreset, LayoutProgram, ComponentDef, ViewNode } from '@constela/core';
2
2
  export { createUndefinedVarError } from '@constela/core';
3
3
 
4
4
  /**
@@ -98,6 +98,7 @@ interface CompiledProgram {
98
98
  actions: Record<string, CompiledAction>;
99
99
  view: CompiledNode;
100
100
  importData?: Record<string, unknown>;
101
+ styles?: Record<string, StylePreset>;
101
102
  }
102
103
  interface CompiledAction {
103
104
  name: string;
package/dist/index.js CHANGED
@@ -2186,6 +2186,9 @@ function transformPass(ast2, _context, importData) {
2186
2186
  if (importData && Object.keys(importData).length > 0) {
2187
2187
  result.importData = importData;
2188
2188
  }
2189
+ if (ast2.styles && Object.keys(ast2.styles).length > 0) {
2190
+ result.styles = ast2.styles;
2191
+ }
2189
2192
  return result;
2190
2193
  }
2191
2194
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constela/compiler",
3
- "version": "0.15.11",
3
+ "version": "0.15.12",
4
4
  "description": "Compiler for Constela UI framework - AST to Program transformation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",