Skip to content

Commit 7b0b6fb

Browse files
authored
Releases/0.2.18 (onlook-dev#1653)
* Hide brand panel * Publish version v0.2.18
1 parent 6f695fa commit 7b0b6fb

File tree

6 files changed

+11
-15
lines changed

6 files changed

+11
-15
lines changed

apps/studio/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"productName": "Onlook",
33
"name": "@onlook/studio",
4-
"version": "0.2.17",
4+
"version": "0.2.18",
55
"homepage": "https://onlook.com",
66
"main": "dist-electron/main/index.js",
77
"description": "The first-ever devtool for designers",

apps/studio/src/routes/editor/EditPanel/StylesTab/single/ColorInput/ColorBrandPicker.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const ColorGroup = ({
7272
);
7373
};
7474

75-
const BrandPopoverPicker = memo(
75+
export const BrandPopoverPicker = memo(
7676
({ color, onChange, onChangeEnd, backgroundImage, compoundStyle }: ColorBrandPickerProps) => {
7777
const editorEngine = useEditorEngine();
7878
const [isOpen, toggleOpen] = useState(false);
@@ -223,5 +223,3 @@ const BrandPopoverPicker = memo(
223223
);
224224

225225
BrandPopoverPicker.displayName = 'BrandPopoverPicker';
226-
227-
export default BrandPopoverPicker;

apps/studio/src/routes/editor/EditPanel/StylesTab/single/ColorInput/Popover.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ enum TabValue {
2222
IMAGE = 'image',
2323
}
2424

25-
const PopoverPicker = memo(
25+
export const PopoverPicker = memo(
2626
({ color, onChange, onChangeEnd, backgroundImage, compoundStyle }: PopoverPickerProps) => {
2727
const editorEngine = useEditorEngine();
2828
const [isOpen, toggleOpen] = useState(false);
@@ -102,5 +102,3 @@ const PopoverPicker = memo(
102102
);
103103

104104
PopoverPicker.displayName = 'PopoverPicker';
105-
106-
export default PopoverPicker;

apps/studio/src/routes/editor/EditPanel/StylesTab/single/ColorInput/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { Icons } from '@onlook/ui/icons';
77
import { Color, isColorEmpty } from '@onlook/utility';
88
import { observer } from 'mobx-react-lite';
99
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
10-
import BrandPopoverPicker from './ColorBrandPicker';
11-
// import PopoverPicker from './Popover';
10+
// import { BrandPopoverPicker } from './ColorBrandPicker';
11+
import { PopoverPicker } from './Popover';
1212

1313
const stripUrlWrapper = (url: string) => {
1414
return url.replace(/^url\((['"]?)(.*)\1\)/, '$2');
@@ -200,21 +200,21 @@ const ColorInput = observer(
200200
};
201201
return (
202202
<div className="w-32 p-[6px] gap-2 flex flex-row rounded cursor-pointer bg-background-onlook/75">
203-
<BrandPopoverPicker
203+
{/* <BrandPopoverPicker
204204
color={color}
205205
onChange={sendStyleUpdate}
206206
onChangeEnd={sendStyleUpdate}
207207
backgroundImage={backgroundImage}
208208
compoundStyle={compoundStyle}
209-
/>
209+
/> */}
210210

211-
{/* <PopoverPicker
211+
<PopoverPicker
212212
color={color}
213213
onChange={sendStyleUpdate}
214214
onChangeEnd={sendStyleUpdate}
215215
backgroundImage={backgroundImage}
216216
compoundStyle={compoundStyle}
217-
/> */}
217+
/>
218218
<ColorTextInput
219219
value={value}
220220
isFocused={isFocused}

apps/studio/src/routes/editor/LayersPanel/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export const LayersPanel = observer(() => {
156156

157157
<button
158158
className={cn(
159-
'w-16 h-16 rounded-xl flex flex-col items-center justify-center gap-1.5 p-2',
159+
'w-16 h-16 rounded-xl flex flex-col items-center justify-center gap-1.5 p-2 hidden',
160160
selectedTab === TabValue.BRAND && isLocked
161161
? 'bg-accent text-foreground border-[0.5px] border-foreground/20'
162162
: 'text-muted-foreground hover:text-foreground hover:bg-accent/50',

apps/studio/src/routes/editor/TopBar/Publish/Dropdown/Domain.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const DomainSection = observer(
7979
return;
8080
}
8181
domainManager.publish({
82-
skipBadge: type === DomainType.CUSTOM || plan === UsagePlanType.PRO,
82+
skipBadge: type === DomainType.CUSTOM,
8383
buildFlags: userManager.settings.settings?.editor?.buildFlags,
8484
});
8585
};

0 commit comments

Comments
 (0)