@dotcms/react 0.0.1-beta.29 → 0.0.1-beta.30
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/index.esm.js +37 -2
- package/next.esm.js +9 -5
- package/package.json +3 -3
- package/src/lib/deprecated/components/DotEditableText/DotEditableText.d.ts +1 -0
- package/src/lib/deprecated/components/DotcmsLayout/DotcmsLayout.d.ts +1 -0
- package/src/lib/deprecated/mocks/mockPageContext.d.ts +1 -0
- package/src/lib/next/components/DotCMSEditableText/DotCMSEditableText.d.ts +1 -0
- package/web.url-search-params.size.esm.js +1085 -906
package/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { s as styleInject, i as iteratorCreateProxy, a as anObject$1, f as functionCall, c as callWithSafeIterationClosing$1, _ as _export, b as aCallable$1, g as getIteratorDirect$1, d as isPure } from './web.url-search-params.size.esm.js';
|
|
1
2
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { s as styleInject } from './web.url-search-params.size.esm.js';
|
|
3
3
|
import { useState, useEffect, createContext, useRef, useContext, createElement, forwardRef } from 'react';
|
|
4
4
|
import { isInsideEditor, initEditor, updateNavigation, destroyEditor, postMessageToEditor, CLIENT_ACTIONS, DotCmsClient, NOTIFY_CLIENT, initInlineEditing } from '@dotcms/client';
|
|
5
5
|
import { UVEEventType } from '@dotcms/types';
|
|
@@ -123,6 +123,41 @@ var css_248z = ".Column-module_col-start-1__pAqyF {\n grid-column-start: 1;\n
|
|
|
123
123
|
var styles = {"col-start-1":"Column-module_col-start-1__pAqyF","col-start-2":"Column-module_col-start-2__WwVhl","col-start-3":"Column-module_col-start-3__DAtqM","col-start-4":"Column-module_col-start-4__KAXJl","col-start-5":"Column-module_col-start-5__9yg8H","col-start-6":"Column-module_col-start-6__L9Fl1","col-start-7":"Column-module_col-start-7__7GWMg","col-start-8":"Column-module_col-start-8__VPNje","col-start-9":"Column-module_col-start-9__TQinR","col-start-10":"Column-module_col-start-10__WuD2n","col-start-11":"Column-module_col-start-11__ZYzHu","col-start-12":"Column-module_col-start-12__XupQX","col-end-1":"Column-module_col-end-1__thNVg","col-end-2":"Column-module_col-end-2__7vCsE","col-end-3":"Column-module_col-end-3__TiQJe","col-end-4":"Column-module_col-end-4__66z6K","col-end-5":"Column-module_col-end-5__MLwPh","col-end-6":"Column-module_col-end-6__dz6-q","col-end-7":"Column-module_col-end-7__Loe0Q","col-end-8":"Column-module_col-end-8__NePGi","col-end-9":"Column-module_col-end-9__V0-is","col-end-10":"Column-module_col-end-10__b-1ia","col-end-11":"Column-module_col-end-11__QroWM","col-end-12":"Column-module_col-end-12__j-YYw","col-end-13":"Column-module_col-end-13__khBAA"};
|
|
124
124
|
styleInject(css_248z);
|
|
125
125
|
|
|
126
|
+
var $ = _export;
|
|
127
|
+
var call = functionCall;
|
|
128
|
+
var aCallable = aCallable$1;
|
|
129
|
+
var anObject = anObject$1;
|
|
130
|
+
var getIteratorDirect = getIteratorDirect$1;
|
|
131
|
+
var createIteratorProxy = iteratorCreateProxy;
|
|
132
|
+
var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
|
|
133
|
+
var IS_PURE = isPure;
|
|
134
|
+
|
|
135
|
+
var IteratorProxy = createIteratorProxy(function () {
|
|
136
|
+
var iterator = this.iterator;
|
|
137
|
+
var predicate = this.predicate;
|
|
138
|
+
var next = this.next;
|
|
139
|
+
var result, done, value;
|
|
140
|
+
while (true) {
|
|
141
|
+
result = anObject(call(next, iterator));
|
|
142
|
+
done = this.done = !!result.done;
|
|
143
|
+
if (done) return;
|
|
144
|
+
value = result.value;
|
|
145
|
+
if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value;
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
// `Iterator.prototype.filter` method
|
|
150
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
151
|
+
$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
|
|
152
|
+
filter: function filter(predicate) {
|
|
153
|
+
anObject(this);
|
|
154
|
+
aCallable(predicate);
|
|
155
|
+
return new IteratorProxy(getIteratorDirect(this), {
|
|
156
|
+
predicate: predicate
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
|
|
126
161
|
const endClassMap = {
|
|
127
162
|
1: 'col-end-1',
|
|
128
163
|
2: 'col-end-2',
|
|
@@ -761,7 +796,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
761
796
|
if (null == r) return {};
|
|
762
797
|
var t = {};
|
|
763
798
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
764
|
-
if (e.
|
|
799
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
765
800
|
t[n] = r[n];
|
|
766
801
|
}
|
|
767
802
|
return t;
|
package/next.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { s as styleInject } from './web.url-search-params.size.esm.js';
|
|
1
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
3
|
import { createContext, useContext, useState, useEffect, useLayoutEffect, useRef, useMemo } from 'react';
|
|
3
|
-
import { s as styleInject } from './web.url-search-params.size.esm.js';
|
|
4
4
|
import { UVE_MODE, UVEEventType, DotCMSUVEAction } from '@dotcms/types';
|
|
5
5
|
import { getUVEState, initUVE, updateNavigation, createUVESubscription, sendMessageToUVE } from '@dotcms/uve';
|
|
6
6
|
import { DEVELOPMENT_MODE, EMPTY_CONTAINER_STYLE_REACT, getDotContentletAttributes, CUSTOM_NO_COMPONENT, getContainersData, getContentletsInContainer, getDotContainerAttributes, getColumnPositionClasses, combineClasses, __DEFAULT_TINYMCE_CONFIG__, __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__, __TINYMCE_PATH_ON_DOTCMS__, isValidBlocks } from '@dotcms/uve/internal';
|
|
@@ -614,16 +614,20 @@ const DotCMSShow = ({
|
|
|
614
614
|
const useEditableDotCMSPage = pageResponse => {
|
|
615
615
|
const [updatedPageResponse, setUpdatedPageResponse] = useState(pageResponse);
|
|
616
616
|
useEffect(() => {
|
|
617
|
-
var _pageResponse$pageAss
|
|
617
|
+
var _pageResponse$pageAss;
|
|
618
618
|
if (!getUVEState()) {
|
|
619
619
|
return;
|
|
620
620
|
}
|
|
621
|
-
const pageURI =
|
|
621
|
+
const pageURI = pageResponse == null || (_pageResponse$pageAss = pageResponse.pageAsset) == null || (_pageResponse$pageAss = _pageResponse$pageAss.page) == null ? void 0 : _pageResponse$pageAss.pageURI;
|
|
622
622
|
const {
|
|
623
623
|
destroyUVESubscriptions
|
|
624
624
|
} = initUVE(pageResponse);
|
|
625
|
-
// Update the navigation to the pageURI
|
|
626
|
-
|
|
625
|
+
// Update the navigation to the pageURI, when we have a pageURI
|
|
626
|
+
// Sometimes the page is null due to permissions, so we don't want to update the navigation
|
|
627
|
+
// And wait for the UVE to resolve the page
|
|
628
|
+
if (pageURI) {
|
|
629
|
+
updateNavigation(pageURI);
|
|
630
|
+
}
|
|
627
631
|
return () => {
|
|
628
632
|
destroyUVESubscriptions();
|
|
629
633
|
};
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcms/react",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.30",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=18",
|
|
6
6
|
"react-dom": ">=18",
|
|
7
|
-
"@dotcms/client": "0.0.1-beta.
|
|
8
|
-
"@dotcms/uve": "0.0.1-beta.
|
|
7
|
+
"@dotcms/client": "0.0.1-beta.30",
|
|
8
|
+
"@dotcms/uve": "0.0.1-beta.30",
|
|
9
9
|
"@tinymce/tinymce-react": "^6.0.0"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|