ember-scoped-css 3.5.2 → 3.5.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/package.json +28 -7
- package/src/build/public-exports/babel.d.cts +29 -0
- package/src/build/public-exports/babel.d.ts +29 -0
- package/src/build/public-exports/options.d.cts +18 -0
- package/src/build/public-exports/rollup.d.cts +10 -0
- package/src/build/public-exports/rollup.d.ts +10 -0
- package/src/build/public-exports/vite.d.cts +10 -0
- package/src/build/public-exports/vite.d.ts +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-scoped-css",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -29,16 +29,34 @@
|
|
|
29
29
|
},
|
|
30
30
|
"./__private_do_not_use_are_you_serious__/style-tag": "./src/build/style-tag.js",
|
|
31
31
|
"./babel": {
|
|
32
|
-
"import":
|
|
33
|
-
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./src/build/public-exports/babel.d.ts",
|
|
34
|
+
"default": "./src/build/public-exports/babel.js"
|
|
35
|
+
},
|
|
36
|
+
"require": {
|
|
37
|
+
"types": "./src/build/public-exports/babel.d.cts",
|
|
38
|
+
"default": "./dist/cjs/babel.cjs"
|
|
39
|
+
}
|
|
34
40
|
},
|
|
35
41
|
"./rollup": {
|
|
36
|
-
"import":
|
|
37
|
-
|
|
42
|
+
"import": {
|
|
43
|
+
"types": "./src/build/public-exports/rollup.d.ts",
|
|
44
|
+
"default": "./src/build/public-exports/rollup.js"
|
|
45
|
+
},
|
|
46
|
+
"require": {
|
|
47
|
+
"types": "./src/build/public-exports/rollup.d.cts",
|
|
48
|
+
"default": "./dist/cjs/rollup.cjs"
|
|
49
|
+
}
|
|
38
50
|
},
|
|
39
51
|
"./vite": {
|
|
40
|
-
"import":
|
|
41
|
-
|
|
52
|
+
"import": {
|
|
53
|
+
"types": "./src/build/public-exports/vite.d.ts",
|
|
54
|
+
"default": "./src/build/public-exports/vite.js"
|
|
55
|
+
},
|
|
56
|
+
"require": {
|
|
57
|
+
"types": "./src/build/public-exports/vite.d.cts",
|
|
58
|
+
"default": "./dist/cjs/vite.cjs"
|
|
59
|
+
}
|
|
42
60
|
},
|
|
43
61
|
"./template-registry": {
|
|
44
62
|
"types": "./template-registry.d.ts",
|
|
@@ -91,8 +109,10 @@
|
|
|
91
109
|
"eslint": "^9.36.0",
|
|
92
110
|
"jscodeshift": "^17.3.0",
|
|
93
111
|
"prettier": "^3.6.2",
|
|
112
|
+
"rollup": "^4.34.9",
|
|
94
113
|
"tsdown": "^0.15.12",
|
|
95
114
|
"typescript": "^5.2.2",
|
|
115
|
+
"vite": "^6.2.0",
|
|
96
116
|
"vitest": "^4.1.0",
|
|
97
117
|
"webpack": "^5.98.0"
|
|
98
118
|
},
|
|
@@ -133,6 +153,7 @@
|
|
|
133
153
|
"lint:js:fix": "eslint . --fix",
|
|
134
154
|
"lint:prettier:fix": "prettier . -w",
|
|
135
155
|
"lint:prettier": "prettier . -c",
|
|
156
|
+
"lint:types": "tsc -p type-tests/tsconfig.bundler.json && tsc -p type-tests/tsconfig.nodenext.json",
|
|
136
157
|
"start": "tsdown --watch",
|
|
137
158
|
"test": "vitest"
|
|
138
159
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
AdditionalRootsOptions,
|
|
3
|
+
ScopedCSSOptions,
|
|
4
|
+
TemplateOptions,
|
|
5
|
+
} from './options.cjs';
|
|
6
|
+
|
|
7
|
+
export type { AdditionalRootsOptions, ScopedCSSOptions, TemplateOptions };
|
|
8
|
+
|
|
9
|
+
export interface TemplateTransform {
|
|
10
|
+
(env: any): { name: string; visitor: object };
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ScopedCSSBabelPlugin {
|
|
14
|
+
(
|
|
15
|
+
api: unknown,
|
|
16
|
+
options?: AdditionalRootsOptions,
|
|
17
|
+
workingDirectory?: string,
|
|
18
|
+
): { visitor: object };
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export declare const scopedCSS: ((
|
|
22
|
+
options?: AdditionalRootsOptions,
|
|
23
|
+
) => ScopedCSSBabelPlugin) & {
|
|
24
|
+
/**
|
|
25
|
+
* The template transform, for the `transforms` option of
|
|
26
|
+
* `babel-plugin-ember-template-compilation`.
|
|
27
|
+
*/
|
|
28
|
+
template: (options: TemplateOptions) => TemplateTransform;
|
|
29
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
AdditionalRootsOptions,
|
|
3
|
+
ScopedCSSOptions,
|
|
4
|
+
TemplateOptions,
|
|
5
|
+
} from './options.cjs';
|
|
6
|
+
|
|
7
|
+
export type { AdditionalRootsOptions, ScopedCSSOptions, TemplateOptions };
|
|
8
|
+
|
|
9
|
+
export interface TemplateTransform {
|
|
10
|
+
(env: any): { name: string; visitor: object };
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ScopedCSSBabelPlugin {
|
|
14
|
+
(
|
|
15
|
+
api: unknown,
|
|
16
|
+
options?: AdditionalRootsOptions,
|
|
17
|
+
workingDirectory?: string,
|
|
18
|
+
): { visitor: object };
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export declare const scopedCSS: ((
|
|
22
|
+
options?: AdditionalRootsOptions,
|
|
23
|
+
) => ScopedCSSBabelPlugin) & {
|
|
24
|
+
/**
|
|
25
|
+
* The template transform, for the `transforms` option of
|
|
26
|
+
* `babel-plugin-ember-template-compilation`.
|
|
27
|
+
*/
|
|
28
|
+
template: (options: TemplateOptions) => TemplateTransform;
|
|
29
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ScopedCSSOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Wrap your CSS in a `@layer` with this given name.
|
|
4
|
+
*/
|
|
5
|
+
layerName?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface AdditionalRootsOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Process additional directories, for example pods or directories from other
|
|
11
|
+
* packages in a monorepo.
|
|
12
|
+
*/
|
|
13
|
+
additionalRoots?: string[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface TemplateOptions
|
|
17
|
+
extends ScopedCSSOptions,
|
|
18
|
+
AdditionalRootsOptions {}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Plugin } from 'rollup';
|
|
2
|
+
|
|
3
|
+
import type { ScopedCSSOptions } from './options.cjs';
|
|
4
|
+
|
|
5
|
+
export type { ScopedCSSOptions };
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The Rollup plugins that scope co-located CSS files and `<style scoped>` elements.
|
|
9
|
+
*/
|
|
10
|
+
export declare function scopedCSS(options?: ScopedCSSOptions): Plugin[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Plugin } from 'rollup';
|
|
2
|
+
|
|
3
|
+
import type { ScopedCSSOptions } from './options.cjs';
|
|
4
|
+
|
|
5
|
+
export type { ScopedCSSOptions };
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The Rollup plugins that scope co-located CSS files and `<style scoped>` elements.
|
|
9
|
+
*/
|
|
10
|
+
export declare function scopedCSS(options?: ScopedCSSOptions): Plugin[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Plugin } from 'vite' with { 'resolution-mode': 'import' };
|
|
2
|
+
|
|
3
|
+
import type { ScopedCSSOptions } from './options.cjs';
|
|
4
|
+
|
|
5
|
+
export type { ScopedCSSOptions };
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The Vite plugins that scope co-located CSS files and `<style scoped>` elements.
|
|
9
|
+
*/
|
|
10
|
+
export declare function scopedCSS(options?: ScopedCSSOptions): Plugin[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Plugin } from 'vite';
|
|
2
|
+
|
|
3
|
+
import type { ScopedCSSOptions } from './options.cjs';
|
|
4
|
+
|
|
5
|
+
export type { ScopedCSSOptions };
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The Vite plugins that scope co-located CSS files and `<style scoped>` elements.
|
|
9
|
+
*/
|
|
10
|
+
export declare function scopedCSS(options?: ScopedCSSOptions): Plugin[];
|