generated from filamentphp/plugin-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathfilament-peek.php
140 lines (114 loc) · 4.35 KB
/
filament-peek.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?php
return [
/*
|--------------------------------------------------------------------------
| Device Presets
|--------------------------------------------------------------------------
|
| Device presets allow users to quickly resize the preview iframe to
| specific dimensions. Set this to `false` to disable device presets.
|
*/
'devicePresets' => [
'fullscreen' => [
'icon' => 'heroicon-o-computer-desktop',
'width' => '100%',
'height' => '100%',
'canRotatePreset' => false,
],
'tablet-landscape' => [
'icon' => 'heroicon-o-device-tablet',
'rotateIcon' => true,
'width' => '1080px',
'height' => '810px',
'canRotatePreset' => true,
],
'mobile' => [
'icon' => 'heroicon-o-device-phone-mobile',
'width' => '375px',
'height' => '667px',
'canRotatePreset' => true,
],
],
/*
|--------------------------------------------------------------------------
| Initial Device Preset
|--------------------------------------------------------------------------
|
| The default device preset to be activated when the modal is open.
|
*/
'initialDevicePreset' => 'fullscreen',
/*
|--------------------------------------------------------------------------
| Allow Iframe Overflow
|--------------------------------------------------------------------------
|
| Set this to `true` to allow the iframe dimensions to go beyond the
| capacity of the available preview modal area.
|
*/
'allowIframeOverflow' => false,
/*
|--------------------------------------------------------------------------
| Allow Iframe Pointer Events
|--------------------------------------------------------------------------
|
| Set this to `true` to allow all pointer events (clicks, etc.) within the
| iframe. By default, only scrolling is allowed.
|
*/
'allowIframePointerEvents' => false,
/*
|--------------------------------------------------------------------------
| Close Modal With Escape Key
|--------------------------------------------------------------------------
|
| Set this to `false` to reserve the Escape key for the purposes of your
| page preview. This option does not apply to Builder previews.
|
*/
'closeModalWithEscapeKey' => true,
/*
|--------------------------------------------------------------------------
| Internal Preview URL
|--------------------------------------------------------------------------
|
| Enable this option to render all Blade previews through an internal URL.
| This improves the isolation of the iframe in the context of the page.
| Add additional middleware for this URL in the `middleware` array.
|
*/
'internalPreviewUrl' => [
'enabled' => false,
'middleware' => [],
],
/*
|--------------------------------------------------------------------------
| Builder Editor
|--------------------------------------------------------------------------
|
| Options related to the Editor sidebar in Builder Previews.
|
*/
'builderEditor' => [
// Show 'Accept' and 'Discard' buttons in modal header instead of a single 'Close' button.
'canDiscardChanges' => true,
// Allow users to resize the sidebar by clicking and dragging on the right edge.
'canResizeSidebar' => true,
// Minimum width for the sidebar, if resizable. Must be a valid CSS value.
'sidebarMinWidth' => '30rem',
// Initial width for the sidebar. Must be a valid CSS value.
'sidebarInitialWidth' => '30rem',
// Restore the preview scroll position when the preview is refreshed.
'preservePreviewScrollPosition' => true,
// Enable the auto-refresh option for the Builder preview.
'canEnableAutoRefresh' => true,
// Debounce time before refreshing the preview.
'autoRefreshDebounceMilliseconds' => 500,
// Possible values: 'simple' or 'reactive'.
'autoRefreshStrategy' => 'simple',
// Livewire component for the sidebar.
'livewireComponentClass' => \Pboivin\FilamentPeek\Livewire\BuilderEditor::class,
],
];