@elementor/editor-components 4.0.0-639 → 4.0.0-641

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/index.d.mts CHANGED
@@ -2,14 +2,11 @@ import * as axios from 'axios';
2
2
  import * as _elementor_editor_elements from '@elementor/editor-elements';
3
3
  import { V1ElementData, V1Element, V1ElementModelProps } from '@elementor/editor-elements';
4
4
  import { HttpResponse } from '@elementor/http-client';
5
- import { RenderContext } from '@elementor/editor-canvas';
6
5
  import * as _elementor_editor_props from '@elementor/editor-props';
7
- import { PropValue, TransformablePropValue } from '@elementor/editor-props';
8
- import * as _elementor_editor_styles from '@elementor/editor-styles';
6
+ import { PropValue } from '@elementor/editor-props';
9
7
  import { StyleDefinition } from '@elementor/editor-styles';
10
8
  import * as React from 'react';
11
9
  import { ElementType, PropsWithChildren } from 'react';
12
- import { UseSearchStateResult } from '@elementor/utils';
13
10
  import { z } from '@elementor/schema';
14
11
  import { useElement } from '@elementor/editor-editing-panel';
15
12
  import { V1Document } from '@elementor/editor-documents';
@@ -92,13 +89,6 @@ type ExtendedWindow = Window & {
92
89
  }) => V1Element | null;
93
90
  };
94
91
  };
