@viewfly/scoped-css 1.0.0-alpha.9 → 1.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.
@@ -0,0 +1,5 @@
1
+ import { JSXNode } from '@viewfly/core';
2
+
3
+ declare function withScopedCSS(cssNamespace: string | string[], render: () => JSXNode): () => JSXNode;
4
+
5
+ export { withScopedCSS };
package/package.json CHANGED
@@ -1,24 +1,27 @@
1
1
  {
2
2
  "name": "@viewfly/scoped-css",
3
- "version": "1.0.0-alpha.9",
3
+ "version": "1.0.0",
4
4
  "description": "A library for supporting scoped style sheets in the Viewfly framework。",
5
5
  "main": "./bundles/index.js",
6
6
  "module": "./bundles/index.esm.js",
7
- "typings": "./bundles/public-api.d.ts",
7
+ "typings": "./bundles/index.d.ts",
8
8
  "scripts": {
9
- "build:lib": "rimraf bundles && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
9
+ "build:lib": "rimraf bundles && npm run build && npm run build-d",
10
+ "build": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
11
+ "build-d": "rollup --config rollup-d.config.ts --configPlugin @rollup/plugin-typescript",
10
12
  "publish:lib": "npm run build:lib && npm publish --access=public"
11
13
  },
12
14
  "license": "MIT",
13
15
  "keywords": [],
14
16
  "dependencies": {
15
- "@viewfly/core": "^1.0.0-alpha.9"
17
+ "@viewfly/core": "^1.0.0"
16
18
  },
17
19
  "devDependencies": {
18
20
  "@rollup/plugin-commonjs": "^25.0.3",
19
21
  "@rollup/plugin-typescript": "^11.1.2",
20
22
  "rimraf": "^3.0.2",
21
23
  "rollup": "^3.26.3",
24
+ "rollup-plugin-dts": "^6.1.1",
22
25
  "tslib": "^2.6.0"
23
26
  },
24
27
  "author": {
@@ -32,5 +35,5 @@
32
35
  "bugs": {
33
36
  "url": "https://github.com/viewfly/viewfly.git/issues"
34
37
  },
35
- "gitHead": "b8e4c0fb9e3b7854bcc26aa995140cb18a55af08"
38
+ "gitHead": "06e8514f95609d0269246f4852ff6f93b76932c2"
36
39
  }
@@ -0,0 +1,14 @@
1
+ import dts from 'rollup-plugin-dts'
2
+
3
+ export default {
4
+ input: 'src/public-api.ts',
5
+ output: [
6
+ {
7
+ file: './bundles/index.d.ts',
8
+ format: 'es'
9
+ }
10
+ ],
11
+ plugins: [
12
+ dts(),
13
+ ]
14
+ }
@@ -1 +0,0 @@
1
- export declare function withScopedCSS(cssNamespace: string | string[], render: () => JSXInternal.ViewNode): () => JSXInternal.ViewNode;
@@ -1 +0,0 @@
1
- export * from './css-modules';