From 635d59de5ebeec0888af4aa5a0e0099caad9e6b0 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Wed, 10 Aug 2022 17:43:11 -0600
Subject: [PATCH 001/128] Fix palette picker z index
---
.changeset/flat-dolls-vanish.md | 5 +++++
.../src/components/primitives/ColorPicker/PalettePicker.tsx | 1 +
2 files changed, 6 insertions(+)
create mode 100644 .changeset/flat-dolls-vanish.md
diff --git a/.changeset/flat-dolls-vanish.md b/.changeset/flat-dolls-vanish.md
new file mode 100644
index 00000000..faee8f18
--- /dev/null
+++ b/.changeset/flat-dolls-vanish.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Fix palette picker z index
diff --git a/packages/gui/src/components/primitives/ColorPicker/PalettePicker.tsx b/packages/gui/src/components/primitives/ColorPicker/PalettePicker.tsx
index 7ce1d389..2873e40e 100644
--- a/packages/gui/src/components/primitives/ColorPicker/PalettePicker.tsx
+++ b/packages/gui/src/components/primitives/ColorPicker/PalettePicker.tsx
@@ -55,6 +55,7 @@ export default function PalettePopover({
border: '1px solid',
borderColor: 'border',
borderRadius: '0.5rem',
+ zIndex: 99999,
}}
>
From b26c09599249ae5b1b3e2fd3a6862f5cc42f1e56 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Wed, 10 Aug 2022 23:44:07 +0000
Subject: [PATCH 002/128] Version Packages
---
.changeset/flat-dolls-vanish.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/flat-dolls-vanish.md
diff --git a/.changeset/flat-dolls-vanish.md b/.changeset/flat-dolls-vanish.md
deleted file mode 100644
index faee8f18..00000000
--- a/.changeset/flat-dolls-vanish.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Fix palette picker z index
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 59cf2474..a1d599b4 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.205
+
+### Patch Changes
+
+- 635d59de: Fix palette picker z index
+
## 0.0.204
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 9d93bf6d..7ae54c1d 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.204",
+ "version": "0.0.205",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From a2746b54a90a2b6a091f0b96a9067968c5278622 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Thu, 11 Aug 2022 13:44:22 -0600
Subject: [PATCH 003/128] Spike out basic top-level slot support for attributes
---
apps/docs/data/initial-html-editor-data.ts | 22 ++++++++++++++++---
.../src/components/html/Component/Editor.tsx | 13 +++++++----
packages/gui/src/components/html/types.ts | 6 ++---
.../gui/src/lib/codegen/to-react-props.ts | 5 +++--
packages/gui/src/lib/codegen/util.ts | 13 ++++++++++-
5 files changed, 46 insertions(+), 13 deletions(-)
diff --git a/apps/docs/data/initial-html-editor-data.ts b/apps/docs/data/initial-html-editor-data.ts
index e26a0b81..0730fa52 100644
--- a/apps/docs/data/initial-html-editor-data.ts
+++ b/apps/docs/data/initial-html-editor-data.ts
@@ -1494,7 +1494,13 @@ export const initialComponents: any = [
tagName: 'Heading',
value: {
tagName: 'h1',
- attributes: {},
+ attributes: {
+ title: {
+ type: 'slot',
+ name: 'title',
+ value: 'THE TITLE FOR 1!!!!',
+ },
+ },
style: {
color: '#4e4fec',
fontSize: {
@@ -1539,7 +1545,13 @@ export const initialComponents: any = [
tagName: 'Heading2',
value: {
tagName: 'h1',
- attributes: {},
+ attributes: {
+ title: {
+ type: 'slot',
+ name: 'title',
+ value: 'THE TITLE FOR 2!!!',
+ },
+ },
style: {
color: 'tomato',
fontSize: {
@@ -1586,7 +1598,11 @@ export const initialComponents: any = [
tagName: 'a',
attributes: {
href: '#!',
- title: 'A navigation link',
+ title: {
+ type: 'slot',
+ name: 'title',
+ value: 'THE TITLE FOR NAV LINK!!!',
+ },
},
style: {
color: 'tomato',
diff --git a/packages/gui/src/components/html/Component/Editor.tsx b/packages/gui/src/components/html/Component/Editor.tsx
index cb55d380..99f65788 100644
--- a/packages/gui/src/components/html/Component/Editor.tsx
+++ b/packages/gui/src/components/html/Component/Editor.tsx
@@ -1,9 +1,9 @@
import { ChangeEvent } from 'react'
import fuzzysort from 'fuzzysort'
import { Label, Combobox } from '../../primitives'
-import { ComponentData } from '../types'
+import { ComponentData, Slot } from '../types'
import { useHtmlEditor } from '../Provider'
-import { getSlots } from '../../../lib/codegen/util'
+import { getSlots, isSlot } from '../../../lib/codegen/util'
import { mergeComponentAttributes } from './util'
interface ComponentEditorProps {
@@ -101,7 +101,12 @@ export const ComponentEditor = ({ value, onChange }: ComponentEditorProps) => {
{attributeEntries.length ? (
<>
{attributeEntries.map((entry) => {
- const [key, val] = entry
+ const [key, rawValue] = entry
+
+ const val = isSlot(rawValue as Slot)
+ ? (rawValue as Slot).value
+ : rawValue
+
return (
@@ -114,7 +119,7 @@ export const ComponentEditor = ({ value, onChange }: ComponentEditorProps) => {
}}
>
diff --git a/packages/gui/src/components/html/types.ts b/packages/gui/src/components/html/types.ts
index 0962643e..61f41806 100644
--- a/packages/gui/src/components/html/types.ts
+++ b/packages/gui/src/components/html/types.ts
@@ -1,7 +1,7 @@
export interface ElementData {
type: 'element' | 'text'
tagName?: string
- attributes?: Record
+ attributes?: Record
// `style` is an attribute, but we treat it specially for CSS.gui
style?: Record
value?: string
@@ -17,7 +17,7 @@ export interface Slot {
name: string
value?: string
tagName?: string
- attributes?: Record
+ attributes?: Record
style?: Record
children?: HtmlNode[]
props?: Props
@@ -28,7 +28,7 @@ export interface ComponentData {
tagName: string
props?: Props
value: HtmlNode
- attributes?: Record
+ attributes?: Record
style?: Record
children?: HtmlNode[]
}
diff --git a/packages/gui/src/lib/codegen/to-react-props.ts b/packages/gui/src/lib/codegen/to-react-props.ts
index 8bf596bb..8d9a0015 100644
--- a/packages/gui/src/lib/codegen/to-react-props.ts
+++ b/packages/gui/src/lib/codegen/to-react-props.ts
@@ -1,4 +1,5 @@
import * as propInfo from 'property-information'
+import { stringifySlotInProp } from './util'
const SCHEMA = 'html' as unknown as propInfo.Schema
@@ -15,12 +16,12 @@ export const toReactProps = (props: Props): Props => {
const propName = info.property || key
return {
- [propName]: value,
+ [propName]: stringifySlotInProp(value),
...acc,
}
} catch (e) {
return {
- [key]: value,
+ [key]: stringifySlotInProp(value),
...acc,
}
}
diff --git a/packages/gui/src/lib/codegen/util.ts b/packages/gui/src/lib/codegen/util.ts
index 42d2074f..6b308790 100644
--- a/packages/gui/src/lib/codegen/util.ts
+++ b/packages/gui/src/lib/codegen/util.ts
@@ -4,7 +4,7 @@ import { visit } from 'unist-util-visit'
import { HtmlNode, Slot } from '../../components/html/types'
export const getSlots = (value: HtmlNode) => {
- if (value.type === 'text' || value.type === 'slot') {
+ if (isText(value) || isSlot(value)) {
return []
}
@@ -30,3 +30,14 @@ export const hasChildrenSlot = (value: HtmlNode) => {
const slots = getSlots(value)
return !!slots.find((slot) => slot.name === 'children')
}
+
+export const stringifySlotInProp = (value: any) => {
+ if (isSlot(value)) {
+ return value.value ?? null
+ }
+
+ return value
+}
+
+export const isText = (value: HtmlNode) => value?.type === 'text'
+export const isSlot = (value: HtmlNode) => value?.type === 'slot'
From 603bf01d977eaf5403b5a2e431a3f3fd96689b6f Mon Sep 17 00:00:00 2001
From: John Otander
Date: Thu, 11 Aug 2022 15:20:30 -0600
Subject: [PATCH 004/128] Pass in, and leverage, outer props in case they map
to slots
---
apps/docs/data/initial-html-editor-data.ts | 11 +++++++++++
.../gui/src/components/html/CanvasProvider.tsx | 11 +++++++++--
.../gui/src/components/html/Renderer/Element.tsx | 3 ++-
packages/gui/src/components/html/util.ts | 4 ++--
packages/gui/src/lib/codegen/to-react-props.ts | 6 +++---
packages/gui/src/lib/codegen/util.ts | 15 ++++++++++++++-
6 files changed, 41 insertions(+), 9 deletions(-)
diff --git a/apps/docs/data/initial-html-editor-data.ts b/apps/docs/data/initial-html-editor-data.ts
index 0730fa52..7c678c8c 100644
--- a/apps/docs/data/initial-html-editor-data.ts
+++ b/apps/docs/data/initial-html-editor-data.ts
@@ -1631,6 +1631,17 @@ export const initialComponents: any = [
style: {},
children: [{ type: 'text', value: 'A footer!!!!' }],
},
+ {
+ type: 'element',
+ tagName: 'img',
+ attributes: {
+ src: {
+ type: 'slot',
+ name: 'imgSrc',
+ value: 'https://source.unsplash.com/random',
+ },
+ },
+ },
],
},
},
diff --git a/packages/gui/src/components/html/CanvasProvider.tsx b/packages/gui/src/components/html/CanvasProvider.tsx
index c0bc5a28..c9790142 100644
--- a/packages/gui/src/components/html/CanvasProvider.tsx
+++ b/packages/gui/src/components/html/CanvasProvider.tsx
@@ -3,7 +3,7 @@ import { toCSSObject } from '../../lib/codegen/to-css-object'
import { toReactProps } from '../../lib/codegen/to-react-props'
import { useTheme } from '../providers/ThemeContext'
import { useHtmlEditor } from './Provider'
-import { ElementPath, HtmlNode } from './types'
+import { ComponentData, ElementPath, HtmlNode } from './types'
import { cleanAttributesForCanvas, isSamePath } from './util'
const DEFAULT_CANVAS_VALUE = {}
@@ -18,6 +18,7 @@ type CanvasProviderType = {
export type CanvasElementProps = {
path: ElementPath
value: HtmlNode
+ component?: ComponentData
onClick?(e: MouseEvent): void
}
@@ -26,7 +27,12 @@ export function useCanvas() {
return context
}
-export function useCanvasProps({ path, value, onClick }: CanvasElementProps) {
+export function useCanvasProps({
+ path,
+ value,
+ component,
+ onClick,
+}: CanvasElementProps) {
const { canvas } = useContext(CanvasContext)
const { selected, setSelected } = useHtmlEditor()
const theme = useTheme()
@@ -66,6 +72,7 @@ export function useCanvasProps({ path, value, onClick }: CanvasElementProps) {
...(canvas ? cleanAttributesForCanvas(attributes) : attributes),
...(canvas ? { 'data-path': path.join('-') } : {}),
sx,
+ outerProps: component?.props,
onClick: handleSelect,
})
diff --git a/packages/gui/src/components/html/Renderer/Element.tsx b/packages/gui/src/components/html/Renderer/Element.tsx
index d0dc22f3..8b8b3a82 100644
--- a/packages/gui/src/components/html/Renderer/Element.tsx
+++ b/packages/gui/src/components/html/Renderer/Element.tsx
@@ -12,10 +12,11 @@ export function ElementRenderer({
path,
...canvasElementProps
}: CanvasElementProps) {
- const { selectComponent } = useComponent()
+ const { selectComponent, value: componentValue } = useComponent()
const { onClick, ...props } = useCanvasProps({
value,
path,
+ component: componentValue,
...canvasElementProps,
})
diff --git a/packages/gui/src/components/html/util.ts b/packages/gui/src/components/html/util.ts
index b75363d1..df5bb2b3 100644
--- a/packages/gui/src/components/html/util.ts
+++ b/packages/gui/src/components/html/util.ts
@@ -1,4 +1,4 @@
-import { HtmlNode, ElementPath } from './types'
+import { HtmlNode, ElementPath, Slot } from './types'
import { isNil } from 'lodash-es'
export const isSamePath = (
@@ -19,7 +19,7 @@ export const removeTailFromPath = (path: ElementPath) => {
}
export const cleanAttributesForCanvas = (
- attributes: Record
+ attributes: Record
) => {
const newAttributes = { ...attributes }
diff --git a/packages/gui/src/lib/codegen/to-react-props.ts b/packages/gui/src/lib/codegen/to-react-props.ts
index 8d9a0015..b62f3c55 100644
--- a/packages/gui/src/lib/codegen/to-react-props.ts
+++ b/packages/gui/src/lib/codegen/to-react-props.ts
@@ -4,7 +4,7 @@ import { stringifySlotInProp } from './util'
const SCHEMA = 'html' as unknown as propInfo.Schema
type Props = Record
-export const toReactProps = (props: Props): Props => {
+export const toReactProps = ({ outerProps, ...props }: Props): Props => {
return Object.entries(props).reduce((acc, curr) => {
const [key, value] = curr
@@ -16,12 +16,12 @@ export const toReactProps = (props: Props): Props => {
const propName = info.property || key
return {
- [propName]: stringifySlotInProp(value),
+ [propName]: stringifySlotInProp(value, outerProps),
...acc,
}
} catch (e) {
return {
- [key]: stringifySlotInProp(value),
+ [key]: stringifySlotInProp(value, outerProps),
...acc,
}
}
diff --git a/packages/gui/src/lib/codegen/util.ts b/packages/gui/src/lib/codegen/util.ts
index 6b308790..990d2d2a 100644
--- a/packages/gui/src/lib/codegen/util.ts
+++ b/packages/gui/src/lib/codegen/util.ts
@@ -14,6 +14,14 @@ export const getSlots = (value: HtmlNode) => {
visit(tree, 'slot', (node: any) => {
slots.push(node)
})
+ visit(tree, 'element', (node: any) => {
+ const attributes = node.attributes || {}
+ Object.values(attributes).forEach((val: any) => {
+ if (isSlot(val)) {
+ slots.push(val)
+ }
+ })
+ })
})
.runSync(value)
@@ -31,8 +39,13 @@ export const hasChildrenSlot = (value: HtmlNode) => {
return !!slots.find((slot) => slot.name === 'children')
}
-export const stringifySlotInProp = (value: any) => {
+export const stringifySlotInProp = (value: any, outerProps: any) => {
if (isSlot(value)) {
+ const slotName = value.name
+ if (outerProps && outerProps[slotName]) {
+ return outerProps[slotName]
+ }
+
return value.value ?? null
}
From 2bc50a50903144585a4e327505b37766bd5764ce Mon Sep 17 00:00:00 2001
From: John Otander
Date: Thu, 11 Aug 2022 16:01:29 -0600
Subject: [PATCH 005/128] Allow for slot creation when defining attributes
---
.../html/Editors/AttributeEditor.tsx | 151 +++++++++++++++---
1 file changed, 132 insertions(+), 19 deletions(-)
diff --git a/packages/gui/src/components/html/Editors/AttributeEditor.tsx b/packages/gui/src/components/html/Editors/AttributeEditor.tsx
index ef7beefd..295254be 100644
--- a/packages/gui/src/components/html/Editors/AttributeEditor.tsx
+++ b/packages/gui/src/components/html/Editors/AttributeEditor.tsx
@@ -1,13 +1,15 @@
import { X } from 'react-feather'
import { Label } from '../../primitives'
import IconButton from '../../ui/IconButton'
-import { useEffect } from 'react'
+import { ChangeEvent, useEffect } from 'react'
import { Combobox } from '../../primitives'
import { ATTRIBUTE_MAP } from '../../../data/attributes'
+import { isSlot } from '../../../lib/codegen/util'
+import { Slot } from '../types'
interface AttributeEditorProps {
- value: Record
- onChange(value: Record): void
+ value: Record
+ onChange(value: Record): void
element: string
}
@@ -49,6 +51,27 @@ export const AttributeEditor = ({
onChange(newValue)
}
+ const handleSlotToggle = (key: string) => {
+ const val = value[key]
+ const slotValue = val as unknown as Slot
+
+ if (isSlot(slotValue)) {
+ onChange({
+ ...value,
+ [key]: slotValue.value as string,
+ })
+ } else {
+ onChange({
+ ...value,
+ [key]: {
+ type: 'slot',
+ name: key,
+ value: val as string,
+ },
+ })
+ }
+ }
+
return (
@@ -62,25 +85,115 @@ export const AttributeEditor = ({
{/* @ts-ignore */}
{Object.entries(value).map(([key, attrValue]) => {
+ if (isSlot(attrValue as unknown as Slot)) {
+ return (
+
+ onChange({ ...value, [key]: newValue })
+ }
+ onRemove={() => handleItemRemoved(key)}
+ onSlot={() => handleSlotToggle(key)}
+ />
+ )
+ }
+
return (
-
-
- {key}
-
-
- onChange({ ...value, [key]: e.target.value })
- }
- />
- handleItemRemoved(key)}>
-
-
-
-
-
+ onChange({ ...value, [key]: e.target.value })}
+ onRemove={() => handleItemRemoved(key)}
+ onSlot={() => handleSlotToggle(key)}
+ />
)
})}
)
}
+
+interface StringAttributeEditorProps {
+ name: string
+ value: string
+ onChange(e: ChangeEvent): void
+ onRemove(): void
+ onSlot(): void
+}
+const StringAttributeEditor = ({
+ name,
+ value,
+ onChange,
+ onRemove,
+ onSlot,
+}: StringAttributeEditorProps) => {
+ return (
+
+
+ {name}
+
+
+
+
+
+ Make slot
+
+
+
+ )
+}
+
+interface SlotAttributeEditorProps {
+ name: string
+ value: Slot
+ onChange(newValue: Slot): void
+ onRemove(): void
+ onSlot(): void
+}
+const SlotAttributeEditor = ({
+ name,
+ value,
+ onChange,
+ onRemove,
+ onSlot,
+}: SlotAttributeEditorProps) => {
+ return (
+
+
{name}
+
+ Name
+
+
+ onChange({
+ ...value,
+ name: e.target.value,
+ })
+ }
+ />
+
+
+
+ Value
+
+
+ onChange({
+ ...value,
+ value: e.target.value,
+ })
+ }
+ />
+
+
+
+ Make string
+
+
+
+ )
+}
From 406fc8becd94f3bd22c220c3a9aa6e7471c9b475 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Thu, 11 Aug 2022 16:08:35 -0600
Subject: [PATCH 006/128] Tweak title slot data
---
apps/docs/data/initial-html-editor-data.ts | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/apps/docs/data/initial-html-editor-data.ts b/apps/docs/data/initial-html-editor-data.ts
index 7c678c8c..8c8b2b45 100644
--- a/apps/docs/data/initial-html-editor-data.ts
+++ b/apps/docs/data/initial-html-editor-data.ts
@@ -1498,7 +1498,7 @@ export const initialComponents: any = [
title: {
type: 'slot',
name: 'title',
- value: 'THE TITLE FOR 1!!!!',
+ value: 'The title for heading 1',
},
},
style: {
@@ -1549,7 +1549,7 @@ export const initialComponents: any = [
title: {
type: 'slot',
name: 'title',
- value: 'THE TITLE FOR 2!!!',
+ value: 'The title for heading 2',
},
},
style: {
@@ -1601,7 +1601,7 @@ export const initialComponents: any = [
title: {
type: 'slot',
name: 'title',
- value: 'THE TITLE FOR NAV LINK!!!',
+ value: 'A nav link',
},
},
style: {
@@ -1631,17 +1631,6 @@ export const initialComponents: any = [
style: {},
children: [{ type: 'text', value: 'A footer!!!!' }],
},
- {
- type: 'element',
- tagName: 'img',
- attributes: {
- src: {
- type: 'slot',
- name: 'imgSrc',
- value: 'https://source.unsplash.com/random',
- },
- },
- },
],
},
},
From 2908cba5576189903cf8f2c97bd7a2eb20f009a7 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Thu, 11 Aug 2022 20:59:09 -0600
Subject: [PATCH 007/128] Make sure default value is passed to base schema
---
.changeset/cold-ties-fly.md | 5 +++++
packages/gui/src/data/properties.ts | 5 ++---
2 files changed, 7 insertions(+), 3 deletions(-)
create mode 100644 .changeset/cold-ties-fly.md
diff --git a/.changeset/cold-ties-fly.md b/.changeset/cold-ties-fly.md
new file mode 100644
index 00000000..95397fbc
--- /dev/null
+++ b/.changeset/cold-ties-fly.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Make sure default value is passed to base schema
diff --git a/packages/gui/src/data/properties.ts b/packages/gui/src/data/properties.ts
index 29f2b1fd..0216be7f 100644
--- a/packages/gui/src/data/properties.ts
+++ b/packages/gui/src/data/properties.ts
@@ -119,18 +119,17 @@ function normalizeSchema(propertyData: PropertyData): DataTypeSchema {
stringify: (value) => String(value),
}
} else {
- const { defaultValue, ...basePropertyData } = propertyData
// TODO: Figure out how to make this use Ranges rather than UnitRanges
// so there's proper support for `range: 'nonnegative'`
// @ts-ignore
- let schema = primitiveMap[input](basePropertyData) as any
+ let schema = primitiveMap[input](propertyData) as any
return joinSchemas(
compact([
schema,
keywords && keyword(keywords),
themeProperty && themeSchema(themeProperty),
]),
- { defaultValue }
+ { defaultValue: propertyData.defaultValue }
)
}
}
From 8541ae7c72838f22b637730ef1fe6ba8c03f634b Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Fri, 12 Aug 2022 02:59:55 +0000
Subject: [PATCH 008/128] Version Packages
---
.changeset/cold-ties-fly.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/cold-ties-fly.md
diff --git a/.changeset/cold-ties-fly.md b/.changeset/cold-ties-fly.md
deleted file mode 100644
index 95397fbc..00000000
--- a/.changeset/cold-ties-fly.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Make sure default value is passed to base schema
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index a1d599b4..50ff987f 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.206
+
+### Patch Changes
+
+- 2908cba5: Make sure default value is passed to base schema
+
## 0.0.205
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 7ae54c1d..697ac1d4 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.205",
+ "version": "0.0.206",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From c53ca4bb2eb5140411da71c1b72697c9e3107f93 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Fri, 12 Aug 2022 08:11:47 -0600
Subject: [PATCH 009/128] Improve enter handling for combobox
---
.changeset/brown-steaks-sit.md | 5 +++
.../src/components/primitives/Combobox.tsx | 34 +++++++++++++++++--
2 files changed, 36 insertions(+), 3 deletions(-)
create mode 100644 .changeset/brown-steaks-sit.md
diff --git a/.changeset/brown-steaks-sit.md b/.changeset/brown-steaks-sit.md
new file mode 100644
index 00000000..2790d220
--- /dev/null
+++ b/.changeset/brown-steaks-sit.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Improve enter handling for combobox
diff --git a/packages/gui/src/components/primitives/Combobox.tsx b/packages/gui/src/components/primitives/Combobox.tsx
index 651edb91..f23f7755 100644
--- a/packages/gui/src/components/primitives/Combobox.tsx
+++ b/packages/gui/src/components/primitives/Combobox.tsx
@@ -1,5 +1,12 @@
import { useCombobox } from 'downshift'
-import { useEffect, useId, useRef, useState } from 'react'
+import {
+ ChangeEvent,
+ KeyboardEvent,
+ useEffect,
+ useId,
+ useRef,
+ useState,
+} from 'react'
interface ComboboxInterface {
onFilterItems: (filterValue: string) => string[]
@@ -59,13 +66,27 @@ export function Combobox({
setFilterValue(clearOnSelect ? '' : selectedItem)
}
+ const handleEnter = () => {
+ if (items.includes(filterValue)) {
+ handleItemSelected(filterValue)
+ toggleMenu()
+ }
+ }
+
return (
setFilterValue(e.target.value),
+ onChange: (e: ChangeEvent
) => {
+ setFilterValue(e.target.value)
+ },
+ onKeyDown: (e: KeyboardEvent) => {
+ if (e.key === 'Enter') {
+ handleEnter()
+ }
+ },
})}
onFocus={() => {
if (!isOpen) {
@@ -73,7 +94,14 @@ export function Combobox({
handleFilterItems('')
}
}}
- sx={{ WebkitAppearance: 'none', appearance: 'none', width: '100%', border: '1px solid', borderRadius: '6px', p: 1 }}
+ sx={{
+ WebkitAppearance: 'none',
+ appearance: 'none',
+ width: '100%',
+ border: '1px solid',
+ borderRadius: '6px',
+ p: 1,
+ }}
/>
Date: Fri, 12 Aug 2022 14:14:00 +0000
Subject: [PATCH 010/128] Version Packages
---
.changeset/brown-steaks-sit.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/brown-steaks-sit.md
diff --git a/.changeset/brown-steaks-sit.md b/.changeset/brown-steaks-sit.md
deleted file mode 100644
index 2790d220..00000000
--- a/.changeset/brown-steaks-sit.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Improve enter handling for combobox
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 50ff987f..121055d2 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.207
+
+### Patch Changes
+
+- c53ca4bb: Improve enter handling for combobox
+
## 0.0.206
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 697ac1d4..3d02b398 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.206",
+ "version": "0.0.207",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From b5dc91a77360c4ad681d96fa490e0d562d87a801 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Fri, 12 Aug 2022 09:19:59 -0600
Subject: [PATCH 011/128] Make sure tag combobox syncs
---
.changeset/modern-ads-explode.md | 5 +++++
packages/gui/src/components/html/Editors/NodeEditor.tsx | 4 +++-
2 files changed, 8 insertions(+), 1 deletion(-)
create mode 100644 .changeset/modern-ads-explode.md
diff --git a/.changeset/modern-ads-explode.md b/.changeset/modern-ads-explode.md
new file mode 100644
index 00000000..3acfb2dc
--- /dev/null
+++ b/.changeset/modern-ads-explode.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Make sure tag name combobox syncs
diff --git a/packages/gui/src/components/html/Editors/NodeEditor.tsx b/packages/gui/src/components/html/Editors/NodeEditor.tsx
index 2e266e6f..9c2f738b 100644
--- a/packages/gui/src/components/html/Editors/NodeEditor.tsx
+++ b/packages/gui/src/components/html/Editors/NodeEditor.tsx
@@ -166,6 +166,8 @@ function NodeSwitch({ value, onChange }: EditorProps) {
return
}
+ const tagKey = [...(selected || []), value.tagName || ''].join('-')
+
return (
Tag name {' '}
{
if (!filterValue) {
return HTML_TAGS
From 20f3e30c4627aa27b6a2c1fb4cba36be66062996 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Fri, 12 Aug 2022 15:21:06 +0000
Subject: [PATCH 012/128] Version Packages
---
.changeset/modern-ads-explode.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/modern-ads-explode.md
diff --git a/.changeset/modern-ads-explode.md b/.changeset/modern-ads-explode.md
deleted file mode 100644
index 3acfb2dc..00000000
--- a/.changeset/modern-ads-explode.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Make sure tag name combobox syncs
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 121055d2..724fb905 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.208
+
+### Patch Changes
+
+- b5dc91a7: Make sure tag name combobox syncs
+
## 0.0.207
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 3d02b398..319e3676 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.207",
+ "version": "0.0.208",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 30c41f20918a30d02695b387c22c2686b7096760 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Sun, 14 Aug 2022 00:37:57 -0700
Subject: [PATCH 013/128] Adds more elements and attributes, specifically for
SVG
---
packages/gui/src/data/attributes.ts | 48 +++++++++++++++++++++++++----
1 file changed, 42 insertions(+), 6 deletions(-)
diff --git a/packages/gui/src/data/attributes.ts b/packages/gui/src/data/attributes.ts
index 80bfeb29..876ca6c1 100644
--- a/packages/gui/src/data/attributes.ts
+++ b/packages/gui/src/data/attributes.ts
@@ -12,6 +12,7 @@ export const ATTRIBUTE_MAP: Record = {
],
abbr: GLOBAL_ATTRIBUTES,
address: GLOBAL_ATTRIBUTES,
+ area: [...GLOBAL_ATTRIBUTES, 'shape', 'coords', 'href', 'alt', ],
article: GLOBAL_ATTRIBUTES,
aside: GLOBAL_ATTRIBUTES,
audio: [
@@ -140,6 +141,7 @@ export const ATTRIBUTE_MAP: Record = {
legend: GLOBAL_ATTRIBUTES,
li: [...GLOBAL_ATTRIBUTES, 'value', 'type'],
main: GLOBAL_ATTRIBUTES,
+ map: [...GLOBAL_ATTRIBUTES, 'name', ],
mark: GLOBAL_ATTRIBUTES,
menu: GLOBAL_ATTRIBUTES,
menuitem: GLOBAL_ATTRIBUTES,
@@ -235,10 +237,44 @@ export const ATTRIBUTE_MAP: Record = {
'crossorigin',
],
wbr: GLOBAL_ATTRIBUTES,
- svg: [...GLOBAL_ATTRIBUTES, 'version', 'xmlns', 'viewBox'],
- circle: [...GLOBAL_ATTRIBUTES, 'cx', 'cy', 'r'],
- rect: [...GLOBAL_ATTRIBUTES, 'width', 'height', 'x', 'y', 'rx', 'ry'],
- line: [...GLOBAL_ATTRIBUTES, 'x1', 'y1', 'x2', 'y2'],
- path: [...GLOBAL_ATTRIBUTES, 'd'],
- polyline: [...GLOBAL_ATTRIBUTES, 'points'],
+ svg: [...GLOBAL_ATTRIBUTES,
+ 'viewBox',
+ 'width',
+ 'height',
+ 'fill-rule',
+ 'fill-opacity',
+ 'clip-path',
+ 'clip-rule',
+ 'version',
+ 'xmlns',
+ 'preserveAspectRatio',
+ ],
+ circle: [...GLOBAL_ATTRIBUTES, 'cx', 'cy', 'r', 'stroke'],
+ ellipse: [...GLOBAL_ATTRIBUTES, 'cx', 'cy', 'rx', 'ry', 'pathLength', 'stroke'],
+ rect: [...GLOBAL_ATTRIBUTES, 'width', 'height', 'x', 'y', 'rx', 'ry', 'stroke'],
+ line: [...GLOBAL_ATTRIBUTES, 'x1', 'y1', 'x2', 'y2', 'stroke',],
+ mask: [
+ ...GLOBAL_ATTRIBUTES,
+ 'width', 'height',
+ 'x', 'y',
+ 'maskUnits',
+ 'maskContentUnits',
+ ],
+ path: [...GLOBAL_ATTRIBUTES, 'd', 'stroke',],
+ pattern: [
+ ...GLOBAL_ATTRIBUTES,
+ 'width', 'height',
+ 'patternContentUnits',
+ 'patternTransform',
+ 'patternUnits',
+ 'viewBox',
+ 'x',
+ 'y',
+ ],
+ polyline: [...GLOBAL_ATTRIBUTES, 'points', 'stroke',],
+ polygon: [...GLOBAL_ATTRIBUTES, 'points', 'pathLength', 'stroke',],
+ symbol: [...GLOBAL_ATTRIBUTES, 'width', 'height', 'viewBox', 'x', 'y', 'refX', 'refY'],
+ use: [...GLOBAL_ATTRIBUTES, 'href', 'x', 'y', 'clip-path'],
+ defs: [...GLOBAL_ATTRIBUTES],
+ g: [...GLOBAL_ATTRIBUTES ],
}
From 50d060daf9013019eaedc5aa8763b2252d94f13f Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Sun, 14 Aug 2022 00:43:57 -0700
Subject: [PATCH 014/128] Adds changeset
---
.changeset/chatty-pets-wash.md | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 .changeset/chatty-pets-wash.md
diff --git a/.changeset/chatty-pets-wash.md b/.changeset/chatty-pets-wash.md
new file mode 100644
index 00000000..599f884f
--- /dev/null
+++ b/.changeset/chatty-pets-wash.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Adds new properties and svg elements
From 27d731769641ee675838832877710a2b70ff96c5 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Sun, 14 Aug 2022 07:45:12 +0000
Subject: [PATCH 015/128] Version Packages
---
.changeset/chatty-pets-wash.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/chatty-pets-wash.md
diff --git a/.changeset/chatty-pets-wash.md b/.changeset/chatty-pets-wash.md
deleted file mode 100644
index 599f884f..00000000
--- a/.changeset/chatty-pets-wash.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Adds new properties and svg elements
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 724fb905..28bf2f8d 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.209
+
+### Patch Changes
+
+- 50d060da: Adds new properties and svg elements
+
## 0.0.208
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 319e3676..a93e3900 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.208",
+ "version": "0.0.209",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 9628acc5e7eb75aafca1a3b8d05dc80d3deca7bf Mon Sep 17 00:00:00 2001
From: John Otander
Date: Mon, 15 Aug 2022 12:32:00 -0600
Subject: [PATCH 016/128] Keep props around when swapping between components
---
.changeset/dull-keys-appear.md | 5 +++++
packages/gui/src/components/html/Component/Editor.tsx | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
create mode 100644 .changeset/dull-keys-appear.md
diff --git a/.changeset/dull-keys-appear.md b/.changeset/dull-keys-appear.md
new file mode 100644
index 00000000..1bc8496d
--- /dev/null
+++ b/.changeset/dull-keys-appear.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Keep props around when swapping between components
diff --git a/packages/gui/src/components/html/Component/Editor.tsx b/packages/gui/src/components/html/Component/Editor.tsx
index 99f65788..b8a15600 100644
--- a/packages/gui/src/components/html/Component/Editor.tsx
+++ b/packages/gui/src/components/html/Component/Editor.tsx
@@ -34,8 +34,9 @@ export const ComponentEditor = ({ value, onChange }: ComponentEditorProps) => {
const handleComponentSelected = (selectedItem: string) => {
const component = components.find((c) => c.id === selectedItem)
+
if (component) {
- onChange(component)
+ onChange({ ...component, props: value.props })
}
}
From 0498d1422c1b71d42b9bfad2a37bd8f10d24f0ce Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Mon, 15 Aug 2022 18:33:45 +0000
Subject: [PATCH 017/128] Version Packages
---
.changeset/dull-keys-appear.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/dull-keys-appear.md
diff --git a/.changeset/dull-keys-appear.md b/.changeset/dull-keys-appear.md
deleted file mode 100644
index 1bc8496d..00000000
--- a/.changeset/dull-keys-appear.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Keep props around when swapping between components
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 28bf2f8d..91095413 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.210
+
+### Patch Changes
+
+- 9628acc5: Keep props around when swapping between components
+
## 0.0.209
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index a93e3900..60e7bfb1 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.209",
+ "version": "0.0.210",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 790afdba13097ee680e4d0781d24282311b9ec3a Mon Sep 17 00:00:00 2001
From: John Otander
Date: Mon, 15 Aug 2022 14:00:01 -0600
Subject: [PATCH 018/128] Keep component name in combobox when selected
---
.changeset/few-teachers-mix.md | 5 +++++
packages/gui/src/components/html/Component/Editor.tsx | 1 -
packages/gui/src/components/primitives/Combobox.tsx | 5 ++++-
3 files changed, 9 insertions(+), 2 deletions(-)
create mode 100644 .changeset/few-teachers-mix.md
diff --git a/.changeset/few-teachers-mix.md b/.changeset/few-teachers-mix.md
new file mode 100644
index 00000000..89cb4041
--- /dev/null
+++ b/.changeset/few-teachers-mix.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Keep component name in combobox when selected
diff --git a/packages/gui/src/components/html/Component/Editor.tsx b/packages/gui/src/components/html/Component/Editor.tsx
index b8a15600..3ee36c5b 100644
--- a/packages/gui/src/components/html/Component/Editor.tsx
+++ b/packages/gui/src/components/html/Component/Editor.tsx
@@ -82,7 +82,6 @@ export const ComponentEditor = ({ value, onChange }: ComponentEditorProps) => {
return components.find((c) => c.id === id)?.tagName ?? id
}}
items={componentIds}
- clearOnSelect
/>
diff --git a/packages/gui/src/components/primitives/Combobox.tsx b/packages/gui/src/components/primitives/Combobox.tsx
index f23f7755..7a5a1b2f 100644
--- a/packages/gui/src/components/primitives/Combobox.tsx
+++ b/packages/gui/src/components/primitives/Combobox.tsx
@@ -63,7 +63,10 @@ export function Combobox({
const handleItemSelected = (selectedItem: string) => {
onItemSelected(selectedItem)
- setFilterValue(clearOnSelect ? '' : selectedItem)
+ const selectedItemText = decorateItemText
+ ? decorateItemText(selectedItem)
+ : selectedItem
+ setFilterValue(clearOnSelect ? '' : selectedItemText)
}
const handleEnter = () => {
From 51ebecf6fa8a2cb20b777f532c0b38679d794148 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Mon, 15 Aug 2022 20:01:05 +0000
Subject: [PATCH 019/128] Version Packages
---
.changeset/few-teachers-mix.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/few-teachers-mix.md
diff --git a/.changeset/few-teachers-mix.md b/.changeset/few-teachers-mix.md
deleted file mode 100644
index 89cb4041..00000000
--- a/.changeset/few-teachers-mix.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Keep component name in combobox when selected
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 91095413..4ccd14f6 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.211
+
+### Patch Changes
+
+- 790afdba: Keep component name in combobox when selected
+
## 0.0.210
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 60e7bfb1..c65fc044 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.210",
+ "version": "0.0.211",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 3f04e7ac834addb9d6f45d4ae2f87f0206ae338c Mon Sep 17 00:00:00 2001
From: John Otander
Date: Mon, 15 Aug 2022 15:31:51 -0600
Subject: [PATCH 020/128] Only wrap imports when there's more than one top
level element
---
.changeset/chatty-feet-compare.md | 5 +++++
packages/gui/src/lib/parsers/html.ts | 5 +----
packages/gui/src/lib/transformers/html-to-editor-schema.ts | 5 +++++
3 files changed, 11 insertions(+), 4 deletions(-)
create mode 100644 .changeset/chatty-feet-compare.md
diff --git a/.changeset/chatty-feet-compare.md b/.changeset/chatty-feet-compare.md
new file mode 100644
index 00000000..a17d4146
--- /dev/null
+++ b/.changeset/chatty-feet-compare.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Only wrap imports when there's more than one top level element
diff --git a/packages/gui/src/lib/parsers/html.ts b/packages/gui/src/lib/parsers/html.ts
index 8ebdcafe..bea8b1b6 100644
--- a/packages/gui/src/lib/parsers/html.ts
+++ b/packages/gui/src/lib/parsers/html.ts
@@ -2,10 +2,7 @@ import { htmlToEditorSchema } from '../transformers'
export const html = (htmlString: string) => {
// TODO: Use unified to wrap and remove doctype
- const fullString = `${htmlString.replace(
- '',
- ''
- )}
`
+ const fullString = `${htmlString.replace('', '')}
`
const data = htmlToEditorSchema(fullString)
return data
}
diff --git a/packages/gui/src/lib/transformers/html-to-editor-schema.ts b/packages/gui/src/lib/transformers/html-to-editor-schema.ts
index aa609079..2b76e131 100644
--- a/packages/gui/src/lib/transformers/html-to-editor-schema.ts
+++ b/packages/gui/src/lib/transformers/html-to-editor-schema.ts
@@ -5,6 +5,11 @@ import { hastToEditorSchema } from './hast-to-editor-schema'
export const htmlToEditorSchema = (text: string) => {
const tree = unified().use(rehypeParse, { fragment: true }).parse(text)
const processedTree = hastToEditorSchema(tree)
+
+ if (processedTree.children.length > 1) {
+ return processedTree
+ }
+
const htmlBody = processedTree.children[0]
return htmlBody
}
From 1e605db50d8e093825dacae7a1f5c53680951e37 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Mon, 15 Aug 2022 21:45:40 +0000
Subject: [PATCH 021/128] Version Packages
---
.changeset/chatty-feet-compare.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/chatty-feet-compare.md
diff --git a/.changeset/chatty-feet-compare.md b/.changeset/chatty-feet-compare.md
deleted file mode 100644
index a17d4146..00000000
--- a/.changeset/chatty-feet-compare.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Only wrap imports when there's more than one top level element
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 4ccd14f6..65922c28 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.212
+
+### Patch Changes
+
+- 3f04e7ac: Only wrap imports when there's more than one top level element
+
## 0.0.211
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index c65fc044..4ae54de0 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.211",
+ "version": "0.0.212",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From d2b2ead625ec9a3fdfbe942df1ee8d7e5569d074 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Tue, 16 Aug 2022 09:28:14 -0600
Subject: [PATCH 022/128] Update readme, most breaking changes have occurred at
this point
---
readme.md | 21 ++++++++-------------
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/readme.md b/readme.md
index 02701b14..fd03eafa 100644
--- a/readme.md
+++ b/readme.md
@@ -24,18 +24,6 @@ It's theme-aware, performant, and can be composed into any React app.
- Scrubbable number inputs
- Smart default ranges
-## ⚠️ Under active development
-
-This project is a work in (rapid) progress.
-
-Over the next few weeks the API will be stabilizing as more functionality is added.
-CSS GUI only [supports a portion](https://components.ai/open-source/css-gui/unsupported)
-of the CSS spec currently, but the intention is to support it all.
-
-[We welcome any and all contributions](https://github.com/components-ai/css.gui/blob/main/.github/contributing.md).
-We'd love it if you try to experiment with CSS GUI. Please feel free to report bugs
-or make feature requests.
-
## Why?
We want to improve creative coding and web development workflows by making
@@ -53,10 +41,17 @@ These controls are specifically built for CSS and will adhere to the CSS spec.
This builds on the web platform itself, allowing the expressiveness of CSS/HTML/SVG
to create endless outputs.
-It's our goal and intention to support the entire CSS spec beginning with the more
+It's our [goal and intention](https://components.ai/open-source/css-gui/unsupported)
+to support the entire CSS spec beginning with the more
common controls like Length, Color, Keywords and expanding over time to more complex
stacks and grammars (think gradients, background-image, box shadow, etc.).
+## How can you help?
+
+[We welcome any and all contributions](https://github.com/components-ai/css.gui/blob/main/.github/contributing.md).
+We'd love it if you try to experiment with CSS GUI and let us know how it goes. Please feel free to
+[report bugs or make feature requests](https://github.com/components-ai/css.gui/issues/new).
+
## Installation
```sh
From 0c2668a059645ee824434e035a715d5a73ca61bd Mon Sep 17 00:00:00 2001
From: John Otander
Date: Tue, 16 Aug 2022 09:29:16 -0600
Subject: [PATCH 023/128] Improve wording
---
readme.md | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/readme.md b/readme.md
index fd03eafa..9234d77c 100644
--- a/readme.md
+++ b/readme.md
@@ -82,8 +82,7 @@ export const MyEditor = () => {
}
```
-For more customization, you can compose together your own controls and style
-pseudo-elements.
+For more customization, you can compose your own controls and style pseudo-elements.
```js
import { useState } from 'react'
From 8114b4c4623afe6835732d55c1069e261b12187b Mon Sep 17 00:00:00 2001
From: John Otander
Date: Tue, 16 Aug 2022 14:59:43 -0600
Subject: [PATCH 024/128] Improve color display
---
.changeset/curvy-wombats-perform.md | 5 +++++
.../primitives/ColorPicker/PalettePicker.tsx | 19 ++++++++++++++++++-
2 files changed, 23 insertions(+), 1 deletion(-)
create mode 100644 .changeset/curvy-wombats-perform.md
diff --git a/.changeset/curvy-wombats-perform.md b/.changeset/curvy-wombats-perform.md
new file mode 100644
index 00000000..0ab30d06
--- /dev/null
+++ b/.changeset/curvy-wombats-perform.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Improve color display
diff --git a/packages/gui/src/components/primitives/ColorPicker/PalettePicker.tsx b/packages/gui/src/components/primitives/ColorPicker/PalettePicker.tsx
index 2873e40e..01c14a22 100644
--- a/packages/gui/src/components/primitives/ColorPicker/PalettePicker.tsx
+++ b/packages/gui/src/components/primitives/ColorPicker/PalettePicker.tsx
@@ -1,6 +1,7 @@
import * as Popover from '@radix-ui/react-popover'
import { themeGet } from '../../../lib'
import { useTheme } from '../../providers/ThemeContext'
+import { joinPath } from '../../providers/util'
import Checkerboard from './Checkerboard'
import { hasAlpha, withFallback } from './util'
@@ -20,6 +21,15 @@ export default function PalettePopover({
// swatch,
...props
}: Props) {
+ const theme = useTheme()
+ const rawValue = themeGet({
+ property: 'color',
+ path: value.path,
+ theme,
+ })
+
+ const labelMeta = value.path === rawValue ? null : `(${rawValue})`
+
return (
{ }
{value.path}
+ {labelMeta}
{(colorGroup as any).map((color: any, i: number) => {
+ const colorPath = `${name}.${i}`
const selected = valueColor === color
+ const rawColor = themeGet({
+ theme,
+ property: 'color',
+ path: colorPath,
+ })
return (
Date: Tue, 16 Aug 2022 15:00:43 -0600
Subject: [PATCH 025/128] Improve adding box shadow layers
---
.changeset/curly-crews-fold.md | 5 +++++
packages/gui/src/components/FieldArray.tsx | 9 +++++++--
packages/gui/src/components/schemas/box-shadow.tsx | 4 ++++
packages/gui/src/components/schemas/list.tsx | 4 +++-
4 files changed, 19 insertions(+), 3 deletions(-)
create mode 100644 .changeset/curly-crews-fold.md
diff --git a/.changeset/curly-crews-fold.md b/.changeset/curly-crews-fold.md
new file mode 100644
index 00000000..6f3da7e0
--- /dev/null
+++ b/.changeset/curly-crews-fold.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Improve adding box shadow layers
diff --git a/packages/gui/src/components/FieldArray.tsx b/packages/gui/src/components/FieldArray.tsx
index 9ca39323..14e3cbda 100644
--- a/packages/gui/src/components/FieldArray.tsx
+++ b/packages/gui/src/components/FieldArray.tsx
@@ -10,12 +10,16 @@ export interface FieldArrayProps extends EditorPropsWithLabel {
* (See `LayerProps` for what props this takes)
*/
itemSchema: DataTypeSchema
+ addItem?(currentValue: T[]): T
}
/**
* An alternative field array that is collapsible.
*/
-export default function FieldArray(props: FieldArrayProps) {
+export default function FieldArray({
+ addItem,
+ ...props
+}: FieldArrayProps) {
const { label = '', value = [], onChange, itemSchema } = props
const [dragIndex, setDragIndex] = useState(-1)
const isDragging = dragIndex >= 0
@@ -78,7 +82,8 @@ export default function FieldArray(props: FieldArrayProps) {
)}
{
- onChange(value.concat([itemSchema.defaultValue]))
+ const newLayerValue = addItem?.(value) ?? itemSchema.defaultValue
+ onChange(value.concat([newLayerValue]))
}}
sx={{
width: '100%',
diff --git a/packages/gui/src/components/schemas/box-shadow.tsx b/packages/gui/src/components/schemas/box-shadow.tsx
index ee9bb103..4939f874 100644
--- a/packages/gui/src/components/schemas/box-shadow.tsx
+++ b/packages/gui/src/components/schemas/box-shadow.tsx
@@ -21,6 +21,10 @@ const singleBoxShadow = objectSchema({
export const boxShadow = joinSchemas([
listSchema({
itemSchema: singleBoxShadow,
+ addItem: (curr: any) => {
+ const [last] = curr.slice(-1)
+ return last
+ },
}),
keyword(['none']),
themeRecord('boxShadows'),
diff --git a/packages/gui/src/components/schemas/list.tsx b/packages/gui/src/components/schemas/list.tsx
index 4cfd3f60..37936e23 100644
--- a/packages/gui/src/components/schemas/list.tsx
+++ b/packages/gui/src/components/schemas/list.tsx
@@ -7,11 +7,13 @@ interface CreateList {
itemSchema: DataTypeSchema
separator?: string
input?: ComponentType>
+ addItem?(currentValue: T[]): T
stringify?(value: T[]): string
}
export function listSchema({
itemSchema,
+ addItem,
separator = ', ',
input: Input,
stringify,
@@ -40,7 +42,7 @@ export function listSchema({
if (Input) {
return
}
- return
+ return
},
regenerate,
validate: ((value: any) => {
From 5fad030cf2d58cbf14fe2e996c6ead801305e3e7 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Tue, 16 Aug 2022 21:01:08 +0000
Subject: [PATCH 026/128] Version Packages
---
.changeset/curvy-wombats-perform.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/curvy-wombats-perform.md
diff --git a/.changeset/curvy-wombats-perform.md b/.changeset/curvy-wombats-perform.md
deleted file mode 100644
index 0ab30d06..00000000
--- a/.changeset/curvy-wombats-perform.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Improve color display
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 65922c28..6c8de280 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.213
+
+### Patch Changes
+
+- 8114b4c4: Improve color display
+
## 0.0.212
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 4ae54de0..75b0a8e8 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.212",
+ "version": "0.0.213",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From b790388e15f4c25d3a1bdeb787347a6dc9e33d55 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Tue, 16 Aug 2022 21:20:39 +0000
Subject: [PATCH 027/128] Version Packages
---
.changeset/curly-crews-fold.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/curly-crews-fold.md
diff --git a/.changeset/curly-crews-fold.md b/.changeset/curly-crews-fold.md
deleted file mode 100644
index 6f3da7e0..00000000
--- a/.changeset/curly-crews-fold.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Improve adding box shadow layers
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 6c8de280..87ef2101 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.214
+
+### Patch Changes
+
+- 74ac4a3e: Improve adding box shadow layers
+
## 0.0.213
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 75b0a8e8..c3de1c1b 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.213",
+ "version": "0.0.214",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 565f3ed39e8d94c76a6f84f3fb02e61eae8ae015 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Wed, 17 Aug 2022 09:06:11 -0600
Subject: [PATCH 028/128] Maintain component children
---
.changeset/gold-parents-pay.md | 5 +++++
packages/gui/src/components/html/Component/Editor.tsx | 6 +++++-
2 files changed, 10 insertions(+), 1 deletion(-)
create mode 100644 .changeset/gold-parents-pay.md
diff --git a/.changeset/gold-parents-pay.md b/.changeset/gold-parents-pay.md
new file mode 100644
index 00000000..d4fd1512
--- /dev/null
+++ b/.changeset/gold-parents-pay.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Maintain component children
diff --git a/packages/gui/src/components/html/Component/Editor.tsx b/packages/gui/src/components/html/Component/Editor.tsx
index 3ee36c5b..198b3ad0 100644
--- a/packages/gui/src/components/html/Component/Editor.tsx
+++ b/packages/gui/src/components/html/Component/Editor.tsx
@@ -36,7 +36,11 @@ export const ComponentEditor = ({ value, onChange }: ComponentEditorProps) => {
const component = components.find((c) => c.id === selectedItem)
if (component) {
- onChange({ ...component, props: value.props })
+ onChange({
+ ...component,
+ props: value.props,
+ children: value.children,
+ })
}
}
From f31ae40974a41ff5be401cfae054b703fdbaa535 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Wed, 17 Aug 2022 15:07:29 +0000
Subject: [PATCH 029/128] Version Packages
---
.changeset/gold-parents-pay.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/gold-parents-pay.md
diff --git a/.changeset/gold-parents-pay.md b/.changeset/gold-parents-pay.md
deleted file mode 100644
index d4fd1512..00000000
--- a/.changeset/gold-parents-pay.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Maintain component children
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 87ef2101..c3c44e95 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.215
+
+### Patch Changes
+
+- 565f3ed3: Maintain component children
+
## 0.0.214
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index c3de1c1b..65f467ee 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.214",
+ "version": "0.0.215",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 354f899fe47460f7422ab366883ee57d7273ab00 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Wed, 17 Aug 2022 09:22:10 -0600
Subject: [PATCH 030/128] Implement inline insert for components/slots
---
.changeset/big-cobras-jog.md | 5 +++++
packages/gui/src/components/html/TreeNode.tsx | 18 ++++++++++++++++--
2 files changed, 21 insertions(+), 2 deletions(-)
create mode 100644 .changeset/big-cobras-jog.md
diff --git a/.changeset/big-cobras-jog.md b/.changeset/big-cobras-jog.md
new file mode 100644
index 00000000..0eb2ca3b
--- /dev/null
+++ b/.changeset/big-cobras-jog.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Implement inline insert for components/slots
diff --git a/packages/gui/src/components/html/TreeNode.tsx b/packages/gui/src/components/html/TreeNode.tsx
index ebfc71cd..c6bce81e 100644
--- a/packages/gui/src/components/html/TreeNode.tsx
+++ b/packages/gui/src/components/html/TreeNode.tsx
@@ -22,7 +22,7 @@ interface TreeNodeProps extends EditorProps {
}
export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
- const { selected, isEditing, setEditing } = useHtmlEditor()
+ const { selected, isEditing, setEditing, components } = useHtmlEditor()
const [open, setOpen] = useState(true)
const isSelected = isSamePath(path, selected)
const isEditingNode = isSelected && isEditing
@@ -192,7 +192,15 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
}
function handleAddChild(i: number, type: string) {
- const child = type === 'tag' ? DEFAULT_TAG : DEFAULT_TEXT
+ let child = DEFAULT_TEXT
+ if (type === 'tag') {
+ child = DEFAULT_TAG
+ } else if (type === 'component') {
+ child = components![0]
+ } else if (type === 'slot') {
+ child = DEFAULT_SLOT
+ }
+
onChange(addChildAtPath(value, [i], child))
}
@@ -323,6 +331,12 @@ const DEFAULT_TEXT: HtmlNode = {
value: '',
}
+const DEFAULT_SLOT: HtmlNode = {
+ type: 'slot',
+ name: 'newSlot',
+ value: '',
+}
+
function AddChildButton({ onClick }: { onClick(type: string): void }) {
const [hovered, setHovered] = useState(false)
const [open, setOpen] = useState(false)
From 76dc581f86b841ff65f05d098afc8ee0583f3e7c Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Wed, 17 Aug 2022 15:24:11 +0000
Subject: [PATCH 031/128] Version Packages
---
.changeset/big-cobras-jog.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/big-cobras-jog.md
diff --git a/.changeset/big-cobras-jog.md b/.changeset/big-cobras-jog.md
deleted file mode 100644
index 0eb2ca3b..00000000
--- a/.changeset/big-cobras-jog.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Implement inline insert for components/slots
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index c3c44e95..b3574cdd 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.216
+
+### Patch Changes
+
+- 354f899f: Implement inline insert for components/slots
+
## 0.0.215
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 65f467ee..640c6e48 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.215",
+ "version": "0.0.216",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From eb5530376caa4cb26365825fc62ddb404c2a74f2 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Wed, 17 Aug 2022 09:32:41 -0600
Subject: [PATCH 032/128] Improve node type swapping
---
.changeset/weak-poems-rush.md | 5 ++++
.../components/html/Editors/NodeEditor.tsx | 24 +++++++++----------
2 files changed, 17 insertions(+), 12 deletions(-)
create mode 100644 .changeset/weak-poems-rush.md
diff --git a/.changeset/weak-poems-rush.md b/.changeset/weak-poems-rush.md
new file mode 100644
index 00000000..50cc14df
--- /dev/null
+++ b/.changeset/weak-poems-rush.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Improve node type swapping
diff --git a/packages/gui/src/components/html/Editors/NodeEditor.tsx b/packages/gui/src/components/html/Editors/NodeEditor.tsx
index 9c2f738b..877d50f3 100644
--- a/packages/gui/src/components/html/Editors/NodeEditor.tsx
+++ b/packages/gui/src/components/html/Editors/NodeEditor.tsx
@@ -28,12 +28,7 @@ export function NodeEditor({
onRemove,
onParentChange,
}: TagEditorProps) {
- const {
- value: fullValue,
- selected,
- hasComponents,
- components,
- } = useHtmlEditor()
+ const { value: fullValue, selected, components } = useHtmlEditor()
let nodeType = value.type === 'text' ? 'text' : 'tag'
if (value.type === 'component') {
nodeType = 'component'
@@ -73,16 +68,20 @@ export function NodeEditor({
{
- if (value === 'text') {
+ onChange={(newType) => {
+ if (newType === 'text') {
onChange({ type: 'text', value: '' })
- } else if (value === 'component') {
+ } else if (newType === 'component') {
const firstComponent = components?.[0]
if (firstComponent) {
- onChange(firstComponent)
+ onChange({
+ ...firstComponent,
+ props: value.props,
+ children: value.children,
+ })
}
- } else if (value === 'slot') {
+ } else if (newType === 'slot') {
onChange({
type: 'slot',
name: 'newSlot',
@@ -92,7 +91,8 @@ export function NodeEditor({
onChange({
type: 'element',
tagName: 'div',
- children: [],
+ props: value.props,
+ children: value.children ?? [],
})
}
}}
From b5052f6bacc6121709e8eba32b88218e2e7cc6ba Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Wed, 17 Aug 2022 15:34:54 +0000
Subject: [PATCH 033/128] Version Packages
---
.changeset/weak-poems-rush.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/weak-poems-rush.md
diff --git a/.changeset/weak-poems-rush.md b/.changeset/weak-poems-rush.md
deleted file mode 100644
index 50cc14df..00000000
--- a/.changeset/weak-poems-rush.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Improve node type swapping
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index b3574cdd..4c275281 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.217
+
+### Patch Changes
+
+- eb553037: Improve node type swapping
+
## 0.0.216
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 640c6e48..725777d7 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.216",
+ "version": "0.0.217",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 794eab84dacca89a9acf959245456cf2a4dfee82 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Wed, 17 Aug 2022 15:19:14 -0600
Subject: [PATCH 034/128] Make font size consistent in DOM tree
---
.changeset/silly-months-film.md | 5 +++++
packages/gui/src/components/html/TreeNode.tsx | 1 +
2 files changed, 6 insertions(+)
create mode 100644 .changeset/silly-months-film.md
diff --git a/.changeset/silly-months-film.md b/.changeset/silly-months-film.md
new file mode 100644
index 00000000..9bc9af05
--- /dev/null
+++ b/.changeset/silly-months-film.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Make font size consistent in DOM tree
diff --git a/packages/gui/src/components/html/TreeNode.tsx b/packages/gui/src/components/html/TreeNode.tsx
index c6bce81e..0d1c55f1 100644
--- a/packages/gui/src/components/html/TreeNode.tsx
+++ b/packages/gui/src/components/html/TreeNode.tsx
@@ -149,6 +149,7 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
color: 'text',
margin: 0,
padding: 0,
+ fontSize: '14px',
}}
onClick={() => {
if (isSelected) {
From 5797450137049c37e81a71112778fe4a91826957 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Wed, 17 Aug 2022 21:20:04 +0000
Subject: [PATCH 035/128] Version Packages
---
.changeset/silly-months-film.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/silly-months-film.md
diff --git a/.changeset/silly-months-film.md b/.changeset/silly-months-film.md
deleted file mode 100644
index 9bc9af05..00000000
--- a/.changeset/silly-months-film.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Make font size consistent in DOM tree
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 4c275281..27b4abc5 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.218
+
+### Patch Changes
+
+- 794eab84: Make font size consistent in DOM tree
+
## 0.0.217
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 725777d7..452833ac 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.217",
+ "version": "0.0.218",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 1ebd79b3059e961a6bdffdced228f2927238cde8 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Fri, 19 Aug 2022 16:33:15 -0600
Subject: [PATCH 036/128] Remove segment
---
apps/docs/package.json | 1 -
apps/docs/pages/_app.tsx | 7 +------
apps/docs/pages/_document.tsx | 23 +----------------------
yarn.lock | 26 --------------------------
4 files changed, 2 insertions(+), 55 deletions(-)
diff --git a/apps/docs/package.json b/apps/docs/package.json
index ff1992ed..d1a69ef6 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -15,7 +15,6 @@
"@emotion/react": "^11.9.0",
"@mdx-js/loader": "^2.1.2",
"@next/mdx": "^12.2.0",
- "@segment/snippet": "^4.15.3",
"next": "12.2.4",
"react": "18.1.0",
"react-dom": "18.0.0",
diff --git a/apps/docs/pages/_app.tsx b/apps/docs/pages/_app.tsx
index 50226129..678e182d 100644
--- a/apps/docs/pages/_app.tsx
+++ b/apps/docs/pages/_app.tsx
@@ -1,5 +1,5 @@
import { AppProps } from 'next/app'
-import Router, { NextRouter, useRouter } from 'next/router'
+import { NextRouter, useRouter } from 'next/router'
import { ReactChild } from 'react'
import { ThemeProvider } from 'theme-ui'
import {
@@ -14,11 +14,6 @@ import { Layout as PlaygroundLayout } from '../components/playground/Layout'
import { Head } from '../components/Head'
import '../public/code-styles.css'
-Router.events.on('routeChangeComplete', (url) => {
- // @ts-ignore
- window?.analytics?.page(url)
-})
-
const NO_NAV_PAGES: Record = {
'/playground': true,
'/html-editor': true,
diff --git a/apps/docs/pages/_document.tsx b/apps/docs/pages/_document.tsx
index 9db5cb78..6824866d 100644
--- a/apps/docs/pages/_document.tsx
+++ b/apps/docs/pages/_document.tsx
@@ -5,12 +5,6 @@ import Document, {
NextScript,
DocumentContext,
} from 'next/document'
-import * as snippet from '@segment/snippet'
-
-const ANALYTICS_WRITE_KEY =
- process.env.NODE_ENV === 'development'
- ? 'l2esDJDa92SQGAtVN9yZY5ByGKYbXhf5'
- : 'RMUHme5teZLiDPnqWE6z27snMAHmpFei'
export default class CustomDocument extends Document {
static async getInitialProps(ctx: DocumentContext) {
@@ -18,25 +12,10 @@ export default class CustomDocument extends Document {
return { ...initialProps }
}
- renderSnippet() {
- const opts = {
- apiKey: ANALYTICS_WRITE_KEY,
- page: true,
- }
-
- if (process.env.NODE_ENV === 'development') {
- return snippet.max(opts)
- }
-
- return snippet.min(opts)
- }
-
render() {
return (
-
-
-
+
diff --git a/yarn.lock b/yarn.lock
index fee155ef..fbe13818 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1011,25 +1011,6 @@
call-me-maybe "^1.0.1"
glob-to-regexp "^0.3.0"
-"@ndhoule/each@^2.0.1":
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/@ndhoule/each/-/each-2.0.1.tgz#bbed372a603e0713a3193c706a73ddebc5b426a9"
- integrity sha1-u+03KmA+BxOjGTxwanPd68W0Jqk=
- dependencies:
- "@ndhoule/keys" "^2.0.0"
-
-"@ndhoule/keys@^2.0.0":
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/@ndhoule/keys/-/keys-2.0.0.tgz#3d64ae677c65a261747bf3a457c62eb292a4e0ce"
- integrity sha1-PWSuZ3xlomF0e/OkV8YuspKk4M4=
-
-"@ndhoule/map@^2.0.1":
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/@ndhoule/map/-/map-2.0.1.tgz#f5ca0a47424ea67f46e2a6d499b9e9bc886aefa8"
- integrity sha1-9coKR0JOpn9G4qbUmbnpvIhq76g=
- dependencies:
- "@ndhoule/each" "^2.0.1"
-
"@next/env@12.2.4":
version "12.2.4"
resolved "https://registry.yarnpkg.com/@next/env/-/env-12.2.4.tgz#5ba9bed9970be4113773233148b4539691bfc4fe"
@@ -1799,13 +1780,6 @@
resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.1.3.tgz#6801033be7ff87a6b7cadaf5b337c9f366a3c4b0"
integrity sha512-WiBSI6JBIhC6LRIsB2Kwh8DsGTlbBU+mLRxJmAe3LjHTdkDpwIbEOZgoXBbZilk/vlfjK8i6nKRAvIRn1XaIMw==
-"@segment/snippet@^4.15.3":
- version "4.15.3"
- resolved "https://registry.yarnpkg.com/@segment/snippet/-/snippet-4.15.3.tgz#ac829ec4570b249f559756293f4736e434885de7"
- integrity sha512-75kVTYaQGYMkwVjJvCLLOlzxV8jCDxvKG68U88joo/rBx95SIXETcjUmIXF6A7SFRCgz83B+zrZbo+JYsmHkig==
- dependencies:
- "@ndhoule/map" "^2.0.1"
-
"@sinclair/typebox@^0.23.3":
version "0.23.5"
resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.23.5.tgz#93f7b9f4e3285a7a9ade7557d9a8d36809cbc47d"
From 43b7145020909aa2bd9e572f1ecdde62245c0e05 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Sun, 21 Aug 2022 15:35:01 -0700
Subject: [PATCH 037/128] Removes autocorrect from add property field
This is a dialog that often obscures inputting text content on safari.
The suggestions don't match available chooices and needs to be dismissed
before entering content. Removing to improve style panel editing flow.
---
packages/gui/src/components/primitives/Combobox.tsx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/packages/gui/src/components/primitives/Combobox.tsx b/packages/gui/src/components/primitives/Combobox.tsx
index 7a5a1b2f..76e130ed 100644
--- a/packages/gui/src/components/primitives/Combobox.tsx
+++ b/packages/gui/src/components/primitives/Combobox.tsx
@@ -97,6 +97,8 @@ export function Combobox({
handleFilterItems('')
}
}}
+ autocorrect='off'
+ spellcheck='false'
sx={{
WebkitAppearance: 'none',
appearance: 'none',
From ff2f1dcd80d21def986f8daa9dad63519fae9a61 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Sun, 21 Aug 2022 15:37:54 -0700
Subject: [PATCH 038/128] Adds changeset
---
.changeset/swift-poets-pull.md | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 .changeset/swift-poets-pull.md
diff --git a/.changeset/swift-poets-pull.md b/.changeset/swift-poets-pull.md
new file mode 100644
index 00000000..f046d176
--- /dev/null
+++ b/.changeset/swift-poets-pull.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+A small patch to remove autocorrect from property input control
From 5821eade836fdcb4272e999d7096395fc200c897 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Mon, 22 Aug 2022 14:38:50 -0700
Subject: [PATCH 039/128] Adds some styles to controls and header labels
---
packages/gui/src/components/Editor/Controls.tsx | 3 ++-
packages/gui/src/components/schemas/box-side.tsx | 13 +++++++++----
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/packages/gui/src/components/Editor/Controls.tsx b/packages/gui/src/components/Editor/Controls.tsx
index 67fd20df..3997f79c 100644
--- a/packages/gui/src/components/Editor/Controls.tsx
+++ b/packages/gui/src/components/Editor/Controls.tsx
@@ -343,8 +343,9 @@ const FieldsetControl = ({ field }: FieldsetControlProps) => {
>
{removeInternalCSSClassSyntax(label)}
diff --git a/packages/gui/src/components/schemas/box-side.tsx b/packages/gui/src/components/schemas/box-side.tsx
index c5210a81..0b8349c0 100644
--- a/packages/gui/src/components/schemas/box-side.tsx
+++ b/packages/gui/src/components/schemas/box-side.tsx
@@ -2,7 +2,7 @@ import { compact, isNil, mapValues } from 'lodash-es'
import { getInputProps } from '../../lib/util'
import { DataTypeSchema, RegenOptions } from './types'
import * as Toggle from '@radix-ui/react-toggle'
-import { Link } from 'react-feather'
+import { Maximize, Minimize } from 'react-feather'
import { SchemaInput } from '../inputs/SchemaInput'
interface CreateBoxSideSchema {
@@ -73,7 +73,7 @@ export function boxSideSchema({
const linked = isLinked(props.value)
const linkToggle = (
({
}
}}
>
-
+ {linked ? (
+
+ ) : (
+
+ )}
)
return (
{linked ? (
-
+
{linkToggle}
({
sx={{
display: 'grid',
justifyItems: 'center',
+ alignItems: 'center',
gridTemplateRows: '1fr max-content 1fr',
gridTemplateAreas: `
"top top top"
From 134536475b790d022a8d417cc241c692eab75be8 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Mon, 22 Aug 2022 21:40:03 +0000
Subject: [PATCH 040/128] Version Packages
---
.changeset/swift-poets-pull.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/swift-poets-pull.md
diff --git a/.changeset/swift-poets-pull.md b/.changeset/swift-poets-pull.md
deleted file mode 100644
index f046d176..00000000
--- a/.changeset/swift-poets-pull.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-A small patch to remove autocorrect from property input control
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 27b4abc5..494c56ba 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.219
+
+### Patch Changes
+
+- ff2f1dcd: A small patch to remove autocorrect from property input control
+
## 0.0.218
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 452833ac..19c3e619 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.218",
+ "version": "0.0.219",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From c9b6365d260f84f4ec740528b80e69e183ff70dc Mon Sep 17 00:00:00 2001
From: John Otander
Date: Tue, 23 Aug 2022 16:35:48 -0600
Subject: [PATCH 041/128] Prevent browser focus handling for labels and inputs
in the canvas
A label with a mapping to an input causes the browser to autofocus
the input. This isn't desirable when in the canvas because we're
overriding selection behavior for elements. So, this turns it off
with stopImmediatePropagation.
---
.changeset/witty-lions-compete.md | 5 +++
apps/docs/data/initial-html-editor-data.ts | 42 +++++++++++++++++++
.../components/html/Component/Provider.tsx | 2 +-
3 files changed, 48 insertions(+), 1 deletion(-)
create mode 100644 .changeset/witty-lions-compete.md
diff --git a/.changeset/witty-lions-compete.md b/.changeset/witty-lions-compete.md
new file mode 100644
index 00000000..82e8d8aa
--- /dev/null
+++ b/.changeset/witty-lions-compete.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Disable browser label/input selection handling in the canvas
diff --git a/apps/docs/data/initial-html-editor-data.ts b/apps/docs/data/initial-html-editor-data.ts
index 8c8b2b45..89dfffd4 100644
--- a/apps/docs/data/initial-html-editor-data.ts
+++ b/apps/docs/data/initial-html-editor-data.ts
@@ -1634,4 +1634,46 @@ export const initialComponents: any = [
],
},
},
+ {
+ type: 'component',
+ id: 'ddeeff123',
+ tagName: 'Input',
+ attributes: {},
+ value: {
+ type: 'element',
+ tagName: 'input',
+ attributes: {},
+ style: {},
+ },
+ },
+ {
+ type: 'component',
+ id: 'ddeeff456',
+ tagName: 'Email Input',
+ attributes: {},
+ value: {
+ tagName: 'label',
+ attributes: {},
+ style: {},
+ children: [
+ {
+ type: 'element',
+ tagName: 'span',
+ attributes: {},
+ children: [{ type: 'text', value: 'Email' }],
+ },
+ {
+ type: 'component',
+ tagName: 'Input',
+ attributes: {},
+ value: {
+ type: 'element',
+ tagName: 'input',
+ attributes: {},
+ style: {},
+ },
+ },
+ ],
+ },
+ },
]
diff --git a/packages/gui/src/components/html/Component/Provider.tsx b/packages/gui/src/components/html/Component/Provider.tsx
index 11d87afb..ce3fbd77 100644
--- a/packages/gui/src/components/html/Component/Provider.tsx
+++ b/packages/gui/src/components/html/Component/Provider.tsx
@@ -43,7 +43,7 @@ export function ComponentProvider({
} = useHtmlEditor()
const selectComponent = (e: MouseEvent) => {
setSelected(path)
- e.stopPropagation()
+ e.stopImmediatePropagation()
}
const updateComponent = (fullEditPath: ElementPath, newValue: HtmlNode) => {
From 2ecb2b21440554630526d78cd53ea22c911170ea Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Tue, 23 Aug 2022 22:40:39 +0000
Subject: [PATCH 042/128] Version Packages
---
.changeset/witty-lions-compete.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/witty-lions-compete.md
diff --git a/.changeset/witty-lions-compete.md b/.changeset/witty-lions-compete.md
deleted file mode 100644
index 82e8d8aa..00000000
--- a/.changeset/witty-lions-compete.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Disable browser label/input selection handling in the canvas
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 494c56ba..fe224dde 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.220
+
+### Patch Changes
+
+- c9b6365d: Disable browser label/input selection handling in the canvas
+
## 0.0.219
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 19c3e619..1df99d10 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.219",
+ "version": "0.0.220",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From d1039b0815070cb3db8bfee678c63f214c4e844c Mon Sep 17 00:00:00 2001
From: John Otander
Date: Tue, 23 Aug 2022 16:57:25 -0600
Subject: [PATCH 043/128] Move event propagation call
---
.changeset/nice-panthers-visit.md | 5 +++++
packages/gui/src/components/html/Component/Provider.tsx | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
create mode 100644 .changeset/nice-panthers-visit.md
diff --git a/.changeset/nice-panthers-visit.md b/.changeset/nice-panthers-visit.md
new file mode 100644
index 00000000..753eff0c
--- /dev/null
+++ b/.changeset/nice-panthers-visit.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Move event propagation call
diff --git a/packages/gui/src/components/html/Component/Provider.tsx b/packages/gui/src/components/html/Component/Provider.tsx
index ce3fbd77..45d0df51 100644
--- a/packages/gui/src/components/html/Component/Provider.tsx
+++ b/packages/gui/src/components/html/Component/Provider.tsx
@@ -42,8 +42,8 @@ export function ComponentProvider({
updateComponent: emitUpdatedComponent,
} = useHtmlEditor()
const selectComponent = (e: MouseEvent) => {
- setSelected(path)
e.stopImmediatePropagation()
+ setSelected(path)
}
const updateComponent = (fullEditPath: ElementPath, newValue: HtmlNode) => {
From 64db6f99485061606d5fb6b2376f8ef9c8d14817 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Tue, 23 Aug 2022 22:58:17 +0000
Subject: [PATCH 044/128] Version Packages
---
.changeset/nice-panthers-visit.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/nice-panthers-visit.md
diff --git a/.changeset/nice-panthers-visit.md b/.changeset/nice-panthers-visit.md
deleted file mode 100644
index 753eff0c..00000000
--- a/.changeset/nice-panthers-visit.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Move event propagation call
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index fe224dde..64da221e 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.221
+
+### Patch Changes
+
+- d1039b08: Move event propagation call
+
## 0.0.220
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 1df99d10..98e1454a 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.220",
+ "version": "0.0.221",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 7f4f65733cf4ed7dc2143922677b86c31043b7a5 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Thu, 25 Aug 2022 13:05:48 -0600
Subject: [PATCH 045/128] Add component swapping
---
.changeset/cool-stingrays-destroy.md | 5 ++
apps/docs/data/initial-html-editor-data.ts | 54 +++++++++++++++++++
.../src/components/html/Component/Editor.tsx | 47 ++++++++++++----
packages/gui/src/components/html/types.ts | 1 +
.../src/components/primitives/Combobox.tsx | 6 +--
5 files changed, 101 insertions(+), 12 deletions(-)
create mode 100644 .changeset/cool-stingrays-destroy.md
diff --git a/.changeset/cool-stingrays-destroy.md b/.changeset/cool-stingrays-destroy.md
new file mode 100644
index 00000000..0ce6ae57
--- /dev/null
+++ b/.changeset/cool-stingrays-destroy.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Add component swapping
diff --git a/apps/docs/data/initial-html-editor-data.ts b/apps/docs/data/initial-html-editor-data.ts
index 89dfffd4..d6ddd1ca 100644
--- a/apps/docs/data/initial-html-editor-data.ts
+++ b/apps/docs/data/initial-html-editor-data.ts
@@ -1492,6 +1492,7 @@ export const initialComponents: any = [
type: 'component',
id: '123abc',
tagName: 'Heading',
+ swappableComponentIds: ['456def', '789ghi'],
value: {
tagName: 'h1',
attributes: {
@@ -1543,6 +1544,7 @@ export const initialComponents: any = [
type: 'component',
id: '456def',
tagName: 'Heading2',
+ swappableComponentIds: ['123abc', '789ghi'],
value: {
tagName: 'h1',
attributes: {
@@ -1590,6 +1592,58 @@ export const initialComponents: any = [
children: [{ type: 'slot', name: 'children', value: 'CSS.GUI' }],
},
},
+ {
+ type: 'component',
+ id: '789ghi',
+ tagName: 'Heading3',
+ swappableComponentIds: ['123abc', '456def'],
+ value: {
+ tagName: 'h1',
+ attributes: {
+ title: {
+ type: 'slot',
+ name: 'title',
+ value: 'The title for heading 2',
+ },
+ },
+ style: {
+ color: 'papayawhip',
+ fontSize: {
+ type: 'responsive',
+ values: [
+ {
+ value: 4,
+ unit: 'rem',
+ },
+ {
+ value: 6,
+ unit: 'rem',
+ },
+ {
+ value: 10,
+ unit: 'rem',
+ },
+ ],
+ },
+ fontWeight: '900',
+ fontFamily: 'Inter',
+ letterSpacing: { value: -8, unit: 'px' },
+ marginTop: {
+ value: 0,
+ unit: 'px',
+ },
+ marginBottom: {
+ value: 0,
+ unit: 'px',
+ },
+ lineHeight: {
+ value: 1.25,
+ unit: 'number',
+ },
+ },
+ children: [{ type: 'slot', name: 'children', value: 'CSS.GUI' }],
+ },
+ },
{
type: 'component',
id: 'aabbcc',
diff --git a/packages/gui/src/components/html/Component/Editor.tsx b/packages/gui/src/components/html/Component/Editor.tsx
index 198b3ad0..87269550 100644
--- a/packages/gui/src/components/html/Component/Editor.tsx
+++ b/packages/gui/src/components/html/Component/Editor.tsx
@@ -1,5 +1,7 @@
import { ChangeEvent } from 'react'
import fuzzysort from 'fuzzysort'
+import { sample } from 'lodash-es'
+import { RefreshCw } from 'react-feather'
import { Label, Combobox } from '../../primitives'
import { ComponentData, Slot } from '../types'
import { useHtmlEditor } from '../Provider'
@@ -66,6 +68,23 @@ export const ComponentEditor = ({ value, onChange }: ComponentEditorProps) => {
})
}
+ const handleSwap = () => {
+ const newComponentId = sample(value.swappableComponentIds || [])
+ const newComponent = components.find((c) => c.id === newComponentId)
+
+ if (!newComponentId || !newComponent) {
+ return
+ }
+
+ onChange({
+ ...value,
+ id: newComponentId,
+ tagName: newComponent.tagName,
+ value: newComponent.value,
+ swappableComponentIds: newComponent.swappableComponentIds,
+ })
+ }
+
return (
{
}}
>
Component
- {
- return components.find((c) => c.id === id)?.tagName ?? id
- }}
- items={componentIds}
- />
+
+ {
+ return components.find((c) => c.id === id)?.tagName ?? id
+ }}
+ items={componentIds}
+ />
+ {value.swappableComponentIds?.length ? (
+
+ ) : null}
+
Props
diff --git a/packages/gui/src/components/html/types.ts b/packages/gui/src/components/html/types.ts
index 61f41806..71d4a77f 100644
--- a/packages/gui/src/components/html/types.ts
+++ b/packages/gui/src/components/html/types.ts
@@ -30,6 +30,7 @@ export interface ComponentData {
value: HtmlNode
attributes?: Record
style?: Record
+ swappableComponentIds?: string[]
children?: HtmlNode[]
}
diff --git a/packages/gui/src/components/primitives/Combobox.tsx b/packages/gui/src/components/primitives/Combobox.tsx
index 76e130ed..0b9c2799 100644
--- a/packages/gui/src/components/primitives/Combobox.tsx
+++ b/packages/gui/src/components/primitives/Combobox.tsx
@@ -77,7 +77,7 @@ export function Combobox({
}
return (
-
+
Date: Thu, 25 Aug 2022 19:32:47 +0000
Subject: [PATCH 046/128] Version Packages
---
.changeset/cool-stingrays-destroy.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/cool-stingrays-destroy.md
diff --git a/.changeset/cool-stingrays-destroy.md b/.changeset/cool-stingrays-destroy.md
deleted file mode 100644
index 0ce6ae57..00000000
--- a/.changeset/cool-stingrays-destroy.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Add component swapping
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 64da221e..515669e6 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.222
+
+### Patch Changes
+
+- 7f4f6573: Add component swapping
+
## 0.0.221
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 98e1454a..95f53b65 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.221",
+ "version": "0.0.222",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 049630e1d63f27fb9ef32437f7b707d90f3d0f22 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Fri, 26 Aug 2022 13:57:41 -0600
Subject: [PATCH 047/128] Add repeat keywords to count
---
.changeset/proud-phones-call.md | 5 +++++
packages/gui/src/components/schemas/grid.tsx | 7 ++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
create mode 100644 .changeset/proud-phones-call.md
diff --git a/.changeset/proud-phones-call.md b/.changeset/proud-phones-call.md
new file mode 100644
index 00000000..7b299250
--- /dev/null
+++ b/.changeset/proud-phones-call.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Add repeat keywords to count
diff --git a/packages/gui/src/components/schemas/grid.tsx b/packages/gui/src/components/schemas/grid.tsx
index 660cac7c..f6638b89 100644
--- a/packages/gui/src/components/schemas/grid.tsx
+++ b/packages/gui/src/components/schemas/grid.tsx
@@ -29,6 +29,11 @@ const trackSize = joinSchemas([
functionSchema('fit-content', lengthPercentage()),
])
+const trackCount = joinSchemas([
+ integer({ defaultValue: 3 }),
+ keyword(['auto-fit', 'auto-fill']),
+])
+
const trackList = joinSchemas(
[
trackSize,
@@ -36,7 +41,7 @@ const trackList = joinSchemas(
'repeat',
objectSchema({
fields: {
- count: integer({ defaultValue: 3 }),
+ count: trackCount,
trackList: listSchema({ itemSchema: trackSize, separator: ' ' }),
},
separator: ', ',
From 0930ebe569b2f604e4543f64f6f417fdd068f41e Mon Sep 17 00:00:00 2001
From: John Otander
Date: Fri, 26 Aug 2022 13:58:44 -0600
Subject: [PATCH 048/128] Better variable name
---
packages/gui/src/components/schemas/grid.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/gui/src/components/schemas/grid.tsx b/packages/gui/src/components/schemas/grid.tsx
index f6638b89..451c1267 100644
--- a/packages/gui/src/components/schemas/grid.tsx
+++ b/packages/gui/src/components/schemas/grid.tsx
@@ -29,7 +29,7 @@ const trackSize = joinSchemas([
functionSchema('fit-content', lengthPercentage()),
])
-const trackCount = joinSchemas([
+const repeatTrackCount = joinSchemas([
integer({ defaultValue: 3 }),
keyword(['auto-fit', 'auto-fill']),
])
@@ -41,7 +41,7 @@ const trackList = joinSchemas(
'repeat',
objectSchema({
fields: {
- count: trackCount,
+ count: repeatTrackCount,
trackList: listSchema({ itemSchema: trackSize, separator: ' ' }),
},
separator: ', ',
From 56252b59bcf60fcf01b411f212e690b11af1fe4d Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Fri, 26 Aug 2022 19:59:50 +0000
Subject: [PATCH 049/128] Version Packages
---
.changeset/proud-phones-call.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/proud-phones-call.md
diff --git a/.changeset/proud-phones-call.md b/.changeset/proud-phones-call.md
deleted file mode 100644
index 7b299250..00000000
--- a/.changeset/proud-phones-call.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Add repeat keywords to count
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 515669e6..2f9317a0 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.223
+
+### Patch Changes
+
+- 049630e1: Add repeat keywords to count
+
## 0.0.222
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 95f53b65..6bacbe17 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.222",
+ "version": "0.0.223",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 859ef10074a82b327f750fd60884473fb07d1009 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Mon, 29 Aug 2022 09:32:06 -0600
Subject: [PATCH 050/128] Fix inconsistent typefaces
---
.changeset/eight-suns-search.md | 5 +++++
packages/gui/src/components/html/TreeNode.tsx | 3 +++
2 files changed, 8 insertions(+)
create mode 100644 .changeset/eight-suns-search.md
diff --git a/.changeset/eight-suns-search.md b/.changeset/eight-suns-search.md
new file mode 100644
index 00000000..5d5b32c7
--- /dev/null
+++ b/.changeset/eight-suns-search.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Fix inconsistent typefaces
diff --git a/packages/gui/src/components/html/TreeNode.tsx b/packages/gui/src/components/html/TreeNode.tsx
index 0d1c55f1..6998b98f 100644
--- a/packages/gui/src/components/html/TreeNode.tsx
+++ b/packages/gui/src/components/html/TreeNode.tsx
@@ -150,6 +150,7 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
margin: 0,
padding: 0,
fontSize: '14px',
+ fontFamily: 'monospace',
}}
onClick={() => {
if (isSelected) {
@@ -171,6 +172,7 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
backgroundColor: isSelected ? '#ff0' : 'background',
color: 'text',
fontSize: '14px',
+ fontFamily: 'monospace',
fontWeight: isSelected ? 700 : 400,
borderRadius: '6px',
px: 2,
@@ -300,6 +302,7 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
py: 0,
px: 2,
fontSize: '14px',
+ fontFamily: 'monospace',
bg: isSelected ? '#ff0' : 'background',
fontWeight: isSelected ? 700 : 400,
borderRadius: '6px',
From d6ddbe3b7b9489f0391f704099ad5e439dc001c1 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Mon, 29 Aug 2022 09:34:50 -0600
Subject: [PATCH 051/128] Send along options to stringify in tuple schema
---
.changeset/strange-wolves-explain.md | 5 +++++
packages/gui/src/components/schemas/tuple.tsx | 6 ++++--
2 files changed, 9 insertions(+), 2 deletions(-)
create mode 100644 .changeset/strange-wolves-explain.md
diff --git a/.changeset/strange-wolves-explain.md b/.changeset/strange-wolves-explain.md
new file mode 100644
index 00000000..ac8a921f
--- /dev/null
+++ b/.changeset/strange-wolves-explain.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Send along options to stringify in tuple schema
diff --git a/packages/gui/src/components/schemas/tuple.tsx b/packages/gui/src/components/schemas/tuple.tsx
index 83608a73..4f3c3b6e 100644
--- a/packages/gui/src/components/schemas/tuple.tsx
+++ b/packages/gui/src/components/schemas/tuple.tsx
@@ -37,9 +37,11 @@ export function tupleSchema({
? [itemSchema.defaultValue]
: labels.map(() => itemSchema.defaultValue)
- function stringify(value: T[]) {
+ function stringify(value: T[], ...args: any[]) {
return (
- value?.map((item) => itemSchema.stringify(item)).join(separator) ?? null
+ value
+ ?.map((item) => itemSchema.stringify(item, ...args))
+ .join(separator) ?? null
)
}
From 22eb41c92ee24a17053d77b0837c0c3ca6e3d016 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Mon, 29 Aug 2022 15:37:10 +0000
Subject: [PATCH 052/128] Version Packages
---
.changeset/eight-suns-search.md | 5 -----
.changeset/strange-wolves-explain.md | 5 -----
packages/gui/CHANGELOG.md | 7 +++++++
packages/gui/package.json | 2 +-
4 files changed, 8 insertions(+), 11 deletions(-)
delete mode 100644 .changeset/eight-suns-search.md
delete mode 100644 .changeset/strange-wolves-explain.md
diff --git a/.changeset/eight-suns-search.md b/.changeset/eight-suns-search.md
deleted file mode 100644
index 5d5b32c7..00000000
--- a/.changeset/eight-suns-search.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Fix inconsistent typefaces
diff --git a/.changeset/strange-wolves-explain.md b/.changeset/strange-wolves-explain.md
deleted file mode 100644
index ac8a921f..00000000
--- a/.changeset/strange-wolves-explain.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Send along options to stringify in tuple schema
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 2f9317a0..1471f396 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,12 @@
# @compai/css-gui
+## 0.0.224
+
+### Patch Changes
+
+- 859ef100: Fix inconsistent typefaces
+- d6ddbe3b: Send along options to stringify in tuple schema
+
## 0.0.223
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 6bacbe17..a295f0a4 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.223",
+ "version": "0.0.224",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 603fbfed7bb0dae42a0c2fa997c322da98b99f62 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Mon, 29 Aug 2022 12:05:00 -0600
Subject: [PATCH 053/128] Add an empty text node to prose elements
---
.changeset/green-tables-hunt.md | 5 +++++
.../gui/src/components/html/Editors/NodeEditor.tsx | 9 +++++++--
packages/gui/src/components/html/TreeNode.tsx | 12 ++++++++----
packages/gui/src/lib/elements.ts | 5 +++++
4 files changed, 25 insertions(+), 6 deletions(-)
create mode 100644 .changeset/green-tables-hunt.md
diff --git a/.changeset/green-tables-hunt.md b/.changeset/green-tables-hunt.md
new file mode 100644
index 00000000..19127677
--- /dev/null
+++ b/.changeset/green-tables-hunt.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Add an empty text node to prose elements
diff --git a/packages/gui/src/components/html/Editors/NodeEditor.tsx b/packages/gui/src/components/html/Editors/NodeEditor.tsx
index 877d50f3..009f2522 100644
--- a/packages/gui/src/components/html/Editors/NodeEditor.tsx
+++ b/packages/gui/src/components/html/Editors/NodeEditor.tsx
@@ -11,6 +11,7 @@ import { ComponentEditor } from '../Component'
import { SlotEditor } from './SlotEditor'
import { HTML_TAGS } from '../data'
import { useNodeTypes } from './util'
+import { isProseElement } from '../../../lib/elements'
interface EditorProps {
value: HtmlNode
@@ -196,12 +197,16 @@ function NodeSwitch({ value, onChange }: EditorProps) {
...defaultAttributes,
...(value.attributes || {}),
}
- onChange({
+ const fullValue = {
...value,
attributes: mergedAttributes,
tagName: selectedItem,
style: mergedStyles,
- })
+ }
+ if (isProseElement(selectedItem) && !fullValue.children?.length) {
+ fullValue.children = [{ type: 'text', value: '' }]
+ }
+ onChange(fullValue)
}}
items={HTML_TAGS}
value={value.tagName}
diff --git a/packages/gui/src/components/html/TreeNode.tsx b/packages/gui/src/components/html/TreeNode.tsx
index 6998b98f..2b26ca31 100644
--- a/packages/gui/src/components/html/TreeNode.tsx
+++ b/packages/gui/src/components/html/TreeNode.tsx
@@ -2,7 +2,7 @@ import { HtmlNode, ElementPath } from './types'
import * as Collapsible from '@radix-ui/react-collapsible'
import { useState } from 'react'
import { useHtmlEditor } from './Provider'
-import { isVoidElement } from '../../lib/elements'
+import { isProseElement, isVoidElement } from '../../lib/elements'
import { addChildAtPath, isSamePath, replaceAt } from './util'
import { hasChildrenSlot } from '../../lib/codegen/util'
import { Combobox } from '../primitives'
@@ -128,13 +128,17 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
...defaultAttributes,
...(value.attributes || {}),
}
- setEditing(false)
- onChange({
+ const fullValue = {
...value,
attributes: mergedAttributes,
tagName: selectedItem,
style: mergedStyles,
- })
+ }
+ if (isProseElement(selectedItem) && !fullValue.children?.length) {
+ fullValue.children = [{ type: 'text', value: '' }]
+ }
+ setEditing(false)
+ onChange(fullValue)
}}
items={HTML_TAGS}
value={value.tagName}
diff --git a/packages/gui/src/lib/elements.ts b/packages/gui/src/lib/elements.ts
index 6da8ab68..c0909266 100644
--- a/packages/gui/src/lib/elements.ts
+++ b/packages/gui/src/lib/elements.ts
@@ -7,3 +7,8 @@ export const isElement = (str: string): boolean => {
export const isVoidElement = (str: string): boolean => {
return !!voidElements.filter((el) => str === el).length
}
+
+const PROSE_ELEMENTS = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']
+export const isProseElement = (str: string): boolean => {
+ return PROSE_ELEMENTS.includes(str)
+}
From 0d462ec634cf51971a6d9ff08d8e7ee6cd68eeea Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Mon, 29 Aug 2022 18:06:48 +0000
Subject: [PATCH 054/128] Version Packages
---
.changeset/green-tables-hunt.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/green-tables-hunt.md
diff --git a/.changeset/green-tables-hunt.md b/.changeset/green-tables-hunt.md
deleted file mode 100644
index 19127677..00000000
--- a/.changeset/green-tables-hunt.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Add an empty text node to prose elements
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 1471f396..d3f46547 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.225
+
+### Patch Changes
+
+- 603fbfed: Add an empty text node to prose elements
+
## 0.0.224
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index a295f0a4..d7b0e6f9 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.224",
+ "version": "0.0.225",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 98b7d345eadabf1678cfa639a125cf323e75b016 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Mon, 29 Aug 2022 12:59:27 -0600
Subject: [PATCH 055/128] Fix regen for theme values
---
.changeset/nasty-meals-fold.md | 5 +++++
packages/gui/src/components/schemas/theme.tsx | 19 ++++++++++++++++++-
2 files changed, 23 insertions(+), 1 deletion(-)
create mode 100644 .changeset/nasty-meals-fold.md
diff --git a/.changeset/nasty-meals-fold.md b/.changeset/nasty-meals-fold.md
new file mode 100644
index 00000000..4739ec57
--- /dev/null
+++ b/.changeset/nasty-meals-fold.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Fix regen for theme values
diff --git a/packages/gui/src/components/schemas/theme.tsx b/packages/gui/src/components/schemas/theme.tsx
index 5e93bcf1..2f5dd882 100644
--- a/packages/gui/src/components/schemas/theme.tsx
+++ b/packages/gui/src/components/schemas/theme.tsx
@@ -1,9 +1,10 @@
import { useTheme } from '../providers/ThemeContext'
-import { get, range } from 'lodash-es'
+import { get, range, sample } from 'lodash-es'
import { ThemeNamedValue, ThemeValue } from '../../types/css'
import { SelectInput } from '../inputs/SelectInput'
import { DataTypeSchema } from './types'
import { joinPath } from '../providers/util'
+import { randomInt } from '../../lib/random'
export function themeScale(path: string): DataTypeSchema {
return {
@@ -19,6 +20,13 @@ export function themeScale(path: string): DataTypeSchema {
stringify(value, theme) {
return get(theme, joinPath(value.path, value.index))
},
+ regenerate(options) {
+ const scale = get(options.theme, options.previousValue.path)
+ return {
+ ...options.previousValue,
+ index: randomInt(0, scale.length),
+ }
+ },
inlineInput(props) {
const theme = useTheme()
const numOptions = get(theme, path)?.length || 0
@@ -64,6 +72,15 @@ export function themeRecord(path: string): DataTypeSchema {
stringify(value, theme) {
return get(theme, `${value.path}.${value.key}`)
},
+ regenerate(options) {
+ const records = get(options.theme, options.previousValue.path)
+ const paths = Object.keys(records || {})
+
+ return {
+ ...options.previousValue,
+ key: sample(paths) ?? '',
+ }
+ },
inlineInput(props) {
const theme = useTheme()
const options = Object.keys(get(theme, path))
From 6ff97c8e97a65fedf0a7995a971263a0d8251a4f Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Mon, 29 Aug 2022 19:02:16 +0000
Subject: [PATCH 056/128] Version Packages
---
.changeset/nasty-meals-fold.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/nasty-meals-fold.md
diff --git a/.changeset/nasty-meals-fold.md b/.changeset/nasty-meals-fold.md
deleted file mode 100644
index 4739ec57..00000000
--- a/.changeset/nasty-meals-fold.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Fix regen for theme values
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index d3f46547..802fc278 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.226
+
+### Patch Changes
+
+- 98b7d345: Fix regen for theme values
+
## 0.0.225
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index d7b0e6f9..81de2085 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.225",
+ "version": "0.0.226",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 8d69523733f1a9de3dcc9c5372db67df0ae19d3b Mon Sep 17 00:00:00 2001
From: John Otander
Date: Tue, 30 Aug 2022 10:54:45 -0600
Subject: [PATCH 057/128] Ignore colors with alpha in regen
---
.changeset/hot-dolphins-sneeze.md | 5 +++++
packages/gui/src/lib/color.ts | 17 +++++++++++++++++
2 files changed, 22 insertions(+)
create mode 100644 .changeset/hot-dolphins-sneeze.md
diff --git a/.changeset/hot-dolphins-sneeze.md b/.changeset/hot-dolphins-sneeze.md
new file mode 100644
index 00000000..2fdeab36
--- /dev/null
+++ b/.changeset/hot-dolphins-sneeze.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Ignore colors with alpha in regen
diff --git a/packages/gui/src/lib/color.ts b/packages/gui/src/lib/color.ts
index f10e5723..4ec37b4d 100644
--- a/packages/gui/src/lib/color.ts
+++ b/packages/gui/src/lib/color.ts
@@ -7,6 +7,7 @@ import {
sample,
} from 'lodash-es'
import getContrast from 'get-contrast'
+import * as culori from 'culori'
import { ThemeColor } from '../components/primitives/ColorPicker/PalettePicker'
import { RegenOptions } from '../components/schemas/types'
import { Color } from '../types/css'
@@ -77,6 +78,10 @@ export function randomColor({
const [path, value] = curr
try {
+ if (hasAlpha(value)) {
+ return acc
+ }
+
if (
getContrast.ratio(value, colorToContrastWith) >= CONTRAST_THRESHOLD
) {
@@ -101,6 +106,18 @@ export function randomHexColor() {
)
}
+export function hasAlpha(color: string) {
+ if (!isValidColor(color)) {
+ return false
+ }
+ const { alpha = 1 } = culori.parse(color)
+ return alpha !== 1
+}
+
+export function isValidColor(value: Color) {
+ return !!culori.parse(value)
+}
+
type Key = string | number
type KeyPath = Key[]
type Obj = Record
From 0834106b423d4cf7f6e98947f5b54c1dfb562a0b Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Tue, 30 Aug 2022 16:56:34 +0000
Subject: [PATCH 058/128] Version Packages
---
.changeset/hot-dolphins-sneeze.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/hot-dolphins-sneeze.md
diff --git a/.changeset/hot-dolphins-sneeze.md b/.changeset/hot-dolphins-sneeze.md
deleted file mode 100644
index 2fdeab36..00000000
--- a/.changeset/hot-dolphins-sneeze.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Ignore colors with alpha in regen
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 802fc278..eaae8e9f 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.227
+
+### Patch Changes
+
+- 8d695237: Ignore colors with alpha in regen
+
## 0.0.226
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 81de2085..ec73a495 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.226",
+ "version": "0.0.227",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 312acb382156260f63de2ca088513c16b802a38b Mon Sep 17 00:00:00 2001
From: John Otander
Date: Tue, 30 Aug 2022 11:23:10 -0600
Subject: [PATCH 059/128] Apply styles to text parent
---
.changeset/pretty-comics-rush.md | 5 +++++
packages/gui/src/components/html/Editor.tsx | 14 +++++++++++---
packages/gui/src/components/html/util.ts | 9 +++++++++
3 files changed, 25 insertions(+), 3 deletions(-)
create mode 100644 .changeset/pretty-comics-rush.md
diff --git a/.changeset/pretty-comics-rush.md b/.changeset/pretty-comics-rush.md
new file mode 100644
index 00000000..bf86454f
--- /dev/null
+++ b/.changeset/pretty-comics-rush.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Apply styles to text parent
diff --git a/packages/gui/src/components/html/Editor.tsx b/packages/gui/src/components/html/Editor.tsx
index 8fe8e520..ade90968 100644
--- a/packages/gui/src/components/html/Editor.tsx
+++ b/packages/gui/src/components/html/Editor.tsx
@@ -8,6 +8,7 @@ import { useTheme } from '../providers/ThemeContext'
import { NodeEditor } from './Editors/NodeEditor'
import { TreeNode } from './TreeNode'
import { Import } from './Import'
+import { isText } from '../../lib/codegen/util'
const TABS_TRIGGER_STYLES: any = {
all: 'unset',
@@ -61,6 +62,13 @@ export function HtmlEditor() {
const selected = providedSelected || []
const nodeValue = getChildAtPath(value, selected)
+ let nodeForStyleEditor = nodeValue
+ const stylePath = [...selected]
+ if (isText(nodeValue)) {
+ stylePath.pop()
+ nodeForStyleEditor = getChildAtPath(value, stylePath)
+ }
+
return (
{
- const newItem = { ...nodeValue, style: newStyles }
- onChange(setChildAtPath(value, selected, newItem))
+ const newItem = { ...nodeForStyleEditor, style: newStyles }
+ onChange(setChildAtPath(value, stylePath, newItem))
}}
showRegenerate
showAddProperties
diff --git a/packages/gui/src/components/html/util.ts b/packages/gui/src/components/html/util.ts
index df5bb2b3..47d60a81 100644
--- a/packages/gui/src/components/html/util.ts
+++ b/packages/gui/src/components/html/util.ts
@@ -45,6 +45,15 @@ export function getChildAtPath(element: HtmlNode, path: ElementPath): HtmlNode {
return getChildAtPath(child, rest)
}
+export function getParentAtPath(
+ element: HtmlNode,
+ path: ElementPath
+): HtmlNode {
+ const newPath = [...path]
+ newPath.pop()
+ return getChildAtPath(element, newPath)
+}
+
export function addChildAtPath(
element: HtmlNode,
path: ElementPath,
From 65b3e0f847dd9d35b991f04b85b5f093bceecc0c Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Tue, 30 Aug 2022 17:24:49 +0000
Subject: [PATCH 060/128] Version Packages
---
.changeset/pretty-comics-rush.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/pretty-comics-rush.md
diff --git a/.changeset/pretty-comics-rush.md b/.changeset/pretty-comics-rush.md
deleted file mode 100644
index bf86454f..00000000
--- a/.changeset/pretty-comics-rush.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Apply styles to text parent
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index eaae8e9f..8fff0c46 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.228
+
+### Patch Changes
+
+- 312acb38: Apply styles to text parent
+
## 0.0.227
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index ec73a495..00ff310d 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.227",
+ "version": "0.0.228",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From ab239862cb4de3fe824131acd331a92487becb26 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 1 Sep 2022 23:06:40 +0000
Subject: [PATCH 061/128] Bump copy-to-clipboard from 3.3.1 to 3.3.2
Bumps [copy-to-clipboard](https://github.com/sudodoki/copy-to-clipboard) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/sudodoki/copy-to-clipboard/releases)
- [Commits](https://github.com/sudodoki/copy-to-clipboard/compare/v3.3.1...v3.3.2)
---
updated-dependencies:
- dependency-name: copy-to-clipboard
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
packages/gui/package.json | 2 +-
yarn.lock | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 00ff310d..22264818 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -55,7 +55,7 @@
"@radix-ui/react-toggle": "^0.1.4",
"@radix-ui/react-tooltip": "^0.1.7",
"@use-gesture/react": "^10.2.17",
- "copy-to-clipboard": "^3.3.1",
+ "copy-to-clipboard": "^3.3.2",
"csstype": "^3.0.11",
"culori": "^2.0.3",
"downshift": "^6.1.7",
diff --git a/yarn.lock b/yarn.lock
index fbe13818..a5adc327 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3023,10 +3023,10 @@ copy-descriptor@^0.1.0:
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=
-copy-to-clipboard@^3.3.1:
- version "3.3.1"
- resolved "https://registry.yarnpkg.com/copy-to-clipboard/-/copy-to-clipboard-3.3.1.tgz#115aa1a9998ffab6196f93076ad6da3b913662ae"
- integrity sha512-i13qo6kIHTTpCm8/Wup+0b1mVWETvu2kIMzKoK8FpkLkFxlt0znUAHcMzox+T8sPlqtZXq3CulEjQHsYiGFJUw==
+copy-to-clipboard@^3.3.2:
+ version "3.3.2"
+ resolved "https://registry.yarnpkg.com/copy-to-clipboard/-/copy-to-clipboard-3.3.2.tgz#5b263ec2366224b100181dded7ce0579b340c107"
+ integrity sha512-Vme1Z6RUDzrb6xAI7EZlVZ5uvOk2F//GaxKUxajDqm9LhOVM1inxNAD2vy+UZDYsd0uyA9s7b3/FVZPSxqrCfg==
dependencies:
toggle-selection "^1.0.6"
From 5bd696b4571310c1882d1e5458c6388e777b920b Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 1 Sep 2022 23:09:40 +0000
Subject: [PATCH 062/128] Bump tsup from 6.1.3 to 6.2.3
Bumps [tsup](https://github.com/egoist/tsup) from 6.1.3 to 6.2.3.
- [Release notes](https://github.com/egoist/tsup/releases)
- [Changelog](https://github.com/egoist/tsup/blob/dev/.releaserc.json)
- [Commits](https://github.com/egoist/tsup/compare/v6.1.3...v6.2.3)
---
updated-dependencies:
- dependency-name: tsup
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
package.json | 2 +-
yarn.lock | 274 ++++++++++++++++++++++++++-------------------------
2 files changed, 141 insertions(+), 135 deletions(-)
diff --git a/package.json b/package.json
index 5c00fe2c..b35be8b8 100644
--- a/package.json
+++ b/package.json
@@ -34,7 +34,7 @@
"@changesets/cli": "^2.23.2",
"@manypkg/cli": "^0.19.1",
"prettier": "^2.7.1",
- "tsup": "^6.1.3",
+ "tsup": "^6.2.3",
"turbo": "^1.3.1"
}
}
diff --git a/yarn.lock b/yarn.lock
index fbe13818..17e736fb 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -626,6 +626,11 @@
resolved "https://registry.yarnpkg.com/@emotion/weak-memoize/-/weak-memoize-0.2.5.tgz#8eed982e2ee6f7f4e44c253e12962980791efd46"
integrity sha512-6U71C2Wp7r5XtFtQzYrW5iKFT67OixrSxjI4MptCHzdSVlgabczzqLe0ZSgnub/5Kp4hSbpDB1tMytZY9pwxxA==
+"@esbuild/linux-loong64@0.15.6":
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.15.6.tgz#45be4184f00e505411bc265a05e709764114acd8"
+ integrity sha512-hqmVU2mUjH6J2ZivHphJ/Pdse2ZD+uGCHK0uvsiLDk/JnSedEVj77CiVUnbMKuU4tih1TZZL8tG9DExQg/GZsw==
+
"@eslint/eslintrc@^1.3.0":
version "1.3.0"
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.3.0.tgz#29f92c30bb3e771e4a2048c95fa6855392dfac4f"
@@ -2733,10 +2738,10 @@ builtins@^1.0.3:
resolved "https://registry.yarnpkg.com/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88"
integrity sha1-y5T662HIaWRR2zZTThQi+U8K7og=
-bundle-require@^3.0.2:
- version "3.0.4"
- resolved "https://registry.yarnpkg.com/bundle-require/-/bundle-require-3.0.4.tgz#2b52ba77d99c0a586b5854cd21d36954e63cc110"
- integrity sha512-VXG6epB1yrLAvWVQpl92qF347/UXmncQj7J3U8kZEbdVZ1ZkQyr4hYeL/9RvcE8vVVdp53dY78Fd/3pqfRqI1A==
+bundle-require@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/bundle-require/-/bundle-require-3.1.0.tgz#e07256ff02c72cd3a665afa84ce930d111ae4252"
+ integrity sha512-IIXtAO7fKcwPHNPt9kY/WNVJqy7NDy6YqJvv6ENH0TOZoJ+yjpEsn1w40WKZbR2ibfu5g1rfgJTvmFHpm5aOMA==
dependencies:
load-tsconfig "^0.2.0"
@@ -3491,131 +3496,132 @@ es-to-primitive@^1.2.1:
is-date-object "^1.0.1"
is-symbol "^1.0.2"
-esbuild-android-64@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-android-64/-/esbuild-android-64-0.14.36.tgz#fc5f95ce78c8c3d790fa16bc71bd904f2bb42aa1"
- integrity sha512-jwpBhF1jmo0tVCYC/ORzVN+hyVcNZUWuozGcLHfod0RJCedTDTvR4nwlTXdx1gtncDqjk33itjO+27OZHbiavw==
-
-esbuild-android-arm64@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.14.36.tgz#44356fbb9f8de82a5cdf11849e011dfb3ad0a8a8"
- integrity sha512-/hYkyFe7x7Yapmfv4X/tBmyKnggUmdQmlvZ8ZlBnV4+PjisrEhAvC3yWpURuD9XoB8Wa1d5dGkTsF53pIvpjsg==
-
-esbuild-darwin-64@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.14.36.tgz#3d9324b21489c70141665c2e740d6e84f16f725d"
- integrity sha512-kkl6qmV0dTpyIMKagluzYqlc1vO0ecgpviK/7jwPbRDEv5fejRTaBBEE2KxEQbTHcLhiiDbhG7d5UybZWo/1zQ==
-
-esbuild-darwin-arm64@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.36.tgz#2a8040c2e465131e5281034f3c72405e643cb7b2"
- integrity sha512-q8fY4r2Sx6P0Pr3VUm//eFYKVk07C5MHcEinU1BjyFnuYz4IxR/03uBbDwluR6ILIHnZTE7AkTUWIdidRi1Jjw==
-
-esbuild-freebsd-64@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.36.tgz#d82c387b4d01fe9e8631f97d41eb54f2dbeb68a3"
- integrity sha512-Hn8AYuxXXRptybPqoMkga4HRFE7/XmhtlQjXFHoAIhKUPPMeJH35GYEUWGbjteai9FLFvBAjEAlwEtSGxnqWww==
-
-esbuild-freebsd-arm64@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.36.tgz#e8ce2e6c697da6c7ecd0cc0ac821d47c5ab68529"
- integrity sha512-S3C0attylLLRiCcHiJd036eDEMOY32+h8P+jJ3kTcfhJANNjP0TNBNL30TZmEdOSx/820HJFgRrqpNAvTbjnDA==
-
-esbuild-linux-32@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.14.36.tgz#a4a261e2af91986ea62451f2db712a556cb38a15"
- integrity sha512-Eh9OkyTrEZn9WGO4xkI3OPPpUX7p/3QYvdG0lL4rfr73Ap2HAr6D9lP59VMF64Ex01LhHSXwIsFG/8AQjh6eNw==
-
-esbuild-linux-64@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.14.36.tgz#4a9500f9197e2c8fcb884a511d2c9d4c2debde72"
- integrity sha512-vFVFS5ve7PuwlfgoWNyRccGDi2QTNkQo/2k5U5ttVD0jRFaMlc8UQee708fOZA6zTCDy5RWsT5MJw3sl2X6KDg==
-
-esbuild-linux-arm64@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.36.tgz#c91c21e25b315464bd7da867365dd1dae14ca176"
- integrity sha512-24Vq1M7FdpSmaTYuu1w0Hdhiqkbto1I5Pjyi+4Cdw5fJKGlwQuw+hWynTcRI/cOZxBcBpP21gND7W27gHAiftw==
-
-esbuild-linux-arm@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.14.36.tgz#90e23bca2e6e549affbbe994f80ba3bb6c4d934a"
- integrity sha512-NhgU4n+NCsYgt7Hy61PCquEz5aevI6VjQvxwBxtxrooXsxt5b2xtOUXYZe04JxqQo+XZk3d1gcr7pbV9MAQ/Lg==
-
-esbuild-linux-mips64le@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.36.tgz#40e11afb08353ff24709fc89e4db0f866bc131d2"
- integrity sha512-hZUeTXvppJN+5rEz2EjsOFM9F1bZt7/d2FUM1lmQo//rXh1RTFYzhC0txn7WV0/jCC7SvrGRaRz0NMsRPf8SIA==
-
-esbuild-linux-ppc64le@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.36.tgz#9e8a588c513d06cc3859f9dcc52e5fdfce8a1a5e"
- integrity sha512-1Bg3QgzZjO+QtPhP9VeIBhAduHEc2kzU43MzBnMwpLSZ890azr4/A9Dganun8nsqD/1TBcqhId0z4mFDO8FAvg==
-
-esbuild-linux-riscv64@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.36.tgz#e578c09b23b3b97652e60e3692bfda628b541f06"
- integrity sha512-dOE5pt3cOdqEhaufDRzNCHf5BSwxgygVak9UR7PH7KPVHwSTDAZHDoEjblxLqjJYpc5XaU9+gKJ9F8mp9r5I4A==
-
-esbuild-linux-s390x@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.36.tgz#3c9dab40d0d69932ffded0fd7317bb403626c9bc"
- integrity sha512-g4FMdh//BBGTfVHjF6MO7Cz8gqRoDPzXWxRvWkJoGroKA18G9m0wddvPbEqcQf5Tbt2vSc1CIgag7cXwTmoTXg==
-
-esbuild-netbsd-64@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.36.tgz#e27847f6d506218291619b8c1e121ecd97628494"
- integrity sha512-UB2bVImxkWk4vjnP62ehFNZ73lQY1xcnL5ZNYF3x0AG+j8HgdkNF05v67YJdCIuUJpBuTyCK8LORCYo9onSW+A==
-
-esbuild-openbsd-64@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.36.tgz#c94c04c557fae516872a586eae67423da6d2fabb"
- integrity sha512-NvGB2Chf8GxuleXRGk8e9zD3aSdRO5kLt9coTQbCg7WMGXeX471sBgh4kSg8pjx0yTXRt0MlrUDnjVYnetyivg==
-
-esbuild-sunos-64@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.14.36.tgz#9b79febc0df65a30f1c9bd63047d1675511bf99d"
- integrity sha512-VkUZS5ftTSjhRjuRLp+v78auMO3PZBXu6xl4ajomGenEm2/rGuWlhFSjB7YbBNErOchj51Jb2OK8lKAo8qdmsQ==
-
-esbuild-windows-32@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.14.36.tgz#910d11936c8d2122ffdd3275e5b28d8a4e1240ec"
- integrity sha512-bIar+A6hdytJjZrDxfMBUSEHHLfx3ynoEZXx/39nxy86pX/w249WZm8Bm0dtOAByAf4Z6qV0LsnTIJHiIqbw0w==
-
-esbuild-windows-64@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.14.36.tgz#21b4ce8b42a4efc63f4b58ec617f1302448aad26"
- integrity sha512-+p4MuRZekVChAeueT1Y9LGkxrT5x7YYJxYE8ZOTcEfeUUN43vktSn6hUNsvxzzATrSgq5QqRdllkVBxWZg7KqQ==
-
-esbuild-windows-arm64@0.14.36:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.36.tgz#ba21546fecb7297667d0052d00150de22c044b24"
- integrity sha512-fBB4WlDqV1m18EF/aheGYQkQZHfPHiHJSBYzXIo8yKehek+0BtBwo/4PNwKGJ5T0YK0oc8pBKjgwPbzSrPLb+Q==
-
-esbuild@^0.14.25:
- version "0.14.36"
- resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.14.36.tgz#0023a73eab57886ac5605df16ee421e471a971b3"
- integrity sha512-HhFHPiRXGYOCRlrhpiVDYKcFJRdO0sBElZ668M4lh2ER0YgnkLxECuFe7uWCf23FrcLc59Pqr7dHkTqmRPDHmw==
+esbuild-android-64@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-android-64/-/esbuild-android-64-0.15.6.tgz#baaed943ca510c2ad546e116728132e76d1d2044"
+ integrity sha512-Z1CHSgB1crVQi2LKSBwSkpaGtaloVz0ZIYcRMsvHc3uSXcR/x5/bv9wcZspvH/25lIGTaViosciS/NS09ERmVA==
+
+esbuild-android-arm64@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.15.6.tgz#1c33c73d4c074969e014e31958116460c8e75a7a"
+ integrity sha512-mvM+gqNxqKm2pCa3dnjdRzl7gIowuc4ga7P7c3yHzs58Im8v/Lfk1ixSgQ2USgIywT48QWaACRa3F4MG7djpSw==
+
+esbuild-darwin-64@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.15.6.tgz#388592ba61bf31993d79f6311f7452aa1ef255b9"
+ integrity sha512-BsfVt3usScAfGlXJiGtGamwVEOTM8AiYiw1zqDWhGv6BncLXCnTg1As+90mxWewdTZKq3iIy8s9g8CKkrrAXVw==
+
+esbuild-darwin-arm64@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.6.tgz#194e987849dc4688654008a1792f26e948f52e74"
+ integrity sha512-CnrAeJaEpPakUobhqO4wVSA4Zm6TPaI5UY4EsI62j9mTrjIyQPXA1n4Ju6Iu5TVZRnEqV6q8blodgYJ6CJuwCA==
+
+esbuild-freebsd-64@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.6.tgz#daa72faee585ec2ec27cc65e86a6ce0786373e66"
+ integrity sha512-+qFdmqi+jkAsxsNJkaWVrnxEUUI50nu6c3MBVarv3RCDCbz7ZS1a4ZrdkwEYFnKcVWu6UUE0Kkb1SQ1yGEG6sg==
+
+esbuild-freebsd-arm64@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.6.tgz#70c8a2a30bf6bb9d547a0d8dc93aa015ec4f77f9"
+ integrity sha512-KtQkQOhnNciXm2yrTYZMD3MOm2zBiiwFSU+dkwNbcfDumzzUprr1x70ClTdGuZwieBS1BM/k0KajRQX7r504Xw==
+
+esbuild-linux-32@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.15.6.tgz#d69ed2335b2d68c00b3248254b432172077b7ced"
+ integrity sha512-IAkDNz3TpxwISTGVdQijwyHBZrbFgLlRi5YXcvaEHtgbmayLSDcJmH5nV1MFgo/x2QdKcHBkOYHdjhKxUAcPwg==
+
+esbuild-linux-64@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.15.6.tgz#dca821e8f129cccde23ac947fd0d4bea3b333808"
+ integrity sha512-gQPksyrEYfA4LJwyfTQWAZaVZCx4wpaLrSzo2+Xc9QLC+i/sMWmX31jBjrn4nLJCd79KvwCinto36QC7BEIU/A==
+
+esbuild-linux-arm64@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.6.tgz#c9e8bc86f3c58a7c8ff1ded5880c6a39ade7621b"
+ integrity sha512-aovDkclFa6C9EdZVBuOXxqZx83fuoq8097xZKhEPSygwuy4Lxs8J4anHG7kojAsR+31lfUuxzOo2tHxv7EiNHA==
+
+esbuild-linux-arm@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.15.6.tgz#354ecad0223f5b176995cf4462560eec2633de24"
+ integrity sha512-xZ0Bq2aivsthDjA/ytQZzxrxIZbG0ATJYMJxNeOIBc1zUjpbVpzBKgllOZMsTSXMHFHGrow6TnCcgwqY0+oEoQ==
+
+esbuild-linux-mips64le@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.6.tgz#f4fb941a4ff0af437deed69a2e0712983c8fff3e"
+ integrity sha512-wVpW8wkWOGizsCqCwOR/G3SHwhaecpGy3fic9BF1r7vq4djLjUcA8KunDaBCjJ6TgLQFhJ98RjDuyEf8AGjAvw==
+
+esbuild-linux-ppc64le@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.6.tgz#19774a8b52c77173f2d4f171b8a8cf839b12e686"
+ integrity sha512-z6w6gsPH/Y77uchocluDC8tkCg9rfkcPTePzZKNr879bF4tu7j9t255wuNOCE396IYEGxY7y8u2HJ9i7kjCLVw==
+
+esbuild-linux-riscv64@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.6.tgz#66bd83b065c4a1e623df02c122bc7e4e15fd8486"
+ integrity sha512-pfK/3MJcmbfU399TnXW5RTPS1S+ID6ra+CVj9TFZ2s0q9Ja1F5A1VirUUvViPkjiw+Kq3zveyn6U09Wg1zJXrw==
+
+esbuild-linux-s390x@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.6.tgz#1e024bddc75afe8dc70ed48fc9627af770d7f34b"
+ integrity sha512-OZeeDu32liefcwAE63FhVqM4heWTC8E3MglOC7SK0KYocDdY/6jyApw0UDkDHlcEK9mW6alX/SH9r3PDjcCo/Q==
+
+esbuild-netbsd-64@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.6.tgz#c11477d197f059c8794ee1691e3399201f7c4b9a"
+ integrity sha512-kaxw61wcHMyiEsSsi5ut1YYs/hvTC2QkxJwyRvC2Cnsz3lfMLEu8zAjpBKWh9aU/N0O/gsRap4wTur5GRuSvBA==
+
+esbuild-openbsd-64@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.6.tgz#b29e7faed5b8d2aeaf3884c47c1a96b1cba8e263"
+ integrity sha512-CuoY60alzYfIZapUHqFXqXbj88bbRJu8Fp9okCSHRX2zWIcGz4BXAHXiG7dlCye5nFVrY72psesLuWdusyf2qw==
+
+esbuild-sunos-64@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.15.6.tgz#9668f39e47179f50c0435040904b9c6e10e84a70"
+ integrity sha512-1ceefLdPWcd1nW/ZLruPEYxeUEAVX0YHbG7w+BB4aYgfknaLGotI/ZvPWUZpzhC8l1EybrVlz++lm3E6ODIJOg==
+
+esbuild-windows-32@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.15.6.tgz#9ddcd56e3c4fb9729a218c713c4e76bdbc1678b4"
+ integrity sha512-pBqdOsKqCD5LRYiwF29PJRDJZi7/Wgkz46u3d17MRFmrLFcAZDke3nbdDa1c8YgY78RiemudfCeAemN8EBlIpA==
+
+esbuild-windows-64@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.15.6.tgz#1eaadeadfd995e9d065d35cb3e9f02607202f339"
+ integrity sha512-KpPOh4aTOo//g9Pk2oVAzXMpc9Sz9n5A9sZTmWqDSXCiiachfFhbuFlsKBGATYCVitXfmBIJ4nNYYWSOdz4hQg==
+
+esbuild-windows-arm64@0.15.6:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.6.tgz#e18a778d354fc2ca2306688f3fedad8a3e57819e"
+ integrity sha512-DB3G2x9OvFEa00jV+OkDBYpufq5x/K7a6VW6E2iM896DG4ZnAvJKQksOsCPiM1DUaa+DrijXAQ/ZOcKAqf/3Hg==
+
+esbuild@^0.15.1:
+ version "0.15.6"
+ resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.15.6.tgz#626e5941b98de506b862047be3c4b33f89278923"
+ integrity sha512-sgLOv3l4xklvXzzczhRwKRotyrfyZ2i1fCS6PTOLPd9wevDPArGU8HFtHrHCOcsMwTjLjzGm15gvC8uxVzQf+w==
optionalDependencies:
- esbuild-android-64 "0.14.36"
- esbuild-android-arm64 "0.14.36"
- esbuild-darwin-64 "0.14.36"
- esbuild-darwin-arm64 "0.14.36"
- esbuild-freebsd-64 "0.14.36"
- esbuild-freebsd-arm64 "0.14.36"
- esbuild-linux-32 "0.14.36"
- esbuild-linux-64 "0.14.36"
- esbuild-linux-arm "0.14.36"
- esbuild-linux-arm64 "0.14.36"
- esbuild-linux-mips64le "0.14.36"
- esbuild-linux-ppc64le "0.14.36"
- esbuild-linux-riscv64 "0.14.36"
- esbuild-linux-s390x "0.14.36"
- esbuild-netbsd-64 "0.14.36"
- esbuild-openbsd-64 "0.14.36"
- esbuild-sunos-64 "0.14.36"
- esbuild-windows-32 "0.14.36"
- esbuild-windows-64 "0.14.36"
- esbuild-windows-arm64 "0.14.36"
+ "@esbuild/linux-loong64" "0.15.6"
+ esbuild-android-64 "0.15.6"
+ esbuild-android-arm64 "0.15.6"
+ esbuild-darwin-64 "0.15.6"
+ esbuild-darwin-arm64 "0.15.6"
+ esbuild-freebsd-64 "0.15.6"
+ esbuild-freebsd-arm64 "0.15.6"
+ esbuild-linux-32 "0.15.6"
+ esbuild-linux-64 "0.15.6"
+ esbuild-linux-arm "0.15.6"
+ esbuild-linux-arm64 "0.15.6"
+ esbuild-linux-mips64le "0.15.6"
+ esbuild-linux-ppc64le "0.15.6"
+ esbuild-linux-riscv64 "0.15.6"
+ esbuild-linux-s390x "0.15.6"
+ esbuild-netbsd-64 "0.15.6"
+ esbuild-openbsd-64 "0.15.6"
+ esbuild-sunos-64 "0.15.6"
+ esbuild-windows-32 "0.15.6"
+ esbuild-windows-64 "0.15.6"
+ esbuild-windows-arm64 "0.15.6"
escalade@^3.1.1:
version "3.1.1"
@@ -8303,16 +8309,16 @@ tslib@^2.0.0, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.4.0:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"
integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==
-tsup@^6.1.3:
- version "6.1.3"
- resolved "https://registry.yarnpkg.com/tsup/-/tsup-6.1.3.tgz#830e61bd823300f4690b2b2f79fc58131744551c"
- integrity sha512-eRpBnbfpDFng+EJNTQ90N7QAf4HAGGC7O3buHIjroKWK7D1ibk9/YnR/3cS8HsMU5T+6Oi+cnF+yU5WmCnB//Q==
+tsup@^6.2.3:
+ version "6.2.3"
+ resolved "https://registry.yarnpkg.com/tsup/-/tsup-6.2.3.tgz#87f57b2e53d49f1c1ab89aba21fed96aaab0ec9f"
+ integrity sha512-J5Pu2Dx0E1wlpIEsVFv9ryzP1pZ1OYsJ2cBHZ7GrKteytNdzaSz5hmLX7/nAxtypq+jVkVvA79d7S83ETgHQ5w==
dependencies:
- bundle-require "^3.0.2"
+ bundle-require "^3.1.0"
cac "^6.7.12"
chokidar "^3.5.1"
debug "^4.3.1"
- esbuild "^0.14.25"
+ esbuild "^0.15.1"
execa "^5.0.0"
globby "^11.0.3"
joycon "^3.0.1"
From 25873d9720b0a19aa8326360781d557066d19835 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 1 Sep 2022 23:10:16 +0000
Subject: [PATCH 063/128] Bump @next/mdx from 12.2.0 to 12.2.5
Bumps [@next/mdx](https://github.com/vercel/next.js/tree/HEAD/packages/next-mdx) from 12.2.0 to 12.2.5.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/commits/v12.2.5/packages/next-mdx)
---
updated-dependencies:
- dependency-name: "@next/mdx"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
apps/docs/package.json | 2 +-
yarn.lock | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/apps/docs/package.json b/apps/docs/package.json
index d1a69ef6..5e79b90b 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -14,7 +14,7 @@
"@compai/logo": "^0.1.0",
"@emotion/react": "^11.9.0",
"@mdx-js/loader": "^2.1.2",
- "@next/mdx": "^12.2.0",
+ "@next/mdx": "^12.2.5",
"next": "12.2.4",
"react": "18.1.0",
"react-dom": "18.0.0",
diff --git a/yarn.lock b/yarn.lock
index fbe13818..abe5fbbc 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1023,10 +1023,10 @@
dependencies:
glob "7.1.7"
-"@next/mdx@^12.2.0":
- version "12.2.0"
- resolved "https://registry.yarnpkg.com/@next/mdx/-/mdx-12.2.0.tgz#de38207bc1150836c33455fa072afb55cdbbd194"
- integrity sha512-obWsgfD0/1+OOr4PMQlSal34uhIDxkFe9Db+LaFfRDbsmD8+gb0YevUOV5KBoleEHXfDku0WAPUUmPmDiAxu1w==
+"@next/mdx@^12.2.5":
+ version "12.2.5"
+ resolved "https://registry.yarnpkg.com/@next/mdx/-/mdx-12.2.5.tgz#f88743cad222c53bf1648ce15d22e9a49a4c5bc4"
+ integrity sha512-b4gDNNvlt1Icf9D+nMzc66Tn1ei4lYRUFjwjWdCgdQFCo2ahKl+/f4R/g958KGzZMFmmXBJ7JIfzeAqgPv7TsA==
"@next/swc-android-arm-eabi@12.2.4":
version "12.2.4"
From 42d9ed1fcb5dc71063e6f7ac7d316657856febbc Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 1 Sep 2022 23:10:41 +0000
Subject: [PATCH 064/128] Bump @radix-ui/react-slider from 0.1.4 to 1.0.0
Bumps [@radix-ui/react-slider](https://github.com/radix-ui/primitives) from 0.1.4 to 1.0.0.
- [Release notes](https://github.com/radix-ui/primitives/releases)
- [Changelog](https://github.com/radix-ui/primitives/blob/main/release-process.md)
- [Commits](https://github.com/radix-ui/primitives/commits)
---
updated-dependencies:
- dependency-name: "@radix-ui/react-slider"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot]
---
packages/gui/package.json | 2 +-
yarn.lock | 44 +++++++++++++++++++--------------------
2 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 00ff310d..f8286174 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -49,7 +49,7 @@
"@radix-ui/react-label": "^0.1.5",
"@radix-ui/react-popover": "^1.0.0",
"@radix-ui/react-select": "^0.1.1",
- "@radix-ui/react-slider": "^0.1.4",
+ "@radix-ui/react-slider": "^1.0.0",
"@radix-ui/react-switch": "^1.0.0",
"@radix-ui/react-tabs": "^0.1.5",
"@radix-ui/react-toggle": "^0.1.4",
diff --git a/yarn.lock b/yarn.lock
index fbe13818..cea5782a 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1126,6 +1126,13 @@
dependencies:
"@babel/runtime" "^7.13.10"
+"@radix-ui/number@1.0.0":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/number/-/number-1.0.0.tgz#4c536161d0de750b3f5d55860fc3de46264f897b"
+ integrity sha512-Ofwh/1HX69ZfJRiRBMTy7rgjAzHmwe4kW9C9Y99HTRUcYLUuVT0KESFj15rPjRgKJs20GPq8Bm5aEDJ8DuA3vA==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+
"@radix-ui/popper@0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@radix-ui/popper/-/popper-0.1.0.tgz#c387a38f31b7799e1ea0d2bb1ca0c91c2931b063"
@@ -1540,23 +1547,23 @@
aria-hidden "^1.1.1"
react-remove-scroll "^2.4.0"
-"@radix-ui/react-slider@^0.1.4":
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/@radix-ui/react-slider/-/react-slider-0.1.4.tgz#a7b7a480ee00158195794b08cd3f1583cf102518"
- integrity sha512-0z3bCcdrAi+FIcoLXS6r0ESVWuuyMnUJoCsFm7tC7Rtv95x34YtaI8YfSyQmzuMVS4rTsNtCCTZ/s727uRaVkQ==
+"@radix-ui/react-slider@^1.0.0":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-slider/-/react-slider-1.0.0.tgz#4cabadd243aa088eb45ac710cd7cdc518fafb07e"
+ integrity sha512-LMZET7vn7HYwYSjsc9Jcen8Vn4cJXZZxQT7T+lGlqp+F+FofX+H86TBF2yDq+L51d99f1KLEsflTGBz9WRLSig==
dependencies:
"@babel/runtime" "^7.13.10"
- "@radix-ui/number" "0.1.0"
- "@radix-ui/primitive" "0.1.0"
- "@radix-ui/react-collection" "0.1.4"
- "@radix-ui/react-compose-refs" "0.1.0"
- "@radix-ui/react-context" "0.1.1"
- "@radix-ui/react-primitive" "0.1.4"
- "@radix-ui/react-use-controllable-state" "0.1.0"
- "@radix-ui/react-use-direction" "0.1.0"
- "@radix-ui/react-use-layout-effect" "0.1.0"
- "@radix-ui/react-use-previous" "0.1.1"
- "@radix-ui/react-use-size" "0.1.1"
+ "@radix-ui/number" "1.0.0"
+ "@radix-ui/primitive" "1.0.0"
+ "@radix-ui/react-collection" "1.0.0"
+ "@radix-ui/react-compose-refs" "1.0.0"
+ "@radix-ui/react-context" "1.0.0"
+ "@radix-ui/react-direction" "1.0.0"
+ "@radix-ui/react-primitive" "1.0.0"
+ "@radix-ui/react-use-controllable-state" "1.0.0"
+ "@radix-ui/react-use-layout-effect" "1.0.0"
+ "@radix-ui/react-use-previous" "1.0.0"
+ "@radix-ui/react-use-size" "1.0.0"
"@radix-ui/react-slot@0.1.2":
version "0.1.2"
@@ -1671,13 +1678,6 @@
"@babel/runtime" "^7.13.10"
"@radix-ui/react-use-callback-ref" "1.0.0"
-"@radix-ui/react-use-direction@0.1.0":
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/@radix-ui/react-use-direction/-/react-use-direction-0.1.0.tgz#97ac1d52e497c974389e7988f809238ed72e7df7"
- integrity sha512-NajpY/An9TCPSfOVkgWIdXJV+VuWl67PxB6kOKYmtNAFHvObzIoh8o0n9sAuwSAyFCZVq211FEf9gvVDRhOyiA==
- dependencies:
- "@babel/runtime" "^7.13.10"
-
"@radix-ui/react-use-escape-keydown@0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-0.1.0.tgz#dc80cb3753e9d1bd992adbad9a149fb6ea941874"
From 26726f33ef2ac350274de9b8d2ced41652347ff4 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Fri, 2 Sep 2022 13:04:26 -0700
Subject: [PATCH 065/128] Changes visual styles for larger tap targets and more
consistency
---
.../gui/src/components/Editor/Controls.tsx | 4 ++-
.../src/components/html/Component/Editor.tsx | 13 +++++---
.../components/html/Editors/NodeEditor.tsx | 3 +-
.../ui/dropdowns/FieldsetDropdown.tsx | 25 ++++++++++----
.../ui/dropdowns/NodeEditorDropdown.tsx | 33 ++++++++++++++-----
5 files changed, 56 insertions(+), 22 deletions(-)
diff --git a/packages/gui/src/components/Editor/Controls.tsx b/packages/gui/src/components/Editor/Controls.tsx
index 3997f79c..1dee123e 100644
--- a/packages/gui/src/components/Editor/Controls.tsx
+++ b/packages/gui/src/components/Editor/Controls.tsx
@@ -338,11 +338,13 @@ const FieldsetControl = ({ field }: FieldsetControlProps) => {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
+ mt: 3,
mb: 2,
}}
>
{
removeField(field)} />
-
+
{
items={componentIds}
/>
{value.swappableComponentIds?.length ? (
-
+
+
+
) : null}
diff --git a/packages/gui/src/components/html/Editors/NodeEditor.tsx b/packages/gui/src/components/html/Editors/NodeEditor.tsx
index 009f2522..0ac5e815 100644
--- a/packages/gui/src/components/html/Editors/NodeEditor.tsx
+++ b/packages/gui/src/components/html/Editors/NodeEditor.tsx
@@ -43,7 +43,8 @@ export function NodeEditor({
{
-
+
diff --git a/packages/gui/src/components/ui/dropdowns/NodeEditorDropdown.tsx b/packages/gui/src/components/ui/dropdowns/NodeEditorDropdown.tsx
index 5f00d519..ae1febe6 100644
--- a/packages/gui/src/components/ui/dropdowns/NodeEditorDropdown.tsx
+++ b/packages/gui/src/components/ui/dropdowns/NodeEditorDropdown.tsx
@@ -1,6 +1,7 @@
import * as DropdownMenu from '@radix-ui/react-dropdown-menu'
import { Copy, Plus, MoreVertical, Trash } from 'react-feather'
import { DROPDOWN_ITEM_STYLES, DROPDOWN_STYLES } from './styles'
+import IconButton from '../IconButton'
type NodeEditorDropdownProps = {
onRemove(): void
@@ -15,16 +16,30 @@ export const NodeEditorDropdown = ({
return (
-
+
From 5770da6906f01311d99fc926610b424b1611424e Mon Sep 17 00:00:00 2001
From: John Otander
Date: Fri, 2 Sep 2022 14:23:57 -0600
Subject: [PATCH 066/128] Add changeset
---
.changeset/nice-ducks-attend.md | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 .changeset/nice-ducks-attend.md
diff --git a/.changeset/nice-ducks-attend.md b/.changeset/nice-ducks-attend.md
new file mode 100644
index 00000000..7ce2e42e
--- /dev/null
+++ b/.changeset/nice-ducks-attend.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Improve tap targets and spacing
From fad499cc8b3276ed77814b02f5628eb9c23737e3 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Fri, 2 Sep 2022 20:24:44 +0000
Subject: [PATCH 067/128] Version Packages
---
.changeset/nice-ducks-attend.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/nice-ducks-attend.md
diff --git a/.changeset/nice-ducks-attend.md b/.changeset/nice-ducks-attend.md
deleted file mode 100644
index 7ce2e42e..00000000
--- a/.changeset/nice-ducks-attend.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Improve tap targets and spacing
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 8fff0c46..12ca9c1c 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.229
+
+### Patch Changes
+
+- 5770da69: Improve tap targets and spacing
+
## 0.0.228
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 00ff310d..b0381816 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.228",
+ "version": "0.0.229",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 0846769d6e146fff63d9f45bd48af29708c6af57 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Fri, 2 Sep 2022 14:32:36 -0600
Subject: [PATCH 068/128] Fix color label overflow
---
.changeset/flat-jars-agree.md | 5 +++++
.../src/components/primitives/ColorPicker/PalettePicker.tsx | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
create mode 100644 .changeset/flat-jars-agree.md
diff --git a/.changeset/flat-jars-agree.md b/.changeset/flat-jars-agree.md
new file mode 100644
index 00000000..4ef1080a
--- /dev/null
+++ b/.changeset/flat-jars-agree.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Fix color label overflow
diff --git a/packages/gui/src/components/primitives/ColorPicker/PalettePicker.tsx b/packages/gui/src/components/primitives/ColorPicker/PalettePicker.tsx
index 01c14a22..a525776d 100644
--- a/packages/gui/src/components/primitives/ColorPicker/PalettePicker.tsx
+++ b/packages/gui/src/components/primitives/ColorPicker/PalettePicker.tsx
@@ -43,7 +43,7 @@ export default function PalettePopover({
border: '1px solid',
borderColor: 'border',
borderRadius: '0.25rem',
- width: 'max-content',
+ maxWidth: '200px',
fontSize: '0.875rem',
textOverflow: 'ellipsis',
overflow: 'hidden',
From 6ab32007ec763b9f7b9b682d21aff10cd7f7fcdb Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Fri, 2 Sep 2022 20:33:35 +0000
Subject: [PATCH 069/128] Version Packages
---
.changeset/flat-jars-agree.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/flat-jars-agree.md
diff --git a/.changeset/flat-jars-agree.md b/.changeset/flat-jars-agree.md
deleted file mode 100644
index 4ef1080a..00000000
--- a/.changeset/flat-jars-agree.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Fix color label overflow
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 12ca9c1c..25c46746 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.230
+
+### Patch Changes
+
+- 0846769d: Fix color label overflow
+
## 0.0.229
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index b0381816..0c40d324 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.229",
+ "version": "0.0.230",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 050fe735e39254f182adb23d0c1f623493337b1b Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Sun, 4 Sep 2022 15:36:52 -0700
Subject: [PATCH 070/128] Adds SVG elements and attributes
---
packages/gui/src/components/html/data.ts | 47 ++-
packages/gui/src/data/attributes.ts | 349 ++++++++++++++++++++++-
packages/gui/src/data/elements.ts | 33 +++
3 files changed, 406 insertions(+), 23 deletions(-)
diff --git a/packages/gui/src/components/html/data.ts b/packages/gui/src/components/html/data.ts
index 07c53d0a..99ef8d8a 100644
--- a/packages/gui/src/components/html/data.ts
+++ b/packages/gui/src/components/html/data.ts
@@ -2,16 +2,24 @@ export const HTML_TAGS = [
'a',
'abbr',
'address',
+ 'animate',
+ 'animateMotion',
+ 'animateTransform',
+ 'area',
'article',
'aside',
'audio',
'b',
+ 'base',
'bdi',
'bdo',
'blockquote',
'br',
'button',
+ 'canvas',
'caption',
+ 'clipPath',
+ 'circle',
'cite',
'code',
'col',
@@ -20,6 +28,7 @@ export const HTML_TAGS = [
'datalist',
'dd',
'del',
+ 'desc',
'details',
'dfn',
'dialog',
@@ -27,9 +36,27 @@ export const HTML_TAGS = [
'dl',
'dt',
'em',
+ 'feBlend',
+ 'feColorMatrix',
+ 'feComponentTransfer',
+ 'feComposite',
+ 'feConvolveMatrix',
+ 'feDiffuseLighting',
+ 'feDisplacementMap',
+ 'feDropShadow',
+ 'feFlood',
+ 'feGaussianBlur',
+ 'feImage',
+ 'feMerge',
+ 'feMorphology',
+ 'feOffset',
+ 'feSpecularLighting',
+ 'feTile',
+ 'feTurbulence',
'fieldset',
'figcaption',
'figure',
+ 'filter',
'footer',
'form',
'h1',
@@ -48,8 +75,10 @@ export const HTML_TAGS = [
'label',
'legend',
'li',
+ 'line',
'main',
'mark',
+ 'marker',
'menu',
'menuitem',
'meter',
@@ -60,29 +89,36 @@ export const HTML_TAGS = [
'option',
'output',
'p',
+ 'path',
'picture',
+ 'polyline',
'pre',
'progress',
'q',
+ 'rect',
'rp',
'rt',
'rtc',
'ruby',
's',
'samp',
- 'span',
'section',
'select',
- 'source',
+ 'set',
'slot',
'small',
+ 'source',
+ 'span',
+ 'stop',
'sub',
'summary',
'sup',
+ 'svg',
'table',
'tbody',
'td',
'template',
+ 'text',
'textarea',
'tfoot',
'th',
@@ -95,11 +131,4 @@ export const HTML_TAGS = [
'var',
'video',
'wbr',
- 'svg',
- 'circle',
- 'line',
- 'path',
- 'rect',
- 'text',
- 'polyline',
]
diff --git a/packages/gui/src/data/attributes.ts b/packages/gui/src/data/attributes.ts
index 876ca6c1..223b566a 100644
--- a/packages/gui/src/data/attributes.ts
+++ b/packages/gui/src/data/attributes.ts
@@ -1,4 +1,37 @@
const GLOBAL_ATTRIBUTES = ['class', 'id', 'title']
+const SVG_PRESENTATION_ATTRIBUTES = [
+ 'clip-path',
+ 'clip-rule',
+ 'clipPathUnits',
+ 'color',
+ 'display',
+ 'fill',
+ 'fill-opacity',
+ 'fill-rule',
+ 'filter',
+ 'mask',
+ 'opacity',
+ 'shape-rendering',
+ 'stroke',
+ 'stroke-dasharray',
+ 'stroke-dashoffset',
+ 'stroke-linecap',
+ 'stroke-linejoin',
+ 'stroke-miterlimit',
+ 'stroke-opacity',
+ 'stroke-width',
+ 'transform',
+ 'vector-effect',
+ 'visibility',
+]
+
+const FILTER_PRIMITIVE_ATTRIBUTES = [
+ 'height',
+ 'width',
+ 'x',
+ 'y',
+ 'result',
+]
export const ATTRIBUTE_MAP: Record = {
a: [
@@ -12,6 +45,53 @@ export const ATTRIBUTE_MAP: Record = {
],
abbr: GLOBAL_ATTRIBUTES,
address: GLOBAL_ATTRIBUTES,
+ animation: [
+ ...GLOBAL_ATTRIBUTES,
+ 'begin',
+ 'dur',
+ 'end',
+ 'min',
+ 'max',
+ 'restart',
+ 'repeatCount',
+ 'repeatDur',
+ 'fill',
+ 'calcMode',
+ 'values',
+ 'keyTimes',
+ 'keySplines',
+ 'from',
+ 'to',
+ 'by',
+ 'attributeName',
+ 'additive',
+ 'accumulate',
+ ],
+ animationMotion: [
+ ...GLOBAL_ATTRIBUTES,
+ 'keyPoints',
+ 'path',
+ 'rotate',
+ 'begin',
+ 'dur',
+ 'end',
+ 'min',
+ 'max',
+ 'restart',
+ 'repeatCount',
+ 'repeatDur',
+ 'fill',
+ 'calcMode',
+ 'values',
+ 'keyTimes',
+ 'keySplines',
+ 'from',
+ 'to',
+ 'by',
+ 'attributeName',
+ 'additive',
+ 'accumulate',
+ ],
area: [...GLOBAL_ATTRIBUTES, 'shape', 'coords', 'href', 'alt', ],
article: GLOBAL_ATTRIBUTES,
aside: GLOBAL_ATTRIBUTES,
@@ -49,6 +129,10 @@ export const ATTRIBUTE_MAP: Record = {
],
caption: GLOBAL_ATTRIBUTES,
cite: GLOBAL_ATTRIBUTES,
+ clipPath: [
+ ...GLOBAL_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ ],
code: GLOBAL_ATTRIBUTES,
col: GLOBAL_ATTRIBUTES,
colgroup: GLOBAL_ATTRIBUTES,
@@ -56,6 +140,7 @@ export const ATTRIBUTE_MAP: Record = {
datalist: GLOBAL_ATTRIBUTES,
dd: GLOBAL_ATTRIBUTES,
del: GLOBAL_ATTRIBUTES,
+ desc: GLOBAL_ATTRIBUTES,
details: GLOBAL_ATTRIBUTES,
dfn: GLOBAL_ATTRIBUTES,
dialog: [...GLOBAL_ATTRIBUTES, 'open'],
@@ -63,6 +148,171 @@ export const ATTRIBUTE_MAP: Record = {
dl: GLOBAL_ATTRIBUTES,
dt: GLOBAL_ATTRIBUTES,
em: GLOBAL_ATTRIBUTES,
+ feBlend: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'in',
+ 'in2',
+ 'mode',
+ ],
+ feColorMatrix: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'in',
+ 'type',
+ 'values',
+ ],
+ feComponentTransfer: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'in',
+ ],
+ feComposite: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'in',
+ 'in2',
+ 'operator',
+ 'ki',
+ 'k2',
+ 'k3',
+ 'k4',
+ ],
+ feConvolveMatrix: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'in',
+ 'order',
+ 'kernelMatrix',
+ 'divisor',
+ 'bias',
+ 'targetX',
+ 'targetY',
+ 'edgeMode',
+ 'kernelUnitLength',
+ 'preserveAlpha',
+
+ ],
+ feDiffuseLighting: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'in',
+ 'surfaceScale',
+ 'diffuseConstant',
+ 'kernelUnitLength',
+ ],
+ feDisplacementMap: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'in',
+ 'in2',
+ 'scale',
+ 'xChannelSelector',
+ 'yChannelSelector',
+ ],
+ feFlood: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'flood-color',
+ 'flood-opacity',
+ ],
+ feGaussianBlur: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'in',
+ 'stdDeviation',
+ 'edgeMode',
+ ],
+ feImage: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'xlink:href',
+ 'preserveAspectRatio',
+ ],
+ feMerge: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ ],
+ feMergeNode: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'in',
+ ],
+ feMorphology: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'in',
+ 'operator',
+ 'radius',
+ ],
+ feOffset: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'in',
+ 'dx',
+ 'dy',
+ ],
+ fePointLight: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'x',
+ 'y',
+ 'z',
+ ],
+ feSpecularLighting: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'in',
+ 'surfaceScale',
+ 'specularConstant',
+ 'specularExponent',
+ 'kernelUnitLength',
+ ],
+ feSpotLight: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'x',
+ 'y',
+ 'z',
+ 'pointsAtX',
+ 'pointsAtY',
+ 'pointsAtZ',
+ 'specularExponent',
+ 'limitingConeAngle',
+ ],
+ feTile: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'in',
+ ],
+ feTurbulence: [
+ ...GLOBAL_ATTRIBUTES,
+ ...FILTER_PRIMITIVE_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'baseFrequency',
+ 'numOctaves',
+ 'seed',
+ 'stitchTiles',
+ 'type',
+ ],
fieldset: [...GLOBAL_ATTRIBUTES, 'disabled', 'form', 'name'],
figcaption: GLOBAL_ATTRIBUTES,
figure: GLOBAL_ATTRIBUTES,
@@ -172,6 +422,20 @@ export const ATTRIBUTE_MAP: Record = {
s: GLOBAL_ATTRIBUTES,
samp: GLOBAL_ATTRIBUTES,
section: GLOBAL_ATTRIBUTES,
+ set: [
+ ...GLOBAL_ATTRIBUTES,
+ 'attributeName',
+ 'to',
+ 'begin',
+ 'dur',
+ 'end',
+ 'min',
+ 'max',
+ 'restart',
+ 'repeatCount',
+ 'repeatDur',
+ 'fill',
+ ],
slot: [...GLOBAL_ATTRIBUTES, 'name'],
small: GLOBAL_ATTRIBUTES,
source: [
@@ -237,43 +501,100 @@ export const ATTRIBUTE_MAP: Record = {
'crossorigin',
],
wbr: GLOBAL_ATTRIBUTES,
- svg: [...GLOBAL_ATTRIBUTES,
+ svg: [
+ ...GLOBAL_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
'viewBox',
'width',
'height',
- 'fill-rule',
- 'fill-opacity',
- 'clip-path',
- 'clip-rule',
'version',
'xmlns',
'preserveAspectRatio',
],
- circle: [...GLOBAL_ATTRIBUTES, 'cx', 'cy', 'r', 'stroke'],
- ellipse: [...GLOBAL_ATTRIBUTES, 'cx', 'cy', 'rx', 'ry', 'pathLength', 'stroke'],
- rect: [...GLOBAL_ATTRIBUTES, 'width', 'height', 'x', 'y', 'rx', 'ry', 'stroke'],
- line: [...GLOBAL_ATTRIBUTES, 'x1', 'y1', 'x2', 'y2', 'stroke',],
+ circle: [
+ ...GLOBAL_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'cx', 'cy', 'r',
+ ],
+ ellipse: [
+ 'cx', 'cy', 'rx', 'ry', 'pathLength',
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ ...GLOBAL_ATTRIBUTES,
+ ],
+ rect: [
+ ...GLOBAL_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'width', 'height', 'x', 'y', 'rx', 'ry'
+ ],
+ line: [
+ ...GLOBAL_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'x1', 'y1', 'x2', 'y2',
+ ],
+ marker: [
+ ...GLOBAL_ATTRIBUTES,
+ 'markerHeight',
+ 'markerUnits',
+ 'markerWidth',
+ 'orient',
+ 'preserveAspectRatio',
+ 'refX',
+ 'refY',
+ 'viewBox',
+
+ ],
mask: [
...GLOBAL_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
'width', 'height',
'x', 'y',
'maskUnits',
'maskContentUnits',
],
- path: [...GLOBAL_ATTRIBUTES, 'd', 'stroke',],
+ mpath: [
+ ...GLOBAL_ATTRIBUTES,
+ 'xlink:href',
+ ],
+ path: [
+ ...GLOBAL_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'd',
+ 'pathLength',
+ ],
pattern: [
...GLOBAL_ATTRIBUTES,
- 'width', 'height',
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'href',
+ 'width',
+ 'height',
'patternContentUnits',
'patternTransform',
'patternUnits',
+ 'preserveAspectRatio',
'viewBox',
'x',
'y',
+ 'xlink:href',
+ ],
+ polyline: [
+ ...GLOBAL_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'points'
+ ],
+ polygon: [
+ ...GLOBAL_ATTRIBUTES,
+ ...SVG_PRESENTATION_ATTRIBUTES,
+ 'points',
+ 'pathLength',
+ ],
+ stop: [
+ ...GLOBAL_ATTRIBUTES,
+ 'offset',
+ 'stop-color',
+ 'stop-opacity',
],
- polyline: [...GLOBAL_ATTRIBUTES, 'points', 'stroke',],
- polygon: [...GLOBAL_ATTRIBUTES, 'points', 'pathLength', 'stroke',],
- symbol: [...GLOBAL_ATTRIBUTES, 'width', 'height', 'viewBox', 'x', 'y', 'refX', 'refY'],
+ symbol: [
+ ...GLOBAL_ATTRIBUTES, 'width', 'height', 'viewBox', 'x', 'y', 'refX', 'refY'],
use: [...GLOBAL_ATTRIBUTES, 'href', 'x', 'y', 'clip-path'],
defs: [...GLOBAL_ATTRIBUTES],
g: [...GLOBAL_ATTRIBUTES ],
diff --git a/packages/gui/src/data/elements.ts b/packages/gui/src/data/elements.ts
index b6312b28..86ba9f9e 100644
--- a/packages/gui/src/data/elements.ts
+++ b/packages/gui/src/data/elements.ts
@@ -2,6 +2,9 @@ export const elements = [
'a',
'abbr',
'address',
+ 'animate',
+ 'animateMotion',
+ 'animateTransform',
'area',
'article',
'aside',
@@ -16,14 +19,18 @@ export const elements = [
'button',
'canvas',
'caption',
+ 'circle',
'cite',
+ 'clipPath',
'code',
'col',
'colgroup',
'data',
'datalist',
'dd',
+ 'defs',
'del',
+ 'desc',
'details',
'dfn',
'dialog',
@@ -32,6 +39,22 @@ export const elements = [
'dt',
'em',
'embed',
+ 'feBlend',
+ 'feColorMatrix',
+ 'feComponentTransfer',
+ 'feComposite',
+ 'feConvolveMatrix',
+ 'feDiffuseLighting',
+ 'feDisplacementMap',
+ 'feDropShadow',
+ 'feFlood',
+ 'feGaussianBlur',
+ 'feImage',
+ 'feMerge',
+ 'feMorphology',
+ 'feOffset',
+ 'feSpecularLighting',
+ 'feTile',
'fieldset',
'figcaption',
'figure',
@@ -61,6 +84,8 @@ export const elements = [
'main',
'map',
'mark',
+ 'marker',
+ 'mask',
'math',
'menu',
'menuitem',
@@ -75,6 +100,7 @@ export const elements = [
'output',
'p',
'param',
+ 'pattern',
'picture',
'pre',
'progress',
@@ -89,21 +115,27 @@ export const elements = [
'script',
'section',
'select',
+ 'set',
'slot',
'small',
'source',
'span',
+ 'stop',
'strong',
'style',
'sub',
'summary',
'sup',
'svg',
+ 'switch',
+ 'symbol',
'table',
'tbody',
'td',
'template',
+ 'text',
'textarea',
+ 'textPath',
'tfoot',
'th',
'thead',
@@ -113,6 +145,7 @@ export const elements = [
'track',
'u',
'ul',
+ 'use',
'var',
'video',
'wbr',
From 294beec5471bddeb0927f42e24dd1fbab7408ffa Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Sun, 4 Sep 2022 16:18:53 -0700
Subject: [PATCH 071/128] Bumps version of css.gui
---
.changeset/healthy-gorillas-grow.md | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 .changeset/healthy-gorillas-grow.md
diff --git a/.changeset/healthy-gorillas-grow.md b/.changeset/healthy-gorillas-grow.md
new file mode 100644
index 00000000..c03c467e
--- /dev/null
+++ b/.changeset/healthy-gorillas-grow.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Adds new svg elements and attributes
From 5302710c5957d5362043f5ad59e107311f936dff Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Sun, 4 Sep 2022 23:19:51 +0000
Subject: [PATCH 072/128] Version Packages
---
.changeset/healthy-gorillas-grow.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/healthy-gorillas-grow.md
diff --git a/.changeset/healthy-gorillas-grow.md b/.changeset/healthy-gorillas-grow.md
deleted file mode 100644
index c03c467e..00000000
--- a/.changeset/healthy-gorillas-grow.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Adds new svg elements and attributes
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 25c46746..95f175ff 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.231
+
+### Patch Changes
+
+- 294beec5: Adds new svg elements and attributes
+
## 0.0.230
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 0c40d324..afa782a6 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.230",
+ "version": "0.0.231",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 35aa2513688947b68c2ed9815a5496dd02d18107 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Sun, 4 Sep 2022 16:21:48 -0700
Subject: [PATCH 073/128] Updates version
---
.changeset/healthy-gorillas-grow.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/healthy-gorillas-grow.md
diff --git a/.changeset/healthy-gorillas-grow.md b/.changeset/healthy-gorillas-grow.md
deleted file mode 100644
index c03c467e..00000000
--- a/.changeset/healthy-gorillas-grow.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Adds new svg elements and attributes
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 25c46746..95f175ff 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.231
+
+### Patch Changes
+
+- 294beec5: Adds new svg elements and attributes
+
## 0.0.230
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 0c40d324..afa782a6 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.230",
+ "version": "0.0.231",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 399ac51a1cda3b641d3a909b0931d8ca6bcd8e5b Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Sun, 4 Sep 2022 16:27:41 -0700
Subject: [PATCH 074/128] Removes clip path example
---
apps/docs/pages/examples/clip-path.tsx | 55 --------------------------
1 file changed, 55 deletions(-)
delete mode 100644 apps/docs/pages/examples/clip-path.tsx
diff --git a/apps/docs/pages/examples/clip-path.tsx b/apps/docs/pages/examples/clip-path.tsx
deleted file mode 100644
index a52fc3f4..00000000
--- a/apps/docs/pages/examples/clip-path.tsx
+++ /dev/null
@@ -1,55 +0,0 @@
-import { Editor, toCSSObject } from '@compai/css-gui'
-import { useState } from 'react'
-
-const initialStyles = {
- clipPath: {
- shape: {
- name: 'inset',
- arguments: {
- top: { value: 2, unit: 'px' },
- right: { value: 2, unit: 'px' },
- bottom: { value: 2, unit: 'px' },
- left: { value: 2, unit: 'px' },
- borderRadius: { value: 16, unit: 'px' },
- offset: {
- top: {
- value: 0,
- unit: 'px',
- },
- },
- },
- },
- box: 'margin-box',
- },
-}
-
-export default function ClipPathExample() {
- const [styles, setStyles] = useState(initialStyles)
-
- return (
-
- )
-}
From 4a8cac2a56cdccab5d7aa20a24b30fe14b05eda7 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 5 Sep 2022 11:18:50 +0000
Subject: [PATCH 075/128] Bump @types/node from 17.0.31 to 18.7.15
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.31 to 18.7.15.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot]
---
apps/docs/package.json | 2 +-
yarn.lock | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/apps/docs/package.json b/apps/docs/package.json
index d1a69ef6..da0c8a74 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -25,7 +25,7 @@
"theme-ui": "^0.14.7"
},
"devDependencies": {
- "@types/node": "^17.0.31",
+ "@types/node": "^18.7.15",
"@types/react": "18.0.10",
"config": "*",
"eslint": "8.18.0",
diff --git a/yarn.lock b/yarn.lock
index fbe13818..8a9ea6a2 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2157,10 +2157,10 @@
resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.31.tgz#31b7ca6407128a3d2bbc27fe2d21b345397f6197"
integrity sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==
-"@types/node@*", "@types/node@^17.0.31":
- version "17.0.31"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.31.tgz#a5bb84ecfa27eec5e1c802c6bbf8139bdb163a5d"
- integrity sha512-AR0x5HbXGqkEx9CadRH3EBYx/VkiUgZIhP4wvPn/+5KIsgpNoyFaRlVe0Zlx9gRtg8fA06a9tskE2MSN7TcG4Q==
+"@types/node@*", "@types/node@^18.7.15":
+ version "18.7.15"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.7.15.tgz#20ae1ec80c57ee844b469f968a1cd511d4088b29"
+ integrity sha512-XnjpaI8Bgc3eBag2Aw4t2Uj/49lLBSStHWfqKvIuXD7FIrZyMLWp8KuAFHAqxMZYTF9l08N1ctUn9YNybZJVmQ==
"@types/node@^12.7.1":
version "12.20.47"
From d48ae3bfbf822952cfb41c6d3a238ad2f2ddc9c5 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Tue, 6 Sep 2022 09:50:40 -0600
Subject: [PATCH 076/128] Create yellow-roses-train.md
---
.changeset/yellow-roses-train.md | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 .changeset/yellow-roses-train.md
diff --git a/.changeset/yellow-roses-train.md b/.changeset/yellow-roses-train.md
new file mode 100644
index 00000000..df677674
--- /dev/null
+++ b/.changeset/yellow-roses-train.md
@@ -0,0 +1,5 @@
+---
+"@compai/css-gui": patch
+---
+
+Bump copy-to-clipboard from 3.3.1 to 3.3.2
From 08e07226286f51067e82e06c3d3263a819752dd1 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Tue, 6 Sep 2022 09:51:13 -0600
Subject: [PATCH 077/128] Create angry-carrots-count.md
---
.changeset/angry-carrots-count.md | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 .changeset/angry-carrots-count.md
diff --git a/.changeset/angry-carrots-count.md b/.changeset/angry-carrots-count.md
new file mode 100644
index 00000000..a68ce0ee
--- /dev/null
+++ b/.changeset/angry-carrots-count.md
@@ -0,0 +1,5 @@
+---
+"@compai/css-gui": patch
+---
+
+Bump @radix-ui/react-slider from 0.1.4 to 1.0.0
From 803e10e0535db621f2ff6d701ddf456df64d7422 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Tue, 6 Sep 2022 15:53:25 +0000
Subject: [PATCH 078/128] Version Packages
---
.changeset/angry-carrots-count.md | 5 -----
.changeset/yellow-roses-train.md | 5 -----
packages/gui/CHANGELOG.md | 7 +++++++
packages/gui/package.json | 2 +-
4 files changed, 8 insertions(+), 11 deletions(-)
delete mode 100644 .changeset/angry-carrots-count.md
delete mode 100644 .changeset/yellow-roses-train.md
diff --git a/.changeset/angry-carrots-count.md b/.changeset/angry-carrots-count.md
deleted file mode 100644
index a68ce0ee..00000000
--- a/.changeset/angry-carrots-count.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@compai/css-gui": patch
----
-
-Bump @radix-ui/react-slider from 0.1.4 to 1.0.0
diff --git a/.changeset/yellow-roses-train.md b/.changeset/yellow-roses-train.md
deleted file mode 100644
index df677674..00000000
--- a/.changeset/yellow-roses-train.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@compai/css-gui": patch
----
-
-Bump copy-to-clipboard from 3.3.1 to 3.3.2
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 95f175ff..ebd4ad63 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,12 @@
# @compai/css-gui
+## 0.0.232
+
+### Patch Changes
+
+- 08e07226: Bump @radix-ui/react-slider from 0.1.4 to 1.0.0
+- d48ae3bf: Bump copy-to-clipboard from 3.3.1 to 3.3.2
+
## 0.0.231
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 36601a2a..c2d84831 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.231",
+ "version": "0.0.232",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From adea2803140a31828df449c1cf40bd7da38eb402 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Tue, 6 Sep 2022 11:33:22 -0600
Subject: [PATCH 079/128] Add filter element attributes
---
.changeset/afraid-ladybugs-happen.md | 5 +
packages/gui/src/data/attributes.ts | 265 ++++++++++-----------------
2 files changed, 104 insertions(+), 166 deletions(-)
create mode 100644 .changeset/afraid-ladybugs-happen.md
diff --git a/.changeset/afraid-ladybugs-happen.md b/.changeset/afraid-ladybugs-happen.md
new file mode 100644
index 00000000..582a13da
--- /dev/null
+++ b/.changeset/afraid-ladybugs-happen.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Add filter element attributes
diff --git a/packages/gui/src/data/attributes.ts b/packages/gui/src/data/attributes.ts
index 223b566a..7d5521b7 100644
--- a/packages/gui/src/data/attributes.ts
+++ b/packages/gui/src/data/attributes.ts
@@ -1,37 +1,31 @@
const GLOBAL_ATTRIBUTES = ['class', 'id', 'title']
const SVG_PRESENTATION_ATTRIBUTES = [
- 'clip-path',
- 'clip-rule',
- 'clipPathUnits',
- 'color',
- 'display',
- 'fill',
- 'fill-opacity',
- 'fill-rule',
- 'filter',
- 'mask',
- 'opacity',
- 'shape-rendering',
- 'stroke',
- 'stroke-dasharray',
- 'stroke-dashoffset',
- 'stroke-linecap',
- 'stroke-linejoin',
- 'stroke-miterlimit',
- 'stroke-opacity',
- 'stroke-width',
- 'transform',
- 'vector-effect',
- 'visibility',
+ 'clip-path',
+ 'clip-rule',
+ 'clipPathUnits',
+ 'color',
+ 'display',
+ 'fill',
+ 'fill-opacity',
+ 'fill-rule',
+ 'filter',
+ 'mask',
+ 'opacity',
+ 'shape-rendering',
+ 'stroke',
+ 'stroke-dasharray',
+ 'stroke-dashoffset',
+ 'stroke-linecap',
+ 'stroke-linejoin',
+ 'stroke-miterlimit',
+ 'stroke-opacity',
+ 'stroke-width',
+ 'transform',
+ 'vector-effect',
+ 'visibility',
]
-const FILTER_PRIMITIVE_ATTRIBUTES = [
- 'height',
- 'width',
- 'x',
- 'y',
- 'result',
-]
+const FILTER_PRIMITIVE_ATTRIBUTES = ['height', 'width', 'x', 'y', 'result']
export const ATTRIBUTE_MAP: Record = {
a: [
@@ -45,54 +39,7 @@ export const ATTRIBUTE_MAP: Record = {
],
abbr: GLOBAL_ATTRIBUTES,
address: GLOBAL_ATTRIBUTES,
- animation: [
- ...GLOBAL_ATTRIBUTES,
- 'begin',
- 'dur',
- 'end',
- 'min',
- 'max',
- 'restart',
- 'repeatCount',
- 'repeatDur',
- 'fill',
- 'calcMode',
- 'values',
- 'keyTimes',
- 'keySplines',
- 'from',
- 'to',
- 'by',
- 'attributeName',
- 'additive',
- 'accumulate',
- ],
- animationMotion: [
- ...GLOBAL_ATTRIBUTES,
- 'keyPoints',
- 'path',
- 'rotate',
- 'begin',
- 'dur',
- 'end',
- 'min',
- 'max',
- 'restart',
- 'repeatCount',
- 'repeatDur',
- 'fill',
- 'calcMode',
- 'values',
- 'keyTimes',
- 'keySplines',
- 'from',
- 'to',
- 'by',
- 'attributeName',
- 'additive',
- 'accumulate',
- ],
- area: [...GLOBAL_ATTRIBUTES, 'shape', 'coords', 'href', 'alt', ],
+ area: [...GLOBAL_ATTRIBUTES, 'shape', 'coords', 'href', 'alt'],
article: GLOBAL_ATTRIBUTES,
aside: GLOBAL_ATTRIBUTES,
audio: [
@@ -129,10 +76,7 @@ export const ATTRIBUTE_MAP: Record = {
],
caption: GLOBAL_ATTRIBUTES,
cite: GLOBAL_ATTRIBUTES,
- clipPath: [
- ...GLOBAL_ATTRIBUTES,
- ...SVG_PRESENTATION_ATTRIBUTES,
- ],
+ clipPath: [...GLOBAL_ATTRIBUTES, ...SVG_PRESENTATION_ATTRIBUTES],
code: GLOBAL_ATTRIBUTES,
col: GLOBAL_ATTRIBUTES,
colgroup: GLOBAL_ATTRIBUTES,
@@ -149,7 +93,7 @@ export const ATTRIBUTE_MAP: Record = {
dt: GLOBAL_ATTRIBUTES,
em: GLOBAL_ATTRIBUTES,
feBlend: [
- ...GLOBAL_ATTRIBUTES,
+ ...GLOBAL_ATTRIBUTES,
...FILTER_PRIMITIVE_ATTRIBUTES,
...SVG_PRESENTATION_ATTRIBUTES,
'in',
@@ -160,27 +104,27 @@ export const ATTRIBUTE_MAP: Record = {
...GLOBAL_ATTRIBUTES,
...FILTER_PRIMITIVE_ATTRIBUTES,
...SVG_PRESENTATION_ATTRIBUTES,
- 'in',
- 'type',
- 'values',
+ 'in',
+ 'type',
+ 'values',
],
feComponentTransfer: [
...GLOBAL_ATTRIBUTES,
...FILTER_PRIMITIVE_ATTRIBUTES,
...SVG_PRESENTATION_ATTRIBUTES,
- 'in',
+ 'in',
],
feComposite: [
...GLOBAL_ATTRIBUTES,
...FILTER_PRIMITIVE_ATTRIBUTES,
...SVG_PRESENTATION_ATTRIBUTES,
- 'in',
- 'in2',
- 'operator',
- 'ki',
- 'k2',
- 'k3',
- 'k4',
+ 'in',
+ 'in2',
+ 'operator',
+ 'ki',
+ 'k2',
+ 'k3',
+ 'k4',
],
feConvolveMatrix: [
...GLOBAL_ATTRIBUTES,
@@ -196,7 +140,6 @@ export const ATTRIBUTE_MAP: Record = {
'edgeMode',
'kernelUnitLength',
'preserveAlpha',
-
],
feDiffuseLighting: [
...GLOBAL_ATTRIBUTES,
@@ -391,7 +334,7 @@ export const ATTRIBUTE_MAP: Record = {
legend: GLOBAL_ATTRIBUTES,
li: [...GLOBAL_ATTRIBUTES, 'value', 'type'],
main: GLOBAL_ATTRIBUTES,
- map: [...GLOBAL_ATTRIBUTES, 'name', ],
+ map: [...GLOBAL_ATTRIBUTES, 'name'],
mark: GLOBAL_ATTRIBUTES,
menu: GLOBAL_ATTRIBUTES,
menuitem: GLOBAL_ATTRIBUTES,
@@ -423,7 +366,7 @@ export const ATTRIBUTE_MAP: Record = {
samp: GLOBAL_ATTRIBUTES,
section: GLOBAL_ATTRIBUTES,
set: [
- ...GLOBAL_ATTRIBUTES,
+ ...GLOBAL_ATTRIBUTES,
'attributeName',
'to',
'begin',
@@ -502,73 +445,55 @@ export const ATTRIBUTE_MAP: Record = {
],
wbr: GLOBAL_ATTRIBUTES,
svg: [
- ...GLOBAL_ATTRIBUTES,
- ...SVG_PRESENTATION_ATTRIBUTES,
+ ...GLOBAL_ATTRIBUTES,
'viewBox',
'width',
'height',
- 'version',
- 'xmlns',
+ 'fill-rule',
+ 'fill-opacity',
+ 'clip-path',
+ 'clip-rule',
+ 'version',
+ 'xmlns',
'preserveAspectRatio',
],
- circle: [
- ...GLOBAL_ATTRIBUTES,
- ...SVG_PRESENTATION_ATTRIBUTES,
- 'cx', 'cy', 'r',
- ],
+ circle: [...GLOBAL_ATTRIBUTES, 'cx', 'cy', 'r', 'stroke'],
ellipse: [
- 'cx', 'cy', 'rx', 'ry', 'pathLength',
- ...SVG_PRESENTATION_ATTRIBUTES,
- ...GLOBAL_ATTRIBUTES,
+ ...GLOBAL_ATTRIBUTES,
+ 'cx',
+ 'cy',
+ 'rx',
+ 'ry',
+ 'pathLength',
+ 'stroke',
],
rect: [
- ...GLOBAL_ATTRIBUTES,
- ...SVG_PRESENTATION_ATTRIBUTES,
- 'width', 'height', 'x', 'y', 'rx', 'ry'
- ],
- line: [
- ...GLOBAL_ATTRIBUTES,
- ...SVG_PRESENTATION_ATTRIBUTES,
- 'x1', 'y1', 'x2', 'y2',
- ],
- marker: [
- ...GLOBAL_ATTRIBUTES,
- 'markerHeight',
- 'markerUnits',
- 'markerWidth',
- 'orient',
- 'preserveAspectRatio',
- 'refX',
- 'refY',
- 'viewBox',
-
+ ...GLOBAL_ATTRIBUTES,
+ 'width',
+ 'height',
+ 'x',
+ 'y',
+ 'rx',
+ 'ry',
+ 'stroke',
],
+ line: [...GLOBAL_ATTRIBUTES, 'x1', 'y1', 'x2', 'y2', 'stroke'],
mask: [
- ...GLOBAL_ATTRIBUTES,
- ...SVG_PRESENTATION_ATTRIBUTES,
- 'width', 'height',
- 'x', 'y',
+ ...GLOBAL_ATTRIBUTES,
+ 'width',
+ 'height',
+ 'x',
+ 'y',
'maskUnits',
'maskContentUnits',
],
- mpath: [
- ...GLOBAL_ATTRIBUTES,
- 'xlink:href',
- ],
- path: [
- ...GLOBAL_ATTRIBUTES,
- ...SVG_PRESENTATION_ATTRIBUTES,
- 'd',
- 'pathLength',
- ],
+ path: [...GLOBAL_ATTRIBUTES, 'd', 'stroke'],
pattern: [
- ...GLOBAL_ATTRIBUTES,
- ...SVG_PRESENTATION_ATTRIBUTES,
- 'href',
- 'width',
- 'height',
- 'patternContentUnits',
- 'patternTransform',
+ ...GLOBAL_ATTRIBUTES,
+ 'width',
+ 'height',
+ 'patternContentUnits',
+ 'patternTransform',
'patternUnits',
'preserveAspectRatio',
'viewBox',
@@ -576,26 +501,34 @@ export const ATTRIBUTE_MAP: Record = {
'y',
'xlink:href',
],
- polyline: [
+ polyline: [...GLOBAL_ATTRIBUTES, ...SVG_PRESENTATION_ATTRIBUTES, 'points'],
+ polygon: [
...GLOBAL_ATTRIBUTES,
...SVG_PRESENTATION_ATTRIBUTES,
- 'points'
- ],
- polygon: [
- ...GLOBAL_ATTRIBUTES,
- ...SVG_PRESENTATION_ATTRIBUTES,
- 'points',
- 'pathLength',
- ],
- stop: [
- ...GLOBAL_ATTRIBUTES,
- 'offset',
- 'stop-color',
- 'stop-opacity',
+ 'points',
+ 'pathLength',
],
+ stop: [...GLOBAL_ATTRIBUTES, 'offset', 'stop-color', 'stop-opacity'],
symbol: [
- ...GLOBAL_ATTRIBUTES, 'width', 'height', 'viewBox', 'x', 'y', 'refX', 'refY'],
+ ...GLOBAL_ATTRIBUTES,
+ 'width',
+ 'height',
+ 'viewBox',
+ 'x',
+ 'y',
+ 'refX',
+ 'refY',
+ ],
use: [...GLOBAL_ATTRIBUTES, 'href', 'x', 'y', 'clip-path'],
defs: [...GLOBAL_ATTRIBUTES],
- g: [...GLOBAL_ATTRIBUTES ],
+ g: [...GLOBAL_ATTRIBUTES],
+ filter: [
+ ...GLOBAL_ATTRIBUTES,
+ 'x',
+ 'y',
+ 'width',
+ 'height',
+ 'filterUnits',
+ 'primitiveUnits',
+ ],
}
From 28b435c94db981aa0a0bcf0a1a7c66d858c6b2ac Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Tue, 6 Sep 2022 17:36:19 +0000
Subject: [PATCH 080/128] Version Packages
---
.changeset/afraid-ladybugs-happen.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/afraid-ladybugs-happen.md
diff --git a/.changeset/afraid-ladybugs-happen.md b/.changeset/afraid-ladybugs-happen.md
deleted file mode 100644
index 582a13da..00000000
--- a/.changeset/afraid-ladybugs-happen.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Add filter element attributes
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index ebd4ad63..c64609a0 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.233
+
+### Patch Changes
+
+- adea2803: Add filter element attributes
+
## 0.0.232
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index c2d84831..0b8a1b51 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.232",
+ "version": "0.0.233",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 63cc6ff40f98b186b2d05460ecf850cf918413ff Mon Sep 17 00:00:00 2001
From: John Otander
Date: Fri, 9 Sep 2022 14:41:02 -0600
Subject: [PATCH 081/128] Add initial support for selector functions
---
.changeset/modern-zebras-fry.md | 5 ++
.../gui/src/components/Editor/Controls.tsx | 54 +++++++++++++++++--
packages/gui/src/data/pseudo-classes.ts | 19 +++++--
packages/gui/src/data/pseudo-elements.ts | 3 ++
packages/gui/src/data/selector-functions.ts | 7 +++
packages/gui/src/lib/pseudos.ts | 24 ++++++++-
packages/gui/src/lib/util.ts | 3 +-
7 files changed, 103 insertions(+), 12 deletions(-)
create mode 100644 .changeset/modern-zebras-fry.md
create mode 100644 packages/gui/src/data/selector-functions.ts
diff --git a/.changeset/modern-zebras-fry.md b/.changeset/modern-zebras-fry.md
new file mode 100644
index 00000000..e949948c
--- /dev/null
+++ b/.changeset/modern-zebras-fry.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Add initial support for selector functions
diff --git a/packages/gui/src/components/Editor/Controls.tsx b/packages/gui/src/components/Editor/Controls.tsx
index 1dee123e..e23c66b1 100644
--- a/packages/gui/src/components/Editor/Controls.tsx
+++ b/packages/gui/src/components/Editor/Controls.tsx
@@ -6,6 +6,7 @@ import {
isValidElement,
ReactNode,
useMemo,
+ useState,
} from 'react'
import { camelCase, isNil, mapValues, uniq } from 'lodash-es'
import { RefreshCw } from 'react-feather'
@@ -37,7 +38,14 @@ import { SchemaInput } from '../inputs/SchemaInput'
import { EditorDropdown } from '../ui/dropdowns/EditorDropdown'
import { FieldsetDropdown } from '../ui/dropdowns/FieldsetDropdown'
import { tokenize } from '../../lib/parse'
-import { addPseudoSyntax } from '../../lib/pseudos'
+import {
+ addPseudoSyntax,
+ getSelectorFunctionArgument,
+ getSelectorFunctionName,
+ isSelectorFunction,
+ removePseudoSyntax,
+ stringifySelectorFunction,
+} from '../../lib/pseudos'
export const getPropertyFromField = (field: KeyArg) => {
if (Array.isArray(field)) {
@@ -219,7 +227,7 @@ export const Editor = ({
onChange(regenerateAll())}
- sx={{ ml: 'auto', }}
+ sx={{ ml: 'auto' }}
>
@@ -320,10 +328,13 @@ type FieldsetControlProps = {
field: string
}
const FieldsetControl = ({ field }: FieldsetControlProps) => {
- const { getField, removeField } = useEditor()
+ const { getField, removeField, setFields } = useEditor()
+ const [argument, setArgument] = useState(getSelectorFunctionArgument(field))
+
const styles = getField(field)
const properties = Object.keys(styles)
const label = addPseudoSyntax(field)
+ const rawFieldsetName = getSelectorFunctionName(field)
return (
-
+
{
return !!pseudoClasses.filter((value) => value === str).length
@@ -9,8 +10,12 @@ export const isPseudoElement = (str: string): boolean => {
return !!pseudoElements.filter((value) => value === str).length
}
+export const isSelectorFunction = (str: string): boolean => {
+ return !!selectorFunctions.filter((value) => str.startsWith(value)).length
+}
+
export const isPseudo = (str: string): boolean => {
- return isPseudoClass(str) || isPseudoElement(str)
+ return isPseudoClass(str) || isPseudoElement(str) || isSelectorFunction(str)
}
export const hasPseudoSyntax = (str: string): boolean => {
@@ -21,8 +26,23 @@ export const removePseudoSyntax = (str: string): string => {
return str.replace(/^:+/, '')
}
+export const getSelectorFunctionArgument = (str: string): string => {
+ return str.match(/\(([^)]+)\)/)?.[1] ?? ''
+}
+
+export const getSelectorFunctionName = (str: string): string => {
+ return str.split('(')[0]
+}
+
+export const stringifySelectorFunction = (
+ functionName: string,
+ argument: string
+): string => {
+ return `${addPseudoSyntax(functionName)}(${argument})`
+}
+
export const addPseudoSyntax = (str: string): string => {
- if (isPseudoClass(str)) {
+ if (isPseudoClass(str) || isSelectorFunction(str)) {
return ':' + str
} else if (isPseudoElement(str)) {
return '::' + str
diff --git a/packages/gui/src/lib/util.ts b/packages/gui/src/lib/util.ts
index bfa36a00..7a3c0f5d 100644
--- a/packages/gui/src/lib/util.ts
+++ b/packages/gui/src/lib/util.ts
@@ -1,4 +1,4 @@
-import { isPseudoClass, isPseudoElement } from './pseudos'
+import { isPseudoClass, isPseudoElement, isSelectorFunction } from './pseudos'
import { isElement } from './elements'
import { lowerCase, startCase, upperFirst } from 'lodash-es'
import { EditorProps, EditorPropsWithLabel } from '../types/editor'
@@ -31,6 +31,7 @@ export function isNestedSelector(selector: string): boolean {
isElement(selector) ||
isPseudoClass(selector) ||
isPseudoElement(selector) ||
+ isSelectorFunction(selector) ||
isInternalCSSClass(selector) ||
false
)
From 8cf2fcef1b657e9defa3e7ec347d881e04082411 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Fri, 9 Sep 2022 20:45:22 +0000
Subject: [PATCH 082/128] Version Packages
---
.changeset/modern-zebras-fry.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/modern-zebras-fry.md
diff --git a/.changeset/modern-zebras-fry.md b/.changeset/modern-zebras-fry.md
deleted file mode 100644
index e949948c..00000000
--- a/.changeset/modern-zebras-fry.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Add initial support for selector functions
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index c64609a0..58110ec3 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.234
+
+### Patch Changes
+
+- 63cc6ff4: Add initial support for selector functions
+
## 0.0.233
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 0b8a1b51..414ded1d 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.233",
+ "version": "0.0.234",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From b0c58514dc8de979deea090d2e60ccd5df524518 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Thu, 15 Sep 2022 03:37:26 -0600
Subject: [PATCH 083/128] Implement first pass of enhance output
---
.changeset/early-lamps-tie.md | 5 ++
packages/gui/src/lib/codegen/emotion.ts | 2 +-
packages/gui/src/lib/codegen/enhance-sfc.ts | 46 +++++++++++++
packages/gui/src/lib/codegen/index.ts | 1 +
packages/gui/src/lib/codegen/react.ts | 2 +-
.../codegen/stringify-hast-node-as-html.ts | 65 +++++++++++++++++++
...-node.ts => stringify-hast-node-as-jsx.ts} | 0
packages/gui/src/lib/codegen/styled-jsx.ts | 2 +-
packages/gui/src/lib/codegen/theme-ui.ts | 2 +-
packages/gui/src/lib/codegen/util.ts | 2 +-
.../lib/transformers/editor-schema-to-hast.ts | 7 ++
11 files changed, 129 insertions(+), 5 deletions(-)
create mode 100644 .changeset/early-lamps-tie.md
create mode 100644 packages/gui/src/lib/codegen/enhance-sfc.ts
create mode 100644 packages/gui/src/lib/codegen/stringify-hast-node-as-html.ts
rename packages/gui/src/lib/codegen/{stringify-hast-node.ts => stringify-hast-node-as-jsx.ts} (100%)
diff --git a/.changeset/early-lamps-tie.md b/.changeset/early-lamps-tie.md
new file mode 100644
index 00000000..ed938fe2
--- /dev/null
+++ b/.changeset/early-lamps-tie.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Implement first pass of enhance output
diff --git a/packages/gui/src/lib/codegen/emotion.ts b/packages/gui/src/lib/codegen/emotion.ts
index cbedb3fe..93422862 100644
--- a/packages/gui/src/lib/codegen/emotion.ts
+++ b/packages/gui/src/lib/codegen/emotion.ts
@@ -2,7 +2,7 @@ import { toH } from 'hast-to-hyperscript'
import { HtmlNode } from '../../components/html/types'
import { editorSchemaToHast } from '../transformers/editor-schema-to-hast'
import { toCSSObject } from './to-css-object'
-import { stringifyHastNode } from './stringify-hast-node'
+import { stringifyHastNode } from './stringify-hast-node-as-jsx'
import { toReactProps } from './to-react-props'
import { format } from './format'
import { getPropSyntax } from './util'
diff --git a/packages/gui/src/lib/codegen/enhance-sfc.ts b/packages/gui/src/lib/codegen/enhance-sfc.ts
new file mode 100644
index 00000000..a465c786
--- /dev/null
+++ b/packages/gui/src/lib/codegen/enhance-sfc.ts
@@ -0,0 +1,46 @@
+import { toH } from 'hast-to-hyperscript'
+import { HtmlNode } from '../../components/html/types'
+import { editorSchemaToHast } from '../transformers/editor-schema-to-hast'
+import { toCSSObject } from './to-css-object'
+import { stringifyHastNode } from './stringify-hast-node-as-html'
+import { toReactProps } from './to-react-props'
+import { format } from './format'
+import { getSlots } from './util'
+import { kebabCase } from 'lodash-es'
+
+const h = (tagName: string, props: any, children?: any[]) => {
+ const newProps = toReactProps(props)
+
+ if (newProps.style) {
+ const style = newProps.style
+ delete newProps.style
+ newProps.sx = toCSSObject(style)
+ }
+
+ return { tagName, props: newProps, children }
+}
+
+export const enhanceSFC = async (node: HtmlNode) => {
+ const root = editorSchemaToHast(node, { addSlotTagSyntax: true })
+ const functionBody = stringifyHastNode(toH(h, root))
+
+ const output = `
+ export default function Component({ html }) {
+ return html\`
+ ${functionBody}
+ \`
+ }
+ `
+
+ return format('js', output)
+}
+
+export const getAttrSyntax = (value: HtmlNode) => {
+ const slots = getSlots(value)
+ const props = slots.map((slot) => kebabCase(slot.name)).join(', ')
+ const attrString = props.length ? `{ ${props} }` : ''
+ return `
+ const { attrs } = state
+ const ${attrString} = attrs
+ `
+}
diff --git a/packages/gui/src/lib/codegen/index.ts b/packages/gui/src/lib/codegen/index.ts
index 88ca0926..c28c000f 100644
--- a/packages/gui/src/lib/codegen/index.ts
+++ b/packages/gui/src/lib/codegen/index.ts
@@ -5,3 +5,4 @@ export * from './vue'
export * from './theme-ui'
export * from './emotion'
export * from './styled-jsx'
+export * from './enhance-sfc'
diff --git a/packages/gui/src/lib/codegen/react.ts b/packages/gui/src/lib/codegen/react.ts
index 365124d4..1c215676 100644
--- a/packages/gui/src/lib/codegen/react.ts
+++ b/packages/gui/src/lib/codegen/react.ts
@@ -3,7 +3,7 @@ import { HtmlNode } from '../../components/html/types'
import { extractStyles } from './extract-styles'
import { format } from './format'
import { html as toHtml } from './html'
-import { stringifyHastNode } from './stringify-hast-node'
+import { stringifyHastNode } from './stringify-hast-node-as-jsx'
import { toReactProps } from './to-react-props'
const h = (tagName: string, props: any, children?: any[]) => {
diff --git a/packages/gui/src/lib/codegen/stringify-hast-node-as-html.ts b/packages/gui/src/lib/codegen/stringify-hast-node-as-html.ts
new file mode 100644
index 00000000..77b4273b
--- /dev/null
+++ b/packages/gui/src/lib/codegen/stringify-hast-node-as-html.ts
@@ -0,0 +1,65 @@
+import { isArray, isNumber, isObject, kebabCase } from 'lodash-es'
+import escapeHtml from 'escape-html'
+import { isElement, isVoidElement } from '../elements'
+import { getSlots, isSlot } from './util'
+
+// TODO: This can, and should, be done at the AST level in the future
+export const formatTagName = (node: any) => {
+ if (isElement(node.tagName)) {
+ return node.tagName
+ }
+
+ const formatted = kebabCase(node.tagName)
+
+ if (!formatted.includes('-')) {
+ return `my-${formatted}`
+ }
+
+ return formatted
+}
+
+export const stringifyHastNode = (node: any) => {
+ if (typeof node === 'string' || isSlot(node)) {
+ return node.value || node
+ }
+
+ if (isVoidElement(node.tagName)) {
+ return `<${formatTagName(node)} ${stringifyProps(node.props)} />`
+ }
+
+ let children = node.children?.map(stringifyHastNode).join('\n') || ''
+
+ // TODO: This can, and should, be done at the AST level in the future
+ if (!children?.length && node.type) {
+ const childSlot = getSlots(node.value).find(
+ (slot) => slot.name === 'children'
+ )
+ children = childSlot ? stringifyHastNode(childSlot) : ''
+ children = `${children} `
+ }
+
+ return `
+ <${formatTagName(node)} ${stringifyProps(node.props)}>
+ ${children}
+ ${formatTagName(node)}>`
+}
+export const stringifyProps = (props: any): string => {
+ if (!props) {
+ return ''
+ }
+
+ return Object.entries(props)
+ .map(([key, value]): any => {
+ if (isArray(value) || isObject(value)) {
+ return `${key}={${JSON.stringify(value)}}`
+ }
+
+ if (isNumber(value)) {
+ return `${key}={${value}}`
+ }
+
+ const fullValue = escapeHtml(value as string)
+ return `${key}="${fullValue}"`
+ })
+ .join(' ')
+}
diff --git a/packages/gui/src/lib/codegen/stringify-hast-node.ts b/packages/gui/src/lib/codegen/stringify-hast-node-as-jsx.ts
similarity index 100%
rename from packages/gui/src/lib/codegen/stringify-hast-node.ts
rename to packages/gui/src/lib/codegen/stringify-hast-node-as-jsx.ts
diff --git a/packages/gui/src/lib/codegen/styled-jsx.ts b/packages/gui/src/lib/codegen/styled-jsx.ts
index 500716bd..0a048a4e 100644
--- a/packages/gui/src/lib/codegen/styled-jsx.ts
+++ b/packages/gui/src/lib/codegen/styled-jsx.ts
@@ -3,7 +3,7 @@ import { HtmlNode } from '../../components/html/types'
import { extractStyles } from './extract-styles'
import { format } from './format'
import { html as toHtml } from './html'
-import { stringifyHastNode } from './stringify-hast-node'
+import { stringifyHastNode } from './stringify-hast-node-as-jsx'
import { toReactProps } from './to-react-props'
const h = (tagName: string, props: any, children?: any[]) => {
diff --git a/packages/gui/src/lib/codegen/theme-ui.ts b/packages/gui/src/lib/codegen/theme-ui.ts
index 14848977..8c7b357c 100644
--- a/packages/gui/src/lib/codegen/theme-ui.ts
+++ b/packages/gui/src/lib/codegen/theme-ui.ts
@@ -2,7 +2,7 @@ import { toH } from 'hast-to-hyperscript'
import { HtmlNode } from '../../components/html/types'
import { editorSchemaToHast } from '../transformers/editor-schema-to-hast'
import { toCSSObject } from './to-css-object'
-import { stringifyHastNode } from './stringify-hast-node'
+import { stringifyHastNode } from './stringify-hast-node-as-jsx'
import { toReactProps } from './to-react-props'
import { format } from './format'
import { getPropSyntax } from './util'
diff --git a/packages/gui/src/lib/codegen/util.ts b/packages/gui/src/lib/codegen/util.ts
index 990d2d2a..55073671 100644
--- a/packages/gui/src/lib/codegen/util.ts
+++ b/packages/gui/src/lib/codegen/util.ts
@@ -1,4 +1,4 @@
-import { camelCase } from 'lodash-es'
+import { camelCase, kebabCase } from 'lodash-es'
import { unified } from 'unified'
import { visit } from 'unist-util-visit'
import { HtmlNode, Slot } from '../../components/html/types'
diff --git a/packages/gui/src/lib/transformers/editor-schema-to-hast.ts b/packages/gui/src/lib/transformers/editor-schema-to-hast.ts
index 9b95f143..dcdab615 100644
--- a/packages/gui/src/lib/transformers/editor-schema-to-hast.ts
+++ b/packages/gui/src/lib/transformers/editor-schema-to-hast.ts
@@ -9,6 +9,7 @@ import { removeProperties } from './plugins/remove-properties'
type Options = {
removeStyleProperty?: boolean
addSlotSyntax?: boolean
+ addSlotTagSyntax?: boolean
}
export const editorSchemaToHast = (node: any, options?: Options) => {
const propertiesToRemove: string[] = []
@@ -29,6 +30,12 @@ export const editorSchemaToHast = (node: any, options?: Options) => {
node.value = `{${camelCase(node.name)}}`
})
}
+ if (options?.addSlotTagSyntax) {
+ visit(tree, 'slot', (node) => {
+ node.type = 'text'
+ node.value = ` `
+ })
+ }
})
.runSync(cloneDeep(node))
return processedTree
From 8b1b92427cb434c5232173537b83a2367348f162 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Thu, 15 Sep 2022 20:19:42 +0000
Subject: [PATCH 084/128] Version Packages
---
.changeset/early-lamps-tie.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/early-lamps-tie.md
diff --git a/.changeset/early-lamps-tie.md b/.changeset/early-lamps-tie.md
deleted file mode 100644
index ed938fe2..00000000
--- a/.changeset/early-lamps-tie.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Implement first pass of enhance output
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 58110ec3..b2a2f8e8 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.235
+
+### Patch Changes
+
+- b0c58514: Implement first pass of enhance output
+
## 0.0.234
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 414ded1d..26e3e4c8 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.234",
+ "version": "0.0.235",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 38996b16c4c051ecdd9273f0917a783dc9cb4d66 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Thu, 15 Sep 2022 15:28:43 -0600
Subject: [PATCH 085/128] Add attributes to enhance export
---
.changeset/silly-dots-love.md | 5 +++++
packages/gui/src/lib/codegen/enhance-sfc.ts | 11 +++++++++--
.../gui/src/lib/transformers/editor-schema-to-hast.ts | 4 +++-
.../plugins/convert-components-to-hast.ts | 4 ++++
4 files changed, 21 insertions(+), 3 deletions(-)
create mode 100644 .changeset/silly-dots-love.md
diff --git a/.changeset/silly-dots-love.md b/.changeset/silly-dots-love.md
new file mode 100644
index 00000000..88b91f79
--- /dev/null
+++ b/.changeset/silly-dots-love.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Include attributes in enhance export
diff --git a/packages/gui/src/lib/codegen/enhance-sfc.ts b/packages/gui/src/lib/codegen/enhance-sfc.ts
index a465c786..44a805e2 100644
--- a/packages/gui/src/lib/codegen/enhance-sfc.ts
+++ b/packages/gui/src/lib/codegen/enhance-sfc.ts
@@ -14,7 +14,7 @@ const h = (tagName: string, props: any, children?: any[]) => {
if (newProps.style) {
const style = newProps.style
delete newProps.style
- newProps.sx = toCSSObject(style)
+ newProps.style = toCSSObject(style)
}
return { tagName, props: newProps, children }
@@ -25,7 +25,8 @@ export const enhanceSFC = async (node: HtmlNode) => {
const functionBody = stringifyHastNode(toH(h, root))
const output = `
- export default function Component({ html }) {
+ export default function Component({ html, state = {} }) {
+ ${getAttrSyntax(node)}
return html\`
${functionBody}
\`
@@ -37,8 +38,14 @@ export const enhanceSFC = async (node: HtmlNode) => {
export const getAttrSyntax = (value: HtmlNode) => {
const slots = getSlots(value)
+
+ if (!slots.length) {
+ return ''
+ }
+
const props = slots.map((slot) => kebabCase(slot.name)).join(', ')
const attrString = props.length ? `{ ${props} }` : ''
+
return `
const { attrs } = state
const ${attrString} = attrs
diff --git a/packages/gui/src/lib/transformers/editor-schema-to-hast.ts b/packages/gui/src/lib/transformers/editor-schema-to-hast.ts
index dcdab615..9ffe5256 100644
--- a/packages/gui/src/lib/transformers/editor-schema-to-hast.ts
+++ b/packages/gui/src/lib/transformers/editor-schema-to-hast.ts
@@ -19,10 +19,12 @@ export const editorSchemaToHast = (node: any, options?: Options) => {
}
const processedTree = unified()
+ .use(convertComponentsToHast)
+ // @ts-ignore
.use(attributesToProperties)
.use(moveStyleToProperties as any)
+ // @ts-ignore
.use(removeProperties, { propertiesToRemove })
- .use(convertComponentsToHast)
.use(() => (tree) => {
if (options?.addSlotSyntax) {
visit(tree, 'slot', (node) => {
diff --git a/packages/gui/src/lib/transformers/plugins/convert-components-to-hast.ts b/packages/gui/src/lib/transformers/plugins/convert-components-to-hast.ts
index d370b4f6..01f8f6d1 100644
--- a/packages/gui/src/lib/transformers/plugins/convert-components-to-hast.ts
+++ b/packages/gui/src/lib/transformers/plugins/convert-components-to-hast.ts
@@ -4,5 +4,9 @@ export const convertComponentsToHast = () => (tree: any) => {
visit(tree, 'component', (node) => {
node.type = 'element'
node.component = true
+ node.attributes = {
+ ...node.attributes,
+ ...node.value.attributes,
+ }
})
}
From 8e75f0c4a2c4460032f89be884be3247d0097e31 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Thu, 15 Sep 2022 21:30:15 +0000
Subject: [PATCH 086/128] Version Packages
---
.changeset/silly-dots-love.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/silly-dots-love.md
diff --git a/.changeset/silly-dots-love.md b/.changeset/silly-dots-love.md
deleted file mode 100644
index 88b91f79..00000000
--- a/.changeset/silly-dots-love.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Include attributes in enhance export
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index b2a2f8e8..bd7ec3be 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.236
+
+### Patch Changes
+
+- 38996b16: Include attributes in enhance export
+
## 0.0.235
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 26e3e4c8..b31f3fe4 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.235",
+ "version": "0.0.236",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 263b9b23cd2227993619627bdc670121ff754654 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Fri, 16 Sep 2022 15:57:17 -0600
Subject: [PATCH 087/128] Move getAttrSyntax to util
---
.changeset/selfish-apricots-stare.md | 5 +++++
packages/gui/src/lib/codegen/enhance-sfc.ts | 19 +------------------
packages/gui/src/lib/codegen/util.ts | 16 ++++++++++++++++
3 files changed, 22 insertions(+), 18 deletions(-)
create mode 100644 .changeset/selfish-apricots-stare.md
diff --git a/.changeset/selfish-apricots-stare.md b/.changeset/selfish-apricots-stare.md
new file mode 100644
index 00000000..d973afdd
--- /dev/null
+++ b/.changeset/selfish-apricots-stare.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Move getAttrSyntax to util
diff --git a/packages/gui/src/lib/codegen/enhance-sfc.ts b/packages/gui/src/lib/codegen/enhance-sfc.ts
index 44a805e2..068145b8 100644
--- a/packages/gui/src/lib/codegen/enhance-sfc.ts
+++ b/packages/gui/src/lib/codegen/enhance-sfc.ts
@@ -5,8 +5,7 @@ import { toCSSObject } from './to-css-object'
import { stringifyHastNode } from './stringify-hast-node-as-html'
import { toReactProps } from './to-react-props'
import { format } from './format'
-import { getSlots } from './util'
-import { kebabCase } from 'lodash-es'
+import { getAttrSyntax } from './util'
const h = (tagName: string, props: any, children?: any[]) => {
const newProps = toReactProps(props)
@@ -35,19 +34,3 @@ export const enhanceSFC = async (node: HtmlNode) => {
return format('js', output)
}
-
-export const getAttrSyntax = (value: HtmlNode) => {
- const slots = getSlots(value)
-
- if (!slots.length) {
- return ''
- }
-
- const props = slots.map((slot) => kebabCase(slot.name)).join(', ')
- const attrString = props.length ? `{ ${props} }` : ''
-
- return `
- const { attrs } = state
- const ${attrString} = attrs
- `
-}
diff --git a/packages/gui/src/lib/codegen/util.ts b/packages/gui/src/lib/codegen/util.ts
index 55073671..d9ac9a46 100644
--- a/packages/gui/src/lib/codegen/util.ts
+++ b/packages/gui/src/lib/codegen/util.ts
@@ -54,3 +54,19 @@ export const stringifySlotInProp = (value: any, outerProps: any) => {
export const isText = (value: HtmlNode) => value?.type === 'text'
export const isSlot = (value: HtmlNode) => value?.type === 'slot'
+
+export const getAttrSyntax = (value: HtmlNode) => {
+ const slots = getSlots(value)
+
+ if (!slots.length) {
+ return ''
+ }
+
+ const props = slots.map((slot) => kebabCase(slot.name)).join(', ')
+ const attrString = props.length ? `{ ${props} }` : ''
+
+ return `
+ const { attrs } = state
+ const ${attrString} = attrs
+ `
+}
From f0d931d2947b6a3db947a577c34aade964ec1cd8 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Fri, 16 Sep 2022 21:58:04 +0000
Subject: [PATCH 088/128] Version Packages
---
.changeset/selfish-apricots-stare.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/selfish-apricots-stare.md
diff --git a/.changeset/selfish-apricots-stare.md b/.changeset/selfish-apricots-stare.md
deleted file mode 100644
index d973afdd..00000000
--- a/.changeset/selfish-apricots-stare.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Move getAttrSyntax to util
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index bd7ec3be..462d529a 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.237
+
+### Patch Changes
+
+- 263b9b23: Move getAttrSyntax to util
+
## 0.0.236
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index b31f3fe4..dd797838 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.236",
+ "version": "0.0.237",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 700259d1dc28e2f42909639d0dc02f6df23ab8e4 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Mon, 19 Sep 2022 15:54:54 -0600
Subject: [PATCH 089/128] Make sure all code generators are passed theme in
export
Related to #616
---
.changeset/cold-kids-refuse.md | 5 ++++
packages/gui/src/lib/codegen/emotion.ts | 5 ++--
packages/gui/src/lib/codegen/enhance-sfc.ts | 10 ++++---
packages/gui/src/lib/codegen/html.ts | 7 ++---
packages/gui/src/lib/codegen/react.ts | 8 ++++--
packages/gui/src/lib/codegen/styled-jsx.ts | 8 ++++--
packages/gui/src/lib/codegen/theme-ui.ts | 28 +++++++++++--------
packages/gui/src/lib/codegen/to-css-object.ts | 26 +++++++++--------
packages/gui/src/lib/codegen/types.ts | 4 +++
packages/gui/src/lib/codegen/vue.ts | 5 ++--
10 files changed, 67 insertions(+), 39 deletions(-)
create mode 100644 .changeset/cold-kids-refuse.md
create mode 100644 packages/gui/src/lib/codegen/types.ts
diff --git a/.changeset/cold-kids-refuse.md b/.changeset/cold-kids-refuse.md
new file mode 100644
index 00000000..fc36fee4
--- /dev/null
+++ b/.changeset/cold-kids-refuse.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Make sure all code generators are passed theme in export
diff --git a/packages/gui/src/lib/codegen/emotion.ts b/packages/gui/src/lib/codegen/emotion.ts
index 93422862..6e1cbcbf 100644
--- a/packages/gui/src/lib/codegen/emotion.ts
+++ b/packages/gui/src/lib/codegen/emotion.ts
@@ -7,6 +7,7 @@ import { toReactProps } from './to-react-props'
import { format } from './format'
import { getPropSyntax } from './util'
import { Theme } from '../../types/theme'
+import { CodegenOptions } from './types'
const h =
(theme?: Theme) => (tagName: string, props: any, children?: any[]) => {
@@ -21,9 +22,9 @@ const h =
return { tagName, props: newProps, children }
}
-export const emotion = async (node: HtmlNode, options: any) => {
+export const emotion = async (node: HtmlNode, options: CodegenOptions) => {
const root = editorSchemaToHast(node, { addSlotSyntax: true })
- const functionBody = stringifyHastNode(toH(h(options.theme), root))
+ const functionBody = stringifyHastNode(toH(h(options?.theme), root))
const output = `
/** @jsxImportSource @emotion/react */
diff --git a/packages/gui/src/lib/codegen/enhance-sfc.ts b/packages/gui/src/lib/codegen/enhance-sfc.ts
index 068145b8..28e242ff 100644
--- a/packages/gui/src/lib/codegen/enhance-sfc.ts
+++ b/packages/gui/src/lib/codegen/enhance-sfc.ts
@@ -6,22 +6,24 @@ import { stringifyHastNode } from './stringify-hast-node-as-html'
import { toReactProps } from './to-react-props'
import { format } from './format'
import { getAttrSyntax } from './util'
+import { CodegenOptions } from './types'
+import { Theme } from '../../types/theme'
-const h = (tagName: string, props: any, children?: any[]) => {
+const h = (theme: Theme) => (tagName: string, props: any, children?: any[]) => {
const newProps = toReactProps(props)
if (newProps.style) {
const style = newProps.style
delete newProps.style
- newProps.style = toCSSObject(style)
+ newProps.style = toCSSObject(style, theme)
}
return { tagName, props: newProps, children }
}
-export const enhanceSFC = async (node: HtmlNode) => {
+export const enhanceSFC = async (node: HtmlNode, options: CodegenOptions) => {
const root = editorSchemaToHast(node, { addSlotTagSyntax: true })
- const functionBody = stringifyHastNode(toH(h, root))
+ const functionBody = stringifyHastNode(toH(h(options?.theme), root))
const output = `
export default function Component({ html, state = {} }) {
diff --git a/packages/gui/src/lib/codegen/html.ts b/packages/gui/src/lib/codegen/html.ts
index 9ea22375..10dd729c 100644
--- a/packages/gui/src/lib/codegen/html.ts
+++ b/packages/gui/src/lib/codegen/html.ts
@@ -3,6 +3,7 @@ import rehypeStringify from 'rehype-stringify'
import { HtmlNode } from '../../components/html/types'
import { editorSchemaToHast } from '../transformers/editor-schema-to-hast'
import { format } from './format'
+import { CodegenOptions } from './types'
export const unstyledHtml = async (node: HtmlNode) => {
const root = editorSchemaToHast(node, {
@@ -12,11 +13,7 @@ export const unstyledHtml = async (node: HtmlNode) => {
return format('html', output)
}
-type HTMLOptions = {
- selector?: string
- theme?: any
-}
-export const html = async (node: HtmlNode, { theme }: HTMLOptions = {}) => {
+export const html = async (node: HtmlNode, { theme }: CodegenOptions = {}) => {
const res = await fetch('https://components.ai/api/v1/gui/export/html', {
method: 'POST',
headers: {
diff --git a/packages/gui/src/lib/codegen/react.ts b/packages/gui/src/lib/codegen/react.ts
index 1c215676..c7aebd5e 100644
--- a/packages/gui/src/lib/codegen/react.ts
+++ b/packages/gui/src/lib/codegen/react.ts
@@ -5,6 +5,7 @@ import { format } from './format'
import { html as toHtml } from './html'
import { stringifyHastNode } from './stringify-hast-node-as-jsx'
import { toReactProps } from './to-react-props'
+import { CodegenOptions } from './types'
const h = (tagName: string, props: any, children?: any[]) => {
const newProps = toReactProps(props)
@@ -12,8 +13,11 @@ const h = (tagName: string, props: any, children?: any[]) => {
return { tagName, props: newProps, children }
}
-export const react = async (node: HtmlNode): Promise => {
- const html = await toHtml(node)
+export const react = async (
+ node: HtmlNode,
+ options: CodegenOptions
+): Promise => {
+ const html = await toHtml(node, options)
const { styles } = await extractStyles(html)
const jsx = stringifyHastNode(toH(h, node as any))
diff --git a/packages/gui/src/lib/codegen/styled-jsx.ts b/packages/gui/src/lib/codegen/styled-jsx.ts
index 0a048a4e..f80d064a 100644
--- a/packages/gui/src/lib/codegen/styled-jsx.ts
+++ b/packages/gui/src/lib/codegen/styled-jsx.ts
@@ -5,6 +5,7 @@ import { format } from './format'
import { html as toHtml } from './html'
import { stringifyHastNode } from './stringify-hast-node-as-jsx'
import { toReactProps } from './to-react-props'
+import { CodegenOptions } from './types'
const h = (tagName: string, props: any, children?: any[]) => {
const newProps = toReactProps(props)
@@ -12,8 +13,11 @@ const h = (tagName: string, props: any, children?: any[]) => {
return { tagName, props: newProps, children }
}
-export const styledJsx = async (node: HtmlNode): Promise => {
- const html = await toHtml(node)
+export const styledJsx = async (
+ node: HtmlNode,
+ options: CodegenOptions
+): Promise => {
+ const html = await toHtml(node, options)
const { styles } = await extractStyles(html)
const jsx = stringifyHastNode(toH(h, node as any))
diff --git a/packages/gui/src/lib/codegen/theme-ui.ts b/packages/gui/src/lib/codegen/theme-ui.ts
index 8c7b357c..375973ab 100644
--- a/packages/gui/src/lib/codegen/theme-ui.ts
+++ b/packages/gui/src/lib/codegen/theme-ui.ts
@@ -6,22 +6,28 @@ import { stringifyHastNode } from './stringify-hast-node-as-jsx'
import { toReactProps } from './to-react-props'
import { format } from './format'
import { getPropSyntax } from './util'
+import { CodegenOptions } from './types'
+import { Theme } from '../../types/theme'
-const h = (tagName: string, props: any, children?: any[]) => {
- const newProps = toReactProps(props)
+const h =
+ (theme?: Theme) => (tagName: string, props: any, children?: any[]) => {
+ const newProps = toReactProps(props)
- if (newProps.style) {
- const style = newProps.style
- delete newProps.style
- newProps.sx = toCSSObject(style)
- }
+ if (newProps.style) {
+ const style = newProps.style
+ delete newProps.style
+ newProps.sx = toCSSObject(style, theme)
+ }
- return { tagName, props: newProps, children }
-}
+ return { tagName, props: newProps, children }
+ }
-export const themeUI = async (node: HtmlNode) => {
+export const themeUI = async (
+ node: HtmlNode,
+ { theme }: CodegenOptions = {}
+) => {
const root = editorSchemaToHast(node, { addSlotSyntax: true })
- const functionBody = stringifyHastNode(toH(h, root))
+ const functionBody = stringifyHastNode(toH(h(theme), root))
const output = `
/** @jsxImportSource theme-ui */
diff --git a/packages/gui/src/lib/codegen/to-css-object.ts b/packages/gui/src/lib/codegen/to-css-object.ts
index 9482ea0c..2d8fe635 100644
--- a/packages/gui/src/lib/codegen/to-css-object.ts
+++ b/packages/gui/src/lib/codegen/to-css-object.ts
@@ -23,18 +23,22 @@ export const stringifyProperty = (
type StyleEntry = [string, Length | string | null | undefined]
export const toCSSObject = (providedStyles: Styles, theme?: Theme): any => {
const styles = stylesToEditorSchema(providedStyles)
- // @ts-ignore
- return Object.entries(styles).reduce((acc: Styles, curr: StyleEntry) => {
- const [property, value] = curr
- if (isNestedSelector(property.replace(/^:+/, ''))) {
+ const cssObject = Object.entries(styles).reduce(
+ // @ts-ignore
+ (acc: Styles, curr: StyleEntry) => {
+ const [property, value] = curr
+ if (isNestedSelector(property.replace(/^:+/, ''))) {
+ return {
+ ...acc,
+ [stringifySelector(property)]: toCSSObject(value as Styles, theme),
+ }
+ }
return {
...acc,
- [stringifySelector(property)]: toCSSObject(value as Styles, theme),
+ [property]: stringifyProperty(property, value, theme),
}
- }
- return {
- ...acc,
- [property]: stringifyProperty(property, value, theme),
- }
- }, {})
+ },
+ {}
+ )
+ return cssObject
}
diff --git a/packages/gui/src/lib/codegen/types.ts b/packages/gui/src/lib/codegen/types.ts
new file mode 100644
index 00000000..0f36468c
--- /dev/null
+++ b/packages/gui/src/lib/codegen/types.ts
@@ -0,0 +1,4 @@
+export type CodegenOptions = {
+ selector?: string
+ theme?: any
+}
diff --git a/packages/gui/src/lib/codegen/vue.ts b/packages/gui/src/lib/codegen/vue.ts
index b5ecc698..8ea08440 100644
--- a/packages/gui/src/lib/codegen/vue.ts
+++ b/packages/gui/src/lib/codegen/vue.ts
@@ -2,9 +2,10 @@ import { HtmlNode } from '../../components/html/types'
import { extractStyles } from './extract-styles'
import { format } from './format'
import { html as toHtml } from './html'
+import { CodegenOptions } from './types'
-export const vue = async (node: HtmlNode) => {
- const src = await toHtml(node)
+export const vue = async (node: HtmlNode, options: CodegenOptions) => {
+ const src = await toHtml(node, options)
const { html, styles } = await extractStyles(src)
const output = `
From 91a072619e6656359c9d14df35eb75f489e5f405 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Mon, 19 Sep 2022 21:58:18 +0000
Subject: [PATCH 090/128] Version Packages
---
.changeset/cold-kids-refuse.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/cold-kids-refuse.md
diff --git a/.changeset/cold-kids-refuse.md b/.changeset/cold-kids-refuse.md
deleted file mode 100644
index fc36fee4..00000000
--- a/.changeset/cold-kids-refuse.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Make sure all code generators are passed theme in export
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 462d529a..86faf81f 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.238
+
+### Patch Changes
+
+- 700259d1: Make sure all code generators are passed theme in export
+
## 0.0.237
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index dd797838..b49be98c 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.237",
+ "version": "0.0.238",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 8db98565264f3dce151853c55ac1d6eb34f77c8f Mon Sep 17 00:00:00 2001
From: John Otander
Date: Wed, 21 Sep 2022 12:28:12 -0600
Subject: [PATCH 091/128] Use a style string rather than object
Related to #616 and #617
Note: The style string will be replaced with a style element
and proper CSS string in a PR later today.
---
.changeset/strong-cheetahs-tap.md | 5 +++++
packages/gui/src/lib/codegen/stringify-css-object.ts | 2 +-
packages/gui/src/lib/codegen/stringify-hast-node-as-html.ts | 5 +++++
packages/gui/src/lib/codegen/util.ts | 2 ++
4 files changed, 13 insertions(+), 1 deletion(-)
create mode 100644 .changeset/strong-cheetahs-tap.md
diff --git a/.changeset/strong-cheetahs-tap.md b/.changeset/strong-cheetahs-tap.md
new file mode 100644
index 00000000..f1afe217
--- /dev/null
+++ b/.changeset/strong-cheetahs-tap.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Use style string and don't destructure slots as attrs
diff --git a/packages/gui/src/lib/codegen/stringify-css-object.ts b/packages/gui/src/lib/codegen/stringify-css-object.ts
index a7e0f63b..c17dad12 100644
--- a/packages/gui/src/lib/codegen/stringify-css-object.ts
+++ b/packages/gui/src/lib/codegen/stringify-css-object.ts
@@ -3,7 +3,7 @@ import { isCSSClass } from '../classes'
import { isElement } from '../elements'
import { isPseudo } from '../pseudos'
-const objectToDecls = (obj: any): string => {
+export const objectToDecls = (obj: any): string => {
return Object.entries(obj)
.map(([key, value]: [string, any]) => {
return ` ${kebabCase(key)}: ${value};`
diff --git a/packages/gui/src/lib/codegen/stringify-hast-node-as-html.ts b/packages/gui/src/lib/codegen/stringify-hast-node-as-html.ts
index 77b4273b..5163f078 100644
--- a/packages/gui/src/lib/codegen/stringify-hast-node-as-html.ts
+++ b/packages/gui/src/lib/codegen/stringify-hast-node-as-html.ts
@@ -2,6 +2,7 @@ import { isArray, isNumber, isObject, kebabCase } from 'lodash-es'
import escapeHtml from 'escape-html'
import { isElement, isVoidElement } from '../elements'
import { getSlots, isSlot } from './util'
+import { objectToDecls } from './stringify-css-object'
// TODO: This can, and should, be done at the AST level in the future
export const formatTagName = (node: any) => {
@@ -23,6 +24,10 @@ export const stringifyHastNode = (node: any) => {
return node.value || node
}
+ if (node.props.style) {
+ node.props.style = objectToDecls(node.props.style).trim()
+ }
+
if (isVoidElement(node.tagName)) {
return `<${formatTagName(node)} ${stringifyProps(node.props)} />`
}
diff --git a/packages/gui/src/lib/codegen/util.ts b/packages/gui/src/lib/codegen/util.ts
index d9ac9a46..3271aae6 100644
--- a/packages/gui/src/lib/codegen/util.ts
+++ b/packages/gui/src/lib/codegen/util.ts
@@ -55,7 +55,9 @@ export const stringifySlotInProp = (value: any, outerProps: any) => {
export const isText = (value: HtmlNode) => value?.type === 'text'
export const isSlot = (value: HtmlNode) => value?.type === 'slot'
+// TODO: This should find attr slots only
export const getAttrSyntax = (value: HtmlNode) => {
+ return ''
const slots = getSlots(value)
if (!slots.length) {
From 7dc4f8e665f2df0719a8f5afe64c6e9693ed547e Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Wed, 21 Sep 2022 18:30:49 +0000
Subject: [PATCH 092/128] Version Packages
---
.changeset/strong-cheetahs-tap.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/strong-cheetahs-tap.md
diff --git a/.changeset/strong-cheetahs-tap.md b/.changeset/strong-cheetahs-tap.md
deleted file mode 100644
index f1afe217..00000000
--- a/.changeset/strong-cheetahs-tap.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Use style string and don't destructure slots as attrs
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 86faf81f..5ef61e9e 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.239
+
+### Patch Changes
+
+- 8db98565: Use style string and don't destructure slots as attrs
+
## 0.0.238
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index b49be98c..54089b54 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.238",
+ "version": "0.0.239",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 3d312157f0bc6ec9d11950623d3626beac7f10c8 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Wed, 21 Sep 2022 13:01:07 -0600
Subject: [PATCH 093/128] Add style element to enhance export
Related to #616 and #617
---
.changeset/long-camels-study.md | 5 +++
packages/gui/package.json | 1 +
packages/gui/src/lib/codegen/enhance-sfc.ts | 12 +++++-
.../lib/transformers/editor-schema-to-hast.ts | 1 +
.../inline-styles-to-style-element.ts | 42 +++++++++++++++++++
yarn.lock | 5 +++
6 files changed, 64 insertions(+), 2 deletions(-)
create mode 100644 .changeset/long-camels-study.md
create mode 100644 packages/gui/src/lib/transformers/inline-styles-to-style-element.ts
diff --git a/.changeset/long-camels-study.md b/.changeset/long-camels-study.md
new file mode 100644
index 00000000..f4b11662
--- /dev/null
+++ b/.changeset/long-camels-study.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Add style element to enhance export
diff --git a/packages/gui/package.json b/packages/gui/package.json
index b49be98c..cea32bbb 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -41,6 +41,7 @@
"typescript": "^4.6.4"
},
"dependencies": {
+ "@emotion/hash": "^0.9.0",
"@emotion/react": "^11.9.0",
"@mdx-js/react": "^1.6.22",
"@radix-ui/react-accordion": "^0.1.6",
diff --git a/packages/gui/src/lib/codegen/enhance-sfc.ts b/packages/gui/src/lib/codegen/enhance-sfc.ts
index 28e242ff..373f40c3 100644
--- a/packages/gui/src/lib/codegen/enhance-sfc.ts
+++ b/packages/gui/src/lib/codegen/enhance-sfc.ts
@@ -8,6 +8,7 @@ import { format } from './format'
import { getAttrSyntax } from './util'
import { CodegenOptions } from './types'
import { Theme } from '../../types/theme'
+import { inlineStylesToStyleElement } from '../transformers/inline-styles-to-style-element'
const h = (theme: Theme) => (tagName: string, props: any, children?: any[]) => {
const newProps = toReactProps(props)
@@ -23,13 +24,20 @@ const h = (theme: Theme) => (tagName: string, props: any, children?: any[]) => {
export const enhanceSFC = async (node: HtmlNode, options: CodegenOptions) => {
const root = editorSchemaToHast(node, { addSlotTagSyntax: true })
- const functionBody = stringifyHastNode(toH(h(options?.theme), root))
+ const { node: htmlNode, styles } = inlineStylesToStyleElement(root)
+ // @ts-ignore
+ const functionBody = stringifyHastNode(toH(h(options?.theme), htmlNode))
+
+ const htmlString = `
+
+ ${functionBody}`
+ const formattedHtmlString = await format('html', htmlString)
const output = `
export default function Component({ html, state = {} }) {
${getAttrSyntax(node)}
return html\`
- ${functionBody}
+ ${formattedHtmlString}
\`
}
`
diff --git a/packages/gui/src/lib/transformers/editor-schema-to-hast.ts b/packages/gui/src/lib/transformers/editor-schema-to-hast.ts
index 9ffe5256..7bea0fe0 100644
--- a/packages/gui/src/lib/transformers/editor-schema-to-hast.ts
+++ b/packages/gui/src/lib/transformers/editor-schema-to-hast.ts
@@ -40,5 +40,6 @@ export const editorSchemaToHast = (node: any, options?: Options) => {
}
})
.runSync(cloneDeep(node))
+
return processedTree
}
diff --git a/packages/gui/src/lib/transformers/inline-styles-to-style-element.ts b/packages/gui/src/lib/transformers/inline-styles-to-style-element.ts
new file mode 100644
index 00000000..b38676ce
--- /dev/null
+++ b/packages/gui/src/lib/transformers/inline-styles-to-style-element.ts
@@ -0,0 +1,42 @@
+import { cloneDeep } from 'lodash-es'
+import { unified } from 'unified'
+import { visit } from 'unist-util-visit'
+import hash from '@emotion/hash'
+import { stringifyCSSObject } from '../codegen/stringify-css-object'
+import { toCSSObject } from '../codegen/to-css-object'
+import { addCSSClassSyntax } from '../classes'
+
+export const inlineStylesToStyleElement = (node: any) => {
+ const styleMap: Record = {}
+ const processedTree = unified()
+ .use(() => (tree) => {
+ visit(tree, 'element', (node: any) => {
+ if (!node.properties.style) {
+ return
+ }
+
+ const style = node.properties.style
+ // @ts-ignore
+ const selector = 'css-' + hash.default(JSON.stringify(style))
+
+ if (!node.properties.class) {
+ node.properties.class = selector
+ } else {
+ node.properties.class = node.properties.class + ' ' + selector
+ }
+
+ delete node.properties.style
+
+ styleMap[selector] = stringifyCSSObject(
+ toCSSObject(style),
+ addCSSClassSyntax(selector)
+ )
+ })
+ })
+ .runSync(cloneDeep(node))
+
+ return {
+ node: processedTree,
+ styles: Object.values(styleMap).join('\n'),
+ }
+}
diff --git a/yarn.lock b/yarn.lock
index 502416a6..c90a2ba6 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -565,6 +565,11 @@
resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.8.0.tgz#bbbff68978fefdbe68ccb533bc8cbe1d1afb5413"
integrity sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==
+"@emotion/hash@^0.9.0":
+ version "0.9.0"
+ resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.9.0.tgz#c5153d50401ee3c027a57a177bc269b16d889cb7"
+ integrity sha512-14FtKiHhy2QoPIzdTcvh//8OyBlknNs2nXRwIhG904opCby3l+9Xaf/wuPvICBF0rc1ZCNBd3nKe9cd2mecVkQ==
+
"@emotion/is-prop-valid@^0.8.1":
version "0.8.8"
resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz#db28b1c4368a259b60a97311d6a952d4fd01ac1a"
From fdc25a42c236b02df7954b3e8e933b04e75660f2 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Wed, 21 Sep 2022 19:03:33 +0000
Subject: [PATCH 094/128] Version Packages
---
.changeset/long-camels-study.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/long-camels-study.md
diff --git a/.changeset/long-camels-study.md b/.changeset/long-camels-study.md
deleted file mode 100644
index f4b11662..00000000
--- a/.changeset/long-camels-study.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Add style element to enhance export
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 5ef61e9e..8614a9ee 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.240
+
+### Patch Changes
+
+- 3d312157: Add style element to enhance export
+
## 0.0.239
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index e8cce204..9f73d1ca 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.239",
+ "version": "0.0.240",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From ffdba21aa71ef6cb12d88d771c232b414afd2a71 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Thu, 22 Sep 2022 13:28:45 -0700
Subject: [PATCH 095/128] Change http to https for video file
Fixes #624
---
apps/docs/data/initial-html-editor-data.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/docs/data/initial-html-editor-data.ts b/apps/docs/data/initial-html-editor-data.ts
index d6ddd1ca..3064c830 100644
--- a/apps/docs/data/initial-html-editor-data.ts
+++ b/apps/docs/data/initial-html-editor-data.ts
@@ -164,7 +164,7 @@ export const initialValue: any = {
tagName: 'video',
attributes: {
title: 'Video - ',
- src: 'http://dc28c2r6oodom.cloudfront.net/vid/cube-loop.mp4',
+ src: 'https://dc28c2r6oodom.cloudfront.net/vid/cube-loop.mp4',
loop: true,
autoPlay: true,
playsInline: true,
From 4be2253e231c59dbfe5899b4cab83e0dba2d710c Mon Sep 17 00:00:00 2001
From: John Otander
Date: Thu, 22 Sep 2022 15:27:19 -0600
Subject: [PATCH 096/128] Copy over emotion's hash code, faux ESM makes it
tricky to use as dep
---
.changeset/mighty-berries-smash.md | 5 ++
packages/gui/package.json | 1 -
packages/gui/src/lib/hash.ts | 65 +++++++++++++++++++
.../inline-styles-to-style-element.ts | 4 +-
yarn.lock | 5 --
5 files changed, 72 insertions(+), 8 deletions(-)
create mode 100644 .changeset/mighty-berries-smash.md
create mode 100644 packages/gui/src/lib/hash.ts
diff --git a/.changeset/mighty-berries-smash.md b/.changeset/mighty-berries-smash.md
new file mode 100644
index 00000000..f3890930
--- /dev/null
+++ b/.changeset/mighty-berries-smash.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Copy over emotion's hash code, faux ESM makes it tricky to use as dep
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 9f73d1ca..3bb20857 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -41,7 +41,6 @@
"typescript": "^4.6.4"
},
"dependencies": {
- "@emotion/hash": "^0.9.0",
"@emotion/react": "^11.9.0",
"@mdx-js/react": "^1.6.22",
"@radix-ui/react-accordion": "^0.1.6",
diff --git a/packages/gui/src/lib/hash.ts b/packages/gui/src/lib/hash.ts
new file mode 100644
index 00000000..fb0da82b
--- /dev/null
+++ b/packages/gui/src/lib/hash.ts
@@ -0,0 +1,65 @@
+/* eslint-disable */
+// Copied from https://github.com/emotion-js/emotion/blob/6eef2e3ede044d64530d94f08fe0e92f6267dc6c/packages/hash/src/index.js
+// License https://github.com/emotion-js/emotion/blob/6eef2e3ede044d64530d94f08fe0e92f6267dc6c/packages/hash/LICENSE
+// Inspired by https://github.com/garycourt/murmurhash-js
+// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
+
+export default function murmur2(str: string): string {
+ // 'm' and 'r' are mixing constants generated offline.
+ // They're not really 'magic', they just happen to work well.
+
+ // const m = 0x5bd1e995;
+ // const r = 24;
+
+ // Initialize the hash
+
+ var h = 0
+
+ // Mix 4 bytes at a time into the hash
+
+ var k,
+ i = 0,
+ len = str.length
+ for (; len >= 4; ++i, len -= 4) {
+ k =
+ (str.charCodeAt(i) & 0xff) |
+ ((str.charCodeAt(++i) & 0xff) << 8) |
+ ((str.charCodeAt(++i) & 0xff) << 16) |
+ ((str.charCodeAt(++i) & 0xff) << 24)
+
+ k =
+ /* Math.imul(k, m): */
+ (k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0xe995) << 16)
+ k ^= /* k >>> r: */ k >>> 24
+
+ h =
+ /* Math.imul(k, m): */
+ ((k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0xe995) << 16)) ^
+ /* Math.imul(h, m): */
+ ((h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0xe995) << 16))
+ }
+
+ // Handle the last few bytes of the input array
+
+ switch (len) {
+ case 3:
+ h ^= (str.charCodeAt(i + 2) & 0xff) << 16
+ case 2:
+ h ^= (str.charCodeAt(i + 1) & 0xff) << 8
+ case 1:
+ h ^= str.charCodeAt(i) & 0xff
+ h =
+ /* Math.imul(h, m): */
+ (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0xe995) << 16)
+ }
+
+ // Do a few final mixes of the hash to ensure the last few
+ // bytes are well-incorporated.
+
+ h ^= h >>> 13
+ h =
+ /* Math.imul(h, m): */
+ (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0xe995) << 16)
+
+ return ((h ^ (h >>> 15)) >>> 0).toString(36)
+}
diff --git a/packages/gui/src/lib/transformers/inline-styles-to-style-element.ts b/packages/gui/src/lib/transformers/inline-styles-to-style-element.ts
index b38676ce..7d75a412 100644
--- a/packages/gui/src/lib/transformers/inline-styles-to-style-element.ts
+++ b/packages/gui/src/lib/transformers/inline-styles-to-style-element.ts
@@ -1,7 +1,7 @@
import { cloneDeep } from 'lodash-es'
import { unified } from 'unified'
import { visit } from 'unist-util-visit'
-import hash from '@emotion/hash'
+import hash from '../hash'
import { stringifyCSSObject } from '../codegen/stringify-css-object'
import { toCSSObject } from '../codegen/to-css-object'
import { addCSSClassSyntax } from '../classes'
@@ -17,7 +17,7 @@ export const inlineStylesToStyleElement = (node: any) => {
const style = node.properties.style
// @ts-ignore
- const selector = 'css-' + hash.default(JSON.stringify(style))
+ const selector = 'css-' + hash(JSON.stringify(style))
if (!node.properties.class) {
node.properties.class = selector
diff --git a/yarn.lock b/yarn.lock
index c90a2ba6..502416a6 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -565,11 +565,6 @@
resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.8.0.tgz#bbbff68978fefdbe68ccb533bc8cbe1d1afb5413"
integrity sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==
-"@emotion/hash@^0.9.0":
- version "0.9.0"
- resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.9.0.tgz#c5153d50401ee3c027a57a177bc269b16d889cb7"
- integrity sha512-14FtKiHhy2QoPIzdTcvh//8OyBlknNs2nXRwIhG904opCby3l+9Xaf/wuPvICBF0rc1ZCNBd3nKe9cd2mecVkQ==
-
"@emotion/is-prop-valid@^0.8.1":
version "0.8.8"
resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz#db28b1c4368a259b60a97311d6a952d4fd01ac1a"
From 042eef27f7c2ba5cce405273153f070ce58b9e38 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Thu, 22 Sep 2022 21:30:39 +0000
Subject: [PATCH 097/128] Version Packages
---
.changeset/mighty-berries-smash.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/mighty-berries-smash.md
diff --git a/.changeset/mighty-berries-smash.md b/.changeset/mighty-berries-smash.md
deleted file mode 100644
index f3890930..00000000
--- a/.changeset/mighty-berries-smash.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Copy over emotion's hash code, faux ESM makes it tricky to use as dep
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 8614a9ee..adbd22d3 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.241
+
+### Patch Changes
+
+- 4be2253e: Copy over emotion's hash code, faux ESM makes it tricky to use as dep
+
## 0.0.240
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 3bb20857..210c7c6e 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.240",
+ "version": "0.0.241",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From de6ee31e5e14a5ed3a4dd9b5d81a396a4dc8b74d Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Wed, 28 Sep 2022 11:46:56 -0700
Subject: [PATCH 098/128] Fixes for two design bugs
Changes active color style in theme to remove changing height of the row
by adding a border
Adds gap between refresh icon and combobox for components
---
packages/gui/src/components/html/Component/Editor.tsx | 4 ++--
.../primitives/ColorPicker/PreviewPalettePicker.tsx | 5 ++---
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/packages/gui/src/components/html/Component/Editor.tsx b/packages/gui/src/components/html/Component/Editor.tsx
index 7fd31966..8cd2a72e 100644
--- a/packages/gui/src/components/html/Component/Editor.tsx
+++ b/packages/gui/src/components/html/Component/Editor.tsx
@@ -98,7 +98,7 @@ export const ComponentEditor = ({ value, onChange }: ComponentEditorProps) => {
}}
>
Component
-
+
{
) : null}
diff --git a/packages/gui/src/components/primitives/ColorPicker/PreviewPalettePicker.tsx b/packages/gui/src/components/primitives/ColorPicker/PreviewPalettePicker.tsx
index 0263cf04..2d55ea18 100644
--- a/packages/gui/src/components/primitives/ColorPicker/PreviewPalettePicker.tsx
+++ b/packages/gui/src/components/primitives/ColorPicker/PreviewPalettePicker.tsx
@@ -53,15 +53,14 @@ export function PreviewPalettePicker({
appearance: 'none',
WebkitAppearance: 'none',
cursor: 'pointer',
- borderWidth: selected ? '2px' : '1px',
- borderColor: selected ? '#ff0000' : 'border',
- borderStyle: 'solid',
+ boxShadow: selected ? 'inset 0 0 0 2px white, 0 0 0 2px '+color.value : 'inset 0 0 0 2px rgba(0,0,0,.15)',
borderRadius: '9999px',
padding: 0,
margin: 0,
width: '100%',
aspectRatio: '1 / 1',
backgroundColor: color.value,
+ border: 0,
}}
onClick={() =>
onChange({
From 1f758bed271fc60d56132e622edeef6f9adb9499 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Wed, 28 Sep 2022 11:50:20 -0700
Subject: [PATCH 099/128] Adds changeset
---
.changeset/great-glasses-smoke.md | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 .changeset/great-glasses-smoke.md
diff --git a/.changeset/great-glasses-smoke.md b/.changeset/great-glasses-smoke.md
new file mode 100644
index 00000000..5a1eb2c5
--- /dev/null
+++ b/.changeset/great-glasses-smoke.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Fixes to two small design bugs
From 98e46e532b8ec6a1e3578b7d00bfa35811270e32 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Wed, 28 Sep 2022 18:51:16 +0000
Subject: [PATCH 100/128] Version Packages
---
.changeset/great-glasses-smoke.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/great-glasses-smoke.md
diff --git a/.changeset/great-glasses-smoke.md b/.changeset/great-glasses-smoke.md
deleted file mode 100644
index 5a1eb2c5..00000000
--- a/.changeset/great-glasses-smoke.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Fixes to two small design bugs
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index adbd22d3..ec2f63ea 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.242
+
+### Patch Changes
+
+- 1f758bed: Fixes to two small design bugs
+
## 0.0.241
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 210c7c6e..92f7fafe 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.241",
+ "version": "0.0.242",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From e116b8551452e1d9234bc712579b2cf36388a0b1 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Wed, 28 Sep 2022 15:53:35 -0600
Subject: [PATCH 101/128] Ensure theme is passed to style element
stringification
---
.changeset/two-waves-help.md | 5 +++++
packages/gui/src/lib/codegen/enhance-sfc.ts | 2 +-
.../lib/transformers/inline-styles-to-style-element.ts | 9 +++++++--
3 files changed, 13 insertions(+), 3 deletions(-)
create mode 100644 .changeset/two-waves-help.md
diff --git a/.changeset/two-waves-help.md b/.changeset/two-waves-help.md
new file mode 100644
index 00000000..5c7f3646
--- /dev/null
+++ b/.changeset/two-waves-help.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Ensure theme is passed to style element stringification
diff --git a/packages/gui/src/lib/codegen/enhance-sfc.ts b/packages/gui/src/lib/codegen/enhance-sfc.ts
index 373f40c3..60c27ab0 100644
--- a/packages/gui/src/lib/codegen/enhance-sfc.ts
+++ b/packages/gui/src/lib/codegen/enhance-sfc.ts
@@ -24,7 +24,7 @@ const h = (theme: Theme) => (tagName: string, props: any, children?: any[]) => {
export const enhanceSFC = async (node: HtmlNode, options: CodegenOptions) => {
const root = editorSchemaToHast(node, { addSlotTagSyntax: true })
- const { node: htmlNode, styles } = inlineStylesToStyleElement(root)
+ const { node: htmlNode, styles } = inlineStylesToStyleElement(root, options)
// @ts-ignore
const functionBody = stringifyHastNode(toH(h(options?.theme), htmlNode))
diff --git a/packages/gui/src/lib/transformers/inline-styles-to-style-element.ts b/packages/gui/src/lib/transformers/inline-styles-to-style-element.ts
index 7d75a412..915672bf 100644
--- a/packages/gui/src/lib/transformers/inline-styles-to-style-element.ts
+++ b/packages/gui/src/lib/transformers/inline-styles-to-style-element.ts
@@ -5,8 +5,12 @@ import hash from '../hash'
import { stringifyCSSObject } from '../codegen/stringify-css-object'
import { toCSSObject } from '../codegen/to-css-object'
import { addCSSClassSyntax } from '../classes'
+import { CodegenOptions } from '../codegen/types'
-export const inlineStylesToStyleElement = (node: any) => {
+export const inlineStylesToStyleElement = (
+ node: any,
+ options: CodegenOptions
+) => {
const styleMap: Record = {}
const processedTree = unified()
.use(() => (tree) => {
@@ -27,8 +31,9 @@ export const inlineStylesToStyleElement = (node: any) => {
delete node.properties.style
+ console.log(options)
styleMap[selector] = stringifyCSSObject(
- toCSSObject(style),
+ toCSSObject(style, options?.theme),
addCSSClassSyntax(selector)
)
})
From 0f3b3c80f0342a9dacd7152a6c2edb705092a59a Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Wed, 28 Sep 2022 16:43:29 -0700
Subject: [PATCH 102/128] Consolidates layers and styles to one tab
---
packages/gui/src/components/html/Editor.tsx | 47 ++++++++++++-------
.../components/html/Editors/NodeEditor.tsx | 19 ++++----
packages/gui/src/components/html/TreeNode.tsx | 6 ++-
3 files changed, 44 insertions(+), 28 deletions(-)
diff --git a/packages/gui/src/components/html/Editor.tsx b/packages/gui/src/components/html/Editor.tsx
index ade90968..266e6586 100644
--- a/packages/gui/src/components/html/Editor.tsx
+++ b/packages/gui/src/components/html/Editor.tsx
@@ -38,7 +38,21 @@ const TABS_TRIGGER_STYLES: any = {
const TABS_CONTENT_STYLES: any = {
width: 400,
height: 'calc(100vh - 81px)',
- overflow: 'auto',
+ maxHeight: '100%',
+ overflow: 'hidden',
+ resize: 'horizontal',
+ borderRightWidth: '1px',
+ borderRightStyle: 'solid',
+ borderColor: 'border',
+ '&::-webkit-scrollbar': { display: 'none' },
+ scrollbarWidth: 0,
+}
+
+const TABS_EDITOR_STYLES: any = {
+ width: '400px',
+ height: 'calc(100vh - 81px)',
+ maxHeight: '100%',
+ overflow: 'hidden',
resize: 'horizontal',
borderRightWidth: '1px',
borderRightStyle: 'solid',
@@ -103,10 +117,7 @@ export function HtmlEditor() {
}}
>
- 🎨 Styles
-
-
- Layers
+ 🎨 Editor
Import
@@ -115,8 +126,8 @@ export function HtmlEditor() {
Export
-
-
+
+
-
-
-
+
@@ -150,13 +159,17 @@ export function HtmlEditor() {
setSelected(newPath)
}}
/>
-
-
+
+
diff --git a/packages/gui/src/components/html/Editors/NodeEditor.tsx b/packages/gui/src/components/html/Editors/NodeEditor.tsx
index 0ac5e815..42157263 100644
--- a/packages/gui/src/components/html/Editors/NodeEditor.tsx
+++ b/packages/gui/src/components/html/Editors/NodeEditor.tsx
@@ -46,14 +46,17 @@ export function NodeEditor({
minHeight: '4px',
height: 'auto',
resize: 'vertical',
- position: 'sticky',
- top: 0,
boxSizing: 'border-box',
- overflowX: 'hidden',
borderBottomWidth: '1px',
borderBottomStyle: 'solid',
borderBottomColor: 'border',
- zIndex: 4,
+ zIndex: 9999,
+ position: 'sticky',
+ top: 0,
+ overflowY: 'scroll',
+ borderTopWidth: '4px',
+ borderTopStyle: 'solid',
+ borderTopColor: 'border',
}}
>
-
-
Tag name {' '}
+
+ Element {' '}
{
@@ -223,6 +225,5 @@ function NodeSwitch({ value, onChange }: EditorProps) {
/>
-
)
}
diff --git a/packages/gui/src/components/html/TreeNode.tsx b/packages/gui/src/components/html/TreeNode.tsx
index 2b26ca31..a416db70 100644
--- a/packages/gui/src/components/html/TreeNode.tsx
+++ b/packages/gui/src/components/html/TreeNode.tsx
@@ -48,6 +48,8 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
textAlign: 'start',
fontSize: 0,
width: '100%',
+ whiteSpace: 'nowrap',
+ overflow: 'hidden',
}}
onClick={() => {
handleSelect()
@@ -173,7 +175,7 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
WebkitAppearance: 'none',
cursor: 'pointer',
border: 'none',
- backgroundColor: isSelected ? '#ff0' : 'background',
+ backgroundColor: isSelected ? 'primary' : 'background',
color: 'text',
fontSize: '14px',
fontFamily: 'monospace',
@@ -307,7 +309,7 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
px: 2,
fontSize: '14px',
fontFamily: 'monospace',
- bg: isSelected ? '#ff0' : 'background',
+ bg: isSelected ? 'primary' : 'background',
fontWeight: isSelected ? 700 : 400,
borderRadius: '6px',
transition: 'background-color .2s ease-in-out',
From 204deb7d6b3a30ed380d66c2c26eac9ed77b7659 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Wed, 28 Sep 2022 17:09:52 -0700
Subject: [PATCH 103/128] Update styles of sidebar editor
---
packages/gui/src/components/html/Editor.tsx | 7 ++++---
packages/gui/src/components/html/Editors/NodeEditor.tsx | 7 ++++---
packages/gui/src/components/primitives/Combobox.tsx | 9 ++++++---
3 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/packages/gui/src/components/html/Editor.tsx b/packages/gui/src/components/html/Editor.tsx
index 266e6586..b78de0cb 100644
--- a/packages/gui/src/components/html/Editor.tsx
+++ b/packages/gui/src/components/html/Editor.tsx
@@ -37,7 +37,7 @@ const TABS_TRIGGER_STYLES: any = {
}
const TABS_CONTENT_STYLES: any = {
width: 400,
- height: 'calc(100vh - 81px)',
+ height: 'calc(100vh - 97px)',
maxHeight: '100%',
overflow: 'hidden',
resize: 'horizontal',
@@ -50,13 +50,13 @@ const TABS_CONTENT_STYLES: any = {
const TABS_EDITOR_STYLES: any = {
width: '400px',
- height: 'calc(100vh - 81px)',
+ height: 'calc(100vh - 97px)',
maxHeight: '100%',
overflow: 'hidden',
resize: 'horizontal',
borderRightWidth: '1px',
borderRightStyle: 'solid',
- borderColor: 'border',
+ borderRightColor: 'border',
'&::-webkit-scrollbar': { display: 'none' },
scrollbarWidth: 0,
}
@@ -140,6 +140,7 @@ export function HtmlEditor() {
showAddProperties
/>
+
Layers
Date: Wed, 28 Sep 2022 17:10:44 -0700
Subject: [PATCH 104/128] New changeset
---
.changeset/cool-apples-rhyme.md | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 .changeset/cool-apples-rhyme.md
diff --git a/.changeset/cool-apples-rhyme.md b/.changeset/cool-apples-rhyme.md
new file mode 100644
index 00000000..8b88ad2a
--- /dev/null
+++ b/.changeset/cool-apples-rhyme.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+New design styles
From b7118af7819055ee6e0002135849ab3b2141b7ad Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Thu, 29 Sep 2022 00:11:45 +0000
Subject: [PATCH 105/128] Version Packages
---
.changeset/cool-apples-rhyme.md | 5 -----
.changeset/two-waves-help.md | 5 -----
packages/gui/CHANGELOG.md | 7 +++++++
packages/gui/package.json | 2 +-
4 files changed, 8 insertions(+), 11 deletions(-)
delete mode 100644 .changeset/cool-apples-rhyme.md
delete mode 100644 .changeset/two-waves-help.md
diff --git a/.changeset/cool-apples-rhyme.md b/.changeset/cool-apples-rhyme.md
deleted file mode 100644
index 8b88ad2a..00000000
--- a/.changeset/cool-apples-rhyme.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-New design styles
diff --git a/.changeset/two-waves-help.md b/.changeset/two-waves-help.md
deleted file mode 100644
index 5c7f3646..00000000
--- a/.changeset/two-waves-help.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Ensure theme is passed to style element stringification
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index ec2f63ea..2ff67d43 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,12 @@
# @compai/css-gui
+## 0.0.243
+
+### Patch Changes
+
+- bb2079e3: New design styles
+- e116b855: Ensure theme is passed to style element stringification
+
## 0.0.242
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 92f7fafe..a04642f3 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.242",
+ "version": "0.0.243",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 11cbdbfa55320f0dab64b5dffb3804781acb0222 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Wed, 28 Sep 2022 17:44:52 -0700
Subject: [PATCH 106/128] Makes color more accessible
---
packages/gui/src/components/html/TreeNode.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/gui/src/components/html/TreeNode.tsx b/packages/gui/src/components/html/TreeNode.tsx
index a416db70..14ae136d 100644
--- a/packages/gui/src/components/html/TreeNode.tsx
+++ b/packages/gui/src/components/html/TreeNode.tsx
@@ -175,7 +175,7 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
WebkitAppearance: 'none',
cursor: 'pointer',
border: 'none',
- backgroundColor: isSelected ? 'primary' : 'background',
+ backgroundColor: isSelected ? '#d128dd' : 'background',
color: 'text',
fontSize: '14px',
fontFamily: 'monospace',
@@ -309,7 +309,7 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
px: 2,
fontSize: '14px',
fontFamily: 'monospace',
- bg: isSelected ? 'primary' : 'background',
+ bg: isSelected '#d128dd' : 'background',
fontWeight: isSelected ? 700 : 400,
borderRadius: '6px',
transition: 'background-color .2s ease-in-out',
From d543091c03cfee7831dee61ebab32abca1b6750b Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Wed, 28 Sep 2022 17:45:38 -0700
Subject: [PATCH 107/128] New changeset
---
.changeset/gorgeous-poets-hang.md | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 .changeset/gorgeous-poets-hang.md
diff --git a/.changeset/gorgeous-poets-hang.md b/.changeset/gorgeous-poets-hang.md
new file mode 100644
index 00000000..11a60751
--- /dev/null
+++ b/.changeset/gorgeous-poets-hang.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Changes color to be more accessible in editor
From a7ce52dd24686c4ee6e0c19cdbfd60ad3e681ad6 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Wed, 28 Sep 2022 17:47:14 -0700
Subject: [PATCH 108/128] Fixes typo
---
packages/gui/src/components/html/TreeNode.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/gui/src/components/html/TreeNode.tsx b/packages/gui/src/components/html/TreeNode.tsx
index 14ae136d..2903c679 100644
--- a/packages/gui/src/components/html/TreeNode.tsx
+++ b/packages/gui/src/components/html/TreeNode.tsx
@@ -309,7 +309,7 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
px: 2,
fontSize: '14px',
fontFamily: 'monospace',
- bg: isSelected '#d128dd' : 'background',
+ bg: isSelected ? '#d128dd' : 'background',
fontWeight: isSelected ? 700 : 400,
borderRadius: '6px',
transition: 'background-color .2s ease-in-out',
From fd7865c809d58b024df4da3f011a18cbbf337cec Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Wed, 28 Sep 2022 17:48:03 -0700
Subject: [PATCH 109/128] New changeset
---
.changeset/ninety-guests-shave.md | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 .changeset/ninety-guests-shave.md
diff --git a/.changeset/ninety-guests-shave.md b/.changeset/ninety-guests-shave.md
new file mode 100644
index 00000000..8ffe5e11
--- /dev/null
+++ b/.changeset/ninety-guests-shave.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Fixes typo
From 8797be9d1ffa880338e494b396b24a885aa33b0b Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Thu, 29 Sep 2022 00:48:59 +0000
Subject: [PATCH 110/128] Version Packages
---
.changeset/gorgeous-poets-hang.md | 5 -----
.changeset/ninety-guests-shave.md | 5 -----
packages/gui/CHANGELOG.md | 7 +++++++
packages/gui/package.json | 2 +-
4 files changed, 8 insertions(+), 11 deletions(-)
delete mode 100644 .changeset/gorgeous-poets-hang.md
delete mode 100644 .changeset/ninety-guests-shave.md
diff --git a/.changeset/gorgeous-poets-hang.md b/.changeset/gorgeous-poets-hang.md
deleted file mode 100644
index 11a60751..00000000
--- a/.changeset/gorgeous-poets-hang.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Changes color to be more accessible in editor
diff --git a/.changeset/ninety-guests-shave.md b/.changeset/ninety-guests-shave.md
deleted file mode 100644
index 8ffe5e11..00000000
--- a/.changeset/ninety-guests-shave.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Fixes typo
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 2ff67d43..625503d8 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,12 @@
# @compai/css-gui
+## 0.0.244
+
+### Patch Changes
+
+- d543091c: Changes color to be more accessible in editor
+- fd7865c8: Fixes typo
+
## 0.0.243
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index a04642f3..71c429d2 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.243",
+ "version": "0.0.244",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From debd3b89f9f5ff56e03fb60437696a2151444225 Mon Sep 17 00:00:00 2001
From: John Otander
Date: Thu, 29 Sep 2022 17:49:01 -0600
Subject: [PATCH 111/128] Properly handle pseudos when stringifying CSS object
---
.changeset/clever-kangaroos-warn.md | 5 +++++
packages/gui/src/lib/codegen/stringify-css-object.ts | 6 +++---
packages/gui/src/lib/pseudos.ts | 4 ++++
.../src/lib/transformers/inline-styles-to-style-element.ts | 1 -
4 files changed, 12 insertions(+), 4 deletions(-)
create mode 100644 .changeset/clever-kangaroos-warn.md
diff --git a/.changeset/clever-kangaroos-warn.md b/.changeset/clever-kangaroos-warn.md
new file mode 100644
index 00000000..f384c51a
--- /dev/null
+++ b/.changeset/clever-kangaroos-warn.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Properly handle pseudos when stringifying CSS object
diff --git a/packages/gui/src/lib/codegen/stringify-css-object.ts b/packages/gui/src/lib/codegen/stringify-css-object.ts
index c17dad12..95d3076f 100644
--- a/packages/gui/src/lib/codegen/stringify-css-object.ts
+++ b/packages/gui/src/lib/codegen/stringify-css-object.ts
@@ -1,7 +1,7 @@
import { isEmpty, kebabCase } from 'lodash-es'
import { isCSSClass } from '../classes'
import { isElement } from '../elements'
-import { isPseudo } from '../pseudos'
+import { addPseudoSyntax, hasPseudoSyntax, isPseudo } from '../pseudos'
export const objectToDecls = (obj: any): string => {
return Object.entries(obj)
@@ -28,8 +28,8 @@ const flattenCSSObject = (
...flattenedGroups,
}
return
- } else if (isPseudo(key)) {
- const fullSelector = selector + key
+ } else if (isPseudo(key) || hasPseudoSyntax(key)) {
+ const fullSelector = selector + addPseudoSyntax(key)
const flattenedGroups = flattenCSSObject(value, fullSelector)
cssDeclGroups = {
...cssDeclGroups,
diff --git a/packages/gui/src/lib/pseudos.ts b/packages/gui/src/lib/pseudos.ts
index 48d396c6..aa494b0a 100644
--- a/packages/gui/src/lib/pseudos.ts
+++ b/packages/gui/src/lib/pseudos.ts
@@ -42,6 +42,10 @@ export const stringifySelectorFunction = (
}
export const addPseudoSyntax = (str: string): string => {
+ if (hasPseudoSyntax(str)) {
+ return str
+ }
+
if (isPseudoClass(str) || isSelectorFunction(str)) {
return ':' + str
} else if (isPseudoElement(str)) {
diff --git a/packages/gui/src/lib/transformers/inline-styles-to-style-element.ts b/packages/gui/src/lib/transformers/inline-styles-to-style-element.ts
index 915672bf..b04c2b75 100644
--- a/packages/gui/src/lib/transformers/inline-styles-to-style-element.ts
+++ b/packages/gui/src/lib/transformers/inline-styles-to-style-element.ts
@@ -31,7 +31,6 @@ export const inlineStylesToStyleElement = (
delete node.properties.style
- console.log(options)
styleMap[selector] = stringifyCSSObject(
toCSSObject(style, options?.theme),
addCSSClassSyntax(selector)
From a4c7f06057b590045654d668e5d20bad99ef8bcb Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Thu, 29 Sep 2022 23:49:51 +0000
Subject: [PATCH 112/128] Version Packages
---
.changeset/clever-kangaroos-warn.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/clever-kangaroos-warn.md
diff --git a/.changeset/clever-kangaroos-warn.md b/.changeset/clever-kangaroos-warn.md
deleted file mode 100644
index f384c51a..00000000
--- a/.changeset/clever-kangaroos-warn.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Properly handle pseudos when stringifying CSS object
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 625503d8..d6c383d1 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.245
+
+### Patch Changes
+
+- debd3b89: Properly handle pseudos when stringifying CSS object
+
## 0.0.244
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 71c429d2..38cc9bc9 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.244",
+ "version": "0.0.245",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From d9ba867cd184bbd6993b855b473051a7455c500f Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Sat, 1 Oct 2022 23:08:11 +0000
Subject: [PATCH 113/128] Bump next from 12.2.4 to 12.3.1
Bumps [next](https://github.com/vercel/next.js) from 12.2.4 to 12.3.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v12.2.4...v12.3.1)
---
updated-dependencies:
- dependency-name: next
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
apps/docs/package.json | 2 +-
yarn.lock | 202 ++++++++++++++++++++---------------------
2 files changed, 102 insertions(+), 102 deletions(-)
diff --git a/apps/docs/package.json b/apps/docs/package.json
index 40776101..630dccb8 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -15,7 +15,7 @@
"@emotion/react": "^11.9.0",
"@mdx-js/loader": "^2.1.2",
"@next/mdx": "^12.2.5",
- "next": "12.2.4",
+ "next": "12.3.1",
"react": "18.1.0",
"react-dom": "18.0.0",
"rehype-autolink-headings": "^6.1.1",
diff --git a/yarn.lock b/yarn.lock
index 502416a6..b5dccd62 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1016,10 +1016,10 @@
call-me-maybe "^1.0.1"
glob-to-regexp "^0.3.0"
-"@next/env@12.2.4":
- version "12.2.4"
- resolved "https://registry.yarnpkg.com/@next/env/-/env-12.2.4.tgz#5ba9bed9970be4113773233148b4539691bfc4fe"
- integrity sha512-/gApFXWk5CCLFQJL5IYJXxPQuG5tz5nPX4l27A9Zm/+wJxiwFrRSP54AopDxIv4JRp/rGwcgk/lZS/0Clw8jYA==
+"@next/env@12.3.1":
+ version "12.3.1"
+ resolved "https://registry.yarnpkg.com/@next/env/-/env-12.3.1.tgz#18266bd92de3b4aa4037b1927aa59e6f11879260"
+ integrity sha512-9P9THmRFVKGKt9DYqeC2aKIxm8rlvkK38V1P1sRE7qyoPBIs8l9oo79QoSdPtOWfzkbDAVUqvbQGgTMsb8BtJg==
"@next/eslint-plugin-next@12.1.6":
version "12.1.6"
@@ -1033,70 +1033,70 @@
resolved "https://registry.yarnpkg.com/@next/mdx/-/mdx-12.2.5.tgz#f88743cad222c53bf1648ce15d22e9a49a4c5bc4"
integrity sha512-b4gDNNvlt1Icf9D+nMzc66Tn1ei4lYRUFjwjWdCgdQFCo2ahKl+/f4R/g958KGzZMFmmXBJ7JIfzeAqgPv7TsA==
-"@next/swc-android-arm-eabi@12.2.4":
- version "12.2.4"
- resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.2.4.tgz#5c7f508f93baec810c96bf60128b7c1f2109bee2"
- integrity sha512-P4YSFNpmXXSnn3P1qsOAqz+MX3On9fHrlc8ovb/CFJJoU+YLCR53iCEwfw39e0IZEgDA7ttgr108plF8mxaX0g==
-
-"@next/swc-android-arm64@12.2.4":
- version "12.2.4"
- resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-12.2.4.tgz#f86411e0513419f027d16b2d4d823a3ca631a634"
- integrity sha512-4o2n14E18O+8xHlf6dgJsWPXN9gmSmfIe2Z0EqKDIPBBkFt/2CyrH0+vwHnL2l7xkDHhOGfZYcYIWVUR5aNu0A==
-
-"@next/swc-darwin-arm64@12.2.4":
- version "12.2.4"
- resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.2.4.tgz#23db172f02f5cf0ceca5e0934cfde21f30cc7461"
- integrity sha512-DcUO6MGBL9E3jj5o86MUnTOy4WawIJJhyCcFYO4f51sbl7+uPIYIx40eo98A6NwJEXazCqq1hLeqOaNTAIvDiQ==
-
-"@next/swc-darwin-x64@12.2.4":
- version "12.2.4"
- resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-12.2.4.tgz#820125d2a4d35cd9c807156a403a447360b5923f"
- integrity sha512-IUlFMqeLjdIzDorrGC2Dt+2Ae3DbKQbRzCzmDq4/CP1+jJGeDXo/2AHnlE+WYnwQAC4KtAz6pbVnd3KstZWsVA==
-
-"@next/swc-freebsd-x64@12.2.4":
- version "12.2.4"
- resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-12.2.4.tgz#81ccd262c7ea3f7ed2de136c3402fc28cd103ce8"
- integrity sha512-475vwyWcjnyDVDWLgAATP0HI8W1rwByc+uXk1B6KkAVFhkoDgH387LW0uNqxavK+VxCzj3avQXX/58XDvxtSlg==
-
-"@next/swc-linux-arm-gnueabihf@12.2.4":
- version "12.2.4"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.2.4.tgz#5b543e461696adcb60c64b56fc81eaa9e3cfcdd8"
- integrity sha512-qZW+L3iG3XSGtlOPmD5RRWXyk6ZNdscLV0BQjuDvP+exTg+uixqHXOHz0/GVATIJEBQOF0Kew7jAXVXEP+iRTQ==
-
-"@next/swc-linux-arm64-gnu@12.2.4":
- version "12.2.4"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.2.4.tgz#f83b824d112494db41df69e2c456950a57deacba"
- integrity sha512-fEPRjItWYaKyyG9N+2HIA59OBHIhk7WC+Rh+LwXsh0pQe870Ykpek3KQs0umjsrEGe57NyMomq3f80/N8taDvA==
-
-"@next/swc-linux-arm64-musl@12.2.4":
- version "12.2.4"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.2.4.tgz#a7e575970fcd6166c7b506fd25121927c13349ee"
- integrity sha512-rnCTzXII0EBCcFn9P5s/Dho2kPUMSX/bP0iOAj8wEI/IxUEfEElbin89zJoNW30cycHu19xY8YP4K2+hzciPzQ==
-
-"@next/swc-linux-x64-gnu@12.2.4":
- version "12.2.4"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.2.4.tgz#4dd2ad1c72c160430199265e74b6d7037f2be4f5"
- integrity sha512-PhXX6NSuIuhHInxPY2VkG2Bl7VllsD3Cjx+pQcS1wTym7Zt7UoLvn05PkRrkiyIkvR+UXnqPUM3TYiSbnemXEw==
-
-"@next/swc-linux-x64-musl@12.2.4":
- version "12.2.4"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.2.4.tgz#15415b1e6b92ca19453c4c6113496685167b05d4"
- integrity sha512-GmC/QROiUZpFirHRfPQqMyCXZ+5+ndbBZrMvL74HtQB/CKXB8K1VM+rvy9Gp/5OaU8Rxp48IcX79NOfI2LiXlA==
-
-"@next/swc-win32-arm64-msvc@12.2.4":
- version "12.2.4"
- resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.2.4.tgz#48344aded1702e321bef0fdefc3fb9f763c2ba25"
- integrity sha512-9XKoCXbNZuaMRPtcKQz3+hgVpkMosaLlcxHFXT8/j4w61k7/qvEbrkMDS9WHNrD/xVcLycwhPRgXcns2K1BdBQ==
-
-"@next/swc-win32-ia32-msvc@12.2.4":
- version "12.2.4"
- resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.2.4.tgz#e040fbf292205716c2c1d69d51c1c98fa59825ff"
- integrity sha512-hEyRieZKH9iw4AzvXaQ+Fyb98k0G/o9QcRGxA1/O/O/elf1+Qvuwb15phT8GbVtIeNziy66XTPOhKKfdr8KyUg==
-
-"@next/swc-win32-x64-msvc@12.2.4":
- version "12.2.4"
- resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.2.4.tgz#0134c4cd5df39033347614ce5fc26af485ac9048"
- integrity sha512-5Pl1tdMJWLy4rvzU1ecx0nHWgDPqoYuvYoXE/5X0Clu9si/yOuBIj573F2kOTY7mu0LX2wgCJVSnyK0abHBxIw==
+"@next/swc-android-arm-eabi@12.3.1":
+ version "12.3.1"
+ resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.3.1.tgz#b15ce8ad376102a3b8c0f3c017dde050a22bb1a3"
+ integrity sha512-i+BvKA8tB//srVPPQxIQN5lvfROcfv4OB23/L1nXznP+N/TyKL8lql3l7oo2LNhnH66zWhfoemg3Q4VJZSruzQ==
+
+"@next/swc-android-arm64@12.3.1":
+ version "12.3.1"
+ resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-12.3.1.tgz#85d205f568a790a137cb3c3f720d961a2436ac9c"
+ integrity sha512-CmgU2ZNyBP0rkugOOqLnjl3+eRpXBzB/I2sjwcGZ7/Z6RcUJXK5Evz+N0ucOxqE4cZ3gkTeXtSzRrMK2mGYV8Q==
+
+"@next/swc-darwin-arm64@12.3.1":
+ version "12.3.1"
+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.3.1.tgz#b105457d6760a7916b27e46c97cb1a40547114ae"
+ integrity sha512-hT/EBGNcu0ITiuWDYU9ur57Oa4LybD5DOQp4f22T6zLfpoBMfBibPtR8XktXmOyFHrL/6FC2p9ojdLZhWhvBHg==
+
+"@next/swc-darwin-x64@12.3.1":
+ version "12.3.1"
+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-12.3.1.tgz#6947b39082271378896b095b6696a7791c6e32b1"
+ integrity sha512-9S6EVueCVCyGf2vuiLiGEHZCJcPAxglyckTZcEwLdJwozLqN0gtS0Eq0bQlGS3dH49Py/rQYpZ3KVWZ9BUf/WA==
+
+"@next/swc-freebsd-x64@12.3.1":
+ version "12.3.1"
+ resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-12.3.1.tgz#2b6c36a4d84aae8b0ea0e0da9bafc696ae27085a"
+ integrity sha512-qcuUQkaBZWqzM0F1N4AkAh88lLzzpfE6ImOcI1P6YeyJSsBmpBIV8o70zV+Wxpc26yV9vpzb+e5gCyxNjKJg5Q==
+
+"@next/swc-linux-arm-gnueabihf@12.3.1":
+ version "12.3.1"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.3.1.tgz#6e421c44285cfedac1f4631d5de330dd60b86298"
+ integrity sha512-diL9MSYrEI5nY2wc/h/DBewEDUzr/DqBjIgHJ3RUNtETAOB3spMNHvJk2XKUDjnQuluLmFMloet9tpEqU2TT9w==
+
+"@next/swc-linux-arm64-gnu@12.3.1":
+ version "12.3.1"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.3.1.tgz#8863f08a81f422f910af126159d2cbb9552ef717"
+ integrity sha512-o/xB2nztoaC7jnXU3Q36vGgOolJpsGG8ETNjxM1VAPxRwM7FyGCPHOMk1XavG88QZSQf+1r+POBW0tLxQOJ9DQ==
+
+"@next/swc-linux-arm64-musl@12.3.1":
+ version "12.3.1"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.3.1.tgz#0038f07cf0b259d70ae0c80890d826dfc775d9f3"
+ integrity sha512-2WEasRxJzgAmP43glFNhADpe8zB7kJofhEAVNbDJZANp+H4+wq+/cW1CdDi8DqjkShPEA6/ejJw+xnEyDID2jg==
+
+"@next/swc-linux-x64-gnu@12.3.1":
+ version "12.3.1"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.3.1.tgz#c66468f5e8181ffb096c537f0dbfb589baa6a9c1"
+ integrity sha512-JWEaMyvNrXuM3dyy9Pp5cFPuSSvG82+yABqsWugjWlvfmnlnx9HOQZY23bFq3cNghy5V/t0iPb6cffzRWylgsA==
+
+"@next/swc-linux-x64-musl@12.3.1":
+ version "12.3.1"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.3.1.tgz#c6269f3e96ac0395bc722ad97ce410ea5101d305"
+ integrity sha512-xoEWQQ71waWc4BZcOjmatuvPUXKTv6MbIFzpm4LFeCHsg2iwai0ILmNXf81rJR+L1Wb9ifEke2sQpZSPNz1Iyg==
+
+"@next/swc-win32-arm64-msvc@12.3.1":
+ version "12.3.1"
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.3.1.tgz#83c639ee969cee36ce247c3abd1d9df97b5ecade"
+ integrity sha512-hswVFYQYIeGHE2JYaBVtvqmBQ1CppplQbZJS/JgrVI3x2CurNhEkmds/yqvDONfwfbttTtH4+q9Dzf/WVl3Opw==
+
+"@next/swc-win32-ia32-msvc@12.3.1":
+ version "12.3.1"
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.3.1.tgz#52995748b92aa8ad053440301bc2c0d9fbcf27c2"
+ integrity sha512-Kny5JBehkTbKPmqulr5i+iKntO5YMP+bVM8Hf8UAmjSMVo3wehyLVc9IZkNmcbxi+vwETnQvJaT5ynYBkJ9dWA==
+
+"@next/swc-win32-x64-msvc@12.3.1":
+ version "12.3.1"
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.3.1.tgz#27d71a95247a9eaee03d47adee7e3bd594514136"
+ integrity sha512-W1ijvzzg+kPEX6LAc+50EYYSEo0FVu7dmTE+t+DM4iOLqgGHoW9uYSz9wCVdkXOEEMP9xhXfGpcSxsfDucyPkA==
"@nodelib/fs.scandir@2.1.5":
version "2.1.5"
@@ -1908,10 +1908,10 @@
"@styled-system/core" "^5.1.2"
"@styled-system/css" "^5.1.5"
-"@swc/helpers@0.4.3":
- version "0.4.3"
- resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.4.3.tgz#16593dfc248c53b699d4b5026040f88ddb497012"
- integrity sha512-6JrF+fdUK2zbGpJIlN7G3v966PQjyx/dPt1T9km2wj+EUBqgrxCk3uX4Kct16MIm9gGxfKRcfax2hVf5jvlTzA==
+"@swc/helpers@0.4.11":
+ version "0.4.11"
+ resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.4.11.tgz#db23a376761b3d31c26502122f349a21b592c8de"
+ integrity sha512-rEUrBSGIoSFuYxwBYtlUFMlE2CwGhmW+w9355/5oduSw8e5h2+Tj4UrAGNNgP9915++wj5vkQo0UuOBqOAq4nw==
dependencies:
tslib "^2.4.0"
@@ -2815,10 +2815,10 @@ camelcase@^6.2.0:
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a"
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
-caniuse-lite@^1.0.30001332, caniuse-lite@^1.0.30001358:
- version "1.0.30001374"
- resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001374.tgz#3dab138e3f5485ba2e74bd13eca7fe1037ce6f57"
- integrity sha512-mWvzatRx3w+j5wx/mpFN5v5twlPrabG8NqX2c6e45LCpymdoGqNvRkRutFUqpRTXKFQFNQJasvK0YT7suW6/Hw==
+caniuse-lite@^1.0.30001358, caniuse-lite@^1.0.30001406:
+ version "1.0.30001414"
+ resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001414.tgz#5f1715e506e71860b4b07c50060ea6462217611e"
+ integrity sha512-t55jfSaWjCdocnFdKQoO+d2ct9C59UZg4dY3OnUlSZ447r8pUtIKdp0hpAzrGFultmTC+Us+KpKi4GZl/LXlFg==
ccount@^2.0.0:
version "2.0.1"
@@ -6646,31 +6646,31 @@ natural-compare@^1.4.0:
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=
-next@12.2.4:
- version "12.2.4"
- resolved "https://registry.yarnpkg.com/next/-/next-12.2.4.tgz#88f7a7a4cd76063704cda28b3b07c4217b8928b0"
- integrity sha512-b1xlxEozmAWokAXzXsi5vlmU/IfJcFNIJA8dpU5UdkFbyDPio8wwb8mAQ/Y7rGtfTgG/t/u49BiyEA+xAgFvow==
+next@12.3.1:
+ version "12.3.1"
+ resolved "https://registry.yarnpkg.com/next/-/next-12.3.1.tgz#127b825ad2207faf869b33393ec8c75fe61e50f1"
+ integrity sha512-l7bvmSeIwX5lp07WtIiP9u2ytZMv7jIeB8iacR28PuUEFG5j0HGAPnMqyG5kbZNBG2H7tRsrQ4HCjuMOPnANZw==
dependencies:
- "@next/env" "12.2.4"
- "@swc/helpers" "0.4.3"
- caniuse-lite "^1.0.30001332"
+ "@next/env" "12.3.1"
+ "@swc/helpers" "0.4.11"
+ caniuse-lite "^1.0.30001406"
postcss "8.4.14"
- styled-jsx "5.0.2"
+ styled-jsx "5.0.7"
use-sync-external-store "1.2.0"
optionalDependencies:
- "@next/swc-android-arm-eabi" "12.2.4"
- "@next/swc-android-arm64" "12.2.4"
- "@next/swc-darwin-arm64" "12.2.4"
- "@next/swc-darwin-x64" "12.2.4"
- "@next/swc-freebsd-x64" "12.2.4"
- "@next/swc-linux-arm-gnueabihf" "12.2.4"
- "@next/swc-linux-arm64-gnu" "12.2.4"
- "@next/swc-linux-arm64-musl" "12.2.4"
- "@next/swc-linux-x64-gnu" "12.2.4"
- "@next/swc-linux-x64-musl" "12.2.4"
- "@next/swc-win32-arm64-msvc" "12.2.4"
- "@next/swc-win32-ia32-msvc" "12.2.4"
- "@next/swc-win32-x64-msvc" "12.2.4"
+ "@next/swc-android-arm-eabi" "12.3.1"
+ "@next/swc-android-arm64" "12.3.1"
+ "@next/swc-darwin-arm64" "12.3.1"
+ "@next/swc-darwin-x64" "12.3.1"
+ "@next/swc-freebsd-x64" "12.3.1"
+ "@next/swc-linux-arm-gnueabihf" "12.3.1"
+ "@next/swc-linux-arm64-gnu" "12.3.1"
+ "@next/swc-linux-arm64-musl" "12.3.1"
+ "@next/swc-linux-x64-gnu" "12.3.1"
+ "@next/swc-linux-x64-musl" "12.3.1"
+ "@next/swc-win32-arm64-msvc" "12.3.1"
+ "@next/swc-win32-ia32-msvc" "12.3.1"
+ "@next/swc-win32-x64-msvc" "12.3.1"
node-int64@^0.4.0:
version "0.4.0"
@@ -8025,10 +8025,10 @@ style-to-object@^0.3.0:
dependencies:
inline-style-parser "0.1.1"
-styled-jsx@5.0.2:
- version "5.0.2"
- resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-5.0.2.tgz#ff230fd593b737e9e68b630a694d460425478729"
- integrity sha512-LqPQrbBh3egD57NBcHET4qcgshPks+yblyhPlH2GY8oaDgKs8SK4C3dBh3oSJjgzJ3G5t1SYEZGHkP+QEpX9EQ==
+styled-jsx@5.0.7:
+ version "5.0.7"
+ resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-5.0.7.tgz#be44afc53771b983769ac654d355ca8d019dff48"
+ integrity sha512-b3sUzamS086YLRuvnaDigdAewz1/EFYlHpYBP5mZovKEdQQOIIYq8lApylub3HHZ6xFjV051kkGU7cudJmrXEA==
styled-system@^5.1.5:
version "5.1.5"
From c0e13b80feb8b54946cd6d0c6413f7f67732b131 Mon Sep 17 00:00:00 2001
From: Nate Moore
Date: Wed, 26 Oct 2022 15:45:25 -0500
Subject: [PATCH 114/128] feat: astro export support
---
packages/gui/src/lib/codegen/astro.ts | 40 +++++++++++++++++++++++++++
packages/gui/src/lib/codegen/index.ts | 1 +
2 files changed, 41 insertions(+)
create mode 100644 packages/gui/src/lib/codegen/astro.ts
diff --git a/packages/gui/src/lib/codegen/astro.ts b/packages/gui/src/lib/codegen/astro.ts
new file mode 100644
index 00000000..ab6bdc70
--- /dev/null
+++ b/packages/gui/src/lib/codegen/astro.ts
@@ -0,0 +1,40 @@
+import { toH } from 'hast-to-hyperscript'
+import { HtmlNode } from '../../components/html/types'
+import { editorSchemaToHast } from '../transformers/editor-schema-to-hast'
+import { toCSSObject } from './to-css-object'
+import { stringifyHastNode } from './stringify-hast-node-as-html'
+import { toReactProps } from './to-react-props'
+import { format } from './format'
+import { CodegenOptions } from './types'
+import { Theme } from '../../types/theme'
+import { inlineStylesToStyleElement } from '../transformers/inline-styles-to-style-element'
+
+const h = (theme: Theme) => (tagName: string, props: any, children?: any[]) => {
+ const newProps = toReactProps(props)
+
+ if (newProps.style) {
+ const style = newProps.style
+ delete newProps.style
+ newProps.style = toCSSObject(style, theme)
+ }
+
+ return { tagName, props: newProps, children }
+}
+
+export const astro = async (node: HtmlNode, options: CodegenOptions) => {
+ const root = editorSchemaToHast(node, { addSlotTagSyntax: true })
+ const { node: htmlNode, styles } = inlineStylesToStyleElement(root, options)
+ // @ts-ignore
+ const markup = stringifyHastNode(toH(h(options?.theme), htmlNode))
+
+ const htmlString = `${markup}
+${styles.trim() ? `\n\n` : ''}`
+ const formattedHtmlString = await format('html', htmlString)
+
+ const output = `---
+---
+
+${formattedHtmlString}`
+
+ return format('html', output)
+}
diff --git a/packages/gui/src/lib/codegen/index.ts b/packages/gui/src/lib/codegen/index.ts
index c28c000f..b43ef9a9 100644
--- a/packages/gui/src/lib/codegen/index.ts
+++ b/packages/gui/src/lib/codegen/index.ts
@@ -6,3 +6,4 @@ export * from './theme-ui'
export * from './emotion'
export * from './styled-jsx'
export * from './enhance-sfc'
+export * from './astro'
From dfee1b3ac5ae83de6d07b3cbb0b471ade550b1cb Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 1 Nov 2022 23:20:05 +0000
Subject: [PATCH 115/128] Bump @radix-ui/react-toggle from 0.1.4 to 1.0.1
Bumps [@radix-ui/react-toggle](https://github.com/radix-ui/primitives) from 0.1.4 to 1.0.1.
- [Release notes](https://github.com/radix-ui/primitives/releases)
- [Changelog](https://github.com/radix-ui/primitives/blob/main/release-process.md)
- [Commits](https://github.com/radix-ui/primitives/commits)
---
updated-dependencies:
- dependency-name: "@radix-ui/react-toggle"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot]
---
packages/gui/package.json | 2 +-
yarn.lock | 30 +++++++++++++++++++++++-------
2 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 38cc9bc9..69944e79 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -52,7 +52,7 @@
"@radix-ui/react-slider": "^1.0.0",
"@radix-ui/react-switch": "^1.0.0",
"@radix-ui/react-tabs": "^0.1.5",
- "@radix-ui/react-toggle": "^0.1.4",
+ "@radix-ui/react-toggle": "^1.0.1",
"@radix-ui/react-tooltip": "^0.1.7",
"@use-gesture/react": "^10.2.17",
"copy-to-clipboard": "^3.3.2",
diff --git a/yarn.lock b/yarn.lock
index 502416a6..771eaf4e 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1496,6 +1496,14 @@
"@babel/runtime" "^7.13.10"
"@radix-ui/react-slot" "1.0.0"
+"@radix-ui/react-primitive@1.0.1":
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-primitive/-/react-primitive-1.0.1.tgz#c1ebcce283dd2f02e4fbefdaa49d1cb13dbc990a"
+ integrity sha512-fHbmislWVkZaIdeF6GZxF0A/NH/3BjrGIYj+Ae6eTmTCr7EB0RQAAVEiqsXK6p3/JcRqVSBQoceZroj30Jj3XA==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-slot" "1.0.1"
+
"@radix-ui/react-roving-focus@0.1.5":
version "0.1.5"
resolved "https://registry.yarnpkg.com/@radix-ui/react-roving-focus/-/react-roving-focus-0.1.5.tgz#cc48d17a36b56f253d54905b0fd60ee134cb97ee"
@@ -1586,6 +1594,14 @@
"@babel/runtime" "^7.13.10"
"@radix-ui/react-compose-refs" "1.0.0"
+"@radix-ui/react-slot@1.0.1":
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-slot/-/react-slot-1.0.1.tgz#e7868c669c974d649070e9ecbec0b367ee0b4d81"
+ integrity sha512-avutXAFL1ehGvAXtPquu0YK5oz6ctS474iM3vNGQIkswrVhdrS52e3uoMQBzZhNRAIE0jBnUyXWNmSjGHhCFcw==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-compose-refs" "1.0.0"
+
"@radix-ui/react-switch@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@radix-ui/react-switch/-/react-switch-1.0.0.tgz#f714eb81da7b16dae7f5ab6e774e3194d8f009b6"
@@ -1614,15 +1630,15 @@
"@radix-ui/react-roving-focus" "0.1.5"
"@radix-ui/react-use-controllable-state" "0.1.0"
-"@radix-ui/react-toggle@^0.1.4":
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/@radix-ui/react-toggle/-/react-toggle-0.1.4.tgz#c5c63f7cc5a03556bb58e0a763735b41bb0331f9"
- integrity sha512-gxUq6NgMc4ChV8VJnwdYqueeoblspwXHAexYo+jM9N2hFLbI1C587jLjdTHzIcUa9q68Xaw4jtiImWDOokEhRw==
+"@radix-ui/react-toggle@^1.0.1":
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-toggle/-/react-toggle-1.0.1.tgz#20120c060cd3cd6267463a6a9bcb106134b5af57"
+ integrity sha512-hZIp9ZKnw4NwVqeB4evWBLa91ryaSJhAO0Ed82wkzRPgg/I29ypcY6SuBb3AMZW+GsuBZpIVujpCq+33TdEcyg==
dependencies:
"@babel/runtime" "^7.13.10"
- "@radix-ui/primitive" "0.1.0"
- "@radix-ui/react-primitive" "0.1.4"
- "@radix-ui/react-use-controllable-state" "0.1.0"
+ "@radix-ui/primitive" "1.0.0"
+ "@radix-ui/react-primitive" "1.0.1"
+ "@radix-ui/react-use-controllable-state" "1.0.0"
"@radix-ui/react-tooltip@^0.1.7":
version "0.1.7"
From c0cb7eb232ec174827701ce0bfd9f56cf3a431ec Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 1 Nov 2022 23:22:28 +0000
Subject: [PATCH 116/128] Bump @types/node from 18.7.15 to 18.11.9
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.15 to 18.11.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
apps/docs/package.json | 2 +-
yarn.lock | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/apps/docs/package.json b/apps/docs/package.json
index 40776101..e24eccc9 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -25,7 +25,7 @@
"theme-ui": "^0.14.7"
},
"devDependencies": {
- "@types/node": "^18.7.15",
+ "@types/node": "^18.11.9",
"@types/react": "18.0.10",
"config": "*",
"eslint": "8.18.0",
diff --git a/yarn.lock b/yarn.lock
index 502416a6..8304cbf9 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2162,10 +2162,10 @@
resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.31.tgz#31b7ca6407128a3d2bbc27fe2d21b345397f6197"
integrity sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==
-"@types/node@*", "@types/node@^18.7.15":
- version "18.7.15"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-18.7.15.tgz#20ae1ec80c57ee844b469f968a1cd511d4088b29"
- integrity sha512-XnjpaI8Bgc3eBag2Aw4t2Uj/49lLBSStHWfqKvIuXD7FIrZyMLWp8KuAFHAqxMZYTF9l08N1ctUn9YNybZJVmQ==
+"@types/node@*", "@types/node@^18.11.9":
+ version "18.11.9"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.9.tgz#02d013de7058cea16d36168ef2fc653464cfbad4"
+ integrity sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==
"@types/node@^12.7.1":
version "12.20.47"
From 90c476310d697963bd09a962438132af67310a31 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 1 Nov 2022 23:23:24 +0000
Subject: [PATCH 117/128] Bump eslint from 8.18.0 to 8.26.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.18.0 to 8.26.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.18.0...v8.26.0)
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
apps/docs/package.json | 2 +-
yarn.lock | 93 +++++++++++++++++++++++-------------------
2 files changed, 52 insertions(+), 43 deletions(-)
diff --git a/apps/docs/package.json b/apps/docs/package.json
index 40776101..7660e377 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -28,7 +28,7 @@
"@types/node": "^18.7.15",
"@types/react": "18.0.10",
"config": "*",
- "eslint": "8.18.0",
+ "eslint": "8.26.0",
"tsconfig": "*",
"typescript": "^4.6.4"
}
diff --git a/yarn.lock b/yarn.lock
index 502416a6..3cba1d2c 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -631,14 +631,14 @@
resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.15.6.tgz#45be4184f00e505411bc265a05e709764114acd8"
integrity sha512-hqmVU2mUjH6J2ZivHphJ/Pdse2ZD+uGCHK0uvsiLDk/JnSedEVj77CiVUnbMKuU4tih1TZZL8tG9DExQg/GZsw==
-"@eslint/eslintrc@^1.3.0":
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.3.0.tgz#29f92c30bb3e771e4a2048c95fa6855392dfac4f"
- integrity sha512-UWW0TMTmk2d7hLcWD1/e2g5HDM/HQ3csaLSqXCfqwh4uNDuNqlaKWXmEsL4Cs41Z0KnILNvwbHAah3C2yt06kw==
+"@eslint/eslintrc@^1.3.3":
+ version "1.3.3"
+ resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.3.3.tgz#2b044ab39fdfa75b4688184f9e573ce3c5b0ff95"
+ integrity sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg==
dependencies:
ajv "^6.12.4"
debug "^4.3.2"
- espree "^9.3.2"
+ espree "^9.4.0"
globals "^13.15.0"
ignore "^5.2.0"
import-fresh "^3.2.1"
@@ -666,14 +666,19 @@
"@floating-ui/dom" "^0.5.3"
use-isomorphic-layout-effect "^1.1.1"
-"@humanwhocodes/config-array@^0.9.2":
- version "0.9.5"
- resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.9.5.tgz#2cbaf9a89460da24b5ca6531b8bbfc23e1df50c7"
- integrity sha512-ObyMyWxZiCu/yTisA7uzx81s40xR2fD5Cg/2Kq7G02ajkNubJf6BopgDTmDyc3U7sXpNKM8cYOw7s7Tyr+DnCw==
+"@humanwhocodes/config-array@^0.11.6":
+ version "0.11.7"
+ resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.7.tgz#38aec044c6c828f6ed51d5d7ae3d9b9faf6dbb0f"
+ integrity sha512-kBbPWzN8oVMLb0hOUYXhmxggL/1cJE6ydvjDIGi9EnAGUyA7cLVKQg+d/Dsm+KZwx2czGHrCmMVLiyg8s5JPKw==
dependencies:
"@humanwhocodes/object-schema" "^1.2.1"
debug "^4.1.1"
- minimatch "^3.0.4"
+ minimatch "^3.0.5"
+
+"@humanwhocodes/module-importer@^1.0.1":
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c"
+ integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==
"@humanwhocodes/object-schema@^1.2.1":
version "1.2.1"
@@ -1116,7 +1121,7 @@
resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b"
integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==
-"@nodelib/fs.walk@^1.2.3":
+"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8":
version "1.2.8"
resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a"
integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==
@@ -2346,10 +2351,10 @@ acorn@^8.0.0, acorn@^8.2.4:
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.0.tgz#90951fde0f8f09df93549481e5fc141445b791cf"
integrity sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==
-acorn@^8.7.1:
- version "8.7.1"
- resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.1.tgz#0197122c843d1bf6d0a5e83220a788f278f63c30"
- integrity sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==
+acorn@^8.8.0:
+ version "8.8.1"
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.1.tgz#0a3f9cbecc4ec3bea6f0a80b66ae8dd2da250b73"
+ integrity sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==
agent-base@6:
version "6.0.2"
@@ -3799,13 +3804,15 @@ eslint-visitor-keys@^3.3.0:
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==
-eslint@8.18.0:
- version "8.18.0"
- resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.18.0.tgz#78d565d16c993d0b73968c523c0446b13da784fd"
- integrity sha512-As1EfFMVk7Xc6/CvhssHUjsAQSkpfXvUGMFC3ce8JDe6WvqCgRrLOBQbVpsBFr1X1V+RACOadnzVvcUS5ni2bA==
+eslint@8.26.0:
+ version "8.26.0"
+ resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.26.0.tgz#2bcc8836e6c424c4ac26a5674a70d44d84f2181d"
+ integrity sha512-kzJkpaw1Bfwheq4VXUezFriD1GxszX6dUekM7Z3aC2o4hju+tsR/XyTC3RcoSD7jmy9VkPU3+N6YjVU2e96Oyg==
dependencies:
- "@eslint/eslintrc" "^1.3.0"
- "@humanwhocodes/config-array" "^0.9.2"
+ "@eslint/eslintrc" "^1.3.3"
+ "@humanwhocodes/config-array" "^0.11.6"
+ "@humanwhocodes/module-importer" "^1.0.1"
+ "@nodelib/fs.walk" "^1.2.8"
ajv "^6.10.0"
chalk "^4.0.0"
cross-spawn "^7.0.2"
@@ -3815,18 +3822,21 @@ eslint@8.18.0:
eslint-scope "^7.1.1"
eslint-utils "^3.0.0"
eslint-visitor-keys "^3.3.0"
- espree "^9.3.2"
+ espree "^9.4.0"
esquery "^1.4.0"
esutils "^2.0.2"
fast-deep-equal "^3.1.3"
file-entry-cache "^6.0.1"
- functional-red-black-tree "^1.0.1"
- glob-parent "^6.0.1"
+ find-up "^5.0.0"
+ glob-parent "^6.0.2"
globals "^13.15.0"
+ grapheme-splitter "^1.0.4"
ignore "^5.2.0"
import-fresh "^3.0.0"
imurmurhash "^0.1.4"
is-glob "^4.0.0"
+ is-path-inside "^3.0.3"
+ js-sdsl "^4.1.4"
js-yaml "^4.1.0"
json-stable-stringify-without-jsonify "^1.0.1"
levn "^0.4.1"
@@ -3838,19 +3848,18 @@ eslint@8.18.0:
strip-ansi "^6.0.1"
strip-json-comments "^3.1.0"
text-table "^0.2.0"
- v8-compile-cache "^2.0.3"
esm@^3.0.84:
version "3.2.25"
resolved "https://registry.yarnpkg.com/esm/-/esm-3.2.25.tgz#342c18c29d56157688ba5ce31f8431fbb795cc10"
integrity sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==
-espree@^9.3.2:
- version "9.3.2"
- resolved "https://registry.yarnpkg.com/espree/-/espree-9.3.2.tgz#f58f77bd334731182801ced3380a8cc859091596"
- integrity sha512-D211tC7ZwouTIuY5x9XnS0E9sWNChB7IYKX/Xp5eQj3nFXhqmiUDB9q27y76oFl8jTg3pXcQx/bpxMfs3CIZbA==
+espree@^9.4.0:
+ version "9.4.0"
+ resolved "https://registry.yarnpkg.com/espree/-/espree-9.4.0.tgz#cd4bc3d6e9336c433265fc0aa016fc1aaf182f8a"
+ integrity sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw==
dependencies:
- acorn "^8.7.1"
+ acorn "^8.8.0"
acorn-jsx "^5.3.2"
eslint-visitor-keys "^3.3.0"
@@ -4198,11 +4207,6 @@ function.prototype.name@^1.1.5:
es-abstract "^1.19.0"
functions-have-names "^1.2.2"
-functional-red-black-tree@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"
- integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=
-
functions-have-names@^1.2.2:
version "1.2.3"
resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834"
@@ -4315,7 +4319,7 @@ glob-parent@^5.1.2, glob-parent@~5.1.2:
dependencies:
is-glob "^4.0.1"
-glob-parent@^6.0.1:
+glob-parent@^6.0.2:
version "6.0.2"
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3"
integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==
@@ -5043,6 +5047,11 @@ is-number@^7.0.0:
resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==
+is-path-inside@^3.0.3:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283"
+ integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==
+
is-plain-obj@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e"
@@ -5557,6 +5566,11 @@ joycon@^3.0.1:
resolved "https://registry.yarnpkg.com/joycon/-/joycon-3.1.1.tgz#bce8596d6ae808f8b68168f5fc69280996894f03"
integrity sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==
+js-sdsl@^4.1.4:
+ version "4.1.5"
+ resolved "https://registry.yarnpkg.com/js-sdsl/-/js-sdsl-4.1.5.tgz#1ff1645e6b4d1b028cd3f862db88c9d887f26e2a"
+ integrity sha512-08bOAKweV2NUC1wqTtf3qZlnpOX/R2DU9ikpjOHs0H+ibQv3zpncVQg6um4uYtRtrwIX8M4Nh3ytK4HGlYAq7Q==
+
"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
@@ -6556,7 +6570,7 @@ min-indent@^1.0.0:
resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869"
integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==
-minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2:
+minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
@@ -8721,11 +8735,6 @@ uvu@^0.5.0:
kleur "^4.0.3"
sade "^1.7.3"
-v8-compile-cache@^2.0.3:
- version "2.3.0"
- resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"
- integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==
-
v8-to-istanbul@^9.0.0:
version "9.0.1"
resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz#b6f994b0b5d4ef255e17a0d17dc444a9f5132fa4"
From 95540fca255d8b674b4df21dcac6e22a5fe4e579 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Fri, 4 Nov 2022 11:35:30 -0700
Subject: [PATCH 118/128] Updates with Astro export option
---
.changeset/good-donkeys-punch.md | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 .changeset/good-donkeys-punch.md
diff --git a/.changeset/good-donkeys-punch.md b/.changeset/good-donkeys-punch.md
new file mode 100644
index 00000000..bb2d09e4
--- /dev/null
+++ b/.changeset/good-donkeys-punch.md
@@ -0,0 +1,5 @@
+---
+'@compai/css-gui': patch
+---
+
+Adds Astro support for export
From d30ce18c0b9d69955c786bfa812896bce229f3c6 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Fri, 4 Nov 2022 18:36:50 +0000
Subject: [PATCH 119/128] Version Packages
---
.changeset/good-donkeys-punch.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/good-donkeys-punch.md
diff --git a/.changeset/good-donkeys-punch.md b/.changeset/good-donkeys-punch.md
deleted file mode 100644
index bb2d09e4..00000000
--- a/.changeset/good-donkeys-punch.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@compai/css-gui': patch
----
-
-Adds Astro support for export
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index d6c383d1..0b83af99 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.246
+
+### Patch Changes
+
+- 95540fca: Adds Astro support for export
+
## 0.0.245
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index 69944e79..ac8d475d 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.245",
+ "version": "0.0.246",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From ec912e9bba09d0e9648ef897e79de0fd8aab59af Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Sun, 1 Jan 2023 23:04:12 +0000
Subject: [PATCH 120/128] Bump @changesets/cli from 2.23.2 to 2.26.0
Bumps [@changesets/cli](https://github.com/changesets/changesets) from 2.23.2 to 2.26.0.
- [Release notes](https://github.com/changesets/changesets/releases)
- [Changelog](https://github.com/changesets/changesets/blob/main/docs/modifying-changelog-format.md)
- [Commits](https://github.com/changesets/changesets/compare/@changesets/cli@2.23.2...@changesets/cli@2.26.0)
---
updated-dependencies:
- dependency-name: "@changesets/cli"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
package.json | 2 +-
yarn.lock | 220 +++++++++++++++++++++++++--------------------------
2 files changed, 109 insertions(+), 113 deletions(-)
diff --git a/package.json b/package.json
index b35be8b8..084d2f91 100644
--- a/package.json
+++ b/package.json
@@ -31,7 +31,7 @@
},
"packageManager": "yarn@1.22.18",
"dependencies": {
- "@changesets/cli": "^2.23.2",
+ "@changesets/cli": "^2.26.0",
"@manypkg/cli": "^0.19.1",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
diff --git a/yarn.lock b/yarn.lock
index 40289333..dbe0407d 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -266,12 +266,12 @@
core-js-pure "^3.20.2"
regenerator-runtime "^0.13.4"
-"@babel/runtime@^7.10.2", "@babel/runtime@^7.10.4", "@babel/runtime@^7.13.10", "@babel/runtime@^7.14.8", "@babel/runtime@^7.16.3", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.2":
- version "7.17.9"
- resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.9.tgz#d19fbf802d01a8cb6cf053a64e472d42c434ba72"
- integrity sha512-lSiBBvodq29uShpWGNbgFdKYNiFDo5/HIYsaCEY9ff4sb10x9jizo2+pRrSyF4jKZCXqgzuqBOQKbUm90gQwJg==
+"@babel/runtime@^7.10.2", "@babel/runtime@^7.13.10", "@babel/runtime@^7.14.8", "@babel/runtime@^7.16.3", "@babel/runtime@^7.20.1", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.2":
+ version "7.20.7"
+ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.7.tgz#fcb41a5a70550e04a7b708037c7c32f7f356d8fd"
+ integrity sha512-UF0tvkUtxwAgZ5W/KrkHf0Rn0fdnLDU9ScxBrEVNUprE/MzirjK4MJUX1/BVDv00Sv8cljtukVK1aky++X1SjQ==
dependencies:
- regenerator-runtime "^0.13.4"
+ regenerator-runtime "^0.13.11"
"@babel/template@^7.16.7", "@babel/template@^7.3.3":
version "7.16.7"
@@ -319,63 +319,63 @@
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
-"@changesets/apply-release-plan@^6.0.1":
- version "6.0.1"
- resolved "https://registry.yarnpkg.com/@changesets/apply-release-plan/-/apply-release-plan-6.0.1.tgz#7d7b13d4dc1f03e287bc563e029ed0bf955332a9"
- integrity sha512-KGtai19+Uo7k8uco9m+hIPGoet9E6eZq15RIeHoivvgwwI66AC6ievbUO5h0NqGlZjBWnYJQNkuT66kvBYzxsA==
+"@changesets/apply-release-plan@^6.1.3":
+ version "6.1.3"
+ resolved "https://registry.yarnpkg.com/@changesets/apply-release-plan/-/apply-release-plan-6.1.3.tgz#3bcc0bd57ba00d50d20df7d0141f1a9b2134eaf7"
+ integrity sha512-ECDNeoc3nfeAe1jqJb5aFQX7CqzQhD2klXRez2JDb/aVpGUbX673HgKrnrgJRuQR/9f2TtLoYIzrGB9qwD77mg==
dependencies:
- "@babel/runtime" "^7.10.4"
- "@changesets/config" "^2.0.1"
+ "@babel/runtime" "^7.20.1"
+ "@changesets/config" "^2.3.0"
"@changesets/get-version-range-type" "^0.3.2"
- "@changesets/git" "^1.3.2"
- "@changesets/types" "^5.0.0"
+ "@changesets/git" "^2.0.0"
+ "@changesets/types" "^5.2.1"
"@manypkg/get-packages" "^1.1.3"
detect-indent "^6.0.0"
fs-extra "^7.0.1"
lodash.startcase "^4.4.0"
outdent "^0.5.0"
- prettier "^1.19.1"
+ prettier "^2.7.1"
resolve-from "^5.0.0"
semver "^5.4.1"
-"@changesets/assemble-release-plan@^5.1.3":
- version "5.1.3"
- resolved "https://registry.yarnpkg.com/@changesets/assemble-release-plan/-/assemble-release-plan-5.1.3.tgz#b415c5db64e5a30c53aed8c1adc5ab4c4aaad283"
- integrity sha512-I+TTkUoqvxBEuDLoJfJYKDXIJ+nyiTbVJ8KGhpXEsLq4N/ms/AStSbouJwF2d/p3cB+RCPr5+gXh31GSN4kA7w==
+"@changesets/assemble-release-plan@^5.2.3":
+ version "5.2.3"
+ resolved "https://registry.yarnpkg.com/@changesets/assemble-release-plan/-/assemble-release-plan-5.2.3.tgz#5ce6191c6e193d40b566a7b0e01690cfb106f4db"
+ integrity sha512-g7EVZCmnWz3zMBAdrcKhid4hkHT+Ft1n0mLussFMcB1dE2zCuwcvGoy9ec3yOgPGF4hoMtgHaMIk3T3TBdvU9g==
dependencies:
- "@babel/runtime" "^7.10.4"
+ "@babel/runtime" "^7.20.1"
"@changesets/errors" "^0.1.4"
- "@changesets/get-dependents-graph" "^1.3.2"
- "@changesets/types" "^5.0.0"
+ "@changesets/get-dependents-graph" "^1.3.5"
+ "@changesets/types" "^5.2.1"
"@manypkg/get-packages" "^1.1.3"
semver "^5.4.1"
-"@changesets/changelog-git@^0.1.11":
- version "0.1.11"
- resolved "https://registry.yarnpkg.com/@changesets/changelog-git/-/changelog-git-0.1.11.tgz#80eb45d3562aba2164f25ccc31ac97b9dcd1ded3"
- integrity sha512-sWJvAm+raRPeES9usNpZRkooeEB93lOpUN0Lmjz5vhVAb7XGIZrHEJ93155bpE1S0c4oJ5Di9ZWgzIwqhWP/Wg==
+"@changesets/changelog-git@^0.1.14":
+ version "0.1.14"
+ resolved "https://registry.yarnpkg.com/@changesets/changelog-git/-/changelog-git-0.1.14.tgz#852caa7727dcf91497c131d05bc2cd6248532ada"
+ integrity sha512-+vRfnKtXVWsDDxGctOfzJsPhaCdXRYoe+KyWYoq5X/GqoISREiat0l3L8B0a453B2B4dfHGcZaGyowHbp9BSaA==
dependencies:
- "@changesets/types" "^5.0.0"
+ "@changesets/types" "^5.2.1"
-"@changesets/cli@^2.23.2":
- version "2.23.2"
- resolved "https://registry.yarnpkg.com/@changesets/cli/-/cli-2.23.2.tgz#f32d3d9388816721419cff204010b64a864c950e"
- integrity sha512-o7CWC+mcwOmA3yK5axqHOSYPYEjX/x+nq/s9aX78AyzH1SQZa6L5HX4P9uUXibyjcKynklkmusxv8vN8+hJggA==
- dependencies:
- "@babel/runtime" "^7.10.4"
- "@changesets/apply-release-plan" "^6.0.1"
- "@changesets/assemble-release-plan" "^5.1.3"
- "@changesets/changelog-git" "^0.1.11"
- "@changesets/config" "^2.0.1"
+"@changesets/cli@^2.26.0":
+ version "2.26.0"
+ resolved "https://registry.yarnpkg.com/@changesets/cli/-/cli-2.26.0.tgz#f215ddb2b41574ffd0dda9cd77fac927ba048fd3"
+ integrity sha512-0cbTiDms+ICTVtEwAFLNW0jBNex9f5+fFv3I771nBvdnV/mOjd1QJ4+f8KtVSOrwD9SJkk9xbDkWFb0oXd8d1Q==
+ dependencies:
+ "@babel/runtime" "^7.20.1"
+ "@changesets/apply-release-plan" "^6.1.3"
+ "@changesets/assemble-release-plan" "^5.2.3"
+ "@changesets/changelog-git" "^0.1.14"
+ "@changesets/config" "^2.3.0"
"@changesets/errors" "^0.1.4"
- "@changesets/get-dependents-graph" "^1.3.2"
- "@changesets/get-release-plan" "^3.0.10"
- "@changesets/git" "^1.3.2"
+ "@changesets/get-dependents-graph" "^1.3.5"
+ "@changesets/get-release-plan" "^3.0.16"
+ "@changesets/git" "^2.0.0"
"@changesets/logger" "^0.0.5"
- "@changesets/pre" "^1.0.11"
- "@changesets/read" "^0.5.5"
- "@changesets/types" "^5.0.0"
- "@changesets/write" "^0.1.8"
+ "@changesets/pre" "^1.0.14"
+ "@changesets/read" "^0.5.9"
+ "@changesets/types" "^5.2.1"
+ "@changesets/write" "^0.2.3"
"@manypkg/get-packages" "^1.1.3"
"@types/is-ci" "^3.0.0"
"@types/semver" "^6.0.0"
@@ -396,15 +396,15 @@
term-size "^2.1.0"
tty-table "^4.1.5"
-"@changesets/config@^2.0.1":
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/@changesets/config/-/config-2.0.1.tgz#9c71f01032f8b12237a18edeac2a39e6142e8a50"
- integrity sha512-rJaQWqsjM54T7bDiCoMDcgOuY2HzyovvRs68C//C+tYgbHyjs00JcNVcScjlV47hATrNG1AI8qTD7V9bcO/1cg==
+"@changesets/config@^2.3.0":
+ version "2.3.0"
+ resolved "https://registry.yarnpkg.com/@changesets/config/-/config-2.3.0.tgz#bff074d6492fa772cee139f9a04efa4cd56445bb"
+ integrity sha512-EgP/px6mhCx8QeaMAvWtRrgyxW08k/Bx2tpGT+M84jEdX37v3VKfh4Cz1BkwrYKuMV2HZKeHOh8sHvja/HcXfQ==
dependencies:
"@changesets/errors" "^0.1.4"
- "@changesets/get-dependents-graph" "^1.3.2"
+ "@changesets/get-dependents-graph" "^1.3.5"
"@changesets/logger" "^0.0.5"
- "@changesets/types" "^5.0.0"
+ "@changesets/types" "^5.2.1"
"@manypkg/get-packages" "^1.1.3"
fs-extra "^7.0.1"
micromatch "^4.0.2"
@@ -416,28 +416,28 @@
dependencies:
extendable-error "^0.1.5"
-"@changesets/get-dependents-graph@^1.3.2":
- version "1.3.2"
- resolved "https://registry.yarnpkg.com/@changesets/get-dependents-graph/-/get-dependents-graph-1.3.2.tgz#f3ec7ce75f4afb6e3e4b6a87fde065f552c85998"
- integrity sha512-tsqA6qZRB86SQuApSoDvI8yEWdyIlo/WLI4NUEdhhxLMJ0dapdeT6rUZRgSZzK1X2nv5YwR0MxQBbDAiDibKrg==
+"@changesets/get-dependents-graph@^1.3.5":
+ version "1.3.5"
+ resolved "https://registry.yarnpkg.com/@changesets/get-dependents-graph/-/get-dependents-graph-1.3.5.tgz#f94c6672d2f9a87aa35512eea74550585ba41c21"
+ integrity sha512-w1eEvnWlbVDIY8mWXqWuYE9oKhvIaBhzqzo4ITSJY9hgoqQ3RoBqwlcAzg11qHxv/b8ReDWnMrpjpKrW6m1ZTA==
dependencies:
- "@changesets/types" "^5.0.0"
+ "@changesets/types" "^5.2.1"
"@manypkg/get-packages" "^1.1.3"
chalk "^2.1.0"
fs-extra "^7.0.1"
semver "^5.4.1"
-"@changesets/get-release-plan@^3.0.10":
- version "3.0.10"
- resolved "https://registry.yarnpkg.com/@changesets/get-release-plan/-/get-release-plan-3.0.10.tgz#badbea8c113c976486d2eebaa66126a7ddd7ff0c"
- integrity sha512-QeKHeo+mX1baRy3OIHQePMPebPFymq/ZxS6Bk3Y3FXiU+pXVnjrfqARj1E4xQT5c+48u6ISqJ8tW5f3EZ1/hng==
- dependencies:
- "@babel/runtime" "^7.10.4"
- "@changesets/assemble-release-plan" "^5.1.3"
- "@changesets/config" "^2.0.1"
- "@changesets/pre" "^1.0.11"
- "@changesets/read" "^0.5.5"
- "@changesets/types" "^5.0.0"
+"@changesets/get-release-plan@^3.0.16":
+ version "3.0.16"
+ resolved "https://registry.yarnpkg.com/@changesets/get-release-plan/-/get-release-plan-3.0.16.tgz#5d9cfc4ffda02c496ef0fde407210de8e3a0fb19"
+ integrity sha512-OpP9QILpBp1bY2YNIKFzwigKh7Qe9KizRsZomzLe6pK8IUo8onkAAVUD8+JRKSr8R7d4+JRuQrfSSNlEwKyPYg==
+ dependencies:
+ "@babel/runtime" "^7.20.1"
+ "@changesets/assemble-release-plan" "^5.2.3"
+ "@changesets/config" "^2.3.0"
+ "@changesets/pre" "^1.0.14"
+ "@changesets/read" "^0.5.9"
+ "@changesets/types" "^5.2.1"
"@manypkg/get-packages" "^1.1.3"
"@changesets/get-version-range-type@^0.3.2":
@@ -445,16 +445,17 @@
resolved "https://registry.yarnpkg.com/@changesets/get-version-range-type/-/get-version-range-type-0.3.2.tgz#8131a99035edd11aa7a44c341cbb05e668618c67"
integrity sha512-SVqwYs5pULYjYT4op21F2pVbcrca4qA/bAA3FmFXKMN7Y+HcO8sbZUTx3TAy2VXulP2FACd1aC7f2nTuqSPbqg==
-"@changesets/git@^1.3.2":
- version "1.3.2"
- resolved "https://registry.yarnpkg.com/@changesets/git/-/git-1.3.2.tgz#336051d9a6d965806b1bc473559a9a2cc70773a6"
- integrity sha512-p5UL+urAg0Nnpt70DLiBe2iSsMcDubTo9fTOD/61krmcJ466MGh71OHwdAwu1xG5+NKzeysdy1joRTg8CXcEXA==
+"@changesets/git@^2.0.0":
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/@changesets/git/-/git-2.0.0.tgz#8de57649baf13a86eb669a25fa51bcad5cea517f"
+ integrity sha512-enUVEWbiqUTxqSnmesyJGWfzd51PY4H7mH9yUw0hPVpZBJ6tQZFMU3F3mT/t9OJ/GjyiM4770i+sehAn6ymx6A==
dependencies:
- "@babel/runtime" "^7.10.4"
+ "@babel/runtime" "^7.20.1"
"@changesets/errors" "^0.1.4"
- "@changesets/types" "^5.0.0"
+ "@changesets/types" "^5.2.1"
"@manypkg/get-packages" "^1.1.3"
is-subdir "^1.1.1"
+ micromatch "^4.0.2"
spawndamnit "^2.0.0"
"@changesets/logger@^0.0.5":
@@ -464,35 +465,35 @@
dependencies:
chalk "^2.1.0"
-"@changesets/parse@^0.3.13":
- version "0.3.13"
- resolved "https://registry.yarnpkg.com/@changesets/parse/-/parse-0.3.13.tgz#82788c1fc18da4750b07357a7a06142d0d975aa1"
- integrity sha512-wh9Ifa0dungY6d2nMz6XxF6FZ/1I7j+mEgPAqrIyKS64nifTh1Ua82qKKMMK05CL7i4wiB2NYc3SfnnCX3RVeA==
+"@changesets/parse@^0.3.16":
+ version "0.3.16"
+ resolved "https://registry.yarnpkg.com/@changesets/parse/-/parse-0.3.16.tgz#f8337b70aeb476dc81745ab3294022909bc4a84a"
+ integrity sha512-127JKNd167ayAuBjUggZBkmDS5fIKsthnr9jr6bdnuUljroiERW7FBTDNnNVyJ4l69PzR57pk6mXQdtJyBCJKg==
dependencies:
- "@changesets/types" "^5.0.0"
+ "@changesets/types" "^5.2.1"
js-yaml "^3.13.1"
-"@changesets/pre@^1.0.11":
- version "1.0.11"
- resolved "https://registry.yarnpkg.com/@changesets/pre/-/pre-1.0.11.tgz#46a56790fdceabd03407559bbf91340c8e83fb6a"
- integrity sha512-CXZnt4SV9waaC9cPLm7818+SxvLKIDHUxaiTXnJYDp1c56xIexx1BNfC1yMuOdzO2a3rAIcZua5Odxr3dwSKfg==
+"@changesets/pre@^1.0.14":
+ version "1.0.14"
+ resolved "https://registry.yarnpkg.com/@changesets/pre/-/pre-1.0.14.tgz#9df73999a4d15804da7381358d77bb37b00ddf0f"
+ integrity sha512-dTsHmxQWEQekHYHbg+M1mDVYFvegDh9j/kySNuDKdylwfMEevTeDouR7IfHNyVodxZXu17sXoJuf2D0vi55FHQ==
dependencies:
- "@babel/runtime" "^7.10.4"
+ "@babel/runtime" "^7.20.1"
"@changesets/errors" "^0.1.4"
- "@changesets/types" "^5.0.0"
+ "@changesets/types" "^5.2.1"
"@manypkg/get-packages" "^1.1.3"
fs-extra "^7.0.1"
-"@changesets/read@^0.5.5":
- version "0.5.5"
- resolved "https://registry.yarnpkg.com/@changesets/read/-/read-0.5.5.tgz#9ed90ef3e9f1ba3436ba5580201854a3f4163058"
- integrity sha512-bzonrPWc29Tsjvgh+8CqJ0apQOwWim0zheeD4ZK44ApSa/GudnZJTODtA3yNOOuQzeZmL0NUebVoHIurtIkA7w==
+"@changesets/read@^0.5.9":
+ version "0.5.9"
+ resolved "https://registry.yarnpkg.com/@changesets/read/-/read-0.5.9.tgz#a1b63a82b8e9409738d7a0f9cc39b6d7c28cbab0"
+ integrity sha512-T8BJ6JS6j1gfO1HFq50kU3qawYxa4NTbI/ASNVVCBTsKquy2HYwM9r7ZnzkiMe8IEObAJtUVGSrePCOxAK2haQ==
dependencies:
- "@babel/runtime" "^7.10.4"
- "@changesets/git" "^1.3.2"
+ "@babel/runtime" "^7.20.1"
+ "@changesets/git" "^2.0.0"
"@changesets/logger" "^0.0.5"
- "@changesets/parse" "^0.3.13"
- "@changesets/types" "^5.0.0"
+ "@changesets/parse" "^0.3.16"
+ "@changesets/types" "^5.2.1"
chalk "^2.1.0"
fs-extra "^7.0.1"
p-filter "^2.1.0"
@@ -507,21 +508,21 @@
resolved "https://registry.yarnpkg.com/@changesets/types/-/types-4.1.0.tgz#fb8f7ca2324fd54954824e864f9a61a82cb78fe0"
integrity sha512-LDQvVDv5Kb50ny2s25Fhm3d9QSZimsoUGBsUioj6MC3qbMUCuC8GPIvk/M6IvXx3lYhAs0lwWUQLb+VIEUCECw==
-"@changesets/types@^5.0.0":
- version "5.0.0"
- resolved "https://registry.yarnpkg.com/@changesets/types/-/types-5.0.0.tgz#d5eb52d074bc0358ce47d54bca54370b907812a0"
- integrity sha512-IT1kBLSbAgTS4WtpU6P5ko054hq12vk4tgeIFRVE7Vnm4a/wgbNvBalgiKP0MjEXbCkZbItiGQHkCGxYWR55sA==
+"@changesets/types@^5.2.1":
+ version "5.2.1"
+ resolved "https://registry.yarnpkg.com/@changesets/types/-/types-5.2.1.tgz#a228c48004aa8a93bce4be2d1d31527ef3bf21f6"
+ integrity sha512-myLfHbVOqaq9UtUKqR/nZA/OY7xFjQMdfgfqeZIBK4d0hA6pgxArvdv8M+6NUzzBsjWLOtvApv8YHr4qM+Kpfg==
-"@changesets/write@^0.1.8":
- version "0.1.8"
- resolved "https://registry.yarnpkg.com/@changesets/write/-/write-0.1.8.tgz#feed408f644c496bc52afc4dd1353670b4152ecb"
- integrity sha512-oIHeFVMuP6jf0TPnKPpaFpvvAf3JBc+s2pmVChbeEgQTBTALoF51Z9kqxQfG4XONZPHZnqkmy564c7qohhhhTQ==
+"@changesets/write@^0.2.3":
+ version "0.2.3"
+ resolved "https://registry.yarnpkg.com/@changesets/write/-/write-0.2.3.tgz#baf6be8ada2a67b9aba608e251bfea4fdc40bc63"
+ integrity sha512-Dbamr7AIMvslKnNYsLFafaVORx4H0pvCA2MHqgtNCySMe1blImEyAEOzDmcgKAkgz4+uwoLz7demIrX+JBr/Xw==
dependencies:
- "@babel/runtime" "^7.10.4"
- "@changesets/types" "^5.0.0"
+ "@babel/runtime" "^7.20.1"
+ "@changesets/types" "^5.2.1"
fs-extra "^7.0.1"
human-id "^1.0.2"
- prettier "^1.19.1"
+ prettier "^2.7.1"
"@compai/logo@^0.1.0":
version "0.1.0"
@@ -2389,12 +2390,7 @@ ajv@^6.10.0, ajv@^6.12.4:
json-schema-traverse "^0.4.1"
uri-js "^4.2.2"
-ansi-colors@^4.1.1:
- version "4.1.1"
- resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348"
- integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==
-
-ansi-colors@^4.1.3:
+ansi-colors@^4.1.1, ansi-colors@^4.1.3:
version "4.1.3"
resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b"
integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==
@@ -7141,11 +7137,6 @@ prepend-http@^2.0.0:
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
-prettier@^1.19.1:
- version "1.19.1"
- resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
- integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
-
prettier@^2.7.1:
version "2.7.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64"
@@ -7340,6 +7331,11 @@ redent@^3.0.0:
indent-string "^4.0.0"
strip-indent "^3.0.0"
+regenerator-runtime@^0.13.11:
+ version "0.13.11"
+ resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9"
+ integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==
+
regenerator-runtime@^0.13.4:
version "0.13.9"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52"
From c329b3a8f51150338bf221c61d6924466688c8f6 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 2 Mar 2023 00:07:40 +0000
Subject: [PATCH 121/128] Bump @radix-ui/react-dropdown-menu from 1.0.0 to
2.0.3
Bumps [@radix-ui/react-dropdown-menu](https://github.com/radix-ui/primitives) from 1.0.0 to 2.0.3.
- [Release notes](https://github.com/radix-ui/primitives/releases)
- [Changelog](https://github.com/radix-ui/primitives/blob/main/release-process.md)
- [Commits](https://github.com/radix-ui/primitives/commits)
---
updated-dependencies:
- dependency-name: "@radix-ui/react-dropdown-menu"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot]
---
packages/gui/package.json | 2 +-
yarn.lock | 135 +++++++++++++++++++++++++++++++-------
2 files changed, 111 insertions(+), 26 deletions(-)
diff --git a/packages/gui/package.json b/packages/gui/package.json
index ac8d475d..e94b219e 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -45,7 +45,7 @@
"@mdx-js/react": "^1.6.22",
"@radix-ui/react-accordion": "^0.1.6",
"@radix-ui/react-collapsible": "^0.1.6",
- "@radix-ui/react-dropdown-menu": "^1.0.0",
+ "@radix-ui/react-dropdown-menu": "^2.0.3",
"@radix-ui/react-label": "^0.1.5",
"@radix-ui/react-popover": "^1.0.0",
"@radix-ui/react-select": "^0.1.1",
diff --git a/yarn.lock b/yarn.lock
index 40289333..b440dc50 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1196,6 +1196,14 @@
"@babel/runtime" "^7.13.10"
"@radix-ui/react-primitive" "1.0.0"
+"@radix-ui/react-arrow@1.0.1":
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-arrow/-/react-arrow-1.0.1.tgz#5246adf79e97f89e819af68da51ddcf349ecf1c4"
+ integrity sha512-1yientwXqXcErDHEv8av9ZVNEBldH8L9scVR3is20lL+jOCfcJyMFZFEY5cgIrgexsq1qggSXqiEL/d/4f+QXA==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-primitive" "1.0.1"
+
"@radix-ui/react-collapsible@0.1.6", "@radix-ui/react-collapsible@^0.1.6":
version "0.1.6"
resolved "https://registry.yarnpkg.com/@radix-ui/react-collapsible/-/react-collapsible-0.1.6.tgz#3eeadac476761b3c9b8dd91e8a32eb1a547e5a06"
@@ -1233,6 +1241,17 @@
"@radix-ui/react-primitive" "1.0.0"
"@radix-ui/react-slot" "1.0.0"
+"@radix-ui/react-collection@1.0.1":
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-collection/-/react-collection-1.0.1.tgz#259506f97c6703b36291826768d3c1337edd1de5"
+ integrity sha512-uuiFbs+YCKjn3X1DTSx9G7BHApu4GHbi3kgiwsnFUbOKCrwejAJv4eE4Vc8C0Oaxt9T0aV4ox0WCOdx+39Xo+g==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-compose-refs" "1.0.0"
+ "@radix-ui/react-context" "1.0.0"
+ "@radix-ui/react-primitive" "1.0.1"
+ "@radix-ui/react-slot" "1.0.1"
+
"@radix-ui/react-compose-refs@0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@radix-ui/react-compose-refs/-/react-compose-refs-0.1.0.tgz#cff6e780a0f73778b976acff2c2a5b6551caab95"
@@ -1293,18 +1312,30 @@
"@radix-ui/react-use-callback-ref" "1.0.0"
"@radix-ui/react-use-escape-keydown" "1.0.0"
-"@radix-ui/react-dropdown-menu@^1.0.0":
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-1.0.0.tgz#687959e1bcdd5e8eb0de406484aff28d0974c593"
- integrity sha512-Ptben3TxPWrZLbInO7zjAK73kmjYuStsxfg6ujgt+EywJyREoibhZYnsSNqC+UiOtl4PdW/MOHhxVDtew5fouQ==
+"@radix-ui/react-dismissable-layer@1.0.2":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.2.tgz#f04d1061bddf00b1ca304148516b9ddc62e45fb2"
+ integrity sha512-WjJzMrTWROozDqLB0uRWYvj4UuXsM/2L19EmQ3Au+IJWqwvwq9Bwd+P8ivo0Deg9JDPArR1I6MbWNi1CmXsskg==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/primitive" "1.0.0"
+ "@radix-ui/react-compose-refs" "1.0.0"
+ "@radix-ui/react-primitive" "1.0.1"
+ "@radix-ui/react-use-callback-ref" "1.0.0"
+ "@radix-ui/react-use-escape-keydown" "1.0.2"
+
+"@radix-ui/react-dropdown-menu@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.0.3.tgz#901fd338346dc977cf6345371e95ad9d5fde1fe7"
+ integrity sha512-ToCPPztcJMu8WW33xCoG/nGcclVsCsV90IiEdkLhrWro3DzJOR2pPUoSi/aXX7c8imRO0DsZOrfL2bmn0U9qAQ==
dependencies:
"@babel/runtime" "^7.13.10"
"@radix-ui/primitive" "1.0.0"
"@radix-ui/react-compose-refs" "1.0.0"
"@radix-ui/react-context" "1.0.0"
"@radix-ui/react-id" "1.0.0"
- "@radix-ui/react-menu" "1.0.0"
- "@radix-ui/react-primitive" "1.0.0"
+ "@radix-ui/react-menu" "2.0.3"
+ "@radix-ui/react-primitive" "1.0.1"
"@radix-ui/react-use-controllable-state" "1.0.0"
"@radix-ui/react-focus-guards@1.0.0":
@@ -1334,6 +1365,16 @@
"@radix-ui/react-primitive" "1.0.0"
"@radix-ui/react-use-callback-ref" "1.0.0"
+"@radix-ui/react-focus-scope@1.0.1":
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-focus-scope/-/react-focus-scope-1.0.1.tgz#faea8c25f537c5a5c38c50914b63722db0e7f951"
+ integrity sha512-Ej2MQTit8IWJiS2uuujGUmxXjF/y5xZptIIQnyd2JHLwtV0R2j9NRVoRj/1j/gJ7e3REdaBw4Hjf4a1ImhkZcQ==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-compose-refs" "1.0.0"
+ "@radix-ui/react-primitive" "1.0.1"
+ "@radix-ui/react-use-callback-ref" "1.0.0"
+
"@radix-ui/react-id@0.1.5":
version "0.1.5"
resolved "https://registry.yarnpkg.com/@radix-ui/react-id/-/react-id-0.1.5.tgz#010d311bedd5a2884c1e9bb6aaaa4e6cc1d1d3b8"
@@ -1372,30 +1413,30 @@
"@radix-ui/react-id" "1.0.0"
"@radix-ui/react-primitive" "1.0.0"
-"@radix-ui/react-menu@1.0.0":
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/@radix-ui/react-menu/-/react-menu-1.0.0.tgz#f1e07778c0011aa0c5be260fee88491d3aadf261"
- integrity sha512-icW4C64T6nHh3Z4Q1fxO1RlSShouFF4UpUmPV8FLaJZfphDljannKErDuALDx4ClRLihAPZ9i+PrLNPoWS2DMA==
+"@radix-ui/react-menu@2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-menu/-/react-menu-2.0.3.tgz#7bfa1b8e976a829c37ad4660967b59fd46df1b08"
+ integrity sha512-JKgWMzNhWqnimRynMDtR26bKfpraGUj4e39+g9p45Fb1XTEDWepjvtBlkjhZcM068VHiwp7HALqkt7Y5qVRbyQ==
dependencies:
"@babel/runtime" "^7.13.10"
"@radix-ui/primitive" "1.0.0"
- "@radix-ui/react-collection" "1.0.0"
+ "@radix-ui/react-collection" "1.0.1"
"@radix-ui/react-compose-refs" "1.0.0"
"@radix-ui/react-context" "1.0.0"
"@radix-ui/react-direction" "1.0.0"
- "@radix-ui/react-dismissable-layer" "1.0.0"
+ "@radix-ui/react-dismissable-layer" "1.0.2"
"@radix-ui/react-focus-guards" "1.0.0"
- "@radix-ui/react-focus-scope" "1.0.0"
+ "@radix-ui/react-focus-scope" "1.0.1"
"@radix-ui/react-id" "1.0.0"
- "@radix-ui/react-popper" "1.0.0"
- "@radix-ui/react-portal" "1.0.0"
+ "@radix-ui/react-popper" "1.1.0"
+ "@radix-ui/react-portal" "1.0.1"
"@radix-ui/react-presence" "1.0.0"
- "@radix-ui/react-primitive" "1.0.0"
- "@radix-ui/react-roving-focus" "1.0.0"
- "@radix-ui/react-slot" "1.0.0"
+ "@radix-ui/react-primitive" "1.0.1"
+ "@radix-ui/react-roving-focus" "1.0.2"
+ "@radix-ui/react-slot" "1.0.1"
"@radix-ui/react-use-callback-ref" "1.0.0"
aria-hidden "^1.1.1"
- react-remove-scroll "2.5.4"
+ react-remove-scroll "2.5.5"
"@radix-ui/react-popover@^1.0.0":
version "1.0.0"
@@ -1450,6 +1491,23 @@
"@radix-ui/react-use-size" "1.0.0"
"@radix-ui/rect" "1.0.0"
+"@radix-ui/react-popper@1.1.0":
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-popper/-/react-popper-1.1.0.tgz#2be7e4c0cd4581f54277ca33a981c9037d2a8e60"
+ integrity sha512-07U7jpI0dZcLRAxT7L9qs6HecSoPhDSJybF7mEGHJDBDv+ZoGCvIlva0s+WxMXwJEav+ckX3hAlXBtnHmuvlCQ==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@floating-ui/react-dom" "0.7.2"
+ "@radix-ui/react-arrow" "1.0.1"
+ "@radix-ui/react-compose-refs" "1.0.0"
+ "@radix-ui/react-context" "1.0.0"
+ "@radix-ui/react-primitive" "1.0.1"
+ "@radix-ui/react-use-callback-ref" "1.0.0"
+ "@radix-ui/react-use-layout-effect" "1.0.0"
+ "@radix-ui/react-use-rect" "1.0.0"
+ "@radix-ui/react-use-size" "1.0.0"
+ "@radix-ui/rect" "1.0.0"
+
"@radix-ui/react-portal@0.1.4":
version "0.1.4"
resolved "https://registry.yarnpkg.com/@radix-ui/react-portal/-/react-portal-0.1.4.tgz#17bdce3d7f1a9a0b35cb5e935ab8bc562441a7d2"
@@ -1467,6 +1525,14 @@
"@babel/runtime" "^7.13.10"
"@radix-ui/react-primitive" "1.0.0"
+"@radix-ui/react-portal@1.0.1":
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-portal/-/react-portal-1.0.1.tgz#169c5a50719c2bb0079cf4c91a27aa6d37e5dd33"
+ integrity sha512-NY2vUWI5WENgAT1nfC6JS7RU5xRYBfjZVLq0HmgEN1Ezy3rk/UruMV4+Rd0F40PEaFC5SrLS1ixYvcYIQrb4Ig==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-primitive" "1.0.1"
+
"@radix-ui/react-presence@0.1.2":
version "0.1.2"
resolved "https://registry.yarnpkg.com/@radix-ui/react-presence/-/react-presence-0.1.2.tgz#9f11cce3df73cf65bc348e8b76d891f0d54c1fe3"
@@ -1524,19 +1590,19 @@
"@radix-ui/react-use-callback-ref" "0.1.0"
"@radix-ui/react-use-controllable-state" "0.1.0"
-"@radix-ui/react-roving-focus@1.0.0":
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/@radix-ui/react-roving-focus/-/react-roving-focus-1.0.0.tgz#aadeb65d5dbcdbdd037078156ae1f57c2ff754ee"
- integrity sha512-lHvO4MhvoWpeNbiJAoyDsEtbKqP2jkkdwsMVJ3kfqbkC71J/aXE6Th6gkZA1xHEqSku+t+UgoDjvE7Z3gsBpcg==
+"@radix-ui/react-roving-focus@1.0.2":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-roving-focus/-/react-roving-focus-1.0.2.tgz#d8ac2e3b8006697bdfc2b0eb06bef7e15b6245de"
+ integrity sha512-HLK+CqD/8pN6GfJm3U+cqpqhSKYAWiOJDe+A+8MfxBnOue39QEeMa43csUn2CXCHQT0/mewh1LrrG4tfkM9DMA==
dependencies:
"@babel/runtime" "^7.13.10"
"@radix-ui/primitive" "1.0.0"
- "@radix-ui/react-collection" "1.0.0"
+ "@radix-ui/react-collection" "1.0.1"
"@radix-ui/react-compose-refs" "1.0.0"
"@radix-ui/react-context" "1.0.0"
"@radix-ui/react-direction" "1.0.0"
"@radix-ui/react-id" "1.0.0"
- "@radix-ui/react-primitive" "1.0.0"
+ "@radix-ui/react-primitive" "1.0.1"
"@radix-ui/react-use-callback-ref" "1.0.0"
"@radix-ui/react-use-controllable-state" "1.0.0"
@@ -1720,6 +1786,14 @@
"@babel/runtime" "^7.13.10"
"@radix-ui/react-use-callback-ref" "1.0.0"
+"@radix-ui/react-use-escape-keydown@1.0.2":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.0.2.tgz#09ab6455ab240b4f0a61faf06d4e5132c4d639f6"
+ integrity sha512-DXGim3x74WgUv+iMNCF+cAo8xUHHeqvjx8zs7trKf+FkQKPQXLk2sX7Gx1ysH7Q76xCpZuxIJE7HLPxRE+Q+GA==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-use-callback-ref" "1.0.0"
+
"@radix-ui/react-use-layout-effect@0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-0.1.0.tgz#ebf71bd6d2825de8f1fbb984abf2293823f0f223"
@@ -7280,6 +7354,17 @@ react-remove-scroll@2.5.4, react-remove-scroll@^2.4.0:
use-callback-ref "^1.3.0"
use-sidecar "^1.1.2"
+react-remove-scroll@2.5.5:
+ version "2.5.5"
+ resolved "https://registry.yarnpkg.com/react-remove-scroll/-/react-remove-scroll-2.5.5.tgz#1e31a1260df08887a8a0e46d09271b52b3a37e77"
+ integrity sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==
+ dependencies:
+ react-remove-scroll-bar "^2.3.3"
+ react-style-singleton "^2.2.1"
+ tslib "^2.1.0"
+ use-callback-ref "^1.3.0"
+ use-sidecar "^1.1.2"
+
react-style-singleton@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/react-style-singleton/-/react-style-singleton-2.2.1.tgz#f99e420492b2d8f34d38308ff660b60d0b1205b4"
From 9e796e4f75610af4b7035f7a9c032e32008b085f Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 2 Mar 2023 00:08:27 +0000
Subject: [PATCH 122/128] Bump eslint-config-next from 12.1.6 to 13.2.3
Bumps [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next) from 12.1.6 to 13.2.3.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/commits/v13.2.3/packages/eslint-config-next)
---
updated-dependencies:
- dependency-name: eslint-config-next
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot]
---
packages/config/package.json | 2 +-
yarn.lock | 519 +++++++++++++++++++++++++++++++----
2 files changed, 470 insertions(+), 51 deletions(-)
diff --git a/packages/config/package.json b/packages/config/package.json
index 13e5e6d4..f8db14b5 100644
--- a/packages/config/package.json
+++ b/packages/config/package.json
@@ -8,7 +8,7 @@
"eslint-preset.js"
],
"dependencies": {
- "eslint-config-next": "^12.1.6",
+ "eslint-config-next": "^13.2.3",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-react": "7.30.0"
}
diff --git a/yarn.lock b/yarn.lock
index 40289333..cfd9efa0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1026,10 +1026,10 @@
resolved "https://registry.yarnpkg.com/@next/env/-/env-12.2.4.tgz#5ba9bed9970be4113773233148b4539691bfc4fe"
integrity sha512-/gApFXWk5CCLFQJL5IYJXxPQuG5tz5nPX4l27A9Zm/+wJxiwFrRSP54AopDxIv4JRp/rGwcgk/lZS/0Clw8jYA==
-"@next/eslint-plugin-next@12.1.6":
- version "12.1.6"
- resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-12.1.6.tgz#dde3f98831f15923b25244588d924c716956292e"
- integrity sha512-yNUtJ90NEiYFT6TJnNyofKMPYqirKDwpahcbxBgSIuABwYOdkGwzos1ZkYD51Qf0diYwpQZBeVqElTk7Q2WNqw==
+"@next/eslint-plugin-next@13.2.3":
+ version "13.2.3"
+ resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-13.2.3.tgz#5af8ddeac6dbe028c812a0e59c41952c004d95d5"
+ integrity sha512-QmMPItnU7VeojI1KnuwL9SLFWEwmaNHNlnOGpoTwdLoSiP9sc8KYiAHWEc4/44L+cAdCxcZYvn7frcRNP5l84Q==
dependencies:
glob "7.1.7"
@@ -1129,6 +1129,18 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"
+"@pkgr/utils@^2.3.1":
+ version "2.3.1"
+ resolved "https://registry.yarnpkg.com/@pkgr/utils/-/utils-2.3.1.tgz#0a9b06ffddee364d6642b3cd562ca76f55b34a03"
+ integrity sha512-wfzX8kc1PMyUILA+1Z/EqoE4UCXGy0iRGMhPwdfae1+f0OXlLqCk+By+aMzgJBzR9AzS4CDizioG6Ss1gvAFJw==
+ dependencies:
+ cross-spawn "^7.0.3"
+ is-glob "^4.0.3"
+ open "^8.4.0"
+ picocolors "^1.0.0"
+ tiny-glob "^0.2.9"
+ tslib "^2.4.0"
+
"@radix-ui/number@0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@radix-ui/number/-/number-0.1.0.tgz#73ad13d5cc5f75fa5e147d72e5d5d5e50d688256"
@@ -2278,48 +2290,48 @@
dependencies:
"@types/yargs-parser" "*"
-"@typescript-eslint/parser@^5.21.0":
- version "5.27.0"
- resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.27.0.tgz#62bb091ed5cf9c7e126e80021bb563dcf36b6b12"
- integrity sha512-8oGjQF46c52l7fMiPPvX4It3u3V3JipssqDfHQ2hcR0AeR8Zge+OYyKUCm5b70X72N1qXt0qgHenwN6Gc2SXZA==
+"@typescript-eslint/parser@^5.42.0":
+ version "5.54.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.54.0.tgz#def186eb1b1dbd0439df0dacc44fb6d8d5c417fe"
+ integrity sha512-aAVL3Mu2qTi+h/r04WI/5PfNWvO6pdhpeMRWk9R7rEV4mwJNzoWf5CCU5vDKBsPIFQFjEq1xg7XBI2rjiMXQbQ==
dependencies:
- "@typescript-eslint/scope-manager" "5.27.0"
- "@typescript-eslint/types" "5.27.0"
- "@typescript-eslint/typescript-estree" "5.27.0"
+ "@typescript-eslint/scope-manager" "5.54.0"
+ "@typescript-eslint/types" "5.54.0"
+ "@typescript-eslint/typescript-estree" "5.54.0"
debug "^4.3.4"
-"@typescript-eslint/scope-manager@5.27.0":
- version "5.27.0"
- resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.27.0.tgz#a272178f613050ed62f51f69aae1e19e870a8bbb"
- integrity sha512-VnykheBQ/sHd1Vt0LJ1JLrMH1GzHO+SzX6VTXuStISIsvRiurue/eRkTqSrG0CexHQgKG8shyJfR4o5VYioB9g==
+"@typescript-eslint/scope-manager@5.54.0":
+ version "5.54.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.54.0.tgz#74b28ac9a3fc8166f04e806c957adb8c1fd00536"
+ integrity sha512-VTPYNZ7vaWtYna9M4oD42zENOBrb+ZYyCNdFs949GcN8Miwn37b8b7eMj+EZaq7VK9fx0Jd+JhmkhjFhvnovhg==
dependencies:
- "@typescript-eslint/types" "5.27.0"
- "@typescript-eslint/visitor-keys" "5.27.0"
+ "@typescript-eslint/types" "5.54.0"
+ "@typescript-eslint/visitor-keys" "5.54.0"
-"@typescript-eslint/types@5.27.0":
- version "5.27.0"
- resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.27.0.tgz#c3f44b9dda6177a9554f94a74745ca495ba9c001"
- integrity sha512-lY6C7oGm9a/GWhmUDOs3xAVRz4ty/XKlQ2fOLr8GAIryGn0+UBOoJDWyHer3UgrHkenorwvBnphhP+zPmzmw0A==
+"@typescript-eslint/types@5.54.0":
+ version "5.54.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.54.0.tgz#7d519df01f50739254d89378e0dcac504cab2740"
+ integrity sha512-nExy+fDCBEgqblasfeE3aQ3NuafBUxZxgxXcYfzYRZFHdVvk5q60KhCSkG0noHgHRo/xQ/BOzURLZAafFpTkmQ==
-"@typescript-eslint/typescript-estree@5.27.0":
- version "5.27.0"
- resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.27.0.tgz#7965f5b553c634c5354a47dcce0b40b94611e995"
- integrity sha512-QywPMFvgZ+MHSLRofLI7BDL+UczFFHyj0vF5ibeChDAJgdTV8k4xgEwF0geFhVlPc1p8r70eYewzpo6ps+9LJQ==
+"@typescript-eslint/typescript-estree@5.54.0":
+ version "5.54.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.54.0.tgz#f6f3440cabee8a43a0b25fa498213ebb61fdfe99"
+ integrity sha512-X2rJG97Wj/VRo5YxJ8Qx26Zqf0RRKsVHd4sav8NElhbZzhpBI8jU54i6hfo9eheumj4oO4dcRN1B/zIVEqR/MQ==
dependencies:
- "@typescript-eslint/types" "5.27.0"
- "@typescript-eslint/visitor-keys" "5.27.0"
+ "@typescript-eslint/types" "5.54.0"
+ "@typescript-eslint/visitor-keys" "5.54.0"
debug "^4.3.4"
globby "^11.1.0"
is-glob "^4.0.3"
semver "^7.3.7"
tsutils "^3.21.0"
-"@typescript-eslint/visitor-keys@5.27.0":
- version "5.27.0"
- resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.27.0.tgz#97aa9a5d2f3df8215e6d3b77f9d214a24db269bd"
- integrity sha512-46cYrteA2MrIAjv9ai44OQDUoCZyHeGIc4lsjCUX2WT6r4C+kidz1bNiR4017wHOPUythYeH+Sc7/cFP97KEAA==
+"@typescript-eslint/visitor-keys@5.54.0":
+ version "5.54.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.54.0.tgz#846878afbf0cd67c19cfa8d75947383d4490db8f"
+ integrity sha512-xu4wT7aRCakGINTLGeyGqDn+78BwFlggwBjnHa1ar/KaGagnmwLYmlrXIrgAaQ3AE1Vd6nLfKASm7LrFHNbKGA==
dependencies:
- "@typescript-eslint/types" "5.27.0"
+ "@typescript-eslint/types" "5.54.0"
eslint-visitor-keys "^3.3.0"
"@use-gesture/core@10.2.17":
@@ -2496,6 +2508,17 @@ array-includes@^3.1.4, array-includes@^3.1.5:
get-intrinsic "^1.1.1"
is-string "^1.0.7"
+array-includes@^3.1.6:
+ version "3.1.6"
+ resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.6.tgz#9e9e720e194f198266ba9e18c29e6a9b0e4b225f"
+ integrity sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.4"
+ es-abstract "^1.20.4"
+ get-intrinsic "^1.1.3"
+ is-string "^1.0.7"
+
array-union@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39"
@@ -2538,6 +2561,27 @@ array.prototype.flatmap@^1.3.0:
es-abstract "^1.19.2"
es-shim-unscopables "^1.0.0"
+array.prototype.flatmap@^1.3.1:
+ version "1.3.1"
+ resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz#1aae7903c2100433cb8261cd4ed310aab5c4a183"
+ integrity sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.4"
+ es-abstract "^1.20.4"
+ es-shim-unscopables "^1.0.0"
+
+array.prototype.tosorted@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz#ccf44738aa2b5ac56578ffda97c03fd3e23dd532"
+ integrity sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.4"
+ es-abstract "^1.20.4"
+ es-shim-unscopables "^1.0.0"
+ get-intrinsic "^1.1.3"
+
arrify@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
@@ -2568,6 +2612,11 @@ atob@^2.1.2:
resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==
+available-typed-arrays@^1.0.5:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7"
+ integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==
+
axe-core@^4.3.5:
version "4.4.1"
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.4.1.tgz#7dbdc25989298f9ad006645cd396782443757413"
@@ -3275,6 +3324,11 @@ defer-to-connect@^1.0.1:
resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.1.3.tgz#331ae050c08dcf789f8c83a7b81f0ed94f4ac591"
integrity sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==
+define-lazy-prop@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f"
+ integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==
+
define-properties@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1"
@@ -3432,6 +3486,14 @@ end-of-stream@^1.1.0:
dependencies:
once "^1.4.0"
+enhanced-resolve@^5.10.0:
+ version "5.12.0"
+ resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz#300e1c90228f5b570c4d35babf263f6da7155634"
+ integrity sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==
+ dependencies:
+ graceful-fs "^4.2.4"
+ tapable "^2.2.0"
+
enquirer@^2.3.0:
version "2.3.6"
resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d"
@@ -3501,6 +3563,54 @@ es-abstract@^1.19.1, es-abstract@^1.19.2:
string.prototype.trimstart "^1.0.4"
unbox-primitive "^1.0.1"
+es-abstract@^1.20.4:
+ version "1.21.1"
+ resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.21.1.tgz#e6105a099967c08377830a0c9cb589d570dd86c6"
+ integrity sha512-QudMsPOz86xYz/1dG1OuGBKOELjCh99IIWHLzy5znUB6j8xG2yMA7bfTV86VSqKF+Y/H08vQPR+9jyXpuC6hfg==
+ dependencies:
+ available-typed-arrays "^1.0.5"
+ call-bind "^1.0.2"
+ es-set-tostringtag "^2.0.1"
+ es-to-primitive "^1.2.1"
+ function-bind "^1.1.1"
+ function.prototype.name "^1.1.5"
+ get-intrinsic "^1.1.3"
+ get-symbol-description "^1.0.0"
+ globalthis "^1.0.3"
+ gopd "^1.0.1"
+ has "^1.0.3"
+ has-property-descriptors "^1.0.0"
+ has-proto "^1.0.1"
+ has-symbols "^1.0.3"
+ internal-slot "^1.0.4"
+ is-array-buffer "^3.0.1"
+ is-callable "^1.2.7"
+ is-negative-zero "^2.0.2"
+ is-regex "^1.1.4"
+ is-shared-array-buffer "^1.0.2"
+ is-string "^1.0.7"
+ is-typed-array "^1.1.10"
+ is-weakref "^1.0.2"
+ object-inspect "^1.12.2"
+ object-keys "^1.1.1"
+ object.assign "^4.1.4"
+ regexp.prototype.flags "^1.4.3"
+ safe-regex-test "^1.0.0"
+ string.prototype.trimend "^1.0.6"
+ string.prototype.trimstart "^1.0.6"
+ typed-array-length "^1.0.4"
+ unbox-primitive "^1.0.2"
+ which-typed-array "^1.1.9"
+
+es-set-tostringtag@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz#338d502f6f674301d710b80c8592de8a15f09cd8"
+ integrity sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==
+ dependencies:
+ get-intrinsic "^1.1.3"
+ has "^1.0.3"
+ has-tostringtag "^1.0.0"
+
es-shim-unscopables@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz#702e632193201e3edf8713635d083d378e510241"
@@ -3686,19 +3796,19 @@ escodegen@^2.0.0:
optionalDependencies:
source-map "~0.6.1"
-eslint-config-next@^12.1.6:
- version "12.1.6"
- resolved "https://registry.yarnpkg.com/eslint-config-next/-/eslint-config-next-12.1.6.tgz#55097028982dce49159d8753000be3916ac55254"
- integrity sha512-qoiS3g/EPzfCTkGkaPBSX9W0NGE/B1wNO3oWrd76QszVGrdpLggNqcO8+LR6MB0CNqtp9Q8NoeVrxNVbzM9hqA==
+eslint-config-next@^13.2.3:
+ version "13.2.3"
+ resolved "https://registry.yarnpkg.com/eslint-config-next/-/eslint-config-next-13.2.3.tgz#8a952bfd856f492684a30dd5fcdc8979c97c1cc2"
+ integrity sha512-kPulHiQEHGei9hIaaNGygHRc0UzlWM+3euOmYbxNkd2Nbhci5rrCDeMBMPSV8xgUssphDGmwDHWbk4VZz3rlZQ==
dependencies:
- "@next/eslint-plugin-next" "12.1.6"
+ "@next/eslint-plugin-next" "13.2.3"
"@rushstack/eslint-patch" "^1.1.3"
- "@typescript-eslint/parser" "^5.21.0"
+ "@typescript-eslint/parser" "^5.42.0"
eslint-import-resolver-node "^0.3.6"
- eslint-import-resolver-typescript "^2.7.1"
+ eslint-import-resolver-typescript "^3.5.2"
eslint-plugin-import "^2.26.0"
eslint-plugin-jsx-a11y "^6.5.1"
- eslint-plugin-react "^7.29.4"
+ eslint-plugin-react "^7.31.7"
eslint-plugin-react-hooks "^4.5.0"
eslint-config-prettier@^8.5.0:
@@ -3714,16 +3824,18 @@ eslint-import-resolver-node@^0.3.6:
debug "^3.2.7"
resolve "^1.20.0"
-eslint-import-resolver-typescript@^2.7.1:
- version "2.7.1"
- resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-2.7.1.tgz#a90a4a1c80da8d632df25994c4c5fdcdd02b8751"
- integrity sha512-00UbgGwV8bSgUv34igBDbTOtKhqoRMy9bFjNehT40bXg6585PNIct8HhXZ0SybqB9rWtXj9crcku8ndDn/gIqQ==
+eslint-import-resolver-typescript@^3.5.2:
+ version "3.5.3"
+ resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.5.3.tgz#db5ed9e906651b7a59dd84870aaef0e78c663a05"
+ integrity sha512-njRcKYBc3isE42LaTcJNVANR3R99H9bAxBDMNDr2W7yq5gYPxbU3MkdhsQukxZ/Xg9C2vcyLlDsbKfRDg0QvCQ==
dependencies:
debug "^4.3.4"
- glob "^7.2.0"
+ enhanced-resolve "^5.10.0"
+ get-tsconfig "^4.2.0"
+ globby "^13.1.2"
+ is-core-module "^2.10.0"
is-glob "^4.0.3"
- resolve "^1.22.0"
- tsconfig-paths "^3.14.1"
+ synckit "^0.8.4"
eslint-module-utils@^2.7.3:
version "2.7.3"
@@ -3775,7 +3887,7 @@ eslint-plugin-react-hooks@^4.5.0:
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.5.0.tgz#5f762dfedf8b2cf431c689f533c9d3fa5dcf25ad"
integrity sha512-8k1gRt7D7h03kd+SAAlzXkQwWK22BnK6GKZG+FJA6BAGy22CFvl8kCIXKpVux0cCxMWDQUPqSok0LKaZ0aOcCw==
-eslint-plugin-react@7.30.0, eslint-plugin-react@^7.29.4:
+eslint-plugin-react@7.30.0:
version "7.30.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.30.0.tgz#8e7b1b2934b8426ac067a0febade1b13bd7064e3"
integrity sha512-RgwH7hjW48BleKsYyHK5vUAvxtE9SMPDKmcPRQgtRCYaZA0XQPt5FSkrU3nhz5ifzMZcA8opwmRJ2cmOO8tr5A==
@@ -3795,6 +3907,27 @@ eslint-plugin-react@7.30.0, eslint-plugin-react@^7.29.4:
semver "^6.3.0"
string.prototype.matchall "^4.0.7"
+eslint-plugin-react@^7.31.7:
+ version "7.32.2"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz#e71f21c7c265ebce01bcbc9d0955170c55571f10"
+ integrity sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==
+ dependencies:
+ array-includes "^3.1.6"
+ array.prototype.flatmap "^1.3.1"
+ array.prototype.tosorted "^1.1.1"
+ doctrine "^2.1.0"
+ estraverse "^5.3.0"
+ jsx-ast-utils "^2.4.1 || ^3.0.0"
+ minimatch "^3.1.2"
+ object.entries "^1.1.6"
+ object.fromentries "^2.0.6"
+ object.hasown "^1.1.2"
+ object.values "^1.1.6"
+ prop-types "^15.8.1"
+ resolve "^2.0.0-next.4"
+ semver "^6.3.0"
+ string.prototype.matchall "^4.0.8"
+
eslint-scope@^7.1.1:
version "7.1.1"
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.1.1.tgz#fff34894c2f65e5226d3041ac480b4513a163642"
@@ -4051,6 +4184,17 @@ fast-glob@^2.2.6:
merge2 "^1.2.3"
micromatch "^3.1.10"
+fast-glob@^3.2.11:
+ version "3.2.12"
+ resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80"
+ integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==
+ dependencies:
+ "@nodelib/fs.stat" "^2.0.2"
+ "@nodelib/fs.walk" "^1.2.3"
+ glob-parent "^5.1.2"
+ merge2 "^1.3.0"
+ micromatch "^4.0.4"
+
fast-glob@^3.2.9:
version "3.2.11"
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9"
@@ -4159,6 +4303,13 @@ flatted@^3.1.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.5.tgz#76c8584f4fc843db64702a6bd04ab7a8bd666da3"
integrity sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg==
+for-each@^0.3.3:
+ version "0.3.3"
+ resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e"
+ integrity sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==
+ dependencies:
+ is-callable "^1.1.3"
+
for-in@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
@@ -4263,6 +4414,15 @@ get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1:
has "^1.0.3"
has-symbols "^1.0.1"
+get-intrinsic@^1.1.3, get-intrinsic@^1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.0.tgz#7ad1dc0535f3a2904bba075772763e5051f6d05f"
+ integrity sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==
+ dependencies:
+ function-bind "^1.1.1"
+ has "^1.0.3"
+ has-symbols "^1.0.3"
+
get-nonce@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/get-nonce/-/get-nonce-1.0.1.tgz#fdf3f0278073820d2ce9426c18f07481b1e0cdf3"
@@ -4300,6 +4460,11 @@ get-symbol-description@^1.0.0:
call-bind "^1.0.2"
get-intrinsic "^1.1.1"
+get-tsconfig@^4.2.0:
+ version "4.4.0"
+ resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.4.0.tgz#64eee64596668a81b8fce18403f94f245ee0d4e5"
+ integrity sha512-0Gdjo/9+FzsYhXCEFueo2aY1z1tpXrxWZzP7k8ul9qt1U5o8rYJwTJYmaeHdrVosYIVYkOy2iwCJ9FdpocJhPQ==
+
get-value@^2.0.3, get-value@^2.0.6:
version "2.0.6"
resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28"
@@ -4383,7 +4548,7 @@ glob@^7.1.3:
once "^1.3.0"
path-is-absolute "^1.0.0"
-glob@^7.1.4, glob@^7.2.0:
+glob@^7.1.4:
version "7.2.3"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
@@ -4407,6 +4572,18 @@ globals@^13.15.0:
dependencies:
type-fest "^0.20.2"
+globalthis@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.3.tgz#5852882a52b80dc301b0660273e1ed082f0b6ccf"
+ integrity sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==
+ dependencies:
+ define-properties "^1.1.3"
+
+globalyzer@0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/globalyzer/-/globalyzer-0.1.0.tgz#cb76da79555669a1519d5a8edf093afaa0bf1465"
+ integrity sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==
+
globby@^11.0.0, globby@^11.0.3, globby@^11.1.0:
version "11.1.0"
resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b"
@@ -4419,6 +4596,17 @@ globby@^11.0.0, globby@^11.0.3, globby@^11.1.0:
merge2 "^1.4.1"
slash "^3.0.0"
+globby@^13.1.2:
+ version "13.1.3"
+ resolved "https://registry.yarnpkg.com/globby/-/globby-13.1.3.tgz#f62baf5720bcb2c1330c8d4ef222ee12318563ff"
+ integrity sha512-8krCNHXvlCgHDpegPzleMq07yMYTO2sXKASmZmquEYWEmCx6J5UTRbp5RwMJkTJGtcQ44YpiUYUiN0b9mzy8Bw==
+ dependencies:
+ dir-glob "^3.0.1"
+ fast-glob "^3.2.11"
+ ignore "^5.2.0"
+ merge2 "^1.4.1"
+ slash "^4.0.0"
+
globby@^9.2.0:
version "9.2.0"
resolved "https://registry.yarnpkg.com/globby/-/globby-9.2.0.tgz#fd029a706c703d29bdd170f4b6db3a3f7a7cb63d"
@@ -4433,6 +4621,18 @@ globby@^9.2.0:
pify "^4.0.1"
slash "^2.0.0"
+globrex@^0.1.2:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/globrex/-/globrex-0.1.2.tgz#dd5d9ec826232730cd6793a5e33a9302985e6098"
+ integrity sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==
+
+gopd@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c"
+ integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==
+ dependencies:
+ get-intrinsic "^1.1.3"
+
got@^9.6.0:
version "9.6.0"
resolved "https://registry.yarnpkg.com/got/-/got-9.6.0.tgz#edf45e7d67f99545705de1f7bbeeeb121765ed85"
@@ -4450,7 +4650,7 @@ got@^9.6.0:
to-readable-stream "^1.0.0"
url-parse-lax "^3.0.0"
-graceful-fs@^4.1.2, graceful-fs@^4.1.5, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.9:
+graceful-fs@^4.1.2, graceful-fs@^4.1.5, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.9:
version "4.2.10"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c"
integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==
@@ -4492,6 +4692,11 @@ has-property-descriptors@^1.0.0:
dependencies:
get-intrinsic "^1.1.1"
+has-proto@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.1.tgz#1885c1305538958aff469fef37937c22795408e0"
+ integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==
+
has-symbols@^1.0.1, has-symbols@^1.0.2, has-symbols@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8"
@@ -4839,6 +5044,15 @@ internal-slot@^1.0.3:
has "^1.0.3"
side-channel "^1.0.4"
+internal-slot@^1.0.4:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.5.tgz#f2a2ee21f668f8627a4667f309dc0f4fb6674986"
+ integrity sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==
+ dependencies:
+ get-intrinsic "^1.2.0"
+ has "^1.0.3"
+ side-channel "^1.0.4"
+
invariant@^2.2.4:
version "2.2.4"
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
@@ -4873,6 +5087,15 @@ is-alphanumerical@^2.0.0:
is-alphabetical "^2.0.0"
is-decimal "^2.0.0"
+is-array-buffer@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.1.tgz#deb1db4fcae48308d54ef2442706c0393997052a"
+ integrity sha512-ASfLknmY8Xa2XtB4wmbz13Wu202baeA18cJBCeCy0wXUHZF0IPyVEXqKEcd+t2fNSLLL1vC6k7lxZEojNbISXQ==
+ dependencies:
+ call-bind "^1.0.2"
+ get-intrinsic "^1.1.3"
+ is-typed-array "^1.1.10"
+
is-arrayish@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
@@ -4918,6 +5141,11 @@ is-buffer@^2.0.0:
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191"
integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==
+is-callable@^1.1.3, is-callable@^1.2.7:
+ version "1.2.7"
+ resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055"
+ integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==
+
is-callable@^1.1.4, is-callable@^1.2.4:
version "1.2.4"
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.4.tgz#47301d58dd0259407865547853df6d61fe471945"
@@ -4930,6 +5158,13 @@ is-ci@^3.0.1:
dependencies:
ci-info "^3.2.0"
+is-core-module@^2.10.0, is-core-module@^2.9.0:
+ version "2.11.0"
+ resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144"
+ integrity sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==
+ dependencies:
+ has "^1.0.3"
+
is-core-module@^2.2.0, is-core-module@^2.8.1:
version "2.8.1"
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.8.1.tgz#f59fdfca701d5879d0a6b100a40aa1560ce27211"
@@ -4981,6 +5216,11 @@ is-descriptor@^1.0.0, is-descriptor@^1.0.2:
is-data-descriptor "^1.0.0"
kind-of "^6.0.2"
+is-docker@^2.0.0, is-docker@^2.1.1:
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa"
+ integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==
+
is-empty@latest:
version "1.2.0"
resolved "https://registry.yarnpkg.com/is-empty/-/is-empty-1.2.0.tgz#de9bb5b278738a05a0b09a57e1fb4d4a341a9f6b"
@@ -5138,6 +5378,17 @@ is-symbol@^1.0.2, is-symbol@^1.0.3:
dependencies:
has-symbols "^1.0.2"
+is-typed-array@^1.1.10, is-typed-array@^1.1.9:
+ version "1.1.10"
+ resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.10.tgz#36a5b5cb4189b575d1a3e4b08536bfb485801e3f"
+ integrity sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==
+ dependencies:
+ available-typed-arrays "^1.0.5"
+ call-bind "^1.0.2"
+ for-each "^0.3.3"
+ gopd "^1.0.1"
+ has-tostringtag "^1.0.0"
+
is-weakref@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2"
@@ -5155,6 +5406,13 @@ is-windows@^1.0.0, is-windows@^1.0.2:
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"
integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==
+is-wsl@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271"
+ integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==
+ dependencies:
+ is-docker "^2.0.0"
+
isarray@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
@@ -6763,6 +7021,11 @@ object-inspect@^1.12.0, object-inspect@^1.9.0:
resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.0.tgz#6e2c120e868fd1fd18cb4f18c31741d0d6e776f0"
integrity sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g==
+object-inspect@^1.12.2:
+ version "1.12.3"
+ resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.3.tgz#ba62dffd67ee256c8c086dfae69e016cd1f198b9"
+ integrity sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==
+
object-keys@^1.0.12, object-keys@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e"
@@ -6785,6 +7048,16 @@ object.assign@^4.1.2:
has-symbols "^1.0.1"
object-keys "^1.1.1"
+object.assign@^4.1.4:
+ version "4.1.4"
+ resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.4.tgz#9673c7c7c351ab8c4d0b516f4343ebf4dfb7799f"
+ integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.4"
+ has-symbols "^1.0.3"
+ object-keys "^1.1.1"
+
object.entries@^1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861"
@@ -6794,6 +7067,15 @@ object.entries@^1.1.5:
define-properties "^1.1.3"
es-abstract "^1.19.1"
+object.entries@^1.1.6:
+ version "1.1.6"
+ resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.6.tgz#9737d0e5b8291edd340a3e3264bb8a3b00d5fa23"
+ integrity sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.4"
+ es-abstract "^1.20.4"
+
object.fromentries@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.5.tgz#7b37b205109c21e741e605727fe8b0ad5fa08251"
@@ -6803,6 +7085,15 @@ object.fromentries@^2.0.5:
define-properties "^1.1.3"
es-abstract "^1.19.1"
+object.fromentries@^2.0.6:
+ version "2.0.6"
+ resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.6.tgz#cdb04da08c539cffa912dcd368b886e0904bfa73"
+ integrity sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.4"
+ es-abstract "^1.20.4"
+
object.hasown@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.1.tgz#ad1eecc60d03f49460600430d97f23882cf592a3"
@@ -6811,6 +7102,14 @@ object.hasown@^1.1.1:
define-properties "^1.1.4"
es-abstract "^1.19.5"
+object.hasown@^1.1.2:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.2.tgz#f919e21fad4eb38a57bc6345b3afd496515c3f92"
+ integrity sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==
+ dependencies:
+ define-properties "^1.1.4"
+ es-abstract "^1.20.4"
+
object.pick@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747"
@@ -6827,6 +7126,15 @@ object.values@^1.1.5:
define-properties "^1.1.3"
es-abstract "^1.19.1"
+object.values@^1.1.6:
+ version "1.1.6"
+ resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.6.tgz#4abbaa71eba47d63589d402856f908243eea9b1d"
+ integrity sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.4"
+ es-abstract "^1.20.4"
+
once@^1.3.0, once@^1.3.1, once@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
@@ -6841,6 +7149,15 @@ onetime@^5.1.2:
dependencies:
mimic-fn "^2.1.0"
+open@^8.4.0:
+ version "8.4.2"
+ resolved "https://registry.yarnpkg.com/open/-/open-8.4.2.tgz#5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9"
+ integrity sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==
+ dependencies:
+ define-lazy-prop "^2.0.0"
+ is-docker "^2.1.1"
+ is-wsl "^2.2.0"
+
optionator@^0.8.1:
version "0.8.3"
resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495"
@@ -7578,6 +7895,15 @@ resolve@^2.0.0-next.3:
is-core-module "^2.2.0"
path-parse "^1.0.6"
+resolve@^2.0.0-next.4:
+ version "2.0.0-next.4"
+ resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.4.tgz#3d37a113d6429f496ec4752d2a2e58efb1fd4660"
+ integrity sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==
+ dependencies:
+ is-core-module "^2.9.0"
+ path-parse "^1.0.7"
+ supports-preserve-symlinks-flag "^1.0.0"
+
responselike@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7"
@@ -7638,6 +7964,15 @@ safe-buffer@~5.1.1:
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==
+safe-regex-test@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.0.tgz#793b874d524eb3640d1873aad03596db2d4f2295"
+ integrity sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==
+ dependencies:
+ call-bind "^1.0.2"
+ get-intrinsic "^1.1.3"
+ is-regex "^1.1.4"
+
safe-regex@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e"
@@ -7762,6 +8097,11 @@ slash@^3.0.0:
resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==
+slash@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/slash/-/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7"
+ integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==
+
smartwrap@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/smartwrap/-/smartwrap-2.0.2.tgz#7e25d3dd58b51c6ca4aba3a9e391650ea62698a4"
@@ -7959,6 +8299,20 @@ string.prototype.matchall@^4.0.7:
regexp.prototype.flags "^1.4.1"
side-channel "^1.0.4"
+string.prototype.matchall@^4.0.8:
+ version "4.0.8"
+ resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz#3bf85722021816dcd1bf38bb714915887ca79fd3"
+ integrity sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.4"
+ es-abstract "^1.20.4"
+ get-intrinsic "^1.1.3"
+ has-symbols "^1.0.3"
+ internal-slot "^1.0.3"
+ regexp.prototype.flags "^1.4.3"
+ side-channel "^1.0.4"
+
string.prototype.trimend@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz#e75ae90c2942c63504686c18b287b4a0b1a45f80"
@@ -7976,6 +8330,15 @@ string.prototype.trimend@^1.0.5:
define-properties "^1.1.4"
es-abstract "^1.19.5"
+string.prototype.trimend@^1.0.6:
+ version "1.0.6"
+ resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz#c4a27fa026d979d79c04f17397f250a462944533"
+ integrity sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.4"
+ es-abstract "^1.20.4"
+
string.prototype.trimstart@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz#b36399af4ab2999b4c9c648bd7a3fb2bb26feeed"
@@ -7993,6 +8356,15 @@ string.prototype.trimstart@^1.0.5:
define-properties "^1.1.4"
es-abstract "^1.19.5"
+string.prototype.trimstart@^1.0.6:
+ version "1.0.6"
+ resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz#e90ab66aa8e4007d92ef591bbf3cd422c56bdcf4"
+ integrity sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.4"
+ es-abstract "^1.20.4"
+
stringify-entities@^4.0.0:
version "4.0.2"
resolved "https://registry.yarnpkg.com/stringify-entities/-/stringify-entities-4.0.2.tgz#13d113dc7449dc8ae4cb22c28883ee3fff8753e3"
@@ -8135,6 +8507,19 @@ symbol-tree@^3.2.4:
resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2"
integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==
+synckit@^0.8.4:
+ version "0.8.5"
+ resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.8.5.tgz#b7f4358f9bb559437f9f167eb6bc46b3c9818fa3"
+ integrity sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==
+ dependencies:
+ "@pkgr/utils" "^2.3.1"
+ tslib "^2.5.0"
+
+tapable@^2.2.0:
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0"
+ integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==
+
term-size@^2.1.0:
version "2.2.1"
resolved "https://registry.yarnpkg.com/term-size/-/term-size-2.2.1.tgz#2a6a54840432c2fb6320fea0f415531e90189f54"
@@ -8193,6 +8578,14 @@ throat@^6.0.1:
resolved "https://registry.yarnpkg.com/throat/-/throat-6.0.1.tgz#d514fedad95740c12c2d7fc70ea863eb51ade375"
integrity sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w==
+tiny-glob@^0.2.9:
+ version "0.2.9"
+ resolved "https://registry.yarnpkg.com/tiny-glob/-/tiny-glob-0.2.9.tgz#2212d441ac17928033b110f8b3640683129d31e2"
+ integrity sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==
+ dependencies:
+ globalyzer "0.1.0"
+ globrex "^0.1.2"
+
tmp@^0.0.33:
version "0.0.33"
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"
@@ -8339,6 +8732,11 @@ tslib@^2.0.0, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.4.0:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"
integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==
+tslib@^2.5.0:
+ version "2.5.0"
+ resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf"
+ integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==
+
tsup@^6.2.3:
version "6.2.3"
resolved "https://registry.yarnpkg.com/tsup/-/tsup-6.2.3.tgz#87f57b2e53d49f1c1ab89aba21fed96aaab0ec9f"
@@ -8513,6 +8911,15 @@ type-fest@^0.8.1:
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d"
integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==
+typed-array-length@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.4.tgz#89d83785e5c4098bec72e08b319651f0eac9c1bb"
+ integrity sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==
+ dependencies:
+ call-bind "^1.0.2"
+ for-each "^0.3.3"
+ is-typed-array "^1.1.9"
+
typescript@^4.6.4:
version "4.6.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9"
@@ -8910,6 +9317,18 @@ which-pm@2.0.0:
load-yaml-file "^0.2.0"
path-exists "^4.0.0"
+which-typed-array@^1.1.9:
+ version "1.1.9"
+ resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.9.tgz#307cf898025848cf995e795e8423c7f337efbde6"
+ integrity sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==
+ dependencies:
+ available-typed-arrays "^1.0.5"
+ call-bind "^1.0.2"
+ for-each "^0.3.3"
+ gopd "^1.0.1"
+ has-tostringtag "^1.0.0"
+ is-typed-array "^1.1.10"
+
which@^1.2.9:
version "1.3.1"
resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"
From 2c1bbde90fec8ed8342f0731fa48c79cace40add Mon Sep 17 00:00:00 2001
From: John Otander
Date: Mon, 3 Jul 2023 10:46:31 -0600
Subject: [PATCH 123/128] Create chilled-zoos-arrive.md
---
.changeset/chilled-zoos-arrive.md | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 .changeset/chilled-zoos-arrive.md
diff --git a/.changeset/chilled-zoos-arrive.md b/.changeset/chilled-zoos-arrive.md
new file mode 100644
index 00000000..465f8e11
--- /dev/null
+++ b/.changeset/chilled-zoos-arrive.md
@@ -0,0 +1,5 @@
+---
+"@compai/css-gui": patch
+---
+
+Bump @radix-ui/react-dropdown-menu from 1.0.0 to 2.0.3
From f98b7b4299ecb9306af7442f0c3f825bdc7d2d1c Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Mon, 3 Jul 2023 16:49:21 +0000
Subject: [PATCH 124/128] Version Packages
---
.changeset/chilled-zoos-arrive.md | 5 -----
packages/gui/CHANGELOG.md | 6 ++++++
packages/gui/package.json | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
delete mode 100644 .changeset/chilled-zoos-arrive.md
diff --git a/.changeset/chilled-zoos-arrive.md b/.changeset/chilled-zoos-arrive.md
deleted file mode 100644
index 465f8e11..00000000
--- a/.changeset/chilled-zoos-arrive.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@compai/css-gui": patch
----
-
-Bump @radix-ui/react-dropdown-menu from 1.0.0 to 2.0.3
diff --git a/packages/gui/CHANGELOG.md b/packages/gui/CHANGELOG.md
index 0b83af99..ed89bf96 100644
--- a/packages/gui/CHANGELOG.md
+++ b/packages/gui/CHANGELOG.md
@@ -1,5 +1,11 @@
# @compai/css-gui
+## 0.0.247
+
+### Patch Changes
+
+- 2c1bbde9: Bump @radix-ui/react-dropdown-menu from 1.0.0 to 2.0.3
+
## 0.0.246
### Patch Changes
diff --git a/packages/gui/package.json b/packages/gui/package.json
index e94b219e..97ae23a3 100644
--- a/packages/gui/package.json
+++ b/packages/gui/package.json
@@ -1,6 +1,6 @@
{
"name": "@compai/css-gui",
- "version": "0.0.246",
+ "version": "0.0.247",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
From 45073e19f61f54dbdda4cb270a057c8b1ffcdaf4 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Sat, 28 Feb 2026 01:47:36 -0800
Subject: [PATCH 125/128] Remove link
---
apps/docs/components/Header.tsx | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/apps/docs/components/Header.tsx b/apps/docs/components/Header.tsx
index d6083a78..c1addcdf 100644
--- a/apps/docs/components/Header.tsx
+++ b/apps/docs/components/Header.tsx
@@ -124,26 +124,6 @@ export const Header = () => {
>
Log in
-
- Sign up
-
)
}
From 510e5fcd67258f6a8134befa2f8b169aa5a47ce0 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Sat, 28 Feb 2026 01:48:12 -0800
Subject: [PATCH 126/128] Remove link
---
apps/docs/components/Header.tsx | 21 ---------------------
1 file changed, 21 deletions(-)
diff --git a/apps/docs/components/Header.tsx b/apps/docs/components/Header.tsx
index c1addcdf..3824e190 100644
--- a/apps/docs/components/Header.tsx
+++ b/apps/docs/components/Header.tsx
@@ -103,27 +103,6 @@ export const Header = () => {
>
GitHub
-
- Log in
-
)
}
From 41fbf6c61d2e80fc93cbd365819248eace808bd3 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Sat, 28 Feb 2026 01:51:42 -0800
Subject: [PATCH 127/128] Change node v
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index 084d2f91..7a7c1bd9 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
},
"engines": {
"npm": ">=7.0.0",
- "node": ">=14.0.0"
+ "node": ">=24.0.0"
},
"prettier": {
"singleQuote": true,
From d3ae0203be7ef234116069a12b3d298a93344168 Mon Sep 17 00:00:00 2001
From: mrmrs
Date: Sat, 28 Feb 2026 02:14:26 -0800
Subject: [PATCH 128/128] Fixes image
---
.../examples/BackgroundBlendModePreview.tsx | 2 +-
.../BackgroundImageColorBlendPreview.tsx | 2 +-
.../components/examples/BoxShadowPreview.tsx | 2 +-
apps/docs/components/examples/CardPreview.tsx | 2 +-
.../components/examples/FilterPreview.tsx | 2 +-
.../examples/MixBlendModePreview.tsx | 2 +-
.../components/examples/OpacityPreview.tsx | 2 +-
.../components/examples/TransitionPreview.tsx | 2 +-
apps/docs/data/initial-html-editor-data.ts | 2 +-
.../initial-styles-align-content-preview.ts | 2 +-
...initial-styles-background-image-preview.ts | 2 +-
.../data/initial-styles-background-preview.ts | 2 +-
.../docs/data/initial-styles-link-preview.tsx | 2 +-
apps/docs/data/initial-styles.ts | 2 +-
apps/docs/pages/examples/backgrounds.tsx | 2 +-
apps/docs/pages/examples/border-images.tsx | 2 +-
apps/docs/pages/examples/filters.tsx | 2 +-
apps/docs/pages/examples/flex.tsx | 24 +++++++++----------
apps/docs/pages/examples/masks.tsx | 4 ++--
apps/docs/pages/library/card.tsx | 2 +-
.../gui/src/components/html/default-styles.ts | 4 ++--
packages/gui/src/components/schemas/url.ts | 2 +-
22 files changed, 35 insertions(+), 35 deletions(-)
diff --git a/apps/docs/components/examples/BackgroundBlendModePreview.tsx b/apps/docs/components/examples/BackgroundBlendModePreview.tsx
index 9a305e8e..b41aa56f 100644
--- a/apps/docs/components/examples/BackgroundBlendModePreview.tsx
+++ b/apps/docs/components/examples/BackgroundBlendModePreview.tsx
@@ -36,7 +36,7 @@ export function BackgroundBlendModePreview() {
}}>
{
<>
-
+
Heading
Body text
diff --git a/apps/docs/components/examples/FilterPreview.tsx b/apps/docs/components/examples/FilterPreview.tsx
index 5171b903..889cb090 100644
--- a/apps/docs/components/examples/FilterPreview.tsx
+++ b/apps/docs/components/examples/FilterPreview.tsx
@@ -37,7 +37,7 @@ export function FilterPreview() {
mb: 3,
}}>
-
+
diff --git a/apps/docs/components/examples/MixBlendModePreview.tsx b/apps/docs/components/examples/MixBlendModePreview.tsx
index 6096e437..1fc83291 100644
--- a/apps/docs/components/examples/MixBlendModePreview.tsx
+++ b/apps/docs/components/examples/MixBlendModePreview.tsx
@@ -36,7 +36,7 @@ export function MixBlendModePreview() {
}}>
',
},
style: {
diff --git a/apps/docs/data/initial-styles-align-content-preview.ts b/apps/docs/data/initial-styles-align-content-preview.ts
index 79235e8f..16aec088 100644
--- a/apps/docs/data/initial-styles-align-content-preview.ts
+++ b/apps/docs/data/initial-styles-align-content-preview.ts
@@ -50,7 +50,7 @@ export const initialStyles: any = {
borderImageSource: [
{
type: 'url',
- arguments: ['https://source.unsplash.com/random'],
+ arguments: ['https://dlu344star2bj.cloudfront.net/i/3090-0015.jpg'],
},
],
padding: {
diff --git a/apps/docs/data/initial-styles-background-image-preview.ts b/apps/docs/data/initial-styles-background-image-preview.ts
index 7d052db2..288d177a 100644
--- a/apps/docs/data/initial-styles-background-image-preview.ts
+++ b/apps/docs/data/initial-styles-background-image-preview.ts
@@ -2,7 +2,7 @@ export const initialStyles: any = {
backgroundImage: [
{
name: 'url',
- arguments: 'https://source.unsplash.com/random',
+ arguments: 'https://dlu344star2bj.cloudfront.net/i/3090-0015.jpg',
},
],
}
diff --git a/apps/docs/data/initial-styles-background-preview.ts b/apps/docs/data/initial-styles-background-preview.ts
index 01a660fe..c33548e6 100644
--- a/apps/docs/data/initial-styles-background-preview.ts
+++ b/apps/docs/data/initial-styles-background-preview.ts
@@ -3,7 +3,7 @@ export const initialStyles: any = {
{
image: {
name: 'url',
- arguments: 'https://source.unsplash.com/random',
+ arguments: 'https://dlu344star2bj.cloudfront.net/i/3090-0015.jpg',
},
position: { x: 'center', y: 'center' },
repeat: ['no-repeat'],
diff --git a/apps/docs/data/initial-styles-link-preview.tsx b/apps/docs/data/initial-styles-link-preview.tsx
index 1047c2cf..21a6cf87 100644
--- a/apps/docs/data/initial-styles-link-preview.tsx
+++ b/apps/docs/data/initial-styles-link-preview.tsx
@@ -45,7 +45,7 @@ export const initialStyles: any = {
overflow: 'hidden',
borderImageSource: {
name: 'url',
- arguments: 'https://source.unsplash.com/random',
+ arguments: 'https://dlu344star2bj.cloudfront.net/i/3090-0015.jpg',
},
padding: {
top: {
diff --git a/apps/docs/data/initial-styles.ts b/apps/docs/data/initial-styles.ts
index 993aaa13..93ed8306 100644
--- a/apps/docs/data/initial-styles.ts
+++ b/apps/docs/data/initial-styles.ts
@@ -50,7 +50,7 @@ export const initialStyles: any = {
borderImageSource: [
{
name: 'url',
- arguments: 'https://source.unsplash.com/random',
+ arguments: 'https://dlu344star2bj.cloudfront.net/i/3090-0015.jpg',
},
],
padding: {
diff --git a/apps/docs/pages/examples/backgrounds.tsx b/apps/docs/pages/examples/backgrounds.tsx
index 5466f957..2c64c7cc 100644
--- a/apps/docs/pages/examples/backgrounds.tsx
+++ b/apps/docs/pages/examples/backgrounds.tsx
@@ -19,7 +19,7 @@ const initialStyles = {
{
image: {
name: 'url',
- arguments: 'https://source.unsplash.com/random',
+ arguments: 'https://dlu344star2bj.cloudfront.net/i/3090-0015.jpg',
},
position: {
x: 'center',
diff --git a/apps/docs/pages/examples/border-images.tsx b/apps/docs/pages/examples/border-images.tsx
index 596e5b42..20d60281 100644
--- a/apps/docs/pages/examples/border-images.tsx
+++ b/apps/docs/pages/examples/border-images.tsx
@@ -20,7 +20,7 @@ const initialStyles = {
borderImage: {
source: {
name: 'url',
- arguments: 'https://source.unsplash.com/random',
+ arguments: 'https://dlu344star2bj.cloudfront.net/i/3090-0015.jpg',
},
slice: {
value: {
diff --git a/apps/docs/pages/examples/filters.tsx b/apps/docs/pages/examples/filters.tsx
index 5838cab6..68ca6a3a 100644
--- a/apps/docs/pages/examples/filters.tsx
+++ b/apps/docs/pages/examples/filters.tsx
@@ -29,7 +29,7 @@ export default function Filters() {
sx={{
width: '100%',
aspectRatio: '4 / 3',
- backgroundImage: 'url("https://source.unsplash.com/random")',
+ backgroundImage: 'url("https://dlu344star2bj.cloudfront.net/i/3090-0015.jpg")',
backgroundSize: 'cover',
backgroundPosition: 'center',
display: 'flex',
diff --git a/apps/docs/pages/examples/flex.tsx b/apps/docs/pages/examples/flex.tsx
index 39f04de8..d22d99f8 100644
--- a/apps/docs/pages/examples/flex.tsx
+++ b/apps/docs/pages/examples/flex.tsx
@@ -73,84 +73,84 @@ export default function TextDecoration() {
One
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten
Eleven
Twelve
diff --git a/apps/docs/pages/examples/masks.tsx b/apps/docs/pages/examples/masks.tsx
index a47cd7f9..909918c7 100644
--- a/apps/docs/pages/examples/masks.tsx
+++ b/apps/docs/pages/examples/masks.tsx
@@ -9,7 +9,7 @@ const initialStyles = {
clip: 'border-box',
image: {
name: 'url',
- arguments: 'https://source.unsplash.com/random',
+ arguments: 'https://dlu344star2bj.cloudfront.net/i/3090-0015.jpg',
},
origin: 'border-box',
position: {
@@ -34,7 +34,7 @@ export default function MaskExample() {
img': { maxWidth: '100%', display: 'block' } }}>
diff --git a/apps/docs/pages/library/card.tsx b/apps/docs/pages/library/card.tsx
index feeb4871..0b29287f 100644
--- a/apps/docs/pages/library/card.tsx
+++ b/apps/docs/pages/library/card.tsx
@@ -41,7 +41,7 @@ const initialValue: any = {
display: 'block',
},
attributes: {
- src: 'https://source.unsplash.com/random',
+ src: 'https://dlu344star2bj.cloudfront.net/i/3090-0015.jpg',
},
children: [],
},
diff --git a/packages/gui/src/components/html/default-styles.ts b/packages/gui/src/components/html/default-styles.ts
index ee8e9e7b..5304c0ac 100644
--- a/packages/gui/src/components/html/default-styles.ts
+++ b/packages/gui/src/components/html/default-styles.ts
@@ -16,7 +16,7 @@ export const DEFAULT_ATTRIBUTES: Record = {
xmlns: 'http://www.w3.org/2000/svg',
},
img: {
- src: 'https://source.unsplash.com/random',
- alt: 'Random image from unsplash',
+ src: 'https://dlu344star2bj.cloudfront.net/i/3090-0015.jpg',
+ alt: 'Image',
},
}
diff --git a/packages/gui/src/components/schemas/url.ts b/packages/gui/src/components/schemas/url.ts
index 865fd3dc..60c0e17f 100644
--- a/packages/gui/src/components/schemas/url.ts
+++ b/packages/gui/src/components/schemas/url.ts
@@ -3,5 +3,5 @@ import { string } from './primitives'
export const url = functionSchema(
'url',
- string({ defaultValue: 'https://source.unsplash.com/random' })
+ string({ defaultValue: 'https://dlu344star2bj.cloudfront.net/i/3090-0015.jpg' })
)