@wordpress/dataviews 17.0.0 → 17.0.1
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/build-wp/index.js +90 -29
- package/package.json +4 -4
package/build-wp/index.js
CHANGED
|
@@ -2693,6 +2693,24 @@ var Content2 = forwardRef(
|
|
|
2693
2693
|
}
|
|
2694
2694
|
);
|
|
2695
2695
|
|
|
2696
|
+
// ../ui/build-module/utils/render-slot-with-children.mjs
|
|
2697
|
+
function renderSlotWithChildren(slot, defaultSlot, children) {
|
|
2698
|
+
return cloneElement(slot ?? defaultSlot, { children });
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2701
|
+
// ../theme/build-module/index.mjs
|
|
2702
|
+
var build_module_exports = {};
|
|
2703
|
+
__export(build_module_exports, {
|
|
2704
|
+
ThemeProvider: () => ThemeProvider,
|
|
2705
|
+
privateApis: () => privateApis
|
|
2706
|
+
});
|
|
2707
|
+
|
|
2708
|
+
// ../theme/build-module/lock-unlock.mjs
|
|
2709
|
+
var { lock: lock2, unlock: unlock2 } = __dangerousOptInToUnstableAPIsOnlyForCoreModules(
|
|
2710
|
+
"I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.",
|
|
2711
|
+
"@wordpress/theme"
|
|
2712
|
+
);
|
|
2713
|
+
|
|
2696
2714
|
// ../theme/build-module/context.mjs
|
|
2697
2715
|
var ThemeContext = createContext({
|
|
2698
2716
|
resolvedSettings: {
|
|
@@ -4122,10 +4140,53 @@ var ThemeProvider = ({
|
|
|
4122
4140
|
);
|
|
4123
4141
|
};
|
|
4124
4142
|
|
|
4125
|
-
// ../
|
|
4126
|
-
function
|
|
4127
|
-
|
|
4143
|
+
// ../theme/build-module/private-apis.mjs
|
|
4144
|
+
function warnPrivateApi(apiName, options2 = {}) {
|
|
4145
|
+
deprecated(`\`privateApis.${apiName}\` from \`@wordpress/theme\``, {
|
|
4146
|
+
since: "7.1",
|
|
4147
|
+
version: "7.3",
|
|
4148
|
+
...options2
|
|
4149
|
+
});
|
|
4128
4150
|
}
|
|
4151
|
+
var privateApis = {};
|
|
4152
|
+
lock2(privateApis, {
|
|
4153
|
+
get ThemeProvider() {
|
|
4154
|
+
warnPrivateApi("ThemeProvider", {
|
|
4155
|
+
alternative: "`ThemeProvider` from `@wordpress/theme`"
|
|
4156
|
+
});
|
|
4157
|
+
return ThemeProvider;
|
|
4158
|
+
},
|
|
4159
|
+
get useThemeProviderStyles() {
|
|
4160
|
+
warnPrivateApi("useThemeProviderStyles", {
|
|
4161
|
+
alternative: "`ThemeProvider` from `@wordpress/theme` for supported theming use cases",
|
|
4162
|
+
hint: "`useThemeProviderStyles` has no public replacement."
|
|
4163
|
+
});
|
|
4164
|
+
return useThemeProviderStyles;
|
|
4165
|
+
}
|
|
4166
|
+
});
|
|
4167
|
+
|
|
4168
|
+
// ../ui/build-module/lock-unlock.mjs
|
|
4169
|
+
var { lock: lock3, unlock: unlock3 } = __dangerousOptInToUnstableAPIsOnlyForCoreModules(
|
|
4170
|
+
"I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.",
|
|
4171
|
+
"@wordpress/ui"
|
|
4172
|
+
);
|
|
4173
|
+
|
|
4174
|
+
// ../ui/build-module/utils/theme-provider.mjs
|
|
4175
|
+
function getThemeProvider() {
|
|
4176
|
+
const themePackage = build_module_exports;
|
|
4177
|
+
if (themePackage.ThemeProvider) {
|
|
4178
|
+
return themePackage.ThemeProvider;
|
|
4179
|
+
}
|
|
4180
|
+
if (!themePackage.privateApis) {
|
|
4181
|
+
throw new Error(
|
|
4182
|
+
"@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`."
|
|
4183
|
+
);
|
|
4184
|
+
}
|
|
4185
|
+
return unlock3(
|
|
4186
|
+
themePackage.privateApis
|
|
4187
|
+
).ThemeProvider;
|
|
4188
|
+
}
|
|
4189
|
+
var ThemeProvider2 = getThemeProvider();
|
|
4129
4190
|
|
|
4130
4191
|
// ../ui/build-module/stack/stack.mjs
|
|
4131
4192
|
import { useRender as useRender7, mergeProps as mergeProps7 } from "@base-ui/react";
|
|
@@ -4607,7 +4668,7 @@ if (typeof process === "undefined" || true) {
|
|
|
4607
4668
|
var style_default12 = { "positioner": "_480b748dd3510e64__positioner", "popup": "_50096b232db7709d__popup" };
|
|
4608
4669
|
var POPUP_COLOR = { background: "#1e1e1e" };
|
|
4609
4670
|
var Popup = forwardRef(function TooltipPopup({ portal, positioner, children, className: className2, ...props }, ref) {
|
|
4610
|
-
const popupContent = /* @__PURE__ */ jsx50(
|
|
4671
|
+
const popupContent = /* @__PURE__ */ jsx50(ThemeProvider2, { color: POPUP_COLOR, children: /* @__PURE__ */ jsx50(
|
|
4611
4672
|
_Tooltip3.Popup,
|
|
4612
4673
|
{
|
|
4613
4674
|
ref,
|
|
@@ -9493,8 +9554,8 @@ var popover_default = Popover;
|
|
|
9493
9554
|
|
|
9494
9555
|
// ../components/build-module/lock-unlock.mjs
|
|
9495
9556
|
var {
|
|
9496
|
-
lock:
|
|
9497
|
-
unlock:
|
|
9557
|
+
lock: lock4,
|
|
9558
|
+
unlock: unlock4
|
|
9498
9559
|
} = __dangerousOptInToUnstableAPIsOnlyForCoreModules("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.", "@wordpress/components");
|
|
9499
9560
|
|
|
9500
9561
|
// ../components/build-module/toggle-group-control/toggle-group-control/styles.mjs
|
|
@@ -16062,8 +16123,8 @@ var ValidatedToggleGroupControl = forwardRef(UnforwardedValidatedToggleGroupCont
|
|
|
16062
16123
|
ValidatedToggleGroupControl.displayName = "ValidatedToggleGroupControl";
|
|
16063
16124
|
|
|
16064
16125
|
// ../components/build-module/private-apis.mjs
|
|
16065
|
-
var
|
|
16066
|
-
|
|
16126
|
+
var privateApis2 = {};
|
|
16127
|
+
lock4(privateApis2, {
|
|
16067
16128
|
__experimentalPopoverLegacyPositionToPlacement: positionToPlacement,
|
|
16068
16129
|
ComponentsContext,
|
|
16069
16130
|
Tabs,
|
|
@@ -16131,14 +16192,14 @@ import { __ as __19 } from "@wordpress/i18n";
|
|
|
16131
16192
|
import { useRegistry } from "@wordpress/data";
|
|
16132
16193
|
|
|
16133
16194
|
// src/lock-unlock.ts
|
|
16134
|
-
var { lock:
|
|
16195
|
+
var { lock: lock5, unlock: unlock5 } = __dangerousOptInToUnstableAPIsOnlyForCoreModules(
|
|
16135
16196
|
"I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.",
|
|
16136
16197
|
"@wordpress/dataviews"
|
|
16137
16198
|
);
|
|
16138
16199
|
|
|
16139
16200
|
// src/components/dataviews-item-actions/index.tsx
|
|
16140
16201
|
import { Fragment as Fragment2, jsx as jsx55, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
16141
|
-
var { Menu: Menu4, kebabCase: kebabCase3 } =
|
|
16202
|
+
var { Menu: Menu4, kebabCase: kebabCase3 } = unlock5(privateApis2);
|
|
16142
16203
|
function ButtonTrigger({
|
|
16143
16204
|
action,
|
|
16144
16205
|
onClick,
|
|
@@ -16759,7 +16820,7 @@ function getHideableFields(view, fields) {
|
|
|
16759
16820
|
|
|
16760
16821
|
// src/components/dataviews-layouts/table/column-header-menu.tsx
|
|
16761
16822
|
import { jsx as jsx57, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
16762
|
-
var { Menu: Menu5 } =
|
|
16823
|
+
var { Menu: Menu5 } = unlock5(privateApis2);
|
|
16763
16824
|
function WithMenuSeparators({ children }) {
|
|
16764
16825
|
return Children.toArray(children).filter(Boolean).map((child, i) => /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
16765
16826
|
i > 0 && /* @__PURE__ */ jsx57(Menu5.Separator, {}),
|
|
@@ -17887,7 +17948,7 @@ function usePlaceholdersNeeded(data, isInfiniteScroll, gridColumns) {
|
|
|
17887
17948
|
|
|
17888
17949
|
// src/components/dataviews-layouts/grid/composite-grid.tsx
|
|
17889
17950
|
import { Fragment as Fragment5, jsx as jsx64, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
17890
|
-
var { Badge: WCBadge } =
|
|
17951
|
+
var { Badge: WCBadge } = unlock5(privateApis2);
|
|
17891
17952
|
function chunk(array, size3) {
|
|
17892
17953
|
const chunks = [];
|
|
17893
17954
|
for (let i = 0, j = array.length; i < j; i += size3) {
|
|
@@ -18447,7 +18508,7 @@ import clsx41 from "clsx";
|
|
|
18447
18508
|
import { __ as __27, sprintf as sprintf9 } from "@wordpress/i18n";
|
|
18448
18509
|
import { useRegistry as useRegistry3 } from "@wordpress/data";
|
|
18449
18510
|
import { Fragment as Fragment7, jsx as jsx66, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
18450
|
-
var { Menu: Menu6 } =
|
|
18511
|
+
var { Menu: Menu6 } = unlock5(privateApis2);
|
|
18451
18512
|
function generateItemWrapperCompositeId(idPrefix) {
|
|
18452
18513
|
return `${idPrefix}-item-wrapper`;
|
|
18453
18514
|
}
|
|
@@ -19617,7 +19678,7 @@ function DataViewsPickerFooter() {
|
|
|
19617
19678
|
|
|
19618
19679
|
// src/components/dataviews-layouts/picker-grid/index.tsx
|
|
19619
19680
|
import { Fragment as Fragment9, jsx as jsx72, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
19620
|
-
var { Badge: WCBadge2 } =
|
|
19681
|
+
var { Badge: WCBadge2 } = unlock5(privateApis2);
|
|
19621
19682
|
function GridItem3({
|
|
19622
19683
|
view,
|
|
19623
19684
|
multiselect,
|
|
@@ -22170,7 +22231,7 @@ function Filter({
|
|
|
22170
22231
|
// src/components/dataviews-filters/add-filter.tsx
|
|
22171
22232
|
import { __ as __40 } from "@wordpress/i18n";
|
|
22172
22233
|
import { jsx as jsx82, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
22173
|
-
var { Menu: Menu7 } =
|
|
22234
|
+
var { Menu: Menu7 } = unlock5(privateApis2);
|
|
22174
22235
|
function AddFilterMenu({
|
|
22175
22236
|
filters,
|
|
22176
22237
|
view,
|
|
@@ -22636,7 +22697,7 @@ var dataviews_search_default = DataViewsSearch;
|
|
|
22636
22697
|
// src/components/dataviews-view-config/index.tsx
|
|
22637
22698
|
import { __ as __45, _x as _x4 } from "@wordpress/i18n";
|
|
22638
22699
|
import { Fragment as Fragment14, jsx as jsx90, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
22639
|
-
var { Menu: Menu8 } =
|
|
22700
|
+
var { Menu: Menu8 } = unlock5(privateApis2);
|
|
22640
22701
|
var DATAVIEWS_CONFIG_POPOVER_PROPS = {
|
|
22641
22702
|
className: "dataviews-config__popover",
|
|
22642
22703
|
placement: "bottom-end",
|
|
@@ -22975,7 +23036,7 @@ function getCustomValidity(isValid, validity) {
|
|
|
22975
23036
|
|
|
22976
23037
|
// src/components/dataform-controls/checkbox.tsx
|
|
22977
23038
|
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
22978
|
-
var { ValidatedCheckboxControl: ValidatedCheckboxControl2 } =
|
|
23039
|
+
var { ValidatedCheckboxControl: ValidatedCheckboxControl2 } = unlock5(privateApis2);
|
|
22979
23040
|
function Checkbox({
|
|
22980
23041
|
field,
|
|
22981
23042
|
onChange,
|
|
@@ -23009,7 +23070,7 @@ function Checkbox({
|
|
|
23009
23070
|
|
|
23010
23071
|
// src/components/dataform-controls/combobox.tsx
|
|
23011
23072
|
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
23012
|
-
var { ValidatedComboboxControl: ValidatedComboboxControl2 } =
|
|
23073
|
+
var { ValidatedComboboxControl: ValidatedComboboxControl2 } = unlock5(privateApis2);
|
|
23013
23074
|
function Combobox2({
|
|
23014
23075
|
data,
|
|
23015
23076
|
field,
|
|
@@ -23177,7 +23238,7 @@ function parseDateTime(dateTimeString) {
|
|
|
23177
23238
|
|
|
23178
23239
|
// src/components/dataform-controls/datetime.tsx
|
|
23179
23240
|
import { jsx as jsx94, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
23180
|
-
var { DateCalendar: DateCalendar2, ValidatedInputControl: ValidatedInputControl2 } =
|
|
23241
|
+
var { DateCalendar: DateCalendar2, ValidatedInputControl: ValidatedInputControl2 } = unlock5(privateApis2);
|
|
23181
23242
|
var formatDateTime = (value) => {
|
|
23182
23243
|
if (!value) {
|
|
23183
23244
|
return "";
|
|
@@ -23370,7 +23431,7 @@ import {
|
|
|
23370
23431
|
import { __ as __48 } from "@wordpress/i18n";
|
|
23371
23432
|
import { getDate as getDate4, getSettings as getSettings2 } from "@wordpress/date";
|
|
23372
23433
|
import { jsx as jsx95, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
23373
|
-
var { DateCalendar: DateCalendar3, DateRangeCalendar: DateRangeCalendar2 } =
|
|
23434
|
+
var { DateCalendar: DateCalendar3, DateRangeCalendar: DateRangeCalendar2 } = unlock5(privateApis2);
|
|
23374
23435
|
var DATE_PRESETS = [
|
|
23375
23436
|
{
|
|
23376
23437
|
id: "today",
|
|
@@ -24005,7 +24066,7 @@ function DateControl({
|
|
|
24005
24066
|
|
|
24006
24067
|
// src/components/dataform-controls/select.tsx
|
|
24007
24068
|
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
24008
|
-
var { ValidatedSelectControl: ValidatedSelectControl2 } =
|
|
24069
|
+
var { ValidatedSelectControl: ValidatedSelectControl2 } = unlock5(privateApis2);
|
|
24009
24070
|
function Select2({
|
|
24010
24071
|
data,
|
|
24011
24072
|
field,
|
|
@@ -24065,7 +24126,7 @@ function AdaptiveSelect(props) {
|
|
|
24065
24126
|
|
|
24066
24127
|
// src/components/dataform-controls/utils/validated-input.tsx
|
|
24067
24128
|
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
24068
|
-
var { ValidatedInputControl: ValidatedInputControl3 } =
|
|
24129
|
+
var { ValidatedInputControl: ValidatedInputControl3 } = unlock5(privateApis2);
|
|
24069
24130
|
function ValidatedText({
|
|
24070
24131
|
data,
|
|
24071
24132
|
field,
|
|
@@ -24197,7 +24258,7 @@ function Url({
|
|
|
24197
24258
|
// src/components/dataform-controls/utils/validated-number.tsx
|
|
24198
24259
|
import { __ as __49 } from "@wordpress/i18n";
|
|
24199
24260
|
import { jsx as jsx102, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
24200
|
-
var { ValidatedNumberControl: ValidatedNumberControl2 } =
|
|
24261
|
+
var { ValidatedNumberControl: ValidatedNumberControl2 } = unlock5(privateApis2);
|
|
24201
24262
|
function toNumberOrEmpty(value) {
|
|
24202
24263
|
if (value === "" || value === void 0) {
|
|
24203
24264
|
return "";
|
|
@@ -24343,7 +24404,7 @@ function Number2(props) {
|
|
|
24343
24404
|
|
|
24344
24405
|
// src/components/dataform-controls/radio.tsx
|
|
24345
24406
|
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
24346
|
-
var { ValidatedRadioControl: ValidatedRadioControl2 } =
|
|
24407
|
+
var { ValidatedRadioControl: ValidatedRadioControl2 } = unlock5(privateApis2);
|
|
24347
24408
|
function Radio2({
|
|
24348
24409
|
data,
|
|
24349
24410
|
field,
|
|
@@ -24414,7 +24475,7 @@ function Text5({
|
|
|
24414
24475
|
|
|
24415
24476
|
// src/components/dataform-controls/toggle.tsx
|
|
24416
24477
|
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
24417
|
-
var { ValidatedToggleControl: ValidatedToggleControl2 } =
|
|
24478
|
+
var { ValidatedToggleControl: ValidatedToggleControl2 } = unlock5(privateApis2);
|
|
24418
24479
|
function Toggle({
|
|
24419
24480
|
field,
|
|
24420
24481
|
onChange,
|
|
@@ -24448,7 +24509,7 @@ function Toggle({
|
|
|
24448
24509
|
|
|
24449
24510
|
// src/components/dataform-controls/textarea.tsx
|
|
24450
24511
|
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
24451
|
-
var { ValidatedTextareaControl: ValidatedTextareaControl2 } =
|
|
24512
|
+
var { ValidatedTextareaControl: ValidatedTextareaControl2 } = unlock5(privateApis2);
|
|
24452
24513
|
function Textarea({
|
|
24453
24514
|
data,
|
|
24454
24515
|
field,
|
|
@@ -24489,7 +24550,7 @@ function Textarea({
|
|
|
24489
24550
|
|
|
24490
24551
|
// src/components/dataform-controls/toggle-group.tsx
|
|
24491
24552
|
import { jsx as jsx109 } from "react/jsx-runtime";
|
|
24492
|
-
var { ValidatedToggleGroupControl: ValidatedToggleGroupControl2 } =
|
|
24553
|
+
var { ValidatedToggleGroupControl: ValidatedToggleGroupControl2 } = unlock5(privateApis2);
|
|
24493
24554
|
function ToggleGroup({
|
|
24494
24555
|
data,
|
|
24495
24556
|
field,
|
|
@@ -24544,7 +24605,7 @@ function ToggleGroup({
|
|
|
24544
24605
|
|
|
24545
24606
|
// src/components/dataform-controls/array.tsx
|
|
24546
24607
|
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
24547
|
-
var { ValidatedFormTokenField: ValidatedFormTokenField2 } =
|
|
24608
|
+
var { ValidatedFormTokenField: ValidatedFormTokenField2 } = unlock5(privateApis2);
|
|
24548
24609
|
function ArrayControl({
|
|
24549
24610
|
data,
|
|
24550
24611
|
field,
|
|
@@ -24635,7 +24696,7 @@ function ArrayControl({
|
|
|
24635
24696
|
import { colord as colord7 } from "colord";
|
|
24636
24697
|
import { __ as __50 } from "@wordpress/i18n";
|
|
24637
24698
|
import { jsx as jsx111 } from "react/jsx-runtime";
|
|
24638
|
-
var { ValidatedInputControl: ValidatedInputControl4 } =
|
|
24699
|
+
var { ValidatedInputControl: ValidatedInputControl4 } = unlock5(privateApis2);
|
|
24639
24700
|
var ColorPickerDropdown = ({
|
|
24640
24701
|
color,
|
|
24641
24702
|
onColorChange,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/dataviews",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.1",
|
|
4
4
|
"description": "DataViews is a component that provides an API to render datasets using different types of layouts (table, grid, list, etc.).",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@ariakit/react": "^0.4.29",
|
|
55
55
|
"@wordpress/base-styles": "^10.1.0",
|
|
56
|
-
"@wordpress/components": "^36.0.
|
|
56
|
+
"@wordpress/components": "^36.0.1",
|
|
57
57
|
"@wordpress/compose": "^8.2.0",
|
|
58
58
|
"@wordpress/data": "^10.49.0",
|
|
59
59
|
"@wordpress/date": "^5.49.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@wordpress/keycodes": "^4.49.0",
|
|
65
65
|
"@wordpress/primitives": "^4.49.0",
|
|
66
66
|
"@wordpress/private-apis": "^1.49.0",
|
|
67
|
-
"@wordpress/ui": "^0.16.
|
|
67
|
+
"@wordpress/ui": "^0.16.1",
|
|
68
68
|
"@wordpress/warning": "^3.49.0",
|
|
69
69
|
"clsx": "^2.1.1",
|
|
70
70
|
"colord": "^2.9.3",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"scripts": {
|
|
101
101
|
"build:wp": "node build.cjs"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "9a75283890dda96ae1d37197b5070fae8c9cf66f"
|
|
104
104
|
}
|