@microsoft/sp-webpart-base
Version:
SharePoint Framework support for building web parts
189 lines • 9.72 kB
JavaScript
import { _SPKillSwitch } from '@microsoft/sp-core-library';
var KillSwitches = /** @class */ (function () {
function KillSwitches() {
}
return KillSwitches;
}());
export default KillSwitches;
export function isIsolatedWebPartTabStopKSActivated() {
return _SPKillSwitch.isActivated('d8618918-ac55-4979-b9d4-be944a4feb95'
/* '10/25/2021', 'adds tabindex=0 to the isolated webpart iframe' */
);
}
// cross-project kill switch
export function isConfigurationToolsKSActivated() {
return _SPKillSwitch.isActivated('a3f45048-0db5-4b7c-9a9a-e3183d216c4d'
/** '03/21/2024', 'Enables configuration tools pivot in content panel. */
);
}
export function isIsolatedAdaptiveCardExtensionWebPropertyPaneWorkAroundKSActivated() {
return _SPKillSwitch.isActivated('b8c50ded-d048-4eb9-bc41-21190d9d3bbb'
/* '01/20/2022', 'Work around to enable property pane for isolated ACE web' */
);
}
export function isChainDisposeCallsAfterOninitKSActivated() {
return _SPKillSwitch.isActivated('ca984138-b518-4cf1-b201-2efe9322bb5e'
/* '02/01/2022', 'Ensures that calls to dispose always wait for any activing onInit calls' */
);
}
export function isIsolatedAdaptiveCardExtensionIframedPropertyPaneKSActivated() {
return _SPKillSwitch.isActivated('ab6a720f-9915-4635-9b30-71b5d83e0647'
/* '01/21/2022', 'Creates a functional iframed property pane for isolated ACEs' */
);
}
export function isDynamicIframedPropertyPaneHandlingKSActivated() {
return _SPKillSwitch.isActivated('1a2da4d0-9678-4a79-95a4-f0b9a7732dc2'
/* '02/02/2022', 'Dynamically creates and assigns an iframed property pane to selected IBaseFramedWebParts' */
);
}
export function isFixMissingContextKSActivated() {
return _SPKillSwitch.isActivated('e1e44790-a263-4f43-8b40-5b5e9b170300'
/* '02/22/2022', 'Fix missing context when passing down to propertypane' */
);
}
export function isLogWebPartLoadErrorKSActivated() {
return _SPKillSwitch.isActivated('c041bc0e-fcb5-4a3e-a4bc-d65a00a39a86'
/* '02/24/2022', 'Check if exception thrown during loadWebPart is an error and ' */
);
}
export function isSafariIsolationKSActivated() {
return _SPKillSwitch.isActivated('61a9578e-c6d2-4605-970f-222a8b29196c' /* '03/13/22', 'Skip rendering isolated ACEs in Safari' */);
}
export function isUberIsolatedACEFlightKSActivated() {
return _SPKillSwitch.isActivated('07684c68-2e8e-4a25-b7e0-330781a92661'
/* '03/16/22', 'If the KS is not pulled check the uber IsolatedAdaptiveCardExtensionWeb flight otherwise check APEXIsolatedACEWEB flights' */
);
}
export function isPreventLateIframeRedirectKSActivated() {
return _SPKillSwitch.isActivated('56151a3e-a100-403c-9e91-cb5d1677ed66'
/* '06/13/2022', 'instantiate IframeLoadRedirector earlier and support pre-emptively preventing redirects' */
);
}
export function isIsolatedACEWPRenderAsyncKSActivated() {
return _SPKillSwitch.isActivated('e8edc935-7cd4-463b-81f5-aa1cce74d7d0'
/* '06/27/2022', 'Captures if async web part has finished rendering using LKG or updated content.' */
);
}
export function isPropertyPaneUpdateASHAVetoKSActivated() {
return _SPKillSwitch.isActivated('21f00b7b-3ed6-4c3a-bd49-8639460de07e'
/* '08/02/2022', 'Add monitor to capture property pane update scenario for ASHA' */
);
}
export function isVivaHomeIsolatedAceCheckKSActive() {
return _SPKillSwitch.isActivated('f993c5d6-5637-47bc-802d-6da6dda11a27' /* '08/24/22', 'Fix the isolated ACE flight check for Viva Home' */);
}
export function isAlwaysShowIsolatedACEOnTeamsKSActive() {
return _SPKillSwitch.isActivated('6c457592-8c32-472e-b340-349c014d6bc2' /* '10/20/2022', 'Always show isolated cards on Teams' */);
}
export function isExemptWebPartWithDynamicDataFromLazyLoadKSActivated() {
return _SPKillSwitch.isActivated('bbd78e03-ff18-40ed-9a94-973fc659366c' /* '12/01/2022', 'Update getWebPartsExemptedFromViewPortLoading to check for containsDynamicDataSource' */);
}
export function isDashboardWebPartVerticalLayoutCardWidthFix() {
return _SPKillSwitch.isActivated('43ce53d4-53da-48c4-acbd-20ff31eff5ee' /* '1/09/2023', 'Fix medium card width for dashboard web part in vertical layout.' */);
}
export function isAddMoreRenderErrorInfoKSActivated() {
return _SPKillSwitch.isActivated('290c0d46-6ee0-4d0b-aee5-ef3f01e4020e' /* '01/11/2023', 'Add more RenderError Information' */);
}
export function isDashboardWebPartMediumCardBreakPointKSActivated() {
return _SPKillSwitch.isActivated('8b372850-6897-4ef2-aecd-cd615019e544' /* '03/06/2023', 'Reduce size of medium cards if we cannot fit at least two min width medium cards in a row for dashboard web part.' */);
}
export function isAccessibleRootKSActivated() {
return _SPKillSwitch.isActivated('33558902-7587-4229-a570-633976fa332b' /* '03/28/2023', 'Change the DOM hierarchy of where the accessible web part label is rendered' */);
}
export function isWebPartManifestListCacheRefreshKSActivated() {
return _SPKillSwitch.isActivated('98bb76c9-49c4-4736-80b9-88ff41d65cac' /* '04/24/2023', 'Refreshes the webpart cache list after loading the new manifest list' */);
}
export function isAsyncCompleteKSActivated() {
return _SPKillSwitch.isActivated('6e0a6d0e-ec0c-4667-85ce-198b4bbe78af' /* '05/17/2023', 'Allow render complete async callback to work if called quickly' */);
}
export function isUsePromiseAllForFetchWebPartsKSActivated() {
return _SPKillSwitch.isActivated('69933c68-aef0-4f8f-8016-a5974d22b2c6'
/* '12/08/2023', 'Use Promise.all for fetchWebParts' */
);
}
export function isOverrideDataPersistedFlagKSActive() {
return _SPKillSwitch.isActivated('bf6ec07d-4440-4ee6-83c6-17b560599c30'
/* '2/21/2024', 'Allow consumers of MinimalWebPartContainer to override flag for whether data is from persisted store' */
);
}
export function isShowErrorAceForBlockedAceKSActivated() {
return _SPKillSwitch.isActivated('2087be6f-d433-41f5-b91a-5416f455d74d'
/* '01/19/2024', 'Show Error ACE for blocked ACE' */
);
}
export function isAudienceTargetingForMultiColumnPropertyPaneKSActive() {
return _SPKillSwitch.isActivated('4f5fdd22-e54b-443e-b79a-6134a5e59e8d'
/* '03/19/2024', 'Add configuration option for audience targeting in multi column property pane' */
);
}
export function updateMissingWebPartLifeCycleVetoesKSActivated() {
return _SPKillSwitch.isActivated('4a64c8cf-892b-4f83-8fe4-3a2245297f76'
/* '03/21/2024', 'atagle - update missing web part lifecycle vetoes' */
);
}
export function isFixUnwantedAudienceTargetingForExpandedPropertyPaneKSActivated() {
return _SPKillSwitch.isActivated('6d1353bf-844b-4683-afdd-07d4dae51ea2'
/* '05/17/2024', 'Ensure only add audience targeting field if explicitly configured for expanded property pane' */
);
}
export function isRefactorLoadWebPartKSActivated() {
return _SPKillSwitch.isActivated('e11d11a3-f2a0-4cc3-8c36-60f157abdb47'
/* '08/01/2024', 'Refactor load webpart to separate render' */
);
}
export function isHandleDisposeRaceConditionKSActive() {
return _SPKillSwitch.isActivated('a1b3f56e-4ebf-4ae2-bb75-146286e336e4'
/* '10/21/2024', 'liaye - Handle race condition that caused by disposed web parts' */
);
}
export function isFixUnstableThumbnailKSActivated() {
return _SPKillSwitch.isActivated('e34f2e15-eaed-404b-93ee-bed24f7e5eec' /* '10/17/2024', 'tialu: fix unstable thumbnail' */);
}
export function isTranspileAlreadyLoadedWPKSActivated() {
return _SPKillSwitch.isActivated('b56be5bc-975c-4c10-b387-808c5404f3b3'
/* '11/04/2024', 'poorvitusam - Use loaded webpart for transpile' */
);
}
export function isClickToAddFromContentPaneKSActivated() {
return _SPKillSwitch.isActivated('757e6220-8354-49d2-979a-cd70080da6d9' /* '10/29/2024', 'jayharrs click to add from content panel to existing web parts' */);
}
// cross-project kill switch
export function isFetchEditModeWebPartsInParallelKSActivated() {
return _SPKillSwitch.isActivated('aed8b9b5-945b-40f3-92db-90d949177b79'
/* '04/09/2025', 'jayharris: fetches edit mode web part resources in parallel when loading canvas edit modules' */
);
}
// cross-project ks
export function isWebPartHideOnMobileKSActivated() {
return _SPKillSwitch.isActivated('388b763f-ab2b-4370-8a72-6bf6c3fd27e7'
/* '06/17/2025', 'joyoshioka - Add ability to toggle controls' visibility in mobile and transpile.' */
);
}
// cross-project ks
export function isWebPartHideOnMobileScreenReaderFixKSActivated() {
return _SPKillSwitch.isActivated('767d4695-937f-4ee4-9b2b-6581bac78fcc'
/* '07/09/2025', 'joyoshioka - Fix screen reader for hide on mobile property pane toggle.' */
);
}
// cross-project ks
export function isDisableHideOnMobileInAmplifyKSActivated() {
return _SPKillSwitch.isActivated('b91e1b33-c72e-47de-b403-e0a38a2e2908'
/* '07/22/2025', 'joyoshioka - Disable hide on mobile in Amplify.' */
);
}
export function isAddLoggingForSwapManifestsKSActivated() {
return _SPKillSwitch.isActivated('a03bbc6d-2c7c-4a64-bc5e-13e270dba8b2'
/* '08/08/2025', 'laurabeall - Add qos monitor for swapWebPartManifests' */
);
}
export function isRefactorReInstateServerProcessedDataKSActive() {
return _SPKillSwitch.isActivated('65bd9864-ee8b-4af8-94ba-bb6240785747'
/* '08/19/2025', 'liaye - Refactor re-instate server processed data' */
);
}
export function isFixAceWebPartTagMismatchKSActivated() {
return _SPKillSwitch.isActivated('3c868adc-489d-4a51-8881-19166ed91492'
/* '9/23/2025', 'Fix ACE webpart tag override to prevent A11y bugs by preserving original tag' */
);
}
//# sourceMappingURL=KillSwitches.js.map