Add design system feature flag and runtime integration

This commit is contained in:
thePR0M3TH3AN committed 2025-10-11 16:11:43 -04:00
1 parent 8288824872
commit 8265f9e2de
42 files changed
+359 -23

No files matched your search

+4
View File
@@ -1,3 +1,5 @@
import { normalizeDesignSystemContext } from "../designSystem.js";
export default class MoreMenuController {
constructor(options = {}) {
const {
@@ -8,6 +10,7 @@ export default class MoreMenuController {
clipboard = typeof navigator !== "undefined" ? navigator.clipboard : null,
isDevMode = false,
callbacks = {},
designSystem = null,
} = options;
this.document = doc;
@@ -16,6 +19,7 @@ export default class MoreMenuController {
this.subscriptions = subscriptions;
this.clipboard = clipboard;
this.isDevMode = Boolean(isDevMode);
this.designSystem = normalizeDesignSystemContext(designSystem);
this.callbacks = {
getCurrentVideo: callbacks.getCurrentVideo || (() => null),