Skip to content

Commit

Permalink
Add 'use client' for NextJS compatibility (#25883)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpreyskurantov authored Oct 25, 2023
1 parent 79a44db commit 612755b
Show file tree
Hide file tree
Showing 80 changed files with 83 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@types/shelljs": "0.8.13",
"cheerio": "1.0.0-rc.10",
"codelyzer": "^6.0.2",
"devextreme-internal-tools": "12.0.0-beta.8",
"devextreme-internal-tools": "12.0.0-beta.9",
"eslint": "8.47.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-airbnb-typescript": "17.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/accordion.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
export { ExplicitTypes } from "devextreme/ui/accordion";
import dxAccordion, {
Properties
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/action-sheet.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
export { ExplicitTypes } from "devextreme/ui/action_sheet";
import dxActionSheet, {
Properties
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/autocomplete.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxAutocomplete, {
Properties
} from "devextreme/ui/autocomplete";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/bar-gauge.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxBarGauge, {
Properties
} from "devextreme/viz/bar_gauge";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/box.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
export { ExplicitTypes } from "devextreme/ui/box";
import dxBox, {
Properties
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/bullet.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxBullet, {
Properties
} from "devextreme/viz/bullet";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/button-group.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxButtonGroup, {
Properties
} from "devextreme/ui/button_group";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/button.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxButton, {
Properties
} from "devextreme/ui/button";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/calendar.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxCalendar, {
Properties
} from "devextreme/ui/calendar";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/chart.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxChart, {
Properties
} from "devextreme/viz/chart";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/check-box.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxCheckBox, {
Properties
} from "devextreme/ui/check_box";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/circular-gauge.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxCircularGauge, {
Properties
} from "devextreme/viz/circular_gauge";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/color-box.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxColorBox, {
Properties
} from "devextreme/ui/color_box";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/context-menu.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
export { ExplicitTypes } from "devextreme/ui/context_menu";
import dxContextMenu, {
Properties
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/data-grid.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
export { ExplicitTypes } from "devextreme/ui/data_grid";
import dxDataGrid, {
Properties
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/date-box.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxDateBox, {
Properties
} from "devextreme/ui/date_box";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/date-range-box.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxDateRangeBox, {
Properties
} from "devextreme/ui/date_range_box";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/defer-rendering.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxDeferRendering, {
Properties
} from "devextreme/ui/defer_rendering";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/diagram.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxDiagram, {
Properties
} from "devextreme/ui/diagram";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/draggable.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxDraggable, {
Properties
} from "devextreme/ui/draggable";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/drawer.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxDrawer, {
Properties
} from "devextreme/ui/drawer";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/drop-down-box.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxDropDownBox, {
Properties
} from "devextreme/ui/drop_down_box";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/drop-down-button.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxDropDownButton, {
Properties
} from "devextreme/ui/drop_down_button";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/file-manager.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxFileManager, {
Properties
} from "devextreme/ui/file_manager";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/file-uploader.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxFileUploader, {
Properties
} from "devextreme/ui/file_uploader";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/filter-builder.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxFilterBuilder, {
Properties
} from "devextreme/ui/filter_builder";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/form.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxForm, {
Properties
} from "devextreme/ui/form";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/funnel.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxFunnel, {
Properties
} from "devextreme/viz/funnel";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/gallery.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
export { ExplicitTypes } from "devextreme/ui/gallery";
import dxGallery, {
Properties
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/gantt.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxGantt, {
Properties
} from "devextreme/ui/gantt";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/html-editor.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxHtmlEditor, {
Properties
} from "devextreme/ui/html_editor";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/linear-gauge.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxLinearGauge, {
Properties
} from "devextreme/viz/linear_gauge";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/list.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
export { ExplicitTypes } from "devextreme/ui/list";
import dxList, {
Properties
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/load-indicator.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxLoadIndicator, {
Properties
} from "devextreme/ui/load_indicator";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/load-panel.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxLoadPanel, {
Properties
} from "devextreme/ui/load_panel";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/lookup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxLookup, {
Properties
} from "devextreme/ui/lookup";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/map.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxMap, {
Properties
} from "devextreme/ui/map";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/menu.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
export { ExplicitTypes } from "devextreme/ui/menu";
import dxMenu, {
Properties
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/multi-view.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
export { ExplicitTypes } from "devextreme/ui/multi_view";
import dxMultiView, {
Properties
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/number-box.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxNumberBox, {
Properties
} from "devextreme/ui/number_box";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/pie-chart.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxPieChart, {
Properties
} from "devextreme/viz/pie_chart";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/pivot-grid-field-chooser.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxPivotGridFieldChooser, {
Properties
} from "devextreme/ui/pivot_grid_field_chooser";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/pivot-grid.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxPivotGrid, {
Properties
} from "devextreme/ui/pivot_grid";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/polar-chart.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxPolarChart, {
Properties
} from "devextreme/viz/polar_chart";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/popover.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxPopover, {
Properties
} from "devextreme/ui/popover";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/popup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxPopup, {
Properties
} from "devextreme/ui/popup";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/progress-bar.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxProgressBar, {
Properties
} from "devextreme/ui/progress_bar";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/radio-group.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxRadioGroup, {
Properties
} from "devextreme/ui/radio_group";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/range-selector.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxRangeSelector, {
Properties
} from "devextreme/viz/range_selector";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/range-slider.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxRangeSlider, {
Properties
} from "devextreme/ui/range_slider";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/recurrence-editor.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxRecurrenceEditor, {
Properties
} from "devextreme/ui/recurrence_editor";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/resizable.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxResizable, {
Properties
} from "devextreme/ui/resizable";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/responsive-box.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
export { ExplicitTypes } from "devextreme/ui/responsive_box";
import dxResponsiveBox, {
Properties
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/sankey.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxSankey, {
Properties
} from "devextreme/viz/sankey";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/scheduler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxScheduler, {
Properties
} from "devextreme/ui/scheduler";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/scroll-view.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxScrollView, {
Properties
} from "devextreme/ui/scroll_view";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/select-box.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxSelectBox, {
Properties
} from "devextreme/ui/select_box";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/slider.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxSlider, {
Properties
} from "devextreme/ui/slider";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/sortable.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxSortable, {
Properties
} from "devextreme/ui/sortable";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/sparkline.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxSparkline, {
Properties
} from "devextreme/viz/sparkline";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/speed-dial-action.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxSpeedDialAction, {
Properties
} from "devextreme/ui/speed_dial_action";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/switch.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxSwitch, {
Properties
} from "devextreme/ui/switch";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/tab-panel.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
export { ExplicitTypes } from "devextreme/ui/tab_panel";
import dxTabPanel, {
Properties
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/tabs.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
export { ExplicitTypes } from "devextreme/ui/tabs";
import dxTabs, {
Properties
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/tag-box.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxTagBox, {
Properties
} from "devextreme/ui/tag_box";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/text-area.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxTextArea, {
Properties
} from "devextreme/ui/text_area";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/text-box.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxTextBox, {
Properties
} from "devextreme/ui/text_box";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/tile-view.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
export { ExplicitTypes } from "devextreme/ui/tile_view";
import dxTileView, {
Properties
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/toast.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxToast, {
Properties
} from "devextreme/ui/toast";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/toolbar.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
export { ExplicitTypes } from "devextreme/ui/toolbar";
import dxToolbar, {
Properties
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/tooltip.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxTooltip, {
Properties
} from "devextreme/ui/tooltip";
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/tree-list.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
export { ExplicitTypes } from "devextreme/ui/tree_list";
import dxTreeList, {
Properties
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-react/src/tree-map.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import dxTreeMap, {
Properties
} from "devextreme/viz/tree_map";
Expand Down
Loading

0 comments on commit 612755b

Please sign in to comment.