@master/css-runtime 2.0.0-rc.54 → 2.0.0-rc.56
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/core.d.ts +2 -4
- package/dist/debug.d.ts +1 -0
- package/dist/global.min.js +1 -1
- package/dist/index.cjs +55 -83
- package/dist/index.d.ts +2 -2
- package/dist/index.development.cjs +443 -0
- package/dist/index.development.d.ts +1 -0
- package/dist/index.development.mjs +440 -0
- package/dist/index.mjs +54 -82
- package/dist/init.d.ts +10 -0
- package/dist/register-global.d.ts +9 -0
- package/package.json +1 -1
- package/dist/init-css-runtime.d.ts +0 -9
- package/dist/types/global.d.ts +0 -9
package/dist/init.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import CSSRuntime from './core';
|
|
2
|
+
import type { Config } from '@master/css';
|
|
3
|
+
/**
|
|
4
|
+
* Initialize a new CSSRuntime instance and observe the target root
|
|
5
|
+
* @param config master css config
|
|
6
|
+
* @param root target root to observe
|
|
7
|
+
* @param autoObserve auto observe the target root
|
|
8
|
+
* @returns master css instance
|
|
9
|
+
*/
|
|
10
|
+
export default function initCSSRuntime(config?: Config, root?: Document | ShadowRoot, autoObserve?: boolean): CSSRuntime;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Config } from '@master/css';
|
|
2
|
+
import type Core from './core';
|
|
3
|
+
declare global {
|
|
4
|
+
var CSSRuntime: typeof Core;
|
|
5
|
+
var cssRuntime: Core;
|
|
6
|
+
var masterCSSConfig: Config;
|
|
7
|
+
var masterCSSConfigs: Config[];
|
|
8
|
+
}
|
|
9
|
+
export default function registerGlobal(CSSRuntime: typeof Core): void;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@master/css-runtime","type":"module","scripts":{"build":"techor build","dev":"pnpm build --watch","e2e":"playwright test","e2e:watch":"nodemon -e js,mjs,ts,html,css --watch dist --watch e2e --exec playwright test","type-check":"tsc --noEmit","lint":"eslint"},"license":"MIT","description":"Run Master CSS right in the browser","author":"Aoyue Design LLC.","funding":"https://rc.css.master.co/sponsor","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/runtime"},"keywords":["utility","css","lightweight","mastercss","master","runtime","cdn"],"sideEffects":false,"main":"./dist/index.cjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/global.min.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.mjs"}},"files":["dist"],"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/css":"^2.0.0-rc.
|
|
1
|
+
{"name":"@master/css-runtime","type":"module","scripts":{"build":"techor build","dev":"pnpm build --watch","e2e":"playwright test","e2e:watch":"nodemon -e js,mjs,ts,html,css --watch dist --watch e2e --exec playwright test","type-check":"tsc --noEmit","lint":"eslint"},"license":"MIT","description":"Run Master CSS right in the browser","author":"Aoyue Design LLC.","funding":"https://rc.css.master.co/sponsor","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/runtime"},"keywords":["utility","css","lightweight","mastercss","master","runtime","cdn"],"sideEffects":false,"main":"./dist/index.cjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/global.min.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","require":{"development":"./dist/index.development.cjs","default":"./dist/index.cjs"},"import":{"development":"./dist/index.development.mjs","default":"./dist/index.mjs"}}},"files":["dist"],"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/css":"^2.0.0-rc.56","@master/css-devtools-hook":"^2.0.0-rc.56"},"devDependencies":{"@playwright/test":"^1.49.1","shared":"^2.0.0-rc.56"},"version":"2.0.0-rc.56"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { RuntimeCSS } from './core';
|
|
2
|
-
import type { Config } from '@master/css';
|
|
3
|
-
/**
|
|
4
|
-
* Initialize a new RuntimeCSS instance and observe the target root
|
|
5
|
-
* @param config master css config
|
|
6
|
-
* @param targetRoot target root to observe
|
|
7
|
-
* @returns master css instance
|
|
8
|
-
*/
|
|
9
|
-
export default function initCSSRuntime(config?: Config): RuntimeCSS;
|
package/dist/types/global.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Config } from '@master/css';
|
|
2
|
-
import type { RuntimeCSS as _CSSRuntime } from '../core';
|
|
3
|
-
declare global {
|
|
4
|
-
var RuntimeCSS: typeof _CSSRuntime;
|
|
5
|
-
var runtimeCSSs: _CSSRuntime[];
|
|
6
|
-
var runtimeCSS: _CSSRuntime;
|
|
7
|
-
var masterCSSConfig: Config;
|
|
8
|
-
var masterCSSConfigs: Config[];
|
|
9
|
-
}
|