Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set proper default value in radix with content block #4937

Merged
merged 2 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/builder/app/builder/features/ai/ai-fetch-result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { createRegularStyleSheet } from "@webstudio-is/css-engine";
import {
generateJsxElement,
generateJsxChildren,
getIndexesWithinAncestors,
idAttribute,
componentAttribute,
} from "@webstudio-is/react-sdk";
Expand All @@ -18,6 +17,7 @@ import {
Instance,
createScope,
findTreeInstanceIds,
getIndexesWithinAncestors,
} from "@webstudio-is/sdk";
import { computed } from "nanostores";
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ import {
descendantComponent,
blockComponent,
blockTemplateComponent,
getIndexesWithinAncestors,
} from "@webstudio-is/sdk";
import {
idAttribute,
componentAttribute,
showAttribute,
selectorIdAttribute,
indexAttribute,
getIndexesWithinAncestors,
type AnyComponent,
textContentAttribute,
} from "@webstudio-is/react-sdk";
Expand Down
10 changes: 5 additions & 5 deletions apps/builder/app/shared/nano-states/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import {
type Hook,
type HookContext,
namespaceMeta,
getIndexesWithinAncestors,
type InstanceData,
} from "@webstudio-is/react-sdk";
import type {
Instance,
WsComponentMeta,
WsComponentPropsMeta,
import {
getIndexesWithinAncestors,
type Instance,
type WsComponentMeta,
type WsComponentPropsMeta,
} from "@webstudio-is/sdk";
import type { InstanceSelector } from "../tree-utils";
import { $memoryProps, $props } from "./misc";
Expand Down
7 changes: 1 addition & 6 deletions packages/cli/src/prebuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { log, spinner } from "@clack/prompts";
import merge from "deepmerge";
import {
generateWebstudioComponent,
getIndexesWithinAncestors,
type Params,
normalizeProps,
generateRemixRoute,
Expand Down Expand Up @@ -606,11 +605,7 @@ export const prebuild = async (options: {
props,
dataSources,
classesMap: classes,
indexesWithinAncestors: getIndexesWithinAncestors(
projectMetas,
instances,
[rootInstanceId]
),
metas: projectMetas,
});

const projectMeta = siteData.build.pages.meta;
Expand Down
Loading