@plumeria/compiler 1.0.4 → 2.0.0

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.
Files changed (2) hide show
  1. package/dist/extract.js +12 -12
  2. package/package.json +1 -1
package/dist/extract.js CHANGED
@@ -472,8 +472,8 @@ async function extractVueAndSvelte(filePath) {
472
472
  const cssCreateSection = await extractCssMethod(ast, 'create', code);
473
473
  const cssKeyframesSection = await extractCssMethod(ast, 'keyframes', code);
474
474
  const cssViewTransitionSection = await extractCssMethod(ast, 'viewTransition', code);
475
- const cssDefineConstsSection = await extractCssMethod(ast, 'defineConsts', code);
476
- const cssDefineTokensSection = await extractCssMethod(ast, 'defineTokens', code);
475
+ const cssCreateStaticSection = await extractCssMethod(ast, 'createStatic', code);
476
+ const cssCreateThemeSection = await extractCssMethod(ast, 'createTheme', code);
477
477
  let finalCode = '';
478
478
  if (importSection)
479
479
  finalCode += importSection + '\n';
@@ -483,10 +483,10 @@ async function extractVueAndSvelte(filePath) {
483
483
  finalCode += cssKeyframesSection + '\n';
484
484
  if (cssViewTransitionSection)
485
485
  finalCode += cssViewTransitionSection + '\n';
486
- if (cssDefineConstsSection)
487
- finalCode += cssDefineConstsSection + '\n';
488
- if (cssDefineTokensSection)
489
- finalCode += cssDefineTokensSection + '\n';
486
+ if (cssCreateStaticSection)
487
+ finalCode += cssCreateStaticSection + '\n';
488
+ if (cssCreateThemeSection)
489
+ finalCode += cssCreateThemeSection + '\n';
490
490
  if (cssCreateSection)
491
491
  finalCode += cssCreateSection + '\n';
492
492
  if (calls)
@@ -506,8 +506,8 @@ async function extractTSFile(filePath) {
506
506
  const cssCreateSection = await extractCssMethod(ast, 'create', code);
507
507
  const cssKeyframesSection = await extractCssMethod(ast, 'keyframes', code);
508
508
  const cssViewTransitionSection = await extractCssMethod(ast, 'viewTransition', code);
509
- const cssDefineConstsSection = await extractCssMethod(ast, 'defineConsts', code);
510
- const cssDefineTokensSection = await extractCssMethod(ast, 'defineTokens', code);
509
+ const cssCreateStaticSection = await extractCssMethod(ast, 'createStatic', code);
510
+ const cssCreateThemeSection = await extractCssMethod(ast, 'createTheme', code);
511
511
  const propsMatches = await extractCssProps(ast, code, createdStylesMap);
512
512
  const calls = propsMatches
513
513
  .filter(Boolean)
@@ -522,10 +522,10 @@ async function extractTSFile(filePath) {
522
522
  finalCode += cssKeyframesSection + '\n';
523
523
  if (cssViewTransitionSection)
524
524
  finalCode += cssViewTransitionSection + '\n';
525
- if (cssDefineConstsSection)
526
- finalCode += cssDefineConstsSection + '\n';
527
- if (cssDefineTokensSection)
528
- finalCode += cssDefineTokensSection + '\n';
525
+ if (cssCreateStaticSection)
526
+ finalCode += cssCreateStaticSection + '\n';
527
+ if (cssCreateThemeSection)
528
+ finalCode += cssCreateThemeSection + '\n';
529
529
  if (cssCreateSection)
530
530
  finalCode += cssCreateSection + '\n';
531
531
  finalCode += calls;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/compiler",
3
- "version": "1.0.4",
3
+ "version": "2.0.0",
4
4
  "description": "Plumeria Rust-based compiler",
5
5
  "repository": {
6
6
  "type": "git",