File size: 9,547 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
---
description: WordPress imports
globs: client
---
## WordPress imports

- `@wordpress/components` exports these React components:
  - `AlignmentMatrixControl`
  - `Animate`
  - `AnglePickerControl`
  - `ArrowCircle`
  - `Autocomplete`
  - `BaseControl`
  - `BorderBoxControl`
  - `BorderControl`
  - `BoxControl`
  - `Button`
  - `ButtonGroup`
  - `Card`
  - `CardBody`
  - `CardDivider`
  - `CardFooter`
  - `CardHeader`
  - `CardMedia`
  - `CheckboxControl`
  - `ClipboardButton`
  - `ColorIndicator`
  - `ColorPalette`
  - `ColorPicker`
  - `ComboboxControl`
  - `CustomGradientPicker`
  - `CustomSelectControl`
  - `Dashicon`
  - `DatePicker`
  - `DateTimePicker`
  - `Disabled`
  - `Draggable`
  - `DropZone`
  - `DropdownMenu`
  - `Dropdown`
  - `Droppable`
  - `DuotonePicker`
  - `DuotoneSwatch`
  - `Flex`
  - `FlexBlock`
  - `FlexItem`
  - `FocalPointPicker`
  - `FocusableIframe`
  - `FontSizePicker`
  - `FormFileUpload`
  - `FormTokenField`
  - `FormToggle`
  - `GradientPicker`
  - `Grid`
  - `Guide`
  - `HStack`
  - `Icon`
  - `IconButton`
  - `InputControl`
  - `IsolatedEventContainer`
  - `ItemGroup`
  - `MenuGroup`
  - `MenuItem`
  - `Modal`
  - `NavigableContainer`
  - `NavigableMenu`
  - `Notice`
  - `NoticeList`
  - `NumberControl`
  - `Panel`
  - `PanelBody`
  - `PanelHeader`
  - `PanelRow`
  - `Placeholder`
  - `Popover`
  - `QueryControls`
  - `RadioControl`
  - `RangeControl`
  - `ResizableBox`
  - `ResponsiveWrapper`
  - `RotateLeft`
  - `RotateRight`
  - `SandBox`
  - `ScrollLock`
  - `SearchControl`
  - `SelectControl`
  - `Shortcut`
  - `Slot`
  - `SlotFill`
  - `SlotFillProvider`
  - `Snackbar`
  - `SnackbarList`
  - `Spacer`
  - `Spinner`
  - `Surface`
  - `TabPanel`
  - `TabbableContainer`
  - `TextControl`
  - `TextareaControl`
  - `TimePicker`
  - `ToggleControl`
  - `ToggleGroupControl`
  - `Toolbar`
  - `ToolbarButton`
  - `ToolbarGroup`
  - `ToolbarItem`
  - `Tooltip`
  - `TreeGrid`
  - `TreeSelect`
  - `Truncate`
  - `UnitControl`
  - `VStack`
  - `VisuallyHidden`
  - `ZStack`
  - `__experimentalAlignmentMatrixControl`
  - `__experimentalAnimatePresence`
  - `__experimentalBorderControl`
  - `__experimentalConfirmDialog`
  - `__experimentalContainer`
  - `__experimentalDimensionControl`
  - `__experimentalDivider`
  - `__experimentalDropdownContentWrapper`
  - `__experimentalHStack`
  - `__experimentalHeading`
  - `__experimentalHoverCard`
  - `__experimentalIframe`
  - `__experimentalInputControl`
  - `__experimentalInputControlWrapper`
  - `__experimentalItemGroup`
  - `__experimentalMotion`
  - `__experimentalNavigationBackButton`
  - `__experimentalNavigationGroup`
  - `__experimentalNavigationItem`
  - `__experimentalNavigationMenu`
  - `__experimentalNumberControl`
  - `__experimentalPaletteEdit`
  - `__experimentalParseQuantityAndUnitFromRawValue`
  - `__experimentalSpacer`
  - `__experimentalText`
  - `__experimentalToggleGroupControl`
  - `__experimentalToggleGroupControlOption`
  - `__experimentalToolsPanel`
  - `__experimentalToolsPanelHeader`
  - `__experimentalToolsPanelItem`
  - `__experimentalTruncate`
  - `__experimentalUnitControl`
  - `__experimentalUseCustomUnits`
  - `__experimentalVStack`
  - `__experimentalView`
  - `__experimentalWarning`
  - `__experimentalZStack`
