## Description - This PR fixes few of the bugs on airgapped instances. Fixes #22361 Fixes #22375 Fixes #22392 Fixes #22394 Fixes #22395 Fixes #22441 Fixes #22437 Media > A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video ## Type of change - Bug fixes (non-breaking change which fixes an issue) ## How Has This Been Tested? - Manual ### Test Plan > Add Testsmith test cases links that relate to this PR ### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) ## Checklist: ### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag ### QA activity: - [ ] Test plan has been approved by relevant developers - [ ] Test plan has been peer reviewed by QA - [ ] Cypress test cases have been added and approved by either SDET or manual QA - [ ] Organized project review call with relevant stakeholders after Round 1/2 of QA - [ ] Added Test Plan Approved label after reveiwing all Cypress test
55 lines
1.4 KiB
TypeScript
55 lines
1.4 KiB
TypeScript
import { ResponsiveBehavior } from "utils/autoLayout/constants";
|
|
import IconSVG from "./icon.svg";
|
|
import Widget from "./widget";
|
|
import { isAirgapped } from "@appsmith/utils/airgapHelpers";
|
|
|
|
const isAirgappedInstance = isAirgapped();
|
|
|
|
const DEFAULT_IFRAME_SOURCE = !isAirgappedInstance
|
|
? "https://www.example.com"
|
|
: "";
|
|
|
|
export const CONFIG = {
|
|
type: Widget.getWidgetType(),
|
|
name: "Iframe",
|
|
iconSVG: IconSVG,
|
|
needsMeta: true,
|
|
searchTags: ["embed"],
|
|
defaults: {
|
|
source: DEFAULT_IFRAME_SOURCE,
|
|
borderOpacity: 100,
|
|
borderWidth: 1,
|
|
rows: 32,
|
|
columns: 24,
|
|
widgetName: "Iframe",
|
|
version: 1,
|
|
animateLoading: true,
|
|
responsiveBehavior: ResponsiveBehavior.Fill,
|
|
},
|
|
properties: {
|
|
derived: Widget.getDerivedPropertiesMap(),
|
|
default: Widget.getDefaultPropertiesMap(),
|
|
meta: Widget.getMetaPropertiesMap(),
|
|
config: Widget.getPropertyPaneConfig(),
|
|
contentConfig: Widget.getPropertyPaneContentConfig(),
|
|
styleConfig: Widget.getPropertyPaneStyleConfig(),
|
|
stylesheetConfig: Widget.getStylesheetConfig(),
|
|
autocompleteDefinitions: Widget.getAutocompleteDefinitions(),
|
|
},
|
|
autoLayout: {
|
|
widgetSize: [
|
|
{
|
|
viewportMinWidth: 0,
|
|
configuration: () => {
|
|
return {
|
|
minWidth: "280px",
|
|
minHeight: "300px",
|
|
};
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default Widget;
|