@node-projects/web-component-designer-stylesheetservice-css-parser 0.1.1 → 0.1.3

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/README.md CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  ## NPM Package
4
4
 
5
- https://www.npmjs.com/package/@node-projects/web-component-designer-stylesheetservice-css-tools
5
+ https://www.npmjs.com/package/@node-projects/web-component-designer-stylesheetservice-css-parser
6
6
 
7
- npm i @node-projects/web-component-designer-stylesheetservice-css-tools
7
+ npm i @node-projects/web-component-designer-stylesheetservice-css-parser
8
8
 
9
9
  ## Description
10
10
 
11
- This is a Stylesheetparser using @adobe/css-tools
11
+ This is a Stylesheetparser using @node-projects/css-parser
12
12
 
13
13
  ## Usage
14
14
 
15
- import { CssToolsStylesheetService } from '@node-projects/web-component-designer-stylesheetservice-css-tools';
16
- serviceContainer.register("stylesheetService", designerCanvas => new CssToolsStylesheetService(designerCanvas));
15
+ import { CssParserStylesheetService } from '@node-projects/web-component-designer-stylesheetservice-css-parser';
16
+ serviceContainer.register("stylesheetService", designerCanvas => new CssParserStylesheetService(designerCanvas));
@@ -11,7 +11,7 @@ interface IRuleWithAST extends IStyleRule {
11
11
  interface IDeclarationWithAST extends IStyleDeclaration {
12
12
  ast: CssDeclarationAST;
13
13
  }
14
- export declare class CssToolsStylesheetService extends AbstractStylesheetService {
14
+ export declare class CssParserStylesheetService extends AbstractStylesheetService {
15
15
  constructor(designerCanvas: IDesignerCanvas);
16
16
  internalParse(style: string): Promise<CssStylesheetAST>;
17
17
  getAppliedRules(designItem: IDesignItem): IRuleWithAST[];
@@ -1,6 +1,6 @@
1
1
  import { parse, stringify } from "@node-projects/css-parser";
2
2
  import { AbstractStylesheetService } from "@node-projects/web-component-designer";
3
- export class CssToolsStylesheetService extends AbstractStylesheetService {
3
+ export class CssParserStylesheetService extends AbstractStylesheetService {
4
4
  constructor(designerCanvas) {
5
5
  super(designerCanvas);
6
6
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "description": "web-component-designer addon: Stylesheet Parser Service using @node-projects/css-parser",
3
3
  "name": "@node-projects/web-component-designer-stylesheetservice-css-parser",
4
- "version": "0.1.1",
4
+ "version": "0.1.3",
5
5
  "type": "module",
6
- "main": "./dist/service/stylesheetservice/CssToolsStylesheetService.js",
6
+ "main": "./dist/service/stylesheetservice/CssParserStylesheetService.js",
7
7
  "author": "jochen.kuehner@gmx.de",
8
8
  "license": "MIT",
9
9
  "scripts": {