- `@wordpress/block-editor` exports these React components:
  - `AlignmentControl`
  - `BlockAlignmentControl` 
  - `BlockAlignmentMatrixControl`
  - `BlockBreadcrumb`
  - `BlockControls`
  - `BlockEdit`
  - `BlockEditorKeyboardShortcuts`
  - `BlockFormatControls`
  - `BlockIcon`
  - `BlockInspector`
  - `BlockList`
  - `BlockMover`
  - `BlockNavigationDropdown`
  - `BlockPreview`
  - `BlockSelectionClearer`
  - `BlockSettingsMenu`
  - `BlockTitle`
  - `BlockToolbar`
  - `ColorPaletteControl`
  - `ContrastChecker`
  - `CopyHandler`
  - `DefaultBlockAppender`
  - `FontSizePicker`
  - `InnerBlocks`
  - `InspectorAdvancedControls`
  - `InspectorControls`
  - `LineHeightControl`
  - `MediaPlaceholder`
  - `MediaUpload`
  - `MediaUploadCheck`
  - `NavigableToolbar`
  - `ObserveTyping`
  - `PanelColorSettings`
  - `PlainText`
  - `RichText`
  - `RichTextShortcut`
  - `RichTextToolbarButton`
  - `SkipToSelectedBlock`
  - `TableOfContents`
  - `URLInput`
  - `URLInputButton`
  - `URLPopover`
  - `Warning`
  - `WritingFlow`
  - `__experimentalBlockAlignmentMatrixToolbar`
  - `__experimentalBlockFullHeightAligmentControl`
  - `__experimentalBlockPatternSetup`
  - `__experimentalBlockVariationPicker`
  - `__experimentalBorderRadiusControl`
  - `__experimentalImageSizeControl`
  - `__experimentalLinkControl`
  - `__experimentalPanelColorGradientSettings`
  - `__experimentalUnitControl`
  - `__experimentalUseGradient`
  - `__experimentalUseMultipleOriginColorsAndGradients`
  - `store` - The block editor data store
  - `transformStyles` - Transform styles for blocks
  - `getColorClassName` - Get color class names
  - `getColorObjectByAttributeValues` - Get color object by values
  - `getColorObjectByColorValue` - Get color object by value
  - `getFontSize` - Get font size object
  - `getFontSizeClass` - Get font size class name
  - `withColors` - HOC to inject color functionality
  - `withFontSizes` - HOC to inject font size functionality
  - `useBlockProps` - Hook to get block props
  - `useInnerBlocksProps` - Hook for inner blocks props
  - `__experimentalUseEditorFeature` - Hook for editor features
  - `__experimentalGetGradientClass` - Get gradient class name
  - `__experimentalGetGradientValueBySlug` - Get gradient value by slug
  - `__experimentalUseGradient` - Hook for gradient functionality
- `@wordpress/data` exports following store management utilities, methods and hooks. They are working roughly as an internal Redux store.
  - `batch` - Batches multiple dispatch calls to optimize rendering
  - `combineReducers` - Helper to combine multiple reducers
  - `controls` - (Deprecated) Control handler system
  - `createReduxStore` - Creates a data store descriptor
  - `createRegistry` - Creates a new store registry
  - `createRegistryControl` - Creates a control with registry access
  - `createRegistrySelector` - Creates a selector with registry access
  - `createSelector` - Creates a memoized selector
  - `dispatch` - Returns store's action creators
  - `plugins` - Available registry plugins
  - `register` - Registers a store descriptor
  - `registerGenericStore` - (Deprecated) Registers generic store
  - `registerStore` - (Deprecated) Registers standard store
  - `RegistryConsumer` - React Context consumer for registry
  - `RegistryProvider` - React Context provider for registry
  - `resolveSelect` - Returns promise-wrapped selectors
  - `select` - Returns store's selectors
  - `subscribe` - Subscribes to store updates
  - `suspendSelect` - Returns suspense-wrapped selectors
  - `use` - Extends registry with plugin
  - `useDispatch` - Hook for dispatch actions
  - `useRegistry` - Hook for registry access
  - `useSelect` - Hook for state selection
  - `useSuspenseSelect` - Suspense-enabled selection hook
  - `withDispatch` - HOC for dispatch actions
  - `withRegistry` - HOC for registry access
  - `withSelect` - HOC for state selection
- `@wordpress/core-data` exports following higher order data management utilities related to WordPress entity store. Entity store provides an abstraction that automatically retrieves entities like Custom Post Types, general WordPress settings and other API elements:
  - Entity Record Management:
    - `getEntityRecord` - Get a single entity record
    - `getEntityRecords` - Get multiple entity records
    - `getEditedEntityRecord` - Get entity record with edits
    - `hasEntityRecords` - Check if records exist
    - `saveEntityRecord` - Save an entity record
    - `deleteEntityRecord` - Delete an entity record
    - `editEntityRecord` - Edit an entity record
  - Entity Configuration:
    - `getEntityConfig` - Get entity configuration
    - `getEntitiesConfig` - Get multiple entities configuration
  - Revisions & Autosaves:
    - `getRevisions` - Get entity revisions
    - `getRevision` - Get a specific revision
    - `getAutosave` - Get autosave for post/author
    - `getAutosaves` - Get all autosaves for post
  - User & Permissions:
    - `canUser` - Check user permissions
    - `canUserEditEntityRecord` - Check edit permissions
    - `getCurrentUser` - Get current user data
  - State Management:
    - `hasEditsForEntityRecord` - Check for pending edits
    - `hasUndo` - Check for available undo
    - `hasRedo` - Check for available redo
    - `undo` - Undo last edit
    - `redo` - Redo last undone edit
  - React Hooks:
    - `useEntityRecord` - Hook for single record management
    - `useEntityRecords` - Hook for multiple records management
    - `useEntityProp` - Hook for entity property management
    - `useEntityBlockEditor` - Hook for entity block editor
    - `useEntityId` - Hook for entity ID access
    - `useResourcePermissions` - Hook for checking resource permissions
  - Status & Error Handling:
    - `isSavingEntityRecord` - Check save status
    - `isDeletingEntityRecord` - Check delete status
    - `isAutosavingEntityRecord` - Check autosave status
    - `getLastEntitySaveError` - Get last save error
    - `getLastEntityDeleteError` - Get last delete error
  - Additional Utilities:
    - `getEntityRecordsTotalItems` - Get total available records
    - `getEntityRecordsTotalPages` - Get total available pages
    - `getRawEntityRecord` - Get raw record data
    - `getEntityRecordNonTransientEdits` - Get non-transient edits