@reacteditor/core 0.0.11 → 0.0.13
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/{Editor-GK6JTUPD.mjs → Editor-3COFH5WN.mjs} +7 -7
- package/dist/{actions-C0LX6bI4.d.mts → actions-DDpLL_TR.d.mts} +17 -2
- package/dist/{actions-C0LX6bI4.d.ts → actions-DDpLL_TR.d.ts} +17 -2
- package/dist/{chunk-MJJPWASL.mjs → chunk-AD7BMXAA.mjs} +1 -1
- package/dist/{chunk-TGVAC3JP.mjs → chunk-BUR5T7IX.mjs} +7 -7
- package/dist/{chunk-YBG2RYVF.mjs → chunk-BZ4BQZJR.mjs} +3 -3
- package/dist/{chunk-X4EUZIHA.mjs → chunk-FT6UFK7G.mjs} +1 -1
- package/dist/{chunk-ERNSJXVF.mjs → chunk-IIRJMJFU.mjs} +0 -1
- package/dist/{chunk-74TOLW7F.mjs → chunk-KX5XDJF6.mjs} +61 -19
- package/dist/{chunk-56I7ST5F.mjs → chunk-LRFRIIKG.mjs} +1 -1
- package/dist/{chunk-XLVEWZWT.mjs → chunk-OIFPBVSF.mjs} +1 -1
- package/dist/{chunk-II42EKFK.mjs → chunk-PUDWMFBH.mjs} +1 -1
- package/dist/{full-IUPXFMQP.mjs → full-QT5KXRDP.mjs} +6 -6
- package/dist/{index-DMbFEg8G.d.mts → index-BTatdZaE.d.mts} +1 -1
- package/dist/{index-DmThy7vE.d.ts → index-zhUFD8aP.d.ts} +1 -1
- package/dist/index.css +44 -40
- package/dist/index.d.mts +13 -7
- package/dist/index.d.ts +13 -7
- package/dist/index.js +54 -13
- package/dist/index.mjs +9 -9
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/{loaded-BT7NIVEO.mjs → loaded-GLBLMTBL.mjs} +3 -3
- package/dist/{loaded-HVOKDVC3.mjs → loaded-O4QHGE26.mjs} +3 -3
- package/dist/{loaded-YFYCF5F4.mjs → loaded-R34BR6I5.mjs} +3 -3
- package/dist/no-external.css +44 -40
- package/dist/no-external.d.mts +3 -3
- package/dist/no-external.d.ts +3 -3
- package/dist/no-external.js +54 -13
- package/dist/no-external.mjs +9 -9
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +0 -1
- package/dist/rsc.mjs +2 -2
- package/dist/{walk-tree-B1q6t5Jp.d.ts → walk-tree-Cnyva5MB.d.ts} +1 -1
- package/dist/{walk-tree-5oDs6qOL.d.mts → walk-tree-Cxbt1UVr.d.mts} +1 -1
- package/package.json +1 -1
package/dist/no-external.css
CHANGED
|
@@ -2342,25 +2342,25 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
|
|
|
2342
2342
|
}
|
|
2343
2343
|
|
|
2344
2344
|
/* css-module:/Users/rami/Documents/apps/react-editor/packages/core/components/Editor/components/Layout/styles.module.css/#css-module-data */
|
|
2345
|
-
.
|
|
2345
|
+
._Editor_frglt_19 {
|
|
2346
2346
|
--editor-space-px: 16px;
|
|
2347
2347
|
color: var(--editor-text-primary);
|
|
2348
2348
|
font-family: var(--editor-font-family);
|
|
2349
2349
|
overflow-x: hidden;
|
|
2350
2350
|
}
|
|
2351
2351
|
@media (min-width: 766px) {
|
|
2352
|
-
.
|
|
2352
|
+
._Editor_frglt_19 {
|
|
2353
2353
|
overflow-x: auto;
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
|
-
._Editor-
|
|
2356
|
+
._Editor-portal_frglt_32 {
|
|
2357
2357
|
position: relative;
|
|
2358
2358
|
z-index: 2;
|
|
2359
2359
|
}
|
|
2360
|
-
.
|
|
2360
|
+
._EditorLayout_frglt_37 {
|
|
2361
2361
|
height: 100dvh;
|
|
2362
2362
|
}
|
|
2363
|
-
._EditorLayout-
|
|
2363
|
+
._EditorLayout-inner_frglt_41 {
|
|
2364
2364
|
--editor-frame-width: auto;
|
|
2365
2365
|
--editor-side-nav-width: min-content;
|
|
2366
2366
|
--editor-side-bar-width: 0px;
|
|
@@ -2378,88 +2378,92 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
|
|
|
2378
2378
|
overflow: hidden;
|
|
2379
2379
|
}
|
|
2380
2380
|
@media (min-width: 638px) {
|
|
2381
|
-
._EditorLayout-
|
|
2381
|
+
._EditorLayout-inner_frglt_41 {
|
|
2382
2382
|
--editor-side-nav-width: 44px;
|
|
2383
2383
|
grid-template-areas: "sidenav left editor right";
|
|
2384
2384
|
grid-template-columns: var(--editor-side-nav-width) 0 var(--editor-frame-width) 0;
|
|
2385
2385
|
grid-template-rows: auto;
|
|
2386
2386
|
}
|
|
2387
|
-
._Editor--
|
|
2387
|
+
._Editor--hidePlugins_frglt_73 ._EditorLayout-inner_frglt_41,
|
|
2388
|
+
._EditorLayout_frglt_37:not(._EditorLayout--navBarVisible_frglt_74) ._EditorLayout-inner_frglt_41 {
|
|
2388
2389
|
--editor-side-nav-width: 0;
|
|
2389
2390
|
}
|
|
2390
2391
|
}
|
|
2391
|
-
._EditorLayout--
|
|
2392
|
+
._EditorLayout_frglt_37:not(._EditorLayout--navBarVisible_frglt_74) ._EditorLayout-inner_frglt_41 {
|
|
2393
|
+
--editor-side-nav-width: 0;
|
|
2394
|
+
}
|
|
2395
|
+
._EditorLayout--mounted_frglt_83 ._EditorLayout-inner_frglt_41 {
|
|
2392
2396
|
--editor-side-bar-width: 186px;
|
|
2393
2397
|
}
|
|
2394
|
-
._EditorLayout--
|
|
2398
|
+
._EditorLayout--mobilePanelHeightToggle_frglt_87._EditorLayout--leftSideBarVisible_frglt_87 ._EditorLayout-inner_frglt_41 {
|
|
2395
2399
|
grid-template-rows: auto 60% 0 0 var(--editor-side-nav-width);
|
|
2396
2400
|
}
|
|
2397
|
-
._EditorLayout--
|
|
2401
|
+
._EditorLayout--mobilePanelCustomHeight_frglt_92._EditorLayout--leftSideBarVisible_frglt_87 ._EditorLayout-inner_frglt_41 {
|
|
2398
2402
|
grid-template-rows: auto var(--editor-mobile-panel-height, 60%) 0 0 var(--editor-side-nav-width);
|
|
2399
2403
|
}
|
|
2400
2404
|
@media (min-width: 638px) {
|
|
2401
|
-
._EditorLayout--
|
|
2405
|
+
._EditorLayout--mobilePanelHeightToggle_frglt_87._EditorLayout--leftSideBarVisible_frglt_87 ._EditorLayout-inner_frglt_41 {
|
|
2402
2406
|
grid-template-columns: var(--editor-side-nav-width) var(--editor-left-side-bar-width) var( --editor-frame-width ) 0;
|
|
2403
2407
|
grid-template-rows: auto;
|
|
2404
2408
|
}
|
|
2405
2409
|
}
|
|
2406
|
-
._EditorLayout--
|
|
2410
|
+
._EditorLayout--mobilePanelHeightMinContent_frglt_110._EditorLayout--leftSideBarVisible_frglt_87 ._EditorLayout-inner_frglt_41 {
|
|
2407
2411
|
grid-template-rows: auto min-content 0 0 var(--editor-side-nav-width);
|
|
2408
2412
|
}
|
|
2409
2413
|
@media (min-width: 638px) {
|
|
2410
|
-
._EditorLayout--
|
|
2411
|
-
._EditorLayout--
|
|
2412
|
-
._EditorLayout--
|
|
2414
|
+
._EditorLayout--mobilePanelHeightToggle_frglt_87._EditorLayout--leftSideBarVisible_frglt_87 ._EditorLayout-inner_frglt_41,
|
|
2415
|
+
._EditorLayout--mobilePanelCustomHeight_frglt_92._EditorLayout--leftSideBarVisible_frglt_87 ._EditorLayout-inner_frglt_41,
|
|
2416
|
+
._EditorLayout--mobilePanelHeightMinContent_frglt_110._EditorLayout--leftSideBarVisible_frglt_87 ._EditorLayout-inner_frglt_41 {
|
|
2413
2417
|
grid-template-columns: var(--editor-side-nav-width) var(--editor-left-side-bar-width) var( --editor-frame-width ) 0;
|
|
2414
2418
|
grid-template-rows: auto;
|
|
2415
2419
|
}
|
|
2416
2420
|
}
|
|
2417
2421
|
@media (min-width: 638px) {
|
|
2418
|
-
._EditorLayout--
|
|
2422
|
+
._EditorLayout--rightSideBarVisible_frglt_132 ._EditorLayout-inner_frglt_41 {
|
|
2419
2423
|
grid-template-columns: var(--editor-side-nav-width) 0 var(--editor-frame-width) var(--editor-right-side-bar-width);
|
|
2420
2424
|
}
|
|
2421
2425
|
}
|
|
2422
2426
|
@media (min-width: 638px) {
|
|
2423
|
-
._EditorLayout--
|
|
2427
|
+
._EditorLayout--leftSideBarVisible_frglt_87._EditorLayout--rightSideBarVisible_frglt_132 ._EditorLayout-inner_frglt_41 {
|
|
2424
2428
|
grid-template-columns: var(--editor-side-nav-width) var(--editor-left-side-bar-width) var( --editor-frame-width ) var(--editor-right-side-bar-width);
|
|
2425
2429
|
}
|
|
2426
2430
|
}
|
|
2427
2431
|
@media (min-width: 458px) {
|
|
2428
|
-
._EditorLayout-
|
|
2432
|
+
._EditorLayout-mounted_frglt_151 ._EditorLayout-inner_frglt_41 {
|
|
2429
2433
|
--editor-frame-width: minmax(266px, auto);
|
|
2430
2434
|
}
|
|
2431
2435
|
}
|
|
2432
2436
|
@media (min-width: 638px) {
|
|
2433
|
-
.
|
|
2437
|
+
._EditorLayout_frglt_37 ._EditorLayout-inner_frglt_41 {
|
|
2434
2438
|
--editor-side-bar-width: minmax(186px, 250px);
|
|
2435
2439
|
}
|
|
2436
2440
|
}
|
|
2437
2441
|
@media (min-width: 766px) {
|
|
2438
|
-
.
|
|
2442
|
+
._EditorLayout_frglt_37 ._EditorLayout-inner_frglt_41 {
|
|
2439
2443
|
--editor-frame-width: auto;
|
|
2440
2444
|
}
|
|
2441
2445
|
}
|
|
2442
2446
|
@media (min-width: 990px) {
|
|
2443
|
-
.
|
|
2447
|
+
._EditorLayout_frglt_37 ._EditorLayout-inner_frglt_41 {
|
|
2444
2448
|
--editor-side-bar-width: 256px;
|
|
2445
2449
|
}
|
|
2446
2450
|
}
|
|
2447
2451
|
@media (min-width: 1198px) {
|
|
2448
|
-
.
|
|
2452
|
+
._EditorLayout_frglt_37 ._EditorLayout-inner_frglt_41 {
|
|
2449
2453
|
--editor-side-bar-width: 274px;
|
|
2450
2454
|
}
|
|
2451
2455
|
}
|
|
2452
2456
|
@media (min-width: 1398px) {
|
|
2453
|
-
.
|
|
2457
|
+
._EditorLayout_frglt_37 ._EditorLayout-inner_frglt_41 {
|
|
2454
2458
|
--editor-side-bar-width: 290px;
|
|
2455
2459
|
}
|
|
2456
2460
|
}
|
|
2457
2461
|
@media (min-width: 1598px) {
|
|
2458
|
-
.
|
|
2462
|
+
._EditorLayout_frglt_37 ._EditorLayout-inner_frglt_41 {
|
|
2459
2463
|
--editor-side-bar-width: 320px;
|
|
2460
2464
|
}
|
|
2461
2465
|
}
|
|
2462
|
-
._EditorLayout-
|
|
2466
|
+
._EditorLayout-nav_frglt_192 {
|
|
2463
2467
|
border-top: 1px solid var(--editor-border-subtle);
|
|
2464
2468
|
background-color: var(--editor-surface-panel);
|
|
2465
2469
|
grid-area: sidenav;
|
|
@@ -2467,13 +2471,13 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
|
|
|
2467
2471
|
width: 100%;
|
|
2468
2472
|
}
|
|
2469
2473
|
@media (min-width: 638px) {
|
|
2470
|
-
._EditorLayout-
|
|
2474
|
+
._EditorLayout-nav_frglt_192 {
|
|
2471
2475
|
border-top: 0;
|
|
2472
2476
|
border-right: 1px solid var(--editor-border-subtle);
|
|
2473
2477
|
box-sizing: border-box;
|
|
2474
2478
|
}
|
|
2475
2479
|
}
|
|
2476
|
-
._Editor-
|
|
2480
|
+
._Editor-fieldSideBarToolbar_frglt_208 {
|
|
2477
2481
|
align-items: center;
|
|
2478
2482
|
background: var(--editor-surface-panel);
|
|
2479
2483
|
border-bottom: 1px solid var(--editor-border-subtle);
|
|
@@ -2482,17 +2486,17 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
|
|
|
2482
2486
|
justify-content: space-between;
|
|
2483
2487
|
padding: 8px 12px;
|
|
2484
2488
|
}
|
|
2485
|
-
._Editor-
|
|
2489
|
+
._Editor-fieldSideBarHistory_frglt_218 {
|
|
2486
2490
|
color: var(--editor-text-tertiary);
|
|
2487
2491
|
display: flex;
|
|
2488
2492
|
gap: 2px;
|
|
2489
2493
|
}
|
|
2490
|
-
._Editor-
|
|
2494
|
+
._Editor-fieldSideBarActions_frglt_224 {
|
|
2491
2495
|
align-items: center;
|
|
2492
2496
|
display: flex;
|
|
2493
2497
|
gap: 8px;
|
|
2494
2498
|
}
|
|
2495
|
-
._EditorLayout-
|
|
2499
|
+
._EditorLayout-mobilePanel_frglt_230 {
|
|
2496
2500
|
grid-area: mobilepanel;
|
|
2497
2501
|
background: var(--editor-surface-panel);
|
|
2498
2502
|
border-block-start: 1px solid var(--editor-border-subtle);
|
|
@@ -2500,22 +2504,22 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
|
|
|
2500
2504
|
flex-direction: column;
|
|
2501
2505
|
overflow: hidden;
|
|
2502
2506
|
}
|
|
2503
|
-
._EditorLayout--
|
|
2507
|
+
._EditorLayout--leftSideBarVisible_frglt_87 ._EditorLayout-mobilePanel_frglt_230 {
|
|
2504
2508
|
display: flex;
|
|
2505
2509
|
}
|
|
2506
2510
|
@media (min-width: 638px) {
|
|
2507
|
-
._EditorLayout-
|
|
2508
|
-
._EditorLayout--
|
|
2511
|
+
._EditorLayout-mobilePanel_frglt_230,
|
|
2512
|
+
._EditorLayout--leftSideBarVisible_frglt_87 ._EditorLayout-mobilePanel_frglt_230 {
|
|
2509
2513
|
display: none;
|
|
2510
2514
|
}
|
|
2511
2515
|
}
|
|
2512
|
-
._EditorLayout-
|
|
2516
|
+
._EditorLayout-mobilePanelContent_frglt_250 {
|
|
2513
2517
|
flex: 1;
|
|
2514
2518
|
overflow-y: auto;
|
|
2515
2519
|
display: flex;
|
|
2516
2520
|
flex-direction: column;
|
|
2517
2521
|
}
|
|
2518
|
-
._EditorLayout-
|
|
2522
|
+
._EditorLayout-mobileDragHandle_frglt_257 {
|
|
2519
2523
|
display: flex;
|
|
2520
2524
|
align-items: center;
|
|
2521
2525
|
justify-content: center;
|
|
@@ -2524,25 +2528,25 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
|
|
|
2524
2528
|
touch-action: none;
|
|
2525
2529
|
flex-shrink: 0;
|
|
2526
2530
|
}
|
|
2527
|
-
._EditorLayout-
|
|
2531
|
+
._EditorLayout-mobileDragHandle_frglt_257:active {
|
|
2528
2532
|
cursor: grabbing;
|
|
2529
2533
|
}
|
|
2530
|
-
._EditorLayout-
|
|
2534
|
+
._EditorLayout-mobileDragHandlePill_frglt_271 {
|
|
2531
2535
|
width: 36px;
|
|
2532
2536
|
height: 4px;
|
|
2533
2537
|
border-radius: 2px;
|
|
2534
2538
|
background-color: var(--editor-border-subtle);
|
|
2535
2539
|
}
|
|
2536
|
-
.
|
|
2540
|
+
._EditorPluginTab_frglt_278 {
|
|
2537
2541
|
display: none;
|
|
2538
2542
|
flex-grow: 1;
|
|
2539
2543
|
max-height: 100%;
|
|
2540
2544
|
}
|
|
2541
|
-
._EditorPluginTab--
|
|
2545
|
+
._EditorPluginTab--visible_frglt_284 {
|
|
2542
2546
|
display: flex;
|
|
2543
2547
|
flex-direction: column;
|
|
2544
2548
|
}
|
|
2545
|
-
._EditorPluginTab-
|
|
2549
|
+
._EditorPluginTab-body_frglt_289 {
|
|
2546
2550
|
flex-grow: 1;
|
|
2547
2551
|
max-height: 100%;
|
|
2548
2552
|
}
|
package/dist/no-external.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { u as Adaptor, A as AppState, v as ArrayField, w as ArrayState, x as AsFieldProps, B as BaseData, y as BaseField, z as CacheOpts, G as ColorField, g as ComponentConfig, J as ComponentConfigExtensions, K as ComponentConfigParams, b as ComponentData, L as ComponentDataMap, N as ComponentDataOptionalId, Q as ComponentMetadata, C as Config, S as ConfigParams, j as Content, T as CustomField, X as CustomFieldRender, D as Data, l as DefaultComponentProps, k as DefaultComponents, m as DefaultRootFieldProps, Y as DefaultRootProps, Z as DefaultRootRenderProps, _ as Direction, $ as DragAxis, E as EditorAction, q as EditorChromeConfig, a0 as EditorComponent, a1 as EditorContext, a2 as EditorMetadata, a3 as ExternalField, a4 as ExternalFieldWithAdaptor, a5 as ExtractConfigParams, a6 as ExtractField, o as Field, a7 as FieldMetadata, p as FieldProps, a8 as FieldRenderFunctions, a9 as FieldTransformFn, aa as FieldTransformFnParams, h as FieldTransforms, F as Fields, H as History, I as IframeConfig, r as InitialHistory, ab as ItemWithId, ac as MappedItem, M as Metadata, ad as NumberField, ae as ObjectField, O as OnAction, af as OverrideKey, e as Overrides, a as Permissions, d as Plugin, ag as RadioField, c as ResolveDataTrigger, ah as RichText, i as RichtextField, ai as RootConfig, n as RootData, R as RootDataWithProps, aj as RootDataWithoutProps, ak as SelectField, al as Slot, am as SlotComponent, an as SlotField, ao as TextField, ap as TextareaField, f as UiState, U as UserGenerics, aq as Viewport, V as Viewports, ar as WithChildren, as as WithEditorProps, W as WithId, at as WithSlotProps, au as overrideKeys } from './actions-DDpLL_TR.mjs';
|
|
2
2
|
export { Action, ActionBar, App, AppContextValue, AppEditorProps, AppMatched, AppProps, AppProvider, AppProviderProps, AppRenderProps, AppRouterVariant, AutoField, Button, ComponentList, Drawer, Editor, EditorApi, EditorCommands, FieldLabel, GlobalsMap, Group, IconButton, InsertComponentArgs, Label, MoveDestination, PageMetadata, Parent, Render, RichTextMenu, Route, RouteKey, Separator, UseEditorData, appConfigContext, blocksPlugin, createUseEditor, fieldsPlugin, legacySideBarPlugin, outlinePlugin, pageMetadata, registerOverlayPortal, renderContext, setDeep, useApp, useEditor, useGetEditor, usePropsContext, useRouteParams, useStableValue } from './index.mjs';
|
|
3
|
-
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-
|
|
3
|
+
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-Cxbt1UVr.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@tiptap/react';
|
|
6
6
|
import '@tiptap/extension-blockquote';
|
|
@@ -18,4 +18,4 @@ import '@tiptap/extension-strike';
|
|
|
18
18
|
import '@tiptap/extension-text-align';
|
|
19
19
|
import '@tiptap/extension-underline';
|
|
20
20
|
import 'react/jsx-runtime';
|
|
21
|
-
import './index-
|
|
21
|
+
import './index-BTatdZaE.mjs';
|
package/dist/no-external.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { u as Adaptor, A as AppState, v as ArrayField, w as ArrayState, x as AsFieldProps, B as BaseData, y as BaseField, z as CacheOpts, G as ColorField, g as ComponentConfig, J as ComponentConfigExtensions, K as ComponentConfigParams, b as ComponentData, L as ComponentDataMap, N as ComponentDataOptionalId, Q as ComponentMetadata, C as Config, S as ConfigParams, j as Content, T as CustomField, X as CustomFieldRender, D as Data, l as DefaultComponentProps, k as DefaultComponents, m as DefaultRootFieldProps, Y as DefaultRootProps, Z as DefaultRootRenderProps, _ as Direction, $ as DragAxis, E as EditorAction, q as EditorChromeConfig, a0 as EditorComponent, a1 as EditorContext, a2 as EditorMetadata, a3 as ExternalField, a4 as ExternalFieldWithAdaptor, a5 as ExtractConfigParams, a6 as ExtractField, o as Field, a7 as FieldMetadata, p as FieldProps, a8 as FieldRenderFunctions, a9 as FieldTransformFn, aa as FieldTransformFnParams, h as FieldTransforms, F as Fields, H as History, I as IframeConfig, r as InitialHistory, ab as ItemWithId, ac as MappedItem, M as Metadata, ad as NumberField, ae as ObjectField, O as OnAction, af as OverrideKey, e as Overrides, a as Permissions, d as Plugin, ag as RadioField, c as ResolveDataTrigger, ah as RichText, i as RichtextField, ai as RootConfig, n as RootData, R as RootDataWithProps, aj as RootDataWithoutProps, ak as SelectField, al as Slot, am as SlotComponent, an as SlotField, ao as TextField, ap as TextareaField, f as UiState, U as UserGenerics, aq as Viewport, V as Viewports, ar as WithChildren, as as WithEditorProps, W as WithId, at as WithSlotProps, au as overrideKeys } from './actions-DDpLL_TR.js';
|
|
2
2
|
export { Action, ActionBar, App, AppContextValue, AppEditorProps, AppMatched, AppProps, AppProvider, AppProviderProps, AppRenderProps, AppRouterVariant, AutoField, Button, ComponentList, Drawer, Editor, EditorApi, EditorCommands, FieldLabel, GlobalsMap, Group, IconButton, InsertComponentArgs, Label, MoveDestination, PageMetadata, Parent, Render, RichTextMenu, Route, RouteKey, Separator, UseEditorData, appConfigContext, blocksPlugin, createUseEditor, fieldsPlugin, legacySideBarPlugin, outlinePlugin, pageMetadata, registerOverlayPortal, renderContext, setDeep, useApp, useEditor, useGetEditor, usePropsContext, useRouteParams, useStableValue } from './index.js';
|
|
3
|
-
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-
|
|
3
|
+
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-Cnyva5MB.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@tiptap/react';
|
|
6
6
|
import '@tiptap/extension-blockquote';
|
|
@@ -18,4 +18,4 @@ import '@tiptap/extension-strike';
|
|
|
18
18
|
import '@tiptap/extension-text-align';
|
|
19
19
|
import '@tiptap/extension-underline';
|
|
20
20
|
import 'react/jsx-runtime';
|
|
21
|
-
import './index-
|
|
21
|
+
import './index-zhUFD8aP.js';
|
package/dist/no-external.js
CHANGED
|
@@ -3165,7 +3165,6 @@ var init_default_app_state = __esm({
|
|
|
3165
3165
|
ui: {
|
|
3166
3166
|
leftSideBarVisible: true,
|
|
3167
3167
|
rightSideBarVisible: true,
|
|
3168
|
-
navBarVisible: true,
|
|
3169
3168
|
arrayState: {},
|
|
3170
3169
|
itemSelector: null,
|
|
3171
3170
|
componentList: {},
|
|
@@ -12972,7 +12971,7 @@ init_lib();
|
|
|
12972
12971
|
|
|
12973
12972
|
// css-module:/Users/rami/Documents/apps/react-editor/packages/core/components/Editor/components/Layout/styles.module.css#css-module
|
|
12974
12973
|
init_react_import();
|
|
12975
|
-
var styles_module_default25 = { "Editor": "
|
|
12974
|
+
var styles_module_default25 = { "Editor": "_Editor_frglt_19", "Editor-portal": "_Editor-portal_frglt_32", "EditorLayout": "_EditorLayout_frglt_37", "EditorLayout-inner": "_EditorLayout-inner_frglt_41", "Editor--hidePlugins": "_Editor--hidePlugins_frglt_73", "EditorLayout--navBarVisible": "_EditorLayout--navBarVisible_frglt_74", "EditorLayout--mounted": "_EditorLayout--mounted_frglt_83", "EditorLayout--mobilePanelHeightToggle": "_EditorLayout--mobilePanelHeightToggle_frglt_87", "EditorLayout--leftSideBarVisible": "_EditorLayout--leftSideBarVisible_frglt_87", "EditorLayout--mobilePanelCustomHeight": "_EditorLayout--mobilePanelCustomHeight_frglt_92", "EditorLayout--mobilePanelHeightMinContent": "_EditorLayout--mobilePanelHeightMinContent_frglt_110", "EditorLayout--rightSideBarVisible": "_EditorLayout--rightSideBarVisible_frglt_132", "EditorLayout-mounted": "_EditorLayout-mounted_frglt_151", "EditorLayout-nav": "_EditorLayout-nav_frglt_192", "Editor-fieldSideBarToolbar": "_Editor-fieldSideBarToolbar_frglt_208", "Editor-fieldSideBarHistory": "_Editor-fieldSideBarHistory_frglt_218", "Editor-fieldSideBarActions": "_Editor-fieldSideBarActions_frglt_224", "EditorLayout-mobilePanel": "_EditorLayout-mobilePanel_frglt_230", "EditorLayout-mobilePanelContent": "_EditorLayout-mobilePanelContent_frglt_250", "EditorLayout-mobileDragHandle": "_EditorLayout-mobileDragHandle_frglt_257", "EditorLayout-mobileDragHandlePill": "_EditorLayout-mobileDragHandlePill_frglt_271", "EditorPluginTab": "_EditorPluginTab_frglt_278", "EditorPluginTab--visible": "_EditorPluginTab--visible_frglt_284", "EditorPluginTab-body": "_EditorPluginTab-body_frglt_289" };
|
|
12976
12975
|
|
|
12977
12976
|
// lib/use-inject-css.ts
|
|
12978
12977
|
init_react_import();
|
|
@@ -13304,6 +13303,7 @@ var BrowserBar = ({
|
|
|
13304
13303
|
onViewportChange
|
|
13305
13304
|
}) => {
|
|
13306
13305
|
const { routes, currentRoute, onRouteChange } = usePropsContext();
|
|
13306
|
+
const chrome = useChromeConfig();
|
|
13307
13307
|
const viewports = useAppStore((s) => s.state.ui.viewports);
|
|
13308
13308
|
const dispatch = useAppStore((s) => s.dispatch);
|
|
13309
13309
|
const leftSideBarVisible = useAppStore((s) => s.state.ui.leftSideBarVisible);
|
|
@@ -13341,8 +13341,11 @@ var BrowserBar = ({
|
|
|
13341
13341
|
if (!next || next === currentRoute) return;
|
|
13342
13342
|
void (onRouteChange == null ? void 0 : onRouteChange(next));
|
|
13343
13343
|
};
|
|
13344
|
+
if (!chrome.showUrlBar && !chrome.showDeviceToggle && !chrome.showFullScreenToggle) {
|
|
13345
|
+
return null;
|
|
13346
|
+
}
|
|
13344
13347
|
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: getClassName36(), children: [
|
|
13345
|
-
showRoutePicker ? /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
13348
|
+
chrome.showUrlBar && (showRoutePicker ? /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
13346
13349
|
Combobox,
|
|
13347
13350
|
{
|
|
13348
13351
|
items: routes,
|
|
@@ -13386,9 +13389,9 @@ var BrowserBar = ({
|
|
|
13386
13389
|
) : /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: getClassName36("urlTrigger"), children: [
|
|
13387
13390
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Globe, { className: getClassName36("urlIcon"), size: 14 }),
|
|
13388
13391
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: getClassName36("urlText"), children: "/" })
|
|
13389
|
-
] }),
|
|
13390
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: getClassName36("actions"), children: [
|
|
13391
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
13392
|
+
] })),
|
|
13393
|
+
(chrome.showDeviceToggle || chrome.showFullScreenToggle) && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: getClassName36("actions"), children: [
|
|
13394
|
+
chrome.showDeviceToggle && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
13392
13395
|
IconButton,
|
|
13393
13396
|
{
|
|
13394
13397
|
type: "button",
|
|
@@ -13397,7 +13400,7 @@ var BrowserBar = ({
|
|
|
13397
13400
|
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: getClassName36("deviceIcon"), children: activeDevice === "desktop" ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Monitor, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Smartphone, { size: 16 }) })
|
|
13398
13401
|
}
|
|
13399
13402
|
),
|
|
13400
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
13403
|
+
chrome.showFullScreenToggle && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
13401
13404
|
IconButton,
|
|
13402
13405
|
{
|
|
13403
13406
|
type: "button",
|
|
@@ -14156,6 +14159,7 @@ var getPluginTabClassName = get_class_name_factory_default("EditorPluginTab", st
|
|
|
14156
14159
|
var FieldSideBarToolbar = () => {
|
|
14157
14160
|
const appStore = useAppStoreApi();
|
|
14158
14161
|
const { onPublish, currentRoute } = usePropsContext();
|
|
14162
|
+
const chrome = useChromeConfig();
|
|
14159
14163
|
const back = useAppStore((s) => s.history.back);
|
|
14160
14164
|
const forward = useAppStore((s) => s.history.forward);
|
|
14161
14165
|
const hasFuture = useAppStore((s) => s.history.hasFuture());
|
|
@@ -14164,7 +14168,7 @@ var FieldSideBarToolbar = () => {
|
|
|
14164
14168
|
(s) => s.overrides.headerActions || DefaultOverride
|
|
14165
14169
|
);
|
|
14166
14170
|
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: getClassName43("fieldSideBarToolbar"), children: [
|
|
14167
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: getClassName43("fieldSideBarHistory"), children: [
|
|
14171
|
+
chrome.showHistoryControls ? /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: getClassName43("fieldSideBarHistory"), children: [
|
|
14168
14172
|
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
14169
14173
|
IconButton,
|
|
14170
14174
|
{
|
|
@@ -14185,7 +14189,7 @@ var FieldSideBarToolbar = () => {
|
|
|
14185
14189
|
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Redo2, { size: 18 })
|
|
14186
14190
|
}
|
|
14187
14191
|
)
|
|
14188
|
-
] }),
|
|
14192
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", {}),
|
|
14189
14193
|
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: getClassName43("fieldSideBarActions"), children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(CustomHeaderActions, { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
14190
14194
|
Button,
|
|
14191
14195
|
{
|
|
@@ -14238,7 +14242,8 @@ var Layout = ({ children }) => {
|
|
|
14238
14242
|
const rightSideBarVisible = useAppStore(
|
|
14239
14243
|
(s) => s.state.ui.rightSideBarVisible
|
|
14240
14244
|
);
|
|
14241
|
-
const
|
|
14245
|
+
const chrome = useChromeConfig();
|
|
14246
|
+
const navBarVisible = chrome.showNavBar;
|
|
14242
14247
|
const instanceId = useAppStore((s) => s.instanceId);
|
|
14243
14248
|
const {
|
|
14244
14249
|
width: leftWidth,
|
|
@@ -14464,6 +14469,7 @@ var Layout = ({ children }) => {
|
|
|
14464
14469
|
leftSideBarVisible,
|
|
14465
14470
|
mounted,
|
|
14466
14471
|
rightSideBarVisible: !hasDesktopFieldsPlugin && rightSideBarVisible,
|
|
14472
|
+
navBarVisible,
|
|
14467
14473
|
mobilePanelHeightToggle: mobilePanelHeightMode === "toggle",
|
|
14468
14474
|
mobilePanelHeightMinContent: mobilePanelHeightMode === "min-content",
|
|
14469
14475
|
mobilePanelCustomHeight: mobilePanelHeight !== null && leftSideBarVisible
|
|
@@ -14479,7 +14485,7 @@ var Layout = ({ children }) => {
|
|
|
14479
14485
|
Nav,
|
|
14480
14486
|
{
|
|
14481
14487
|
items: pluginItems,
|
|
14482
|
-
footer: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
14488
|
+
footer: chrome.showThemeToggle ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
14483
14489
|
IconButton,
|
|
14484
14490
|
{
|
|
14485
14491
|
type: "button",
|
|
@@ -14487,7 +14493,7 @@ var Layout = ({ children }) => {
|
|
|
14487
14493
|
onClick: toggleTheme,
|
|
14488
14494
|
children: themeIcon
|
|
14489
14495
|
}
|
|
14490
|
-
)
|
|
14496
|
+
) : void 0
|
|
14491
14497
|
}
|
|
14492
14498
|
) }),
|
|
14493
14499
|
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
|
|
@@ -14576,11 +14582,45 @@ var Layout = ({ children }) => {
|
|
|
14576
14582
|
|
|
14577
14583
|
// components/Editor/index.tsx
|
|
14578
14584
|
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
14585
|
+
var CHROME_KEYS = [
|
|
14586
|
+
"showNavBar",
|
|
14587
|
+
"showThemeToggle",
|
|
14588
|
+
"showHistoryControls",
|
|
14589
|
+
"showUrlBar",
|
|
14590
|
+
"showDeviceToggle",
|
|
14591
|
+
"showFullScreenToggle"
|
|
14592
|
+
];
|
|
14593
|
+
var DEFAULT_CHROME = {
|
|
14594
|
+
showNavBar: true,
|
|
14595
|
+
showThemeToggle: true,
|
|
14596
|
+
showHistoryControls: true,
|
|
14597
|
+
showUrlBar: true,
|
|
14598
|
+
showDeviceToggle: true,
|
|
14599
|
+
showFullScreenToggle: true
|
|
14600
|
+
};
|
|
14601
|
+
var splitUiConfig = (ui) => {
|
|
14602
|
+
const runtime = {};
|
|
14603
|
+
const chrome = {};
|
|
14604
|
+
if (!ui) return { runtime, chrome };
|
|
14605
|
+
for (const [key, value] of Object.entries(ui)) {
|
|
14606
|
+
if (CHROME_KEYS.includes(key)) {
|
|
14607
|
+
chrome[key] = value;
|
|
14608
|
+
} else {
|
|
14609
|
+
runtime[key] = value;
|
|
14610
|
+
}
|
|
14611
|
+
}
|
|
14612
|
+
return { runtime, chrome };
|
|
14613
|
+
};
|
|
14579
14614
|
var propsContext = (0, import_react95.createContext)({});
|
|
14580
14615
|
function PropsProvider(props) {
|
|
14581
14616
|
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(propsContext.Provider, { value: props, children: props.children });
|
|
14582
14617
|
}
|
|
14583
14618
|
var usePropsContext = () => (0, import_react95.useContext)(propsContext);
|
|
14619
|
+
var useChromeConfig = () => {
|
|
14620
|
+
const { ui } = usePropsContext();
|
|
14621
|
+
const { chrome } = splitUiConfig(ui);
|
|
14622
|
+
return __spreadValues(__spreadValues({}, DEFAULT_CHROME), chrome);
|
|
14623
|
+
};
|
|
14584
14624
|
function EditorProvider({ children }) {
|
|
14585
14625
|
const {
|
|
14586
14626
|
config,
|
|
@@ -14608,7 +14648,8 @@ function EditorProvider({ children }) {
|
|
|
14608
14648
|
);
|
|
14609
14649
|
const [generatedAppState] = (0, import_react95.useState)(() => {
|
|
14610
14650
|
var _a, _b, _c, _d, _e, _f;
|
|
14611
|
-
const
|
|
14651
|
+
const { runtime: initialUiRuntime } = splitUiConfig(initialUi);
|
|
14652
|
+
const initial = __spreadValues(__spreadValues({}, defaultAppState.ui), initialUiRuntime);
|
|
14612
14653
|
let clientUiState = {};
|
|
14613
14654
|
if (Object.keys((initialData == null ? void 0 : initialData.root) || {}).length > 0 && !((_a = initialData == null ? void 0 : initialData.root) == null ? void 0 : _a.props)) {
|
|
14614
14655
|
console.warn(
|
package/dist/no-external.mjs
CHANGED
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
usePropsContext,
|
|
26
26
|
useRouteParams,
|
|
27
27
|
useStableValue
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-KX5XDJF6.mjs";
|
|
29
|
+
import "./chunk-BZ4BQZJR.mjs";
|
|
30
30
|
import {
|
|
31
31
|
Action,
|
|
32
32
|
ActionBar,
|
|
@@ -35,21 +35,21 @@ import {
|
|
|
35
35
|
Label,
|
|
36
36
|
RichTextMenu,
|
|
37
37
|
Separator
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-BUR5T7IX.mjs";
|
|
39
|
+
import "./chunk-FT6UFK7G.mjs";
|
|
40
40
|
import {
|
|
41
41
|
getRouteProps,
|
|
42
42
|
migrate,
|
|
43
43
|
resolveAllData,
|
|
44
44
|
resolveRouteFromString,
|
|
45
45
|
transformProps
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-PUDWMFBH.mjs";
|
|
47
47
|
import "./chunk-6QJ2HF4O.mjs";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-OIFPBVSF.mjs";
|
|
49
|
+
import "./chunk-AD7BMXAA.mjs";
|
|
50
|
+
import "./chunk-LRFRIIKG.mjs";
|
|
51
51
|
import "./chunk-M4JDRFYB.mjs";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-IIRJMJFU.mjs";
|
|
53
53
|
import "./chunk-Y2EFNT5P.mjs";
|
|
54
54
|
import {
|
|
55
55
|
walkTree
|
package/dist/rsc.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Config, U as UserGenerics, M as Metadata } from './actions-
|
|
3
|
-
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './actions-DDpLL_TR.mjs';
|
|
3
|
+
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-Cxbt1UVr.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@tiptap/react';
|
|
6
6
|
import '@tiptap/extension-blockquote';
|
package/dist/rsc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Config, U as UserGenerics, M as Metadata } from './actions-
|
|
3
|
-
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './actions-DDpLL_TR.js';
|
|
3
|
+
export { G as GetRoutePropsOptions, g as getRouteProps, m as migrate, r as resolveAllData, a as resolveRouteFromString, t as transformProps, w as walkTree } from './walk-tree-Cnyva5MB.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@tiptap/react';
|
|
6
6
|
import '@tiptap/extension-blockquote';
|
package/dist/rsc.js
CHANGED
package/dist/rsc.mjs
CHANGED
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
transformProps,
|
|
8
8
|
useRichtextProps,
|
|
9
9
|
useSlots
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PUDWMFBH.mjs";
|
|
11
11
|
import "./chunk-6QJ2HF4O.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-IIRJMJFU.mjs";
|
|
13
13
|
import "./chunk-Y2EFNT5P.mjs";
|
|
14
14
|
import {
|
|
15
15
|
rootAreaId,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Config, D as Data, W as WithId, U as UserGenerics, j as Content, b as ComponentData, k as DefaultComponents, l as DefaultComponentProps, m as DefaultRootFieldProps, M as Metadata, n as RootData } from './actions-
|
|
1
|
+
import { C as Config, D as Data, W as WithId, U as UserGenerics, j as Content, b as ComponentData, k as DefaultComponents, l as DefaultComponentProps, m as DefaultRootFieldProps, M as Metadata, n as RootData } from './actions-DDpLL_TR.js';
|
|
2
2
|
|
|
3
3
|
type GetRoutePropsOptions = {
|
|
4
4
|
/** Defaults to "/editor". Pass null to skip editor-prefix handling. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Config, D as Data, W as WithId, U as UserGenerics, j as Content, b as ComponentData, k as DefaultComponents, l as DefaultComponentProps, m as DefaultRootFieldProps, M as Metadata, n as RootData } from './actions-
|
|
1
|
+
import { C as Config, D as Data, W as WithId, U as UserGenerics, j as Content, b as ComponentData, k as DefaultComponents, l as DefaultComponentProps, m as DefaultRootFieldProps, M as Metadata, n as RootData } from './actions-DDpLL_TR.mjs';
|
|
2
2
|
|
|
3
3
|
type GetRoutePropsOptions = {
|
|
4
4
|
/** Defaults to "/editor". Pass null to skip editor-prefix handling. */
|