UNPKG

@wordpress/global-styles-ui

Version:
1 lines • 932 B
{"version":3,"file":"context.mjs","names":[],"sources":["../src/context.ts"],"sourcesContent":["import { createContext } from '@wordpress/element';\nimport type { GlobalStylesConfig } from '@wordpress/global-styles-engine';\n\nexport interface GlobalStylesContextType {\n\tuser: GlobalStylesConfig;\n\tbase: GlobalStylesConfig;\n\tmerged: GlobalStylesConfig;\n\tonChange: ( newValue: GlobalStylesConfig ) => void;\n\tfontLibraryEnabled?: boolean;\n}\n\nexport const GlobalStylesContext = createContext< GlobalStylesContextType >( {\n\tuser: { styles: {}, settings: {} },\n\tbase: { styles: {}, settings: {} },\n\tmerged: { styles: {}, settings: {} },\n\tonChange: () => {},\n\tfontLibraryEnabled: false,\n} );\n"],"mappings":";;AAWA,MAAa,sBAAsB,cAA0C;CAC5E,MAAM;EAAE,QAAQ,CAAC;EAAG,UAAU,CAAC;CAAE;CACjC,MAAM;EAAE,QAAQ,CAAC;EAAG,UAAU,CAAC;CAAE;CACjC,QAAQ;EAAE,QAAQ,CAAC;EAAG,UAAU,CAAC;CAAE;CACnC,gBAAgB,CAAC;CACjB,oBAAoB;AACrB,CAAE"}