sass 1.68.0 → 1.69.1
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/package.json +1 -1
- package/sass.dart.js +2941 -1992
- package/sass.default.js +1 -0
- package/sass.node.mjs +5 -0
- package/types/index.d.ts +1 -0
- package/types/value/index.d.ts +10 -0
- package/types/value/mixin.d.ts +14 -0
package/sass.default.js
CHANGED
|
@@ -20,6 +20,7 @@ export const SassColor = _cliPkgExports.SassColor;
|
|
|
20
20
|
export const SassFunction = _cliPkgExports.SassFunction;
|
|
21
21
|
export const SassList = _cliPkgExports.SassList;
|
|
22
22
|
export const SassMap = _cliPkgExports.SassMap;
|
|
23
|
+
export const SassMixin = _cliPkgExports.SassMixin;
|
|
23
24
|
export const SassNumber = _cliPkgExports.SassNumber;
|
|
24
25
|
export const SassString = _cliPkgExports.SassString;
|
|
25
26
|
export const Value = _cliPkgExports.Value;
|
package/sass.node.mjs
CHANGED
|
@@ -14,6 +14,7 @@ export const SassColor = cjs.SassColor;
|
|
|
14
14
|
export const SassFunction = cjs.SassFunction;
|
|
15
15
|
export const SassList = cjs.SassList;
|
|
16
16
|
export const SassMap = cjs.SassMap;
|
|
17
|
+
export const SassMixin = cjs.SassMixin;
|
|
17
18
|
export const SassNumber = cjs.SassNumber;
|
|
18
19
|
export const SassString = cjs.SassString;
|
|
19
20
|
export const Value = cjs.Value;
|
|
@@ -98,6 +99,10 @@ export default {
|
|
|
98
99
|
defaultExportDeprecation();
|
|
99
100
|
return cjs.SassMap;
|
|
100
101
|
},
|
|
102
|
+
get SassMixin() {
|
|
103
|
+
defaultExportDeprecation();
|
|
104
|
+
return cjs.SassMixin;
|
|
105
|
+
},
|
|
101
106
|
get SassNumber() {
|
|
102
107
|
defaultExportDeprecation();
|
|
103
108
|
return cjs.SassNumber;
|
package/types/index.d.ts
CHANGED
package/types/value/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {SassColor} from './color';
|
|
|
6
6
|
import {SassFunction} from './function';
|
|
7
7
|
import {ListSeparator} from './list';
|
|
8
8
|
import {SassMap} from './map';
|
|
9
|
+
import {SassMixin} from './mixin';
|
|
9
10
|
import {SassNumber} from './number';
|
|
10
11
|
import {SassString} from './string';
|
|
11
12
|
|
|
@@ -22,6 +23,7 @@ export {SassColor} from './color';
|
|
|
22
23
|
export {SassFunction} from './function';
|
|
23
24
|
export {SassList, ListSeparator} from './list';
|
|
24
25
|
export {SassMap} from './map';
|
|
26
|
+
export {SassMixin} from './mixin';
|
|
25
27
|
export {SassNumber} from './number';
|
|
26
28
|
export {SassString} from './string';
|
|
27
29
|
|
|
@@ -156,6 +158,14 @@ export abstract class Value implements ValueObject {
|
|
|
156
158
|
*/
|
|
157
159
|
assertMap(name?: string): SassMap;
|
|
158
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Throws if `this` isn't a {@link SassMixin}.
|
|
163
|
+
*
|
|
164
|
+
* @param name - The name of the function argument `this` came from (without
|
|
165
|
+
* the `$`) if it came from an argument. Used for error reporting.
|
|
166
|
+
*/
|
|
167
|
+
assertMixin(name?: string): SassMixin;
|
|
168
|
+
|
|
159
169
|
/**
|
|
160
170
|
* Throws if `this` isn't a {@link SassNumber}.
|
|
161
171
|
*
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {Value} from './index';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Sass's [mixin type](https://sass-lang.com/documentation/values/mixins).
|
|
5
|
+
*
|
|
6
|
+
* @category Custom Function
|
|
7
|
+
*/
|
|
8
|
+
export class SassMixin extends Value {
|
|
9
|
+
/**
|
|
10
|
+
* It is not possible to construct a Sass mixin outside of Sass. Attempting to
|
|
11
|
+
* construct one will throw an exception.
|
|
12
|
+
*/
|
|
13
|
+
constructor();
|
|
14
|
+
}
|