camox 0.48.0 → 0.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/createApp.d.ts +1 -0
- package/dist/core/createApp.js +1 -0
- package/dist/core/editing/contentEdits.js +78 -0
- package/dist/core/editing/createEditableBlock.js +277 -311
- package/dist/core/layoutContext.d.ts +1 -0
- package/dist/core/lib/contentType.js +2 -2
- package/dist/core/recordItem.js +3 -3
- package/dist/features/canvas/CamoxCanvas.js +15 -15
- package/dist/features/canvas/CanvasLoadingScreen.js +15 -11
- package/dist/features/canvas/CanvasPageFrame.js +81 -87
- package/dist/features/canvas/CanvasPreviewPageSlot.js +1 -1
- package/dist/features/canvas/DerivedPagePathInput.js +12 -12
- package/dist/features/canvas/canvasOverlayGeometry.js +1 -1
- package/dist/features/canvas/canvasStore.js +2 -2
- package/dist/features/canvas/sidebar/CanvasInspector.js +1 -1
- package/dist/features/canvas/sidebar/CuratedPageInspector.js +1 -1
- package/dist/features/canvas/sidebar/LayoutPageBlocks.js +23 -31
- package/dist/features/canvas/useCanvasCamera.js +1 -1
- package/dist/features/canvas/useDiscoveredPreviewPaths.js +16 -9
- package/dist/features/content/ContentAssets.js +84 -88
- package/dist/features/page/CuratedPageContent.js +1 -1
- package/dist/features/preview/CamoxPreview.d.ts +8 -4
- package/dist/features/preview/CamoxPreview.js +258 -443
- package/dist/features/preview/EditablePageContent.js +244 -2
- package/dist/features/preview/EditablePageExperience.js +19 -13
- package/dist/features/preview/components/AddBlockSheet.js +55 -15
- package/dist/features/preview/components/BlockActionsPopover.js +23 -51
- package/dist/features/preview/components/BlockPeek.js +66 -0
- package/dist/features/preview/components/BlockThumbnail.js +134 -119
- package/dist/features/preview/components/CanvasPreview.js +1 -1
- package/dist/features/preview/components/CreatePageModal.js +150 -156
- package/dist/features/preview/components/FieldToolbar.js +1 -1
- package/dist/features/preview/components/Frame.js +27 -4
- package/dist/features/preview/components/MobilePreviewDrawer.js +6 -9
- package/dist/features/preview/components/PageInfo.js +161 -126
- package/dist/features/preview/components/PagePicker.js +2 -2
- package/dist/features/preview/components/PageTree.js +174 -190
- package/dist/features/preview/components/PreviewPanel.js +13 -67
- package/dist/features/preview/components/PreviewToolbar.js +1 -1
- package/dist/features/preview/components/ReferenceFieldEditor.js +4 -4
- package/dist/features/preview/components/ReferenceListFieldEditor.js +4 -4
- package/dist/features/preview/components/RemovedBlockPlaceholder.js +37 -70
- package/dist/features/preview/components/RepeatableItemsList.js +1 -1
- package/dist/features/preview/components/SelectionEditor.js +248 -256
- package/dist/features/preview/components/StudioEditingFallback.js +22 -26
- package/dist/features/preview/components/useFieldWriter.js +19 -19
- package/dist/features/preview/components/useRecordView.js +105 -147
- package/dist/features/preview/components/useRepeatableItemActions.js +0 -2
- package/dist/features/preview/pageRecord.js +30 -24
- package/dist/features/preview/previewConstants.js +2 -8
- package/dist/features/preview/previewStore.js +2 -0
- package/dist/features/preview/studioNotice.js +20 -0
- package/dist/features/preview/usePreviewViewportActions.js +1 -1
- package/dist/features/provider/AuthenticatedCamoxProvider.js +47 -31
- package/dist/features/provider/components/CommandPalette.js +2 -5
- package/dist/features/provider/signInShortcut.js +1 -2
- package/dist/features/provider/useAdminShortcuts.js +47 -53
- package/dist/features/renderer/RendererApp.js +542 -0
- package/dist/features/renderer/RendererFrames.js +450 -0
- package/dist/features/renderer/definitionAnswers.js +26 -0
- package/dist/features/renderer/protocol.js +35 -0
- package/dist/features/renderer/rendererHost.js +249 -0
- package/dist/features/renderer/studioConnection.js +186 -0
- package/dist/features/routes/pageRuntime.d.ts +2 -1
- package/dist/features/routes/pageRuntime.js +34 -22
- package/dist/features/runtime/RuntimeChrome.js +2 -5
- package/dist/features/runtime/assetPrefix.js +14 -0
- package/dist/features/runtime/breadcrumbs.js +1 -1
- package/dist/features/runtime/editingFallback.js +4 -8
- package/dist/features/runtime/livePages.js +1 -1
- package/dist/features/runtime/pageApp.js +57 -83
- package/dist/features/runtime/pageClient.js +1 -1
- package/dist/features/runtime/pageNavigation.js +3 -2
- package/dist/features/runtime/publicCache.js +95 -0
- package/dist/features/runtime/publishingDraft.js +23 -0
- package/dist/features/runtime/rendererClient.d.ts +8 -0
- package/dist/features/runtime/rendererClient.js +77 -0
- package/dist/features/runtime/runtime.d.ts +22 -3
- package/dist/features/runtime/runtime.js +209 -96
- package/dist/features/runtime/runtimeRoutes.d.ts +2 -0
- package/dist/features/runtime/runtimeRoutes.js +2 -0
- package/dist/features/runtime/worker.d.ts +14 -1
- package/dist/features/runtime/worker.js +34 -4
- package/dist/features/settings/AnalyticsSettings.js +622 -0
- package/dist/features/settings/CamoxSettings.js +95 -0
- package/dist/features/settings/FaviconSettings.js +254 -0
- package/dist/features/settings/ProjectNameSettings.js +145 -0
- package/dist/features/settings/SettingsPart.js +73 -0
- package/dist/features/settings/SocialProfilesSettings.js +245 -0
- package/dist/features/settings/useProjectMutation.js +61 -0
- package/dist/features/studio/FollowAgentProvider.js +10 -10
- package/dist/features/studio/components/DraftsControl.js +136 -131
- package/dist/features/studio/components/LocalePicker.js +178 -174
- package/dist/features/studio/components/Navbar.js +107 -66
- package/dist/features/studio/components/ProjectMenu.js +119 -171
- package/dist/features/studio/components/ReviewDraftSheet.js +1151 -991
- package/dist/features/studio/components/ThreadMessages.js +100 -65
- package/dist/features/studio/components/UserButton.js +2 -2
- package/dist/features/studio/routes.js +3 -1
- package/dist/features/studio/showInCanvas.js +129 -0
- package/dist/features/vite/definitionsSync.js +5 -6
- package/dist/features/vite/hostedChecks.js +127 -0
- package/dist/features/vite/runtimeDev.js +58 -17
- package/dist/features/vite/staticAssetHeaders.js +52 -0
- package/dist/features/vite/vite.d.ts +1 -1
- package/dist/features/vite/vite.js +49 -9
- package/dist/hooks/use-page-destinations.js +10 -10
- package/dist/lib/api-client-server.d.ts +1 -1
- package/dist/lib/api-client.d.ts +2 -1
- package/dist/lib/draft-scope.d.ts +1 -0
- package/dist/lib/locale-path.d.ts +3 -11
- package/dist/lib/locale-path.js +3 -27
- package/dist/lib/queries.js +7 -1
- package/dist/lib/revisions.js +20 -0
- package/dist/lib/shortcuts.js +29 -0
- package/dist/lib/studio-definitions.js +160 -0
- package/dist/lib/studio-reads.d.ts +1 -0
- package/dist/lib/studio-reads.js +65 -21
- package/dist/lib/use-project-room.js +16 -10
- package/dist/lib/utils.js +1 -104
- package/dist/package.js +1 -1
- package/dist/studio.css +1 -1
- package/package.json +9 -4
- package/skills/camox/SKILL.md +4 -0
- package/skills/camox/references/artifacts.md +1 -1
- package/dist/features/studio/components/FaviconDialog.js +0 -318
- package/dist/features/studio/components/SocialProfilesDialog.js +0 -342
|
@@ -33,202 +33,206 @@ import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem,
|
|
|
33
33
|
* and removing them. Switching keeps the page shown when the other language has it, and goes to
|
|
34
34
|
* that language's home otherwise; the URL names the language by its prefix. Adding and removing
|
|
35
35
|
* languages are content writes, so on Live they start a draft. While Camox translates the draft
|
|
36
|
-
* into its languages, the picker shows a spinner, and nothing else does.
|
|
36
|
+
* into its languages, the picker shows a spinner, and nothing else does. A `disabled` picker still
|
|
37
|
+
* names the language viewed.
|
|
37
38
|
*/
|
|
38
39
|
function LocalePicker(t0) {
|
|
39
|
-
const $ = c(
|
|
40
|
-
const { recordPage } = t0;
|
|
40
|
+
const $ = c(70);
|
|
41
|
+
const { recordPage, disabled: t1 } = t0;
|
|
42
|
+
const disabled = t1 === void 0 ? false : t1;
|
|
41
43
|
const projectUuid = useProjectUuid();
|
|
42
44
|
const view = useViewLocale();
|
|
43
45
|
const dialog = useSelector(studioStore, _temp);
|
|
44
|
-
let
|
|
46
|
+
let t2;
|
|
45
47
|
if ($[0] !== projectUuid) {
|
|
46
|
-
|
|
48
|
+
t2 = reads.project({ projectUuid });
|
|
47
49
|
$[0] = projectUuid;
|
|
48
|
-
$[1] =
|
|
49
|
-
} else
|
|
50
|
-
const
|
|
51
|
-
let t3;
|
|
52
|
-
if ($[2] !== t2) {
|
|
53
|
-
t3 = { enabled: t2 };
|
|
54
|
-
$[2] = t2;
|
|
55
|
-
$[3] = t3;
|
|
56
|
-
} else t3 = $[3];
|
|
57
|
-
const projectId = useReadQuery(t1, t3).data?.id;
|
|
50
|
+
$[1] = t2;
|
|
51
|
+
} else t2 = $[1];
|
|
52
|
+
const t3 = !!projectUuid;
|
|
58
53
|
let t4;
|
|
54
|
+
if ($[2] !== t3) {
|
|
55
|
+
t4 = { enabled: t3 };
|
|
56
|
+
$[2] = t3;
|
|
57
|
+
$[3] = t4;
|
|
58
|
+
} else t4 = $[3];
|
|
59
|
+
const projectId = useReadQuery(t2, t4).data?.id;
|
|
60
|
+
let t5;
|
|
59
61
|
if ($[4] !== projectId) {
|
|
60
|
-
|
|
62
|
+
t5 = reads.localeList({ projectId: projectId ?? 0 });
|
|
61
63
|
$[4] = projectId;
|
|
62
|
-
$[5] =
|
|
63
|
-
} else
|
|
64
|
-
const
|
|
65
|
-
let t6;
|
|
66
|
-
if ($[6] !== t5) {
|
|
67
|
-
t6 = { enabled: t5 };
|
|
68
|
-
$[6] = t5;
|
|
69
|
-
$[7] = t6;
|
|
70
|
-
} else t6 = $[7];
|
|
71
|
-
const locales = useReadQuery(t4, t6).data ?? view.locales;
|
|
64
|
+
$[5] = t5;
|
|
65
|
+
} else t5 = $[5];
|
|
66
|
+
const t6 = !!projectId;
|
|
72
67
|
let t7;
|
|
68
|
+
if ($[6] !== t6) {
|
|
69
|
+
t7 = { enabled: t6 };
|
|
70
|
+
$[6] = t6;
|
|
71
|
+
$[7] = t7;
|
|
72
|
+
} else t7 = $[7];
|
|
73
|
+
const locales = useReadQuery(t5, t7).data ?? view.locales;
|
|
74
|
+
let t8;
|
|
73
75
|
if ($[8] !== locales || $[9] !== view) {
|
|
74
|
-
|
|
76
|
+
t8 = locales.find((locale) => view.locale.isDefault ? locale.isDefault : locale.tag === view.locale.tag) ?? view.locale;
|
|
75
77
|
$[8] = locales;
|
|
76
78
|
$[9] = view;
|
|
77
|
-
$[10] =
|
|
78
|
-
} else
|
|
79
|
-
const viewed =
|
|
79
|
+
$[10] = t8;
|
|
80
|
+
} else t8 = $[10];
|
|
81
|
+
const viewed = t8;
|
|
80
82
|
const switchTo = useSwitchLocale(recordPage);
|
|
81
83
|
const draftId = useCurrentDraftId();
|
|
82
|
-
let
|
|
84
|
+
let t9;
|
|
83
85
|
if ($[11] !== draftId || $[12] !== projectId) {
|
|
84
|
-
|
|
86
|
+
t9 = reads.draft({
|
|
85
87
|
projectId: projectId ?? 0,
|
|
86
88
|
draftId: draftId ?? ""
|
|
87
89
|
});
|
|
88
90
|
$[11] = draftId;
|
|
89
91
|
$[12] = projectId;
|
|
90
|
-
$[13] =
|
|
91
|
-
} else
|
|
92
|
-
const
|
|
93
|
-
let t10;
|
|
94
|
-
if ($[14] !== t9) {
|
|
95
|
-
t10 = { enabled: t9 };
|
|
96
|
-
$[14] = t9;
|
|
97
|
-
$[15] = t10;
|
|
98
|
-
} else t10 = $[15];
|
|
99
|
-
const draft = useReadQuery(t8, t10);
|
|
92
|
+
$[13] = t9;
|
|
93
|
+
} else t9 = $[13];
|
|
94
|
+
const t10 = !!projectId && !!draftId;
|
|
100
95
|
let t11;
|
|
96
|
+
if ($[14] !== t10) {
|
|
97
|
+
t11 = { enabled: t10 };
|
|
98
|
+
$[14] = t10;
|
|
99
|
+
$[15] = t11;
|
|
100
|
+
} else t11 = $[15];
|
|
101
|
+
const draft = useReadQuery(t9, t11);
|
|
102
|
+
let t12;
|
|
101
103
|
if ($[16] !== draft.data?.translatingLocales) {
|
|
102
|
-
|
|
104
|
+
t12 = draft.data?.translatingLocales ?? [];
|
|
103
105
|
$[16] = draft.data?.translatingLocales;
|
|
104
|
-
$[17] =
|
|
105
|
-
} else
|
|
106
|
-
const translatingLocales =
|
|
107
|
-
let
|
|
106
|
+
$[17] = t12;
|
|
107
|
+
} else t12 = $[17];
|
|
108
|
+
const translatingLocales = t12;
|
|
109
|
+
let t13;
|
|
108
110
|
if ($[18] !== viewed.tag) {
|
|
109
|
-
|
|
111
|
+
t13 = [viewed.tag];
|
|
110
112
|
$[18] = viewed.tag;
|
|
111
|
-
$[19] =
|
|
112
|
-
} else
|
|
113
|
-
React.useEffect(_temp2,
|
|
114
|
-
let
|
|
113
|
+
$[19] = t13;
|
|
114
|
+
} else t13 = $[19];
|
|
115
|
+
React.useEffect(_temp2, t13);
|
|
116
|
+
let t14;
|
|
115
117
|
if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
|
|
116
|
-
|
|
118
|
+
t14 = /* @__PURE__ */ jsx(Button, {
|
|
117
119
|
type: "button",
|
|
118
120
|
variant: "ghost"
|
|
119
121
|
});
|
|
120
|
-
$[20] =
|
|
121
|
-
} else
|
|
122
|
-
let
|
|
122
|
+
$[20] = t14;
|
|
123
|
+
} else t14 = $[20];
|
|
124
|
+
let t15;
|
|
123
125
|
if ($[21] !== translatingLocales) {
|
|
124
|
-
|
|
126
|
+
t15 = translatingLocales.length > 0 ? /* @__PURE__ */ jsx(TranslatingSpinner, { tags: translatingLocales }) : /* @__PURE__ */ jsx(Languages, {
|
|
125
127
|
"aria-hidden": true,
|
|
126
128
|
className: "text-muted-foreground size-4"
|
|
127
129
|
});
|
|
128
130
|
$[21] = translatingLocales;
|
|
129
|
-
$[22] =
|
|
130
|
-
} else
|
|
131
|
-
let
|
|
131
|
+
$[22] = t15;
|
|
132
|
+
} else t15 = $[22];
|
|
133
|
+
let t16;
|
|
132
134
|
if ($[23] !== viewed.tag) {
|
|
133
|
-
|
|
135
|
+
t16 = localeLabel(viewed.tag);
|
|
134
136
|
$[23] = viewed.tag;
|
|
135
|
-
$[24] =
|
|
136
|
-
} else
|
|
137
|
-
let
|
|
138
|
-
if ($[25] !==
|
|
139
|
-
|
|
137
|
+
$[24] = t16;
|
|
138
|
+
} else t16 = $[24];
|
|
139
|
+
let t17;
|
|
140
|
+
if ($[25] !== t16) {
|
|
141
|
+
t17 = /* @__PURE__ */ jsx("span", {
|
|
140
142
|
className: "max-w-40 truncate",
|
|
141
|
-
children:
|
|
143
|
+
children: t16
|
|
142
144
|
});
|
|
143
|
-
$[25] =
|
|
144
|
-
$[26] =
|
|
145
|
-
} else
|
|
146
|
-
let
|
|
145
|
+
$[25] = t16;
|
|
146
|
+
$[26] = t17;
|
|
147
|
+
} else t17 = $[26];
|
|
148
|
+
let t18;
|
|
147
149
|
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
148
|
-
|
|
150
|
+
t18 = /* @__PURE__ */ jsx(ChevronsUpDown, {
|
|
149
151
|
"aria-hidden": true,
|
|
150
152
|
className: "size-4 opacity-50"
|
|
151
153
|
});
|
|
152
|
-
$[27] =
|
|
153
|
-
} else
|
|
154
|
-
let
|
|
155
|
-
if ($[28] !==
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
$[27] = t18;
|
|
155
|
+
} else t18 = $[27];
|
|
156
|
+
let t19;
|
|
157
|
+
if ($[28] !== disabled || $[29] !== t15 || $[30] !== t17) {
|
|
158
|
+
t19 = /* @__PURE__ */ jsxs(DropdownMenuTrigger, {
|
|
159
|
+
disabled,
|
|
160
|
+
render: t14,
|
|
158
161
|
children: [
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
+
t15,
|
|
163
|
+
t17,
|
|
164
|
+
t18
|
|
162
165
|
]
|
|
163
166
|
});
|
|
164
|
-
$[28] =
|
|
165
|
-
$[29] =
|
|
166
|
-
$[30] =
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
$[28] = disabled;
|
|
168
|
+
$[29] = t15;
|
|
169
|
+
$[30] = t17;
|
|
170
|
+
$[31] = t19;
|
|
171
|
+
} else t19 = $[31];
|
|
172
|
+
const t20 = viewed.tag;
|
|
173
|
+
let t21;
|
|
174
|
+
if ($[32] !== locales || $[33] !== switchTo) {
|
|
175
|
+
t21 = (tag) => {
|
|
172
176
|
const next = locales.find((locale_0) => locale_0.tag === tag);
|
|
173
177
|
if (next) switchTo(next);
|
|
174
178
|
};
|
|
175
|
-
$[
|
|
176
|
-
$[
|
|
177
|
-
$[33] = t20;
|
|
178
|
-
} else t20 = $[33];
|
|
179
|
-
let t21;
|
|
180
|
-
if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
|
|
181
|
-
t21 = /* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Languages" });
|
|
179
|
+
$[32] = locales;
|
|
180
|
+
$[33] = switchTo;
|
|
182
181
|
$[34] = t21;
|
|
183
182
|
} else t21 = $[34];
|
|
184
183
|
let t22;
|
|
185
|
-
if ($[35]
|
|
186
|
-
t22 =
|
|
187
|
-
$[35] =
|
|
188
|
-
|
|
189
|
-
} else t22 = $[36];
|
|
184
|
+
if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
|
|
185
|
+
t22 = /* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Languages" });
|
|
186
|
+
$[35] = t22;
|
|
187
|
+
} else t22 = $[35];
|
|
190
188
|
let t23;
|
|
191
|
-
if ($[
|
|
192
|
-
t23 =
|
|
193
|
-
$[
|
|
194
|
-
$[
|
|
195
|
-
} else t23 = $[
|
|
189
|
+
if ($[36] !== locales) {
|
|
190
|
+
t23 = locales.map(_temp3);
|
|
191
|
+
$[36] = locales;
|
|
192
|
+
$[37] = t23;
|
|
193
|
+
} else t23 = $[37];
|
|
196
194
|
let t24;
|
|
197
|
-
if ($[
|
|
198
|
-
t24 = /* @__PURE__ */
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
});
|
|
203
|
-
$[39] = t20;
|
|
204
|
-
$[40] = t23;
|
|
205
|
-
$[41] = viewed.tag;
|
|
206
|
-
$[42] = t24;
|
|
207
|
-
} else t24 = $[42];
|
|
195
|
+
if ($[38] !== t23) {
|
|
196
|
+
t24 = /* @__PURE__ */ jsxs(DropdownMenuGroup, { children: [t22, t23] });
|
|
197
|
+
$[38] = t23;
|
|
198
|
+
$[39] = t24;
|
|
199
|
+
} else t24 = $[39];
|
|
208
200
|
let t25;
|
|
209
|
-
if ($[
|
|
210
|
-
t25 = /* @__PURE__ */ jsx(
|
|
201
|
+
if ($[40] !== t21 || $[41] !== t24 || $[42] !== viewed.tag) {
|
|
202
|
+
t25 = /* @__PURE__ */ jsx(DropdownMenuRadioGroup, {
|
|
203
|
+
value: t20,
|
|
204
|
+
onValueChange: t21,
|
|
205
|
+
children: t24
|
|
206
|
+
});
|
|
207
|
+
$[40] = t21;
|
|
208
|
+
$[41] = t24;
|
|
209
|
+
$[42] = viewed.tag;
|
|
211
210
|
$[43] = t25;
|
|
212
211
|
} else t25 = $[43];
|
|
213
|
-
|
|
214
|
-
let t27;
|
|
212
|
+
let t26;
|
|
215
213
|
if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
|
|
216
|
-
|
|
217
|
-
$[44] =
|
|
218
|
-
} else
|
|
214
|
+
t26 = /* @__PURE__ */ jsx(DropdownMenuSeparator, {});
|
|
215
|
+
$[44] = t26;
|
|
216
|
+
} else t26 = $[44];
|
|
217
|
+
const t27 = !projectId;
|
|
219
218
|
let t28;
|
|
220
|
-
if ($[45]
|
|
221
|
-
t28 = /* @__PURE__ */
|
|
222
|
-
|
|
219
|
+
if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
|
|
220
|
+
t28 = /* @__PURE__ */ jsx(Plus, {});
|
|
221
|
+
$[45] = t28;
|
|
222
|
+
} else t28 = $[45];
|
|
223
|
+
let t29;
|
|
224
|
+
if ($[46] !== t27) {
|
|
225
|
+
t29 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
226
|
+
disabled: t27,
|
|
223
227
|
onClick: _temp4,
|
|
224
|
-
children: [
|
|
228
|
+
children: [t28, "Add language…"]
|
|
225
229
|
});
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
} else
|
|
229
|
-
let
|
|
230
|
-
if ($[
|
|
231
|
-
|
|
230
|
+
$[46] = t27;
|
|
231
|
+
$[47] = t29;
|
|
232
|
+
} else t29 = $[47];
|
|
233
|
+
let t30;
|
|
234
|
+
if ($[48] !== projectId || $[49] !== viewed.isDefault || $[50] !== viewed.tag) {
|
|
235
|
+
t30 = !viewed.isDefault && /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
232
236
|
variant: "destructive",
|
|
233
237
|
disabled: !projectId,
|
|
234
238
|
onClick: _temp5,
|
|
@@ -239,43 +243,43 @@ function LocalePicker(t0) {
|
|
|
239
243
|
"…"
|
|
240
244
|
]
|
|
241
245
|
});
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
245
|
-
$[
|
|
246
|
-
} else
|
|
247
|
-
let
|
|
248
|
-
if ($[
|
|
249
|
-
|
|
250
|
-
$[51] = t28;
|
|
246
|
+
$[48] = projectId;
|
|
247
|
+
$[49] = viewed.isDefault;
|
|
248
|
+
$[50] = viewed.tag;
|
|
249
|
+
$[51] = t30;
|
|
250
|
+
} else t30 = $[51];
|
|
251
|
+
let t31;
|
|
252
|
+
if ($[52] !== t29 || $[53] !== t30) {
|
|
253
|
+
t31 = /* @__PURE__ */ jsxs(DropdownMenuGroup, { children: [t29, t30] });
|
|
251
254
|
$[52] = t29;
|
|
252
255
|
$[53] = t30;
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
256
|
+
$[54] = t31;
|
|
257
|
+
} else t31 = $[54];
|
|
258
|
+
let t32;
|
|
259
|
+
if ($[55] !== t25 || $[56] !== t31) {
|
|
260
|
+
t32 = /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
257
261
|
className: "w-64",
|
|
258
262
|
align: "start",
|
|
259
263
|
children: [
|
|
260
|
-
t24,
|
|
261
264
|
t25,
|
|
262
|
-
|
|
265
|
+
t26,
|
|
266
|
+
t31
|
|
263
267
|
]
|
|
264
268
|
});
|
|
265
|
-
$[
|
|
266
|
-
$[55] = t30;
|
|
269
|
+
$[55] = t25;
|
|
267
270
|
$[56] = t31;
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
if ($[57] !== t18 || $[58] !== t31) {
|
|
271
|
-
t32 = /* @__PURE__ */ jsxs(DropdownMenu, { children: [t18, t31] });
|
|
272
|
-
$[57] = t18;
|
|
273
|
-
$[58] = t31;
|
|
274
|
-
$[59] = t32;
|
|
275
|
-
} else t32 = $[59];
|
|
271
|
+
$[57] = t32;
|
|
272
|
+
} else t32 = $[57];
|
|
276
273
|
let t33;
|
|
277
|
-
if ($[
|
|
278
|
-
t33 =
|
|
274
|
+
if ($[58] !== t19 || $[59] !== t32) {
|
|
275
|
+
t33 = /* @__PURE__ */ jsxs(DropdownMenu, { children: [t19, t32] });
|
|
276
|
+
$[58] = t19;
|
|
277
|
+
$[59] = t32;
|
|
278
|
+
$[60] = t33;
|
|
279
|
+
} else t33 = $[60];
|
|
280
|
+
let t34;
|
|
281
|
+
if ($[61] !== dialog || $[62] !== locales || $[63] !== projectId || $[64] !== switchTo || $[65] !== viewed) {
|
|
282
|
+
t34 = projectId && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(AddLocaleDialog, {
|
|
279
283
|
projectId,
|
|
280
284
|
locales,
|
|
281
285
|
open: dialog === "add",
|
|
@@ -289,21 +293,21 @@ function LocalePicker(t0) {
|
|
|
289
293
|
if (fallback) switchTo(fallback);
|
|
290
294
|
}
|
|
291
295
|
})] });
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
295
|
-
$[
|
|
296
|
-
$[
|
|
297
|
-
$[
|
|
298
|
-
} else
|
|
299
|
-
let
|
|
300
|
-
if ($[
|
|
301
|
-
|
|
302
|
-
$[66] = t32;
|
|
296
|
+
$[61] = dialog;
|
|
297
|
+
$[62] = locales;
|
|
298
|
+
$[63] = projectId;
|
|
299
|
+
$[64] = switchTo;
|
|
300
|
+
$[65] = viewed;
|
|
301
|
+
$[66] = t34;
|
|
302
|
+
} else t34 = $[66];
|
|
303
|
+
let t35;
|
|
304
|
+
if ($[67] !== t33 || $[68] !== t34) {
|
|
305
|
+
t35 = /* @__PURE__ */ jsxs(Fragment, { children: [t33, t34] });
|
|
303
306
|
$[67] = t33;
|
|
304
307
|
$[68] = t34;
|
|
305
|
-
|
|
306
|
-
|
|
308
|
+
$[69] = t35;
|
|
309
|
+
} else t35 = $[69];
|
|
310
|
+
return t35;
|
|
307
311
|
}
|
|
308
312
|
function _temp6(locale_2) {
|
|
309
313
|
return locale_2.isDefault;
|