Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve: Rename
CSSRuntime
to RuntimeCSS
- Loading branch information
Showing
10 changed files
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { CSSRuntime, CSSRuntime as default } from './core' | ||
export { RuntimeCSS, RuntimeCSS as default } from './core' | ||
export { default as initCSSRuntime } from './init-css-runtime' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { CSSRuntime } from './core' | ||
import { RuntimeCSS } from './core' | ||
import type { Config } from '@master/css' | ||
|
||
/** | ||
* Initialize a new CSSRuntime instance and observe the target root | ||
* Initialize a new RuntimeCSS instance and observe the target root | ||
* @param config master css config | ||
* @param targetRoot target root to observe | ||
* @returns master css instance | ||
*/ | ||
export default function initCSSRuntime(config?: Config): CSSRuntime { | ||
return new CSSRuntime(document, config).observe() | ||
export default function initCSSRuntime(config?: Config): RuntimeCSS { | ||
return new RuntimeCSS(document, config).observe() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import type { CSSRuntime } from '@master/css-runtime' | ||
import type { RuntimeCSS } from '@master/css-runtime' | ||
import { getContext } from 'svelte' | ||
import type { Writable } from 'svelte/store' | ||
|
||
export const cssRuntimeSymbol = Symbol() | ||
|
||
export function getCSSRuntime() { | ||
return getContext<Writable<CSSRuntime> | undefined>(cssRuntimeSymbol) | ||
return getContext<Writable<RuntimeCSS> | undefined>(cssRuntimeSymbol) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters