@shopware-ag/meteor-component-library
Version:
The meteor component library is a Vue component library developed by Shopware. It is based on the [Meteor Design System](https://shopware.design/).
1 lines • 871 B
Source Map (JSON)
{"version":3,"file":"useFutureFlags-2be3e179.mjs","sources":["../src/composables/useFutureFlags.ts"],"sourcesContent":["import { inject, provide } from \"vue\";\n\nconst defaultFutureFlags = {\n removeCardWidth: false,\n removeDefaultMargin: false,\n};\n\nexport type FutureFlags = typeof defaultFutureFlags;\n\nexport const futureFlagsInjectionKey = Symbol(\"mt-future-flags\");\n\nexport function provideFutureFlags(flags: FutureFlags | undefined) {\n provide(futureFlagsInjectionKey, flags ?? defaultFutureFlags);\n}\n\nexport function useFutureFlags(): FutureFlags {\n return inject(futureFlagsInjectionKey, defaultFutureFlags);\n}\n"],"names":[],"mappings":";AAEA,MAAM,qBAAqB;AAAA,EACzB,iBAAiB;AAAA,EACjB,qBAAqB;AACvB;AAIa,MAAA,0BAA0B,OAAO,iBAAiB;AAExD,SAAS,mBAAmB,OAAgC;AACzD,UAAA,yBAAyB,SAAS,kBAAkB;AAC9D;AAEO,SAAS,iBAA8B;AACrC,SAAA,OAAO,yBAAyB,kBAAkB;AAC3D;"}