Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

[UI-library] Expose JSS InsertionPoint in PixelStreamingApplicationStyle. #390

Merged
merged 2 commits into from
Oct 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -526,14 +526,16 @@ export class PixelStreamingApplicationStyle {
customStyles?: Partial<Styles>;
lightModePalette?: ColorPalette;
darkModePalette?: ColorPalette;
jssInsertionPoint?: string | HTMLElement;
}) {
const { customStyles, lightModePalette, darkModePalette } =
const { customStyles, lightModePalette, darkModePalette, jssInsertionPoint } =
options ?? {};
// One time setup with default plugins and settings.
const jssOptions = {
// JSS has many interesting plugins we may wish to turn on
//plugins: [functions(), template(), global(), extend(), nested(), compose(), camelCase(), defaultUnit(options.defaultUnit), expand(), vendorPrefixer(), propsSort()]
plugins: [global(), camelCase()]
plugins: [global(), camelCase()],
insertionPoint: jssInsertionPoint
};

jss.setup(jssOptions);
Expand Down
Loading