@knotx/utils 0.4.3 → 0.4.5

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.cjs CHANGED
@@ -3,9 +3,6 @@
3
3
  function bem(block, element, modifier, prefix = "knotx-") {
4
4
  return `${prefix}${block.toLowerCase()}${element ? `__${element.toLowerCase()}` : ""}${modifier ? `--${modifier.toLowerCase()}` : ""}`;
5
5
  }
6
- function bemSelector(block, element, modifier, prefix = "knotx-") {
7
- return `.${bem(block, element, modifier, prefix)}`;
8
- }
9
6
  function addBemModifier(className, modifier) {
10
7
  return bem(className, void 0, modifier, "");
11
8
  }
@@ -58,7 +55,6 @@ function getSymbol(name) {
58
55
 
59
56
  exports.addBemModifier = addBemModifier;
60
57
  exports.bem = bem;
61
- exports.bemSelector = bemSelector;
62
58
  exports.buildDiffOperation = buildDiffOperation;
63
59
  exports.emptyOperation = emptyOperation;
64
60
  exports.flattenOperations = flattenOperations;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { IData, DataBatchOperation, DataOperation } from '@knotx/data';
2
2
 
3
3
  declare function bem(block: string, element?: string, modifier?: string, prefix?: string): string;
4
- declare function bemSelector(block: string, element?: string, modifier?: string, prefix?: string): string;
5
4
  declare function addBemModifier(className: string, modifier: string): string;
6
5
 
7
6
  /**
@@ -29,4 +28,4 @@ declare function getSymbol<TName extends string>(name: TName): symbol & {
29
28
  __knotx__?: TName;
30
29
  };
31
30
 
32
- export { type DataEmptyBatchOperation, type DataInitBatchOperation, addBemModifier, bem, bemSelector, buildDiffOperation, emptyOperation, flattenOperations, generateId, getSymbol, isDraftOperation, isEmptyBatchOperation, isInitOperation };
31
+ export { type DataEmptyBatchOperation, type DataInitBatchOperation, addBemModifier, bem, buildDiffOperation, emptyOperation, flattenOperations, generateId, getSymbol, isDraftOperation, isEmptyBatchOperation, isInitOperation };
package/dist/index.d.mts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { IData, DataBatchOperation, DataOperation } from '@knotx/data';
2
2
 
3
3
  declare function bem(block: string, element?: string, modifier?: string, prefix?: string): string;
4
- declare function bemSelector(block: string, element?: string, modifier?: string, prefix?: string): string;
5
4
  declare function addBemModifier(className: string, modifier: string): string;
6
5
 
7
6
  /**
@@ -29,4 +28,4 @@ declare function getSymbol<TName extends string>(name: TName): symbol & {
29
28
  __knotx__?: TName;
30
29
  };
31
30
 
32
- export { type DataEmptyBatchOperation, type DataInitBatchOperation, addBemModifier, bem, bemSelector, buildDiffOperation, emptyOperation, flattenOperations, generateId, getSymbol, isDraftOperation, isEmptyBatchOperation, isInitOperation };
31
+ export { type DataEmptyBatchOperation, type DataInitBatchOperation, addBemModifier, bem, buildDiffOperation, emptyOperation, flattenOperations, generateId, getSymbol, isDraftOperation, isEmptyBatchOperation, isInitOperation };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { IData, DataBatchOperation, DataOperation } from '@knotx/data';
2
2
 
3
3
  declare function bem(block: string, element?: string, modifier?: string, prefix?: string): string;
4
- declare function bemSelector(block: string, element?: string, modifier?: string, prefix?: string): string;
5
4
  declare function addBemModifier(className: string, modifier: string): string;
6
5
 
7
6
  /**
@@ -29,4 +28,4 @@ declare function getSymbol<TName extends string>(name: TName): symbol & {
29
28
  __knotx__?: TName;
30
29
  };
31
30
 
32
- export { type DataEmptyBatchOperation, type DataInitBatchOperation, addBemModifier, bem, bemSelector, buildDiffOperation, emptyOperation, flattenOperations, generateId, getSymbol, isDraftOperation, isEmptyBatchOperation, isInitOperation };
31
+ export { type DataEmptyBatchOperation, type DataInitBatchOperation, addBemModifier, bem, buildDiffOperation, emptyOperation, flattenOperations, generateId, getSymbol, isDraftOperation, isEmptyBatchOperation, isInitOperation };
package/dist/index.js CHANGED
@@ -1,9 +1,6 @@
1
1
  function bem(block, element, modifier, prefix = "knotx-") {
2
2
  return `${prefix}${block.toLowerCase()}${element ? `__${element.toLowerCase()}` : ""}${modifier ? `--${modifier.toLowerCase()}` : ""}`;
3
3
  }
4
- function bemSelector(block, element, modifier, prefix = "knotx-") {
5
- return `.${bem(block, element, modifier, prefix)}`;
6
- }
7
4
  function addBemModifier(className, modifier) {
8
5
  return bem(className, void 0, modifier, "");
9
6
  }
@@ -54,4 +51,4 @@ function getSymbol(name) {
54
51
  return Symbol.for(`knotx:${name}`);
55
52
  }
56
53
 
57
- export { addBemModifier, bem, bemSelector, buildDiffOperation, emptyOperation, flattenOperations, generateId, getSymbol, isDraftOperation, isEmptyBatchOperation, isInitOperation };
54
+ export { addBemModifier, bem, buildDiffOperation, emptyOperation, flattenOperations, generateId, getSymbol, isDraftOperation, isEmptyBatchOperation, isInitOperation };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotx/utils",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "Utils for Knotx",
5
5
  "author": "boenfu",
6
6
  "license": "MIT",
@@ -28,12 +28,12 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@knotx/data": "0.4.3"
31
+ "@knotx/data": "0.4.5"
32
32
  },
33
33
  "devDependencies": {
34
- "@knotx/build-config": "0.4.3",
35
- "@knotx/eslint-config": "0.4.3",
36
- "@knotx/typescript-config": "0.4.3"
34
+ "@knotx/build-config": "0.4.5",
35
+ "@knotx/eslint-config": "0.4.5",
36
+ "@knotx/typescript-config": "0.4.5"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "unbuild",