Skip to content
This repository was archived by the owner on Sep 24, 2025. It is now read-only.
Open
Show file tree
Hide file tree
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
@@ -1,4 +1,4 @@
import type { Ub } from 'smart-builder-sdk';
import type { Ub } from '@unbounce/smart-builder-sdk';

declare global {
interface ExtendedWindow {
Expand Down
2 changes: 1 addition & 1 deletion sample-extension-external-iframe/manifest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Manifest } from 'smart-builder-sdk';
import type { Manifest } from '@unbounce/smart-builder-sdk';

const manifest: Manifest = {
appId: '@external/helloAgainWorld',
Expand Down
1,185 changes: 586 additions & 599 deletions sample-extension-external-iframe/package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion sample-extension-external-iframe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"node": ">=14.0.0",
"npm": ">=7"
},
"dependencies": {
"@unbounce/smart-builder-sdk": "^1.0.138"
},
"devDependencies": {
"@babel/core": "^7.14.3",
"@babel/plugin-proposal-class-properties": "^7.10.4",
Expand Down Expand Up @@ -73,7 +76,6 @@
"react-dom": "^17.0.2",
"semver": "^7.5.4",
"simple-update-notifier": "^2.0.0",
"smart-builder-sdk": "https://app-assets-unbounce-com.s3.amazonaws.com/content-smart-builder-apps/smart-builder-sdk/smart-builder-sdk-1.0.0-beta.90.tgz",
"styled-components": "^5.3.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const ScriptMock = ({ ...props }) => (
</script>
);

jest.mock('smart-builder-sdk', () => ({
...jest.requireActual('smart-builder-sdk'),
jest.mock('@unbounce/smart-builder-sdk', () => ({
...jest.requireActual('@unbounce/smart-builder-sdk'),
Script: ScriptMock,
}));

Expand All @@ -33,6 +33,7 @@ const renderCalendlyComponent = () => {
mode={{
type: 'edit',
}}
entityDispatch={jest.fn()}
/>,
);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ComponentProps } from '@unbounce/smart-builder-sdk';
import { Button, getAfterFormSubmitScript, Script } from '@unbounce/smart-builder-sdk';
import React from 'react';
import type { ComponentProps } from 'smart-builder-sdk';
import { Button, getAfterFormSubmitScript, Script } from 'smart-builder-sdk';

import manifest from '../../manifest';
import { EmptyActions, EmptyState, StyledImage, Wrapper } from '../styled';
Expand Down
4 changes: 2 additions & 2 deletions sample-extension-external-iframe/src/calendly/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ControlButton, WithControls } from '@unbounce/smart-builder-sdk';
import React from 'react';
import { ControlButton, WithControls } from 'smart-builder-sdk';
import { component, Schema } from 'ub-shared';

import { CalendlyControlComponent } from '../control';
Expand Down Expand Up @@ -28,5 +28,5 @@ export const Component = component({
trackConversion: Schema.formUrl(),
}),
Component: CalendlyComponentWithControls,
tags: ['swappable', 'conversion', 'newControls', 'isFullWidth', 'isFullHeight'],
tags: ['swappable', 'conversion', 'isFullWidth', 'isFullHeight'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const renderCalendlyControl = (username: string) => {
mode={{
type: 'edit',
}}
entityDispatch={jest.fn()}
/>,
);
};
Expand Down
2 changes: 1 addition & 1 deletion sample-extension-external-iframe/src/control/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button, ComponentProps, Tooltip } from '@unbounce/smart-builder-sdk';
import React, { useState } from 'react';
import { HelpIcon } from 'smart-builder-components';
import { Button, ComponentProps, Tooltip } from 'smart-builder-sdk';

import {
Container,
Expand Down
2 changes: 1 addition & 1 deletion sample-extension-external-iframe/src/control/input.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { InputField } from '@unbounce/smart-builder-sdk';
import React from 'react';
import { InputField } from 'smart-builder-sdk';
import styled from 'styled-components';

import { InputProps } from '../types';
Expand Down
2 changes: 1 addition & 1 deletion sample-extension-external-iframe/src/styled.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors, fontSize, spacing, Toggle } from 'smart-builder-sdk';
import { colors, fontSize, spacing, Toggle } from '@unbounce/smart-builder-sdk';
import styled from 'styled-components';

export const Wrapper = styled.div<{ configured: boolean; customHeight: number }>`
Expand Down
2 changes: 1 addition & 1 deletion sample-extension-external-iframe/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ module.exports = (env) => ({
react: 'react',
'react-dom': 'reactDom',
'styled-components': 'styled',
'smart-builder-sdk': 'smartBuilderSdk',
'@unbounce/smart-builder-sdk': 'smartBuilderSdk',
},
});
2 changes: 1 addition & 1 deletion sample-extension/config/global-dependencies/ub-shared.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Ub } from 'smart-builder-sdk';
import type { Ub } from '@unbounce/smart-builder-sdk';

declare global {
interface ExtendedWindow {
Expand Down
2 changes: 1 addition & 1 deletion sample-extension/manifest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Manifest } from 'smart-builder-sdk';
import type { Manifest } from '@unbounce/smart-builder-sdk';

const manifest: Manifest = {
appId: '@external/helloWorld',
Expand Down
Loading