File tree Expand file tree Collapse file tree 10 files changed +12
-21
lines changed
app/code/Magento/PageBuilder/view/adminhtml/web/ts/js Expand file tree Collapse file tree 10 files changed +12
-21
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import events from "Magento_PageBuilder/js/events";
9
9
import Config from "../../config" ;
10
10
import HideShowOption from "../../content-type-menu/hide-show-option" ;
11
11
import { OptionsInterface } from "../../content-type-menu/option.types" ;
12
- import { DataObject } from "../../data-store" ;
13
12
import Uploader from "../../uploader" ;
14
13
import WysiwygFactory from "../../wysiwyg/factory" ;
15
14
import WysiwygInterface from "../../wysiwyg/wysiwyg-interface" ;
@@ -19,6 +18,7 @@ import BasePreview from "../preview";
19
18
* @api
20
19
*/
21
20
export default class Preview extends BasePreview {
21
+ public buttonPlaceholder : string = $t ( "Edit Button Text" ) ;
22
22
23
23
/**
24
24
* Wysiwyg instance
@@ -35,8 +35,6 @@ export default class Preview extends BasePreview {
35
35
*/
36
36
private textarea : HTMLTextAreaElement ;
37
37
38
- private buttonPlaceholder : string = $t ( "Edit Button Text" ) ;
39
-
40
38
/**
41
39
* Return an array of options
42
40
*
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import BasePreview from "../preview";
15
15
* @api
16
16
*/
17
17
export default class Preview extends BasePreview {
18
- private buttonPlaceholder : string = $t ( "Edit Button Text" ) ;
18
+ public buttonPlaceholder : string = $t ( "Edit Button Text" ) ;
19
19
20
20
/**
21
21
* Use the conditional remove to disable the option when the parent has a single child
Original file line number Diff line number Diff line change 6
6
import events from "Magento_PageBuilder/js/events" ;
7
7
import HideShowOption from "../../content-type-menu/hide-show-option" ;
8
8
import { OptionsInterface } from "../../content-type-menu/option.types" ;
9
- import { DataObject } from "../../data-store" ;
10
9
import Uploader from "../../uploader" ;
11
10
import BasePreview from "../preview" ;
12
11
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import ContentTypeInterface from "../../content-type";
11
11
import ContentTypeConfigInterface from "../../content-type-config.types" ;
12
12
import HideShowOption from "../../content-type-menu/hide-show-option" ;
13
13
import { OptionsInterface } from "../../content-type-menu/option.types" ;
14
- import { DataObject } from "../../data-store" ;
15
14
import ObservableUpdater from "../observable-updater" ;
16
15
import BasePreview from "../preview" ;
17
16
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import {PreviewSortableSortUpdateEventParams} from "../../binding/sortable-child
11
11
import Config from "../../config" ;
12
12
import ConditionalRemoveOption from "../../content-type-menu/conditional-remove-option" ;
13
13
import { OptionsInterface } from "../../content-type-menu/option.types" ;
14
- import { DataObject } from "../../data-store" ;
15
14
import Uploader from "../../uploader" ;
16
15
import delayUntil from "../../utils/delay-until" ;
17
16
import WysiwygFactory from "../../wysiwyg/factory" ;
@@ -24,7 +23,7 @@ import SliderPreview from "../slider/preview";
24
23
* @api
25
24
*/
26
25
export default class Preview extends BasePreview {
27
- private buttonPlaceholder : string = $t ( "Edit Button Text" ) ;
26
+ public buttonPlaceholder : string = $t ( "Edit Button Text" ) ;
28
27
/**
29
28
* Wysiwyg instance
30
29
*/
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ import HideShowOption from "../../content-type-menu/hide-show-option";
19
19
import Option from "../../content-type-menu/option" ;
20
20
import { OptionsInterface } from "../../content-type-menu/option.types" ;
21
21
import ContentTypeInterface from "../../content-type.types" ;
22
- import { DataObject } from "../../data-store" ;
23
22
import delayUntil from "../../utils/delay-until" ;
24
23
import deferred , { DeferredInterface } from "../../utils/promise-deferred" ;
25
24
import {
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
import Config from "../../config" ;
7
- import { DataObject } from "../../data-store" ;
8
7
import { decodeUrl } from "../../utils/image" ;
9
8
import { get } from "../../utils/object" ;
10
9
import { convertUrlToPathIfOtherUrlIsOnlyAPath } from "../../utils/url" ;
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import ContentTypeInterface from "../content-type";
10
10
import ContentTypeCollectionInterface from "../content-type-collection.types" ;
11
11
import createContentType from "../content-type-factory" ;
12
12
import Preview from "../content-type/preview" ;
13
- import Stage from "../stage" ;
14
13
import { hideDropIndicators , showDropIndicators } from "./drop-indicators" ;
15
14
import { getAllowedContainersClasses } from "./matrix" ;
16
15
import { moveContentType } from "./move-content-type" ;
Original file line number Diff line number Diff line change 6
6
import ko from "knockout" ;
7
7
8
8
export class Group {
9
- private hidden : KnockoutObservable < boolean > = ko . observable ( false ) ;
10
- private id : KnockoutObservable < number > = ko . observable ( ) ;
11
- private code : KnockoutObservable < string > = ko . observable ( "" ) ;
12
- private label : KnockoutObservable < string > = ko . observable ( "" ) ;
13
- private icon : KnockoutObservable < string > = ko . observable ( "" ) ;
14
- private sort : KnockoutObservable < number > = ko . observable ( ) ;
15
- private contentTypes : KnockoutObservableArray < [ any ] > = ko . observableArray ( [ ] ) ;
16
- private active : KnockoutObservable < boolean > = ko . observable ( false ) ;
17
- private stageId : string ;
9
+ public hidden : KnockoutObservable < boolean > = ko . observable ( false ) ;
10
+ public id : KnockoutObservable < number > = ko . observable ( ) ;
11
+ public code : KnockoutObservable < string > = ko . observable ( "" ) ;
12
+ public label : KnockoutObservable < string > = ko . observable ( "" ) ;
13
+ public icon : KnockoutObservable < string > = ko . observable ( "" ) ;
14
+ public sort : KnockoutObservable < number > = ko . observable ( ) ;
15
+ public contentTypes : KnockoutObservableArray < [ any ] > = ko . observableArray ( [ ] ) ;
16
+ public active : KnockoutObservable < boolean > = ko . observable ( false ) ;
17
+ public stageId : string ;
18
18
19
19
/**
20
20
* Group constructor
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import $ from "jquery";
7
7
import { AdditionalDataConfigInterface } from "../content-type-config.types" ;
8
8
import DataStore from "../data-store" ;
9
9
import loadModule from "../utils/loader" ;
10
- import Wysiwyg from "./tinymce4" ;
11
10
import WysiwygInterface , { WysiwygConstructorInterface } from "./wysiwyg-interface" ;
12
11
13
12
/**
You can’t perform that action at this time.
0 commit comments