Skip to content

Commit e7f8f7c

Browse files
Merge branch 'main' of https://github.com/gridaco/designto-code into staging
2 parents 8fb5040 + 3636163 commit e7f8f7c

8 files changed

Lines changed: 12 additions & 13 deletions

File tree

packages/builder-web-core/builders/build-style-map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { CSSProperties } from "@coli.codes/css";
22
import { WidgetKeyId, StylableJsxWidget, JsxWidget } from "@web-builder/core";
33
import { JSXAttributes, JSXIdentifier, ScopedVariableNamer } from "coli";
4-
import { buildStyledComponentConfig } from "../../builder-web-styled-components";
4+
import { buildStyledComponentConfig } from "@web-builder/styled";
55

66
export interface JSXWithStyleElementConfig {
77
id: string;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// the name "package" is reserved. using "packages" with "s" instead.
2-
export * as packages from "./package";
1+
// the name "package" is reserved. (will cause import issue while compiling) using "_package" with "_" instead.
2+
export * from "./_package";
33

44
// no-repacking - already packed inside. export "standard_libraries"
55
export * from "./stdlib";

packages/builder-web-react/templates/create-react-app-typescript/index.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PackageManifest } from "../../../builder-web-nodejs/package/manifest";
1+
import { PackageManifest } from "@coli.codes/nodejs-builder";
22

33
/**
44
* ```
@@ -37,10 +37,9 @@ import { PackageManifest } from "../../../builder-web-nodejs/package/manifest";
3737
}
3838
* ```
3939
*/
40-
export const CRA_TYPESCRIPT_PACKAGE_PRESET: PackageManifest = new PackageManifest(
41-
{
42-
name: "@packages.bridged.xyz/react-typescript",
43-
description: "Bridged React Typescript Preset",
40+
export const CRA_TYPESCRIPT_PACKAGE_PRESET: PackageManifest =
41+
new PackageManifest({
42+
name: "@packages.grida.co/react-typescript",
43+
description: "Grida React Typescript Preset",
4444
version: "0.0.0",
45-
}
46-
);
45+
});

packages/designto-token/wrappings/wrapping.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ export type WrappingToken =
3030
* @returns
3131
*/
3232
export function unwrappedChild(maybeWrapped: Widget): Widget {
33-
const wrapped =
33+
if (
3434
maybeWrapped instanceof SizedBox ||
3535
maybeWrapped instanceof Stretched ||
3636
maybeWrapped instanceof Positioned ||
3737
maybeWrapped instanceof OverflowBox ||
3838
maybeWrapped instanceof Rotation ||
3939
maybeWrapped instanceof Opacity ||
4040
maybeWrapped instanceof Blurred ||
41-
maybeWrapped instanceof ClipRRect;
42-
if (wrapped) {
41+
maybeWrapped instanceof ClipRRect
42+
) {
4343
return unwrappedChild(maybeWrapped.child);
4444
}
4545
return maybeWrapped;

0 commit comments

Comments
 (0)