-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d5c5c1
commit bff2157
Showing
18 changed files
with
879 additions
and
653 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './Wrapper'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,3 @@ | ||
import { PenpotPageOptions } from '@ui/lib/types/penpotPage'; | ||
import { BoolShape } from '@ui/lib/types/shapes/boolShape'; | ||
import { CircleShape } from '@ui/lib/types/shapes/circleShape'; | ||
import { FrameShape } from '@ui/lib/types/shapes/frameShape'; | ||
import { GroupShape } from '@ui/lib/types/shapes/groupShape'; | ||
import { PathShape } from '@ui/lib/types/shapes/pathShape'; | ||
import { RectShape } from '@ui/lib/types/shapes/rectShape'; | ||
import { TextShape } from '@ui/lib/types/shapes/textShape'; | ||
|
||
export interface PenpotFile { | ||
addPage(name: string, options?: PenpotPageOptions): void; | ||
closePage(): void; | ||
addArtboard(artboard: FrameShape): void; | ||
closeArtboard(): void; | ||
addGroup(group: GroupShape): void; | ||
closeGroup(): void; | ||
addBool(bool: BoolShape): void; | ||
closeBool(): void; | ||
createRect(rect: RectShape): void; | ||
createCircle(circle: CircleShape): void; | ||
createPath(path: PathShape): void; | ||
createText(options: TextShape): void; | ||
// createSVG(svg: any): void; | ||
// closeSVG(): void; | ||
// addLibraryColor(color: any): void; | ||
// updateLibraryColor(color: any): void; | ||
// deleteLibraryColor(color: any): void; | ||
// addLibraryTypography(typography: any): void; | ||
// deleteLibraryTypography(typography: any): void; | ||
// startComponent(component: any): void; | ||
// finishComponent(): void; | ||
// createComponentInstance(instance: any): void; | ||
// lookupShape(shapeId: string): void; | ||
// updateObject(id: string, object: any): void; | ||
// deleteObject(id: string): void; | ||
asMap(): unknown; | ||
export(): void; | ||
} | ||
import { PenpotFile } from '@ui/lib/types/penpotFile'; | ||
|
||
export function createFile(name: string): PenpotFile; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { PenpotPageOptions } from '@ui/lib/types/penpotPage'; | ||
import { BoolShape } from '@ui/lib/types/shapes/boolShape'; | ||
import { CircleShape } from '@ui/lib/types/shapes/circleShape'; | ||
import { FrameShape } from '@ui/lib/types/shapes/frameShape'; | ||
import { GroupShape } from '@ui/lib/types/shapes/groupShape'; | ||
import { PathShape } from '@ui/lib/types/shapes/pathShape'; | ||
import { RectShape } from '@ui/lib/types/shapes/rectShape'; | ||
import { TextShape } from '@ui/lib/types/shapes/textShape'; | ||
|
||
export interface PenpotFile { | ||
addPage(name: string, options?: PenpotPageOptions): void; | ||
closePage(): void; | ||
addArtboard(artboard: FrameShape): void; | ||
closeArtboard(): void; | ||
addGroup(group: GroupShape): void; | ||
closeGroup(): void; | ||
addBool(bool: BoolShape): void; | ||
closeBool(): void; | ||
createRect(rect: RectShape): void; | ||
createCircle(circle: CircleShape): void; | ||
createPath(path: PathShape): void; | ||
createText(options: TextShape): void; | ||
// createSVG(svg: any): void; | ||
// closeSVG(): void; | ||
// addLibraryColor(color: any): void; | ||
// updateLibraryColor(color: any): void; | ||
// deleteLibraryColor(color: any): void; | ||
// addLibraryTypography(typography: any): void; | ||
// deleteLibraryTypography(typography: any): void; | ||
// startComponent(component: any): void; | ||
// finishComponent(): void; | ||
// createComponentInstance(instance: any): void; | ||
// lookupShape(shapeId: string): void; | ||
// updateObject(id: string, object: any): void; | ||
// deleteObject(id: string): void; | ||
asMap(): unknown; | ||
export(): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
import preact from '@preact/preset-vite'; | ||
import react from '@vitejs/plugin-react-swc'; | ||
import { defineConfig } from 'vite'; | ||
import { viteSingleFile } from 'vite-plugin-singlefile'; | ||
import svgr from 'vite-plugin-svgr'; | ||
import tsconfigPaths from 'vite-tsconfig-paths'; | ||
|
||
export default defineConfig({ | ||
root: './ui-src', | ||
plugins: [svgr(), preact(), viteSingleFile(), tsconfigPaths()], | ||
plugins: [svgr(), react(), viteSingleFile({ removeViteModuleLoader: true }), tsconfigPaths()], | ||
resolve: { | ||
alias: { | ||
'react': 'preact/compat', | ||
'react-dom': 'preact/compat', | ||
'!../css/base.css': '../css/base.css' | ||
} | ||
}, | ||
build: { | ||
emptyOutDir: false, | ||
target: 'esnext', | ||
assetsInlineLimit: 100000000, | ||
chunkSizeWarningLimit: 100000000, | ||
cssCodeSplit: false, | ||
outDir: '../dist', | ||
rollupOptions: { | ||
output: { | ||
inlineDynamicImports: true | ||
}, | ||
external: ['!../css/base.css'] | ||
} | ||
reportCompressedSize: false, | ||
outDir: '../dist' | ||
} | ||
}); |