@elementor/editor-controls 4.1.0-829 → 4.1.0-830

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elementor/editor-controls",
3
3
  "description": "This package contains the controls model and utils for the Elementor editor",
4
- "version": "4.1.0-829",
4
+ "version": "4.1.0-830",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -40,22 +40,22 @@
40
40
  "dev": "tsup --config=../../tsup.dev.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@elementor/editor-current-user": "4.1.0-829",
44
- "@elementor/editor-elements": "4.1.0-829",
45
- "@elementor/editor-props": "4.1.0-829",
46
- "@elementor/editor-responsive": "4.1.0-829",
47
- "@elementor/editor-ui": "4.1.0-829",
48
- "@elementor/editor-v1-adapters": "4.1.0-829",
49
- "@elementor/env": "4.1.0-829",
50
- "@elementor/events": "4.1.0-829",
51
- "@elementor/http-client": "4.1.0-829",
43
+ "@elementor/editor-current-user": "4.1.0-830",
44
+ "@elementor/editor-elements": "4.1.0-830",
45
+ "@elementor/editor-props": "4.1.0-830",
46
+ "@elementor/editor-responsive": "4.1.0-830",
47
+ "@elementor/editor-ui": "4.1.0-830",
48
+ "@elementor/editor-v1-adapters": "4.1.0-830",
49
+ "@elementor/env": "4.1.0-830",
50
+ "@elementor/events": "4.1.0-830",
51
+ "@elementor/http-client": "4.1.0-830",
52
52
  "@elementor/icons": "^1.68.0",
53
- "@elementor/locations": "4.1.0-829",
54
- "@elementor/query": "4.1.0-829",
55
- "@elementor/session": "4.1.0-829",
53
+ "@elementor/locations": "4.1.0-830",
54
+ "@elementor/query": "4.1.0-830",
55
+ "@elementor/session": "4.1.0-830",
56
56
  "@elementor/ui": "1.37.5",
57
- "@elementor/utils": "4.1.0-829",
58
- "@elementor/wp-media": "4.1.0-829",
57
+ "@elementor/utils": "4.1.0-830",
58
+ "@elementor/wp-media": "4.1.0-830",
59
59
  "@monaco-editor/react": "^4.7.0",
60
60
  "@tiptap/extension-bold": "^3.11.1",
61
61
  "@tiptap/extension-document": "^3.11.1",
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ import { InfoAlert } from '@elementor/editor-ui';
3
+ import { Grid } from '@elementor/ui';
4
+ import { __ } from '@wordpress/i18n';
5
+
6
+ import { ControlFormLabel } from '../components/control-form-label';
7
+ import { createControl } from '../create-control';
8
+ import { SelectControl, type SelectOption } from './select-control';
9
+
10
+ type Props = {
11
+ label?: string;
12
+ options: SelectOption[];
13
+ };
14
+
15
+ export const AttachmentTypeControl = createControl( ( { label, options }: Props ) => {
16
+ return (
17
+ <Grid container direction="column" gap={ 1 }>
18
+ { label && (
19
+ <Grid item>
20
+ <ControlFormLabel>{ label }</ControlFormLabel>
21
+ </Grid>
22
+ ) }
23
+ <Grid item>
24
+ <SelectControl options={ options } />
25
+ </Grid>
26
+ <Grid item>
27
+ <InfoAlert>
28
+ { __(
29
+ 'Linked uploads are saved to the server. Direct attachments will not appear under Submissions.',
30
+ 'elementor'
31
+ ) }
32
+ </InfoAlert>
33
+ </Grid>
34
+ </Grid>
35
+ );
36
+ } );
package/src/index.ts CHANGED
@@ -40,6 +40,7 @@ export { DateTimeControl } from './controls/date-time-control';
40
40
  export { DateRangeControl } from './controls/date-range-control';
41
41
  export { InlineEditingControl } from './controls/inline-editing-control';
42
42
  export { EmailFormActionControl } from './controls/email-form-action-control';
43
+ export { AttachmentTypeControl } from './controls/attachment-type-control';
43
44
  export { UnstableSizeControl } from './controls/size-control/unstable-size-control';
44
45
 
45
46
  // components