95
- type ComponentOverridable = {
96
- override_key: string;
97
- origin_value: TransformablePropValue<string>;
98
- };
99
- type ComponentRenderContext = RenderContext<{
100
- overrides?: Record<string, unknown>;
101
- }>;
102
92
  type UpdatedComponentName = {
103
93
  componentId: number;
104
94
  title: string;
@@ -202,15 +192,10 @@ declare const useFilteredComponents: () => {
202
192
 
203
193
  declare const LoadingComponents: () => React.JSX.Element;
204
194
 
205
- type SearchContextType = Pick<UseSearchStateResult, 'handleChange' | 'inputValue'> & {
206
- searchValue: UseSearchStateResult['debouncedValue'];
207
- clearSearch: () => void;
208
- };
209
195
  declare const SearchProvider: ({ children, localStorageKey, }: {
210
196
  children: React.ReactNode;
211
197
  localStorageKey: string;
212
198
  }) => React.JSX.Element;
213
- declare const useSearch: () => SearchContextType;
214
199
 
215
200
  declare const EmptyState: ({ onEditComponent }: {
216
201
  onEditComponent?: () => void;
@@ -1236,30 +1221,6 @@ type ComponentInstanceData = {
1236
1221
  overridableProps: OverridableProps;
1237
1222
  };
1238
1223
  declare function ComponentInstanceProvider({ children, ...props }: PropsWithChildren<ComponentInstanceData>): React.JSX.Element;
1239
- declare const useComponentId: () => number | undefined;
1240
- declare const useComponentInstanceOverrides: () => ({
1241
- value: {
1242
- override_key: string;
1243
- schema_source: {
1244
- type: "component";
1245
- id: number;
1246
- };
1247
- override_value?: unknown;
1248
- };
1249
- $$type: "override";
1250
- disabled?: boolean | undefined;
1251
- } | {
1252
- value: {
1253
- override_key: string;
1254
- origin_value: {
1255
- $$type: string;
1256
- value?: unknown;
1257
- } | null;
1258
- };
1259
- $$type: "overridable";
1260
- disabled?: boolean | undefined;
1261
- })[] | undefined;
1262
- declare const useComponentOverridableProps: () => OverridableProps | undefined;
1263
1224
 
1264
1225
  type OverridablePropData = {
1265
1226
  value?: ComponentOverridablePropValue;
@@ -1337,89 +1298,19 @@ declare const slice: _reduxjs_toolkit.Slice<ComponentsState, {
1337
1298
  }>) => void;
1338
1299
  resetSanitizedComponents: (state: immer_dist_internal_js.WritableDraft<ComponentsState>) => void;
1339
1300
  }, "components">;
1340
- declare const selectData: (state: ComponentsSlice) => PublishedComponent[];
1341
- declare const selectArchivedThisSession: (state: ComponentsSlice) => number[];
1342
- declare const selectComponent: (state: ComponentsSlice, componentId: ComponentId) => PublishedComponent | undefined;
1343
- declare const useComponent: (componentId: ComponentId | null) => PublishedComponent | null | undefined;
1344
- declare const selectComponentByUid: (state: ComponentsSlice, componentUid: string) => PublishedComponent | UnpublishedComponent | undefined;
1345
- declare const selectComponents: ((state: ComponentsSlice) => (PublishedComponent | {
1346
- uid: string;
1347
- name: string;
1348
- overridableProps: OverridableProps | undefined;
1349
- })[]) & reselect.OutputSelectorFields<(args_0: PublishedComponent[], args_1: UnpublishedComponent[]) => (PublishedComponent | {
1350
- uid: string;
1351
- name: string;
1352
- overridableProps: OverridableProps | undefined;
1353
- })[], {
1354
- clearCache: () => void;
1355
- }> & {
1356
- clearCache: () => void;
1357
- };
1358
- declare const selectUnpublishedComponents: ((state: ComponentsSlice) => UnpublishedComponent[]) & reselect.OutputSelectorFields<(args_0: UnpublishedComponent[]) => UnpublishedComponent[], {
1359
- clearCache: () => void;
1360
- }> & {
1361
- clearCache: () => void;
1362
- };
1363
- declare const selectLoadIsPending: ((state: ComponentsSlice) => boolean) & reselect.OutputSelectorFields<(args_0: Status) => boolean, {
1364
- clearCache: () => void;
1365
- }> & {
1366
- clearCache: () => void;
1367
- };
1368
- declare const selectLoadIsError: ((state: ComponentsSlice) => boolean) & reselect.OutputSelectorFields<(args_0: Status) => boolean, {
1369
- clearCache: () => void;
1370
- }> & {
1371
- clearCache: () => void;
1372
- };
1373
- declare const selectStyles: (state: ComponentsSlice) => StylesDefinition;
1374
- declare const selectFlatStyles: ((state: ComponentsSlice) => _elementor_editor_styles.StyleDefinition[]) & reselect.OutputSelectorFields<(args_0: StylesDefinition) => _elementor_editor_styles.StyleDefinition[], {
1375
- clearCache: () => void;
1376
- }> & {
1377
- clearCache: () => void;
1378
- };
1379
- declare const selectCreatedThisSession: ((state: ComponentsSlice) => string[]) & reselect.OutputSelectorFields<(args_0: string[]) => string[], {
1380
- clearCache: () => void;
1381
- }> & {
1382
- clearCache: () => void;
1383
- };
1384
1301
  declare const selectOverridableProps: ((state: ComponentsSlice, componentId: number) => OverridableProps | undefined) & reselect.OutputSelectorFields<(args_0: PublishedComponent | undefined) => OverridableProps | undefined, {
1385
1302
  clearCache: () => void;
1386
1303
  }> & {
1387
1304
  clearCache: () => void;
1388
1305
  };
1389
1306
  declare const useOverridableProps: (componentId: ComponentId | null) => OverridableProps | null | undefined;
1390
- declare const selectIsOverridablePropsLoaded: ((state: ComponentsSlice, componentId: number) => boolean) & reselect.OutputSelectorFields<(args_0: PublishedComponent | undefined) => boolean, {
1391
- clearCache: () => void;
1392
- }> & {
1393
- clearCache: () => void;
1394
- };
1395
1307
  declare const selectPath: ((state: ComponentsSlice) => ComponentsPathItem[]) & reselect.OutputSelectorFields<(args_0: ComponentsPathItem[]) => ComponentsPathItem[], {
1396
1308
  clearCache: () => void;
1397
1309
  }> & {
1398
1310
  clearCache: () => void;
1399
1311
  };
1400
- declare const selectCurrentComponentId: ((state: ComponentsSlice) => number | null) & reselect.OutputSelectorFields<(args_0: number | null) => number | null, {
1401
- clearCache: () => void;
1402
- }> & {
1403
- clearCache: () => void;
1404
- };
1405
- declare const selectCurrentComponent: ((state: ComponentsSlice) => PublishedComponent | undefined) & reselect.OutputSelectorFields<(args_0: PublishedComponent[], args_1: number | null) => PublishedComponent | undefined, {
1406
- clearCache: () => void;
1407
- }> & {
1408
- clearCache: () => void;
1409
- };
1410
1312
  declare const useCurrentComponentId: () => number | null;
1411
1313
  declare const useCurrentComponent: () => PublishedComponent | undefined;
1412
- declare const selectUpdatedComponentNames: ((state: ComponentsSlice) => {
1413
- componentId: number;
1414
- title: string;
1415
- }[]) & reselect.OutputSelectorFields<(args_0: Record<number, string>) => {
1416
- componentId: number;
1417
- title: string;
1418
- }[], {
1419
- clearCache: () => void;
1420
- }> & {
1421
- clearCache: () => void;
1422
- };
1423
1314
  declare const useIsSanitizedComponent: (componentId: ComponentId | null, key: SanitizeAttributes) => boolean;
1424
1315
 
1425
1316
  declare const componentsActions: {
@@ -1467,7 +1358,6 @@ type Options = {
1467
1358
  declare function publishDraftComponentsInPageBeforeSave({ status, elements }: Options): Promise<void>;
1468
1359
 
1469
1360
  declare function filterValidOverridableProps(overridableProps: OverridableProps, instanceElementId?: string): OverridableProps;
1470
- declare function isExposedPropValid(prop: OverridableProp, instanceElementId?: string): boolean;
1471
1361
 
1472
1362
  /**
1473
1363
  * Resolves a container by its origin ID, with optional scoping to a component instance.
@@ -1515,4 +1405,4 @@ type ComponentEventData = Record<string, unknown> & {
1515
1405
  declare const trackComponentEvent: ({ action, source, ...data }: ComponentEventData) => void;
1516
1406
  declare const onElementDrop: (_args: unknown, element: V1Element) => void;
1517
1407
 
1518
- export { COMPONENT_WIDGET_TYPE, type Component, type ComponentFormValues, type ComponentId, type ComponentInstanceOverride, type ComponentInstanceOverrideProp, type ComponentInstanceOverridePropValue, type ComponentInstanceOverridesPropValue, type ComponentInstanceProp, type ComponentInstancePropValue, ComponentInstanceProvider, ComponentItem, type ComponentItemProps, type ComponentItems, ComponentName, type ComponentNameProps, type ComponentOverridable, type ComponentOverridableProp, type ComponentOverridablePropValue, type ComponentRenderContext, ComponentSearch, EmptyState$1 as ComponentsEmptyState, ComponentsList, type ComponentsPathItem, type ComponentsSlice, type CreateComponentPayload, type CreateComponentResponse, type DocumentSaveStatus, type DocumentStatus, EditComponentAction, type ElementorStorage, EmptySearchResult, type ExtendedWindow, EmptyState as InstanceEmptyState, InstancePanelBody, InstancePanelHeader, LoadingComponents, type OriginPropFields, type OriginalElementData, type OverridableProp, OverridablePropProvider, type OverridableProps, type OverridablePropsGroup, type PublishedComponent, SLICE_NAME, type SanitizeAttributes, SearchProvider, type Source, type StylesDefinition, type UnpublishedComponent, type UpdatedComponentName, apiClient, componentInstanceOverridePropTypeUtil, componentInstanceOverridesPropTypeUtil, componentInstancePropTypeUtil, componentOverridablePropTypeUtil, componentsActions, componentsSelectors, filterValidOverridableProps, getContainerByOriginId, getOverridableProp, getPropTypeForComponentOverride, init, isComponentInstance, isExposedPropValid, loadComponentsAssets, onElementDrop, publishDraftComponentsInPageBeforeSave, resolveOverridePropValue, selectArchivedThisSession, selectComponent, selectComponentByUid, selectComponents, selectCreatedThisSession, selectCurrentComponent, selectCurrentComponentId, selectData, selectFlatStyles, selectIsOverridablePropsLoaded, selectLoadIsError, selectLoadIsPending, selectOverridableProps, selectPath, selectStyles, selectUnpublishedComponents, selectUpdatedComponentNames, slice, switchToComponent, trackComponentEvent, updateOverridableProp, useComponent, useComponentId, useComponentInstanceElement, useComponentInstanceOverrides, useComponentOverridableProps, useComponents, useComponentsPermissions, useCurrentComponent, useCurrentComponentId, useFilteredComponents, useInstancePanelData, useIsSanitizedComponent, useOverridablePropValue, useOverridableProps, useSanitizeOverridableProps, useSearch };
1408
+ export { COMPONENT_WIDGET_TYPE, type Component, type ComponentFormValues, type ComponentId, type ComponentInstanceOverride, type ComponentInstanceOverrideProp, type ComponentInstanceOverridePropValue, type ComponentInstanceOverridesPropValue, type ComponentInstanceProp, type ComponentInstancePropValue, ComponentInstanceProvider, ComponentItem, type ComponentItemProps, ComponentName, type ComponentOverridableProp, type ComponentOverridablePropValue, ComponentSearch, EmptyState$1 as ComponentsEmptyState, ComponentsList, type ComponentsPathItem, type ComponentsSlice, type DocumentSaveStatus, EditComponentAction, EmptySearchResult, type ExtendedWindow, EmptyState as InstanceEmptyState, InstancePanelBody, InstancePanelHeader, LoadingComponents, type OriginPropFields, type OriginalElementData, type OverridableProp, OverridablePropProvider, type OverridableProps, type OverridablePropsGroup, type PublishedComponent, SLICE_NAME, type SanitizeAttributes, SearchProvider, type Source, type StylesDefinition, type UnpublishedComponent, type UpdatedComponentName, apiClient, componentInstanceOverridePropTypeUtil, componentInstanceOverridesPropTypeUtil, componentInstancePropTypeUtil, componentOverridablePropTypeUtil, componentsActions, componentsSelectors, filterValidOverridableProps, getContainerByOriginId, getOverridableProp, getPropTypeForComponentOverride, init, isComponentInstance, loadComponentsAssets, onElementDrop, publishDraftComponentsInPageBeforeSave, resolveOverridePropValue, selectOverridableProps, selectPath, slice, switchToComponent, trackComponentEvent, updateOverridableProp, useComponentInstanceElement, useComponents, useComponentsPermissions, useCurrentComponent, useCurrentComponentId, useFilteredComponents, useInstancePanelData, useIsSanitizedComponent, useOverridablePropValue, useOverridableProps, useSanitizeOverridableProps };
package/dist/index.d.ts CHANGED
@@ -2,14 +2,11 @@ import * as axios from 'axios';
2
2
  import * as _elementor_editor_elements from '@elementor/editor-elements';
3
3
  import { V1ElementData, V1Element, V1ElementModelProps } from '@elementor/editor-elements';
4
4
  import { HttpResponse } from '@elementor/http-client';
5
- import { RenderContext } from '@elementor/editor-canvas';
6
5
  import * as _elementor_editor_props from '@elementor/editor-props';
7
- import { PropValue, TransformablePropValue } from '@elementor/editor-props';
8
- import * as _elementor_editor_styles from '@elementor/editor-styles';
6
+ import { PropValue } from '@elementor/editor-props';
9
7
  import { StyleDefinition } from '@elementor/editor-styles';
10
8
  import * as React from 'react';
11
9
  import { ElementType, PropsWithChildren } from 'react';
12
- import { UseSearchStateResult } from '@elementor/utils';
13
10
  import { z } from '@elementor/schema';
14
11
  import { useElement } from '@elementor/editor-editing-panel';
15
12
  import { V1Document } from '@elementor/editor-documents';
@@ -92,13 +89,6 @@ type ExtendedWindow = Window & {
92
89
  }) => V1Element | null;
93
90
  };
94
91
  };
95
- type ComponentOverridable = {
96
- override_key: string;
97
- origin_value: TransformablePropValue<string>;
98
- };
99
- type ComponentRenderContext = RenderContext<{
100
- overrides?: Record<string, unknown>;
101
- }>;
102
92
  type UpdatedComponentName = {
103
93
  componentId: number;
104
94
  title: string;
@@ -202,15 +192,10 @@ declare const useFilteredComponents: () => {
202
192
 
203
193
  declare const LoadingComponents: () => React.JSX.Element;
204
194
 
205
- type SearchContextType = Pick<UseSearchStateResult, 'handleChange' | 'inputValue'> & {
206
- searchValue: UseSearchStateResult['debouncedValue'];
207
- clearSearch: () => void;
208
- };
209
195
  declare const SearchProvider: ({ children, localStorageKey, }: {
210
196
  children: React.ReactNode;
211
197
  localStorageKey: string;
212
198
  }) => React.JSX.Element;
213
- declare const useSearch: () => SearchContextType;
214
199
 
215
200
  declare const EmptyState: ({ onEditComponent }: {
216
201
  onEditComponent?: () => void;
@@ -1236,30 +1221,6 @@ type ComponentInstanceData = {
1236
1221
  overridableProps: OverridableProps;
1237
1222
  };
1238
1223
  declare function ComponentInstanceProvider({ children, ...props }: PropsWithChildren<ComponentInstanceData>): React.JSX.Element;
1239
- declare const useComponentId: () => number | undefined;
1240
- declare const useComponentInstanceOverrides: () => ({
1241
- value: {
1242
- override_key: string;
1243
- schema_source: {
1244
- type: "component";
1245
- id: number;
1246
- };
1247
- override_value?: unknown;
1248
- };
1249
- $$type: "override";
1250
- disabled?: boolean | undefined;
1251
- } | {
1252
- value: {
1253
- override_key: string;
1254
- origin_value: {
1255
- $$type: string;
1256
- value?: unknown;
1257
- } | null;
1258
- };
1259
- $$type: "overridable";
1260
- disabled?: boolean | undefined;
1261
- })[] | undefined;
1262
- declare const useComponentOverridableProps: () => OverridableProps | undefined;
1263
1224
 
1264
1225
  type OverridablePropData = {
1265
1226
  value?: ComponentOverridablePropValue;
@@ -1337,89 +1298,19 @@ declare const slice: _reduxjs_toolkit.Slice<ComponentsState, {
1337
1298
  }>) => void;
1338
1299
  resetSanitizedComponents: (state: immer_dist_internal_js.WritableDraft<ComponentsState>) => void;
1339
1300
  }, "components">;
1340
- declare const selectData: (state: ComponentsSlice) => PublishedComponent[];
1341
- declare const selectArchivedThisSession: (state: ComponentsSlice) => number[];
1342
- declare const selectComponent: (state: ComponentsSlice, componentId: ComponentId) => PublishedComponent | undefined;
1343
- declare const useComponent: (componentId: ComponentId | null) => PublishedComponent | null | undefined;
1344
- declare const selectComponentByUid: (state: ComponentsSlice, componentUid: string) => PublishedComponent | UnpublishedComponent | undefined;
1345
- declare const selectComponents: ((state: ComponentsSlice) => (PublishedComponent | {
1346
- uid: string;
1347
- name: string;
1348
- overridableProps: OverridableProps | undefined;
1349
- })[]) & reselect.OutputSelectorFields<(args_0: PublishedComponent[], args_1: UnpublishedComponent[]) => (PublishedComponent | {
1350
- uid: string;
1351
- name: string;
1352
- overridableProps: OverridableProps | undefined;
1353
- })[], {
1354
- clearCache: () => void;
1355
- }> & {
1356
- clearCache: () => void;
1357
- };
1358
- declare const selectUnpublishedComponents: ((state: ComponentsSlice) => UnpublishedComponent[]) & reselect.OutputSelectorFields<(args_0: UnpublishedComponent[]) => UnpublishedComponent[], {
1359
- clearCache: () => void;
1360
- }> & {
1361
- clearCache: () => void;
1362
- };
1363
- declare const selectLoadIsPending: ((state: ComponentsSlice) => boolean) & reselect.OutputSelectorFields<(args_0: Status) => boolean, {
1364
- clearCache: () => void;
1365
- }> & {
1366
- clearCache: () => void;
1367
- };
1368
- declare const selectLoadIsError: ((state: ComponentsSlice) => boolean) & reselect.OutputSelectorFields<(args_0: Status) => boolean, {
1369
- clearCache: () => void;
1370
- }> & {
1371
- clearCache: () => void;
1372
- };
1373
- declare const selectStyles: (state: ComponentsSlice) => StylesDefinition;
1374
- declare const selectFlatStyles: ((state: ComponentsSlice) => _elementor_editor_styles.StyleDefinition[]) & reselect.OutputSelectorFields<(args_0: StylesDefinition) => _elementor_editor_styles.StyleDefinition[], {
1375
- clearCache: () => void;
1376
- }> & {
1377
- clearCache: () => void;
1378
- };
1379
- declare const selectCreatedThisSession: ((state: ComponentsSlice) => string[]) & reselect.OutputSelectorFields<(args_0: string[]) => string[], {
1380
- clearCache: () => void;
1381
- }> & {
1382
- clearCache: () => void;
1383
- };
1384
1301
  declare const selectOverridableProps: ((state: ComponentsSlice, componentId: number) => OverridableProps | undefined) & reselect.OutputSelectorFields<(args_0: PublishedComponent | undefined) => OverridableProps | undefined, {
1385
1302
  clearCache: () => void;
1386
1303
  }> & {
1387
1304
  clearCache: () => void;
1388
1305
  };
1389
1306
  declare const useOverridableProps: (componentId: ComponentId | null) => OverridableProps | null | undefined;
1390
- declare const selectIsOverridablePropsLoaded: ((state: ComponentsSlice, componentId: number) => boolean) & reselect.OutputSelectorFields<(args_0: PublishedComponent | undefined) => boolean, {
1391
- clearCache: () => void;
1392
- }> & {
1393
- clearCache: () => void;
1394
- };
1395
1307
  declare const selectPath: ((state: ComponentsSlice) => ComponentsPathItem[]) & reselect.OutputSelectorFields<(args_0: ComponentsPathItem[]) => ComponentsPathItem[], {
1396
1308
  clearCache: () => void;
1397
1309
  }> & {
1398
1310
  clearCache: () => void;
1399
1311
  };
1400
- declare const selectCurrentComponentId: ((state: ComponentsSlice) => number | null) & reselect.OutputSelectorFields<(args_0: number | null) => number | null, {
1401
- clearCache: () => void;
1402
- }> & {
1403
- clearCache: () => void;
1404
- };
1405
- declare const selectCurrentComponent: ((state: ComponentsSlice) => PublishedComponent | undefined) & reselect.OutputSelectorFields<(args_0: PublishedComponent[], args_1: number | null) => PublishedComponent | undefined, {
1406
- clearCache: () => void;
1407
- }> & {
1408
- clearCache: () => void;
1409
- };
1410
1312
  declare const useCurrentComponentId: () => number | null;
1411
1313
  declare const useCurrentComponent: () => PublishedComponent | undefined;
1412
- declare const selectUpdatedComponentNames: ((state: ComponentsSlice) => {
1413
- componentId: number;
1414
- title: string;
1415
- }[]) & reselect.OutputSelectorFields<(args_0: Record<number, string>) => {
1416
- componentId: number;
1417
- title: string;
1418
- }[], {
1419
- clearCache: () => void;
1420
- }> & {
1421
- clearCache: () => void;
1422
- };
1423
1314
  declare const useIsSanitizedComponent: (componentId: ComponentId | null, key: SanitizeAttributes) => boolean;
1424
1315
 
1425
1316
  declare const componentsActions: {
@@ -1467,7 +1358,6 @@ type Options = {
1467
1358
  declare function publishDraftComponentsInPageBeforeSave({ status, elements }: Options): Promise<void>;
1468
1359
 
1469
1360
  declare function filterValidOverridableProps(overridableProps: OverridableProps, instanceElementId?: string): OverridableProps;
1470
- declare function isExposedPropValid(prop: OverridableProp, instanceElementId?: string): boolean;
1471
1361
 
1472
1362
  /**
1473
1363
  * Resolves a container by its origin ID, with optional scoping to a component instance.
@@ -1515,4 +1405,4 @@ type ComponentEventData = Record<string, unknown> & {
1515
1405
  declare const trackComponentEvent: ({ action, source, ...data }: ComponentEventData) => void;
1516
1406
  declare const onElementDrop: (_args: unknown, element: V1Element) => void;
1517
1407
 
1518
- export { COMPONENT_WIDGET_TYPE, type Component, type ComponentFormValues, type ComponentId, type ComponentInstanceOverride, type ComponentInstanceOverrideProp, type ComponentInstanceOverridePropValue, type ComponentInstanceOverridesPropValue, type ComponentInstanceProp, type ComponentInstancePropValue, ComponentInstanceProvider, ComponentItem, type ComponentItemProps, type ComponentItems, ComponentName, type ComponentNameProps, type ComponentOverridable, type ComponentOverridableProp, type ComponentOverridablePropValue, type ComponentRenderContext, ComponentSearch, EmptyState$1 as ComponentsEmptyState, ComponentsList, type ComponentsPathItem, type ComponentsSlice, type CreateComponentPayload, type CreateComponentResponse, type DocumentSaveStatus, type DocumentStatus, EditComponentAction, type ElementorStorage, EmptySearchResult, type ExtendedWindow, EmptyState as InstanceEmptyState, InstancePanelBody, InstancePanelHeader, LoadingComponents, type OriginPropFields, type OriginalElementData, type OverridableProp, OverridablePropProvider, type OverridableProps, type OverridablePropsGroup, type PublishedComponent, SLICE_NAME, type SanitizeAttributes, SearchProvider, type Source, type StylesDefinition, type UnpublishedComponent, type UpdatedComponentName, apiClient, componentInstanceOverridePropTypeUtil, componentInstanceOverridesPropTypeUtil, componentInstancePropTypeUtil, componentOverridablePropTypeUtil, componentsActions, componentsSelectors, filterValidOverridableProps, getContainerByOriginId, getOverridableProp, getPropTypeForComponentOverride, init, isComponentInstance, isExposedPropValid, loadComponentsAssets, onElementDrop, publishDraftComponentsInPageBeforeSave, resolveOverridePropValue, selectArchivedThisSession, selectComponent, selectComponentByUid, selectComponents, selectCreatedThisSession, selectCurrentComponent, selectCurrentComponentId, selectData, selectFlatStyles, selectIsOverridablePropsLoaded, selectLoadIsError, selectLoadIsPending, selectOverridableProps, selectPath, selectStyles, selectUnpublishedComponents, selectUpdatedComponentNames, slice, switchToComponent, trackComponentEvent, updateOverridableProp, useComponent, useComponentId, useComponentInstanceElement, useComponentInstanceOverrides, useComponentOverridableProps, useComponents, useComponentsPermissions, useCurrentComponent, useCurrentComponentId, useFilteredComponents, useInstancePanelData, useIsSanitizedComponent, useOverridablePropValue, useOverridableProps, useSanitizeOverridableProps, useSearch };
1408
+ export { COMPONENT_WIDGET_TYPE, type Component, type ComponentFormValues, type ComponentId, type ComponentInstanceOverride, type ComponentInstanceOverrideProp, type ComponentInstanceOverridePropValue, type ComponentInstanceOverridesPropValue, type ComponentInstanceProp, type ComponentInstancePropValue, ComponentInstanceProvider, ComponentItem, type ComponentItemProps, ComponentName, type ComponentOverridableProp, type ComponentOverridablePropValue, ComponentSearch, EmptyState$1 as ComponentsEmptyState, ComponentsList, type ComponentsPathItem, type ComponentsSlice, type DocumentSaveStatus, EditComponentAction, EmptySearchResult, type ExtendedWindow, EmptyState as InstanceEmptyState, InstancePanelBody, InstancePanelHeader, LoadingComponents, type OriginPropFields, type OriginalElementData, type OverridableProp, OverridablePropProvider, type OverridableProps, type OverridablePropsGroup, type PublishedComponent, SLICE_NAME, type SanitizeAttributes, SearchProvider, type Source, type StylesDefinition, type UnpublishedComponent, type UpdatedComponentName, apiClient, componentInstanceOverridePropTypeUtil, componentInstanceOverridesPropTypeUtil, componentInstancePropTypeUtil, componentOverridablePropTypeUtil, componentsActions, componentsSelectors, filterValidOverridableProps, getContainerByOriginId, getOverridableProp, getPropTypeForComponentOverride, init, isComponentInstance, loadComponentsAssets, onElementDrop, publishDraftComponentsInPageBeforeSave, resolveOverridePropValue, selectOverridableProps, selectPath, slice, switchToComponent, trackComponentEvent, updateOverridableProp, useComponentInstanceElement, useComponents, useComponentsPermissions, useCurrentComponent, useCurrentComponentId, useFilteredComponents, useInstancePanelData, useIsSanitizedComponent, useOverridablePropValue, useOverridableProps, useSanitizeOverridableProps };
package/dist/index.js CHANGED
@@ -59,37 +59,17 @@ __export(index_exports, {
59
59
  getPropTypeForComponentOverride: () => getPropTypeForComponentOverride,
60
60
  init: () => init,
61
61
  isComponentInstance: () => isComponentInstance,
62
- isExposedPropValid: () => isExposedPropValid,
63
62
  loadComponentsAssets: () => loadComponentsAssets,
64
63
  onElementDrop: () => onElementDrop,
65
64
  publishDraftComponentsInPageBeforeSave: () => publishDraftComponentsInPageBeforeSave,
66
65
  resolveOverridePropValue: () => resolveOverridePropValue,
67
- selectArchivedThisSession: () => selectArchivedThisSession,
68
- selectComponent: () => selectComponent,
69
- selectComponentByUid: () => selectComponentByUid,
70
- selectComponents: () => selectComponents,
71
- selectCreatedThisSession: () => selectCreatedThisSession,
72
- selectCurrentComponent: () => selectCurrentComponent,
73
- selectCurrentComponentId: () => selectCurrentComponentId,
74
- selectData: () => selectData,
75
- selectFlatStyles: () => selectFlatStyles,
76
- selectIsOverridablePropsLoaded: () => selectIsOverridablePropsLoaded,
77
- selectLoadIsError: () => selectLoadIsError,
78
- selectLoadIsPending: () => selectLoadIsPending,
79
66
  selectOverridableProps: () => selectOverridableProps,
80
67
  selectPath: () => selectPath,
81
- selectStyles: () => selectStyles,
82
- selectUnpublishedComponents: () => selectUnpublishedComponents,
83
- selectUpdatedComponentNames: () => selectUpdatedComponentNames,
84
68
  slice: () => slice,
85
69
  switchToComponent: () => switchToComponent,
86
70
  trackComponentEvent: () => trackComponentEvent,
87
71
  updateOverridableProp: () => updateOverridableProp,
88
- useComponent: () => useComponent,
89
- useComponentId: () => useComponentId,
90
72
  useComponentInstanceElement: () => useComponentInstanceElement,
91
- useComponentInstanceOverrides: () => useComponentInstanceOverrides,
92
- useComponentOverridableProps: () => useComponentOverridableProps,
93
73
  useComponents: () => useComponents,
94
74
  useComponentsPermissions: () => useComponentsPermissions,
95
75
  useCurrentComponent: () => useCurrentComponent,
@@ -99,8 +79,7 @@ __export(index_exports, {
99
79
  useIsSanitizedComponent: () => useIsSanitizedComponent,
100
80
  useOverridablePropValue: () => useOverridablePropValue,
101
81
  useOverridableProps: () => useOverridableProps,
102
- useSanitizeOverridableProps: () => useSanitizeOverridableProps,
103
- useSearch: () => useSearch
82
+ useSanitizeOverridableProps: () => useSanitizeOverridableProps
104
83
  });
105
84
  module.exports = __toCommonJS(index_exports);
106
85
 
@@ -113,6 +92,7 @@ var import_editor_elements_panel2 = require("@elementor/editor-elements-panel");
113
92
  var import_editor_styles_repository2 = require("@elementor/editor-styles-repository");
114
93
  var import_editor_v1_adapters13 = require("@elementor/editor-v1-adapters");
115
94
  var import_store44 = require("@elementor/store");
95
+ var import_utils12 = require("@elementor/utils");
116
96
  var import_i18n33 = require("@wordpress/i18n");
117
97
 
118
98
  // src/component-instance-transformer.ts
@@ -5997,6 +5977,7 @@ function load(result) {
5997
5977
  }
5998
5978
 
5999
5979
  // src/init.ts
5980
+ var PRO_EXTENDED_MIGRATION_VERSION = "4.0.0";
6000
5981
  function init() {
6001
5982
  import_editor_styles_repository2.stylesRepository.register(componentsStylesProvider);
6002
5983
  (0, import_store44.__registerSlice)(slice);
@@ -6036,7 +6017,9 @@ function init() {
6036
6017
  import_editor_canvas8.settingsTransformersRegistry.register("override", componentOverrideTransformer);
6037
6018
  initCircularNestingPrevention();
6038
6019
  initLoadComponentDataAfterInstanceAdded();
6039
- initExtended();
6020
+ if (!!window.elementorPro && !(0, import_utils12.isProAtLeast)(PRO_EXTENDED_MIGRATION_VERSION)) {
6021
+ initExtended();
6022
+ }
6040
6023
  }
6041
6024
  // Annotate the CommonJS export names for ESM import in node:
6042
6025
  0 && (module.exports = {
@@ -6069,37 +6052,17 @@ function init() {
6069
6052
  getPropTypeForComponentOverride,
6070
6053
  init,
6071
6054
  isComponentInstance,
6072
- isExposedPropValid,
6073
6055
  loadComponentsAssets,
6074
6056
  onElementDrop,
6075
6057
  publishDraftComponentsInPageBeforeSave,
6076
6058
  resolveOverridePropValue,
6077
- selectArchivedThisSession,
6078
- selectComponent,
6079
- selectComponentByUid,
6080
- selectComponents,
6081
- selectCreatedThisSession,
6082
- selectCurrentComponent,
6083
- selectCurrentComponentId,
6084
- selectData,
6085
- selectFlatStyles,
6086
- selectIsOverridablePropsLoaded,
6087
- selectLoadIsError,
6088
- selectLoadIsPending,
6089
6059
  selectOverridableProps,
6090
6060
  selectPath,
6091
- selectStyles,
6092
- selectUnpublishedComponents,
6093
- selectUpdatedComponentNames,
6094
6061
  slice,
6095
6062
  switchToComponent,
6096
6063
  trackComponentEvent,
6097
6064
  updateOverridableProp,
6098
- useComponent,
6099
- useComponentId,
6100
6065
  useComponentInstanceElement,
6101
- useComponentInstanceOverrides,
6102
- useComponentOverridableProps,
6103
6066
  useComponents,
6104
6067
  useComponentsPermissions,
6105
6068
  useCurrentComponent,
@@ -6109,7 +6072,6 @@ function init() {
6109
6072
  useIsSanitizedComponent,
6110
6073
  useOverridablePropValue,
6111
6074
  useOverridableProps,
6112
- useSanitizeOverridableProps,
6113
- useSearch
6075
+ useSanitizeOverridableProps
6114
6076
  });
6115
6077
  //# sourceMappingURL=index.js.map