@sitecore-jss/sitecore-jss-react 22.9.0-canary.3 → 22.9.0-canary.9
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/dist/cjs/components/BYOCComponent.js +19 -9
- package/dist/cjs/components/DesignLibrary.js +17 -7
- package/dist/cjs/components/ErrorBoundary.js +17 -7
- package/dist/cjs/components/FEaaSComponent.js +19 -9
- package/dist/cjs/components/Form.js +17 -7
- package/dist/cjs/components/Link.js +17 -7
- package/dist/cjs/components/RichText.js +17 -7
- package/dist/cjs/components/VisitorIdentification.js +2 -2
- package/dist/cjs/enhancers/withComponentFactory.js +1 -2
- package/dist/cjs/enhancers/withDatasourceCheck.js +2 -2
- package/dist/cjs/enhancers/withEmptyFieldEditingComponent.js +18 -9
- package/dist/cjs/enhancers/withFieldMetadata.js +18 -9
- package/dist/cjs/enhancers/withPlaceholder.js +1 -2
- package/dist/cjs/enhancers/withSitecoreContext.js +2 -3
- package/package.json +21 -21
- package/types/ComponentBuilder.d.ts +0 -1
- package/types/components/BYOCComponent.d.ts +0 -1
- package/types/components/Date.d.ts +0 -1
- package/types/components/DefaultEmptyFieldEditingComponents.d.ts +0 -1
- package/types/components/EditFrame.d.ts +0 -1
- package/types/components/ErrorBoundary.d.ts +0 -1
- package/types/components/FieldMetadata.d.ts +0 -1
- package/types/components/File.d.ts +0 -1
- package/types/components/Form.d.ts +0 -1
- package/types/components/HiddenRendering.d.ts +0 -1
- package/types/components/Image.d.ts +1 -2
- package/types/components/Link.d.ts +0 -1
- package/types/components/MissingComponent.d.ts +0 -1
- package/types/components/Placeholder.d.ts +0 -1
- package/types/components/PlaceholderCommon.d.ts +0 -1
- package/types/components/PlaceholderMetadata.d.ts +0 -1
- package/types/components/RichText.d.ts +0 -1
- package/types/components/SitecoreContext.d.ts +0 -1
- package/types/components/Text.d.ts +0 -1
- package/types/components/VisitorIdentification.d.ts +0 -1
- package/types/components/sharedTypes.d.ts +0 -1
- package/types/enhancers/withComponentFactory.d.ts +0 -1
- package/types/enhancers/withDatasourceCheck.d.ts +0 -1
- package/types/enhancers/withEditorChromes.d.ts +1 -2
- package/types/enhancers/withEmptyFieldEditingComponent.d.ts +0 -1
- package/types/enhancers/withFieldMetadata.d.ts +0 -1
- package/types/enhancers/withPlaceholder.d.ts +0 -1
- package/types/enhancers/withSitecoreContext.d.ts +1 -2
- package/types/utils.d.ts +1 -1
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -35,7 +45,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
35
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
46
|
};
|
|
37
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.
|
|
48
|
+
exports.BYOCComponent = exports.BYOC_COMPONENT_RENDERING_NAME = void 0;
|
|
49
|
+
exports.fetchBYOCComponentServerProps = fetchBYOCComponentServerProps;
|
|
39
50
|
const react_1 = __importDefault(require("react"));
|
|
40
51
|
const utils_1 = require("../utils");
|
|
41
52
|
const MissingComponent_1 = require("./MissingComponent");
|
|
@@ -119,4 +130,3 @@ function fetchBYOCComponentServerProps(params) {
|
|
|
119
130
|
};
|
|
120
131
|
});
|
|
121
132
|
}
|
|
122
|
-
exports.fetchBYOCComponentServerProps = fetchBYOCComponentServerProps;
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.DesignLibrary = void 0;
|
|
27
37
|
const react_1 = __importStar(require("react"));
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
const react_1 = __importStar(require("react"));
|
|
27
37
|
const layout_1 = require("@sitecore-jss/sitecore-jss/layout");
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -35,7 +45,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
35
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
46
|
};
|
|
37
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.composeComponentEndpoint = exports.
|
|
48
|
+
exports.composeComponentEndpoint = exports.FEaaSComponent = exports.FEAAS_COMPONENT_RENDERING_NAME = void 0;
|
|
49
|
+
exports.fetchFEaaSComponentServerProps = fetchFEaaSComponentServerProps;
|
|
39
50
|
const react_1 = __importDefault(require("react"));
|
|
40
51
|
const FEAAS = __importStar(require("@sitecore-feaas/clientside/react"));
|
|
41
52
|
const layout_1 = require("@sitecore-jss/sitecore-jss/layout");
|
|
@@ -96,7 +107,6 @@ function fetchFEaaSComponentServerProps(params, pageState, endpointOverride) {
|
|
|
96
107
|
};
|
|
97
108
|
});
|
|
98
109
|
}
|
|
99
|
-
exports.fetchFEaaSComponentServerProps = fetchFEaaSComponentServerProps;
|
|
100
110
|
/**
|
|
101
111
|
* @param {string} src component endpoint
|
|
102
112
|
* @param {FEaaSComponentParams} params rendering parameters for FEAAS component
|
|
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
37
|
exports.Form = exports.mockFormModule = void 0;
|
|
28
38
|
const react_1 = __importStar(require("react"));
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
36
|
var t = {};
|
|
27
37
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
36
|
var t = {};
|
|
27
37
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VisitorIdentification =
|
|
3
|
+
exports.VisitorIdentification = void 0;
|
|
4
|
+
exports.resetEmittedVI = resetEmittedVI;
|
|
4
5
|
const withSitecoreContext_1 = require("../enhancers/withSitecoreContext");
|
|
5
6
|
let emittedVI = false;
|
|
6
7
|
const VIComponent = (props) => {
|
|
@@ -33,5 +34,4 @@ VIComponent.displayName = 'VisitorIdentification';
|
|
|
33
34
|
function resetEmittedVI() {
|
|
34
35
|
emittedVI = false;
|
|
35
36
|
}
|
|
36
|
-
exports.resetEmittedVI = resetEmittedVI;
|
|
37
37
|
exports.VisitorIdentification = VIComponent;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.withComponentFactory =
|
|
6
|
+
exports.withComponentFactory = withComponentFactory;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const SitecoreContext_1 = require("../components/SitecoreContext");
|
|
9
9
|
const react_2 = require("react");
|
|
@@ -24,4 +24,3 @@ function withComponentFactory(Component) {
|
|
|
24
24
|
'Anonymous'})`;
|
|
25
25
|
return WithComponentFactory;
|
|
26
26
|
}
|
|
27
|
-
exports.withComponentFactory = withComponentFactory;
|
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.DefaultEditingError = void 0;
|
|
7
|
+
exports.withDatasourceCheck = withDatasourceCheck;
|
|
7
8
|
const react_1 = __importDefault(require("react"));
|
|
8
9
|
const layout_1 = require("@sitecore-jss/sitecore-jss/layout");
|
|
9
10
|
const withSitecoreContext_1 = require("./withSitecoreContext");
|
|
@@ -28,4 +29,3 @@ function withDatasourceCheck(options) {
|
|
|
28
29
|
};
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
|
-
exports.withDatasourceCheck = withDatasourceCheck;
|
|
@@ -15,15 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.withEmptyFieldEditingComponent =
|
|
36
|
+
exports.withEmptyFieldEditingComponent = withEmptyFieldEditingComponent;
|
|
27
37
|
const react_1 = __importStar(require("react"));
|
|
28
38
|
const layout_1 = require("@sitecore-jss/sitecore-jss/layout");
|
|
29
39
|
/**
|
|
@@ -53,4 +63,3 @@ function withEmptyFieldEditingComponent(FieldComponent, options) {
|
|
|
53
63
|
return (react_1.default.createElement(react_1.default.Fragment, null, (EmptyFieldEditingComponent && react_1.default.createElement(EmptyFieldEditingComponent, null)) || (react_1.default.createElement(FieldComponent, Object.assign({}, props)))));
|
|
54
64
|
};
|
|
55
65
|
}
|
|
56
|
-
exports.withEmptyFieldEditingComponent = withEmptyFieldEditingComponent;
|
|
@@ -15,15 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.withFieldMetadata =
|
|
36
|
+
exports.withFieldMetadata = withFieldMetadata;
|
|
27
37
|
const react_1 = __importStar(require("react"));
|
|
28
38
|
const FieldMetadata_1 = require("../components/FieldMetadata");
|
|
29
39
|
/**
|
|
@@ -57,4 +67,3 @@ function withFieldMetadata(FieldComponent, isForwardRef = false) {
|
|
|
57
67
|
react_1.default.createElement(FieldComponent, Object.assign({}, props))));
|
|
58
68
|
};
|
|
59
69
|
}
|
|
60
|
-
exports.withFieldMetadata = withFieldMetadata;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.withPlaceholder =
|
|
6
|
+
exports.withPlaceholder = withPlaceholder;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const PlaceholderCommon_1 = require("../components/PlaceholderCommon");
|
|
9
9
|
const withComponentFactory_1 = require("./withComponentFactory");
|
|
@@ -61,4 +61,3 @@ function withPlaceholder(placeholders, options) {
|
|
|
61
61
|
return (0, withSitecoreContext_1.withSitecoreContext)()((0, withComponentFactory_1.withComponentFactory)(WithPlaceholder));
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
exports.withPlaceholder = withPlaceholder;
|
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.withSitecoreContext = withSitecoreContext;
|
|
7
|
+
exports.useSitecoreContext = useSitecoreContext;
|
|
7
8
|
const react_1 = __importDefault(require("react"));
|
|
8
9
|
const SitecoreContext_1 = require("../components/SitecoreContext");
|
|
9
10
|
/**
|
|
@@ -16,7 +17,6 @@ function withSitecoreContext(options) {
|
|
|
16
17
|
};
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
|
-
exports.withSitecoreContext = withSitecoreContext;
|
|
20
20
|
/**
|
|
21
21
|
* This hook grants acсess to the current Sitecore page context
|
|
22
22
|
* by default JSS includes the following properties in this context:
|
|
@@ -47,4 +47,3 @@ function useSitecoreContext(options) {
|
|
|
47
47
|
updateSitecoreContext: updatable ? reactContext.setContext : undefined,
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
exports.useSitecoreContext = useSitecoreContext;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-jss/sitecore-jss-react",
|
|
3
|
-
"version": "22.9.0-canary.
|
|
3
|
+
"version": "22.9.0-canary.9",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,48 +26,48 @@
|
|
|
26
26
|
"url": "https://github.com/sitecore/jss/issues"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@sitecore-feaas/clientside": "^0.6.
|
|
30
|
-
"@testing-library/dom": "^10.4.
|
|
31
|
-
"@testing-library/react": "^16.
|
|
32
|
-
"@testing-library/user-event": "^14.6.
|
|
33
|
-
"@types/chai": "^
|
|
29
|
+
"@sitecore-feaas/clientside": "^0.6.2",
|
|
30
|
+
"@testing-library/dom": "^10.4.1",
|
|
31
|
+
"@testing-library/react": "^16.3.0",
|
|
32
|
+
"@testing-library/user-event": "^14.6.1",
|
|
33
|
+
"@types/chai": "^5.2.2",
|
|
34
34
|
"@types/chai-string": "^1.4.2",
|
|
35
35
|
"@types/mocha": "^10.0.1",
|
|
36
|
-
"@types/node": "
|
|
37
|
-
"@types/react": "^19.1.
|
|
38
|
-
"@types/react-dom": "^19.1.
|
|
39
|
-
"@types/sinon": "^
|
|
40
|
-
"@types/sinon-chai": "^
|
|
36
|
+
"@types/node": "^22.9.0",
|
|
37
|
+
"@types/react": "^19.1.7",
|
|
38
|
+
"@types/react-dom": "^19.1.7",
|
|
39
|
+
"@types/sinon": "^17.0.4",
|
|
40
|
+
"@types/sinon-chai": "^4.0.0",
|
|
41
41
|
"chai": "^4.3.7",
|
|
42
42
|
"chai-string": "^1.5.0",
|
|
43
|
-
"cheerio": "1.
|
|
44
|
-
"del-cli": "^
|
|
43
|
+
"cheerio": "1.1.2",
|
|
44
|
+
"del-cli": "^6.0.0",
|
|
45
45
|
"eslint": "^8.56.0",
|
|
46
46
|
"eslint-plugin-react": "^7.37.5",
|
|
47
|
-
"jsdom": "^
|
|
47
|
+
"jsdom": "^26.0.1",
|
|
48
48
|
"mocha": "^10.2.0",
|
|
49
|
-
"nyc": "^
|
|
49
|
+
"nyc": "^17.1.0",
|
|
50
50
|
"react": "^19.1.0",
|
|
51
51
|
"react-dom": "^19.1.0",
|
|
52
|
-
"sinon": "^
|
|
52
|
+
"sinon": "^20.0.0",
|
|
53
53
|
"sinon-chai": "^3.7.0",
|
|
54
54
|
"ts-node": "^10.9.1",
|
|
55
|
-
"typescript": "~
|
|
55
|
+
"typescript": "~5.9.2"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@sitecore-cloudsdk/events": "^0.5.
|
|
59
|
-
"@sitecore-feaas/clientside": "^0.6.
|
|
58
|
+
"@sitecore-cloudsdk/events": "^0.5.2",
|
|
59
|
+
"@sitecore-feaas/clientside": "^0.6.2",
|
|
60
60
|
"react": "^19.1.0",
|
|
61
61
|
"react-dom": "^19.1.0"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@sitecore-jss/sitecore-jss": "22.9.0-canary.
|
|
64
|
+
"@sitecore-jss/sitecore-jss": "22.9.0-canary.9",
|
|
65
65
|
"fast-deep-equal": "^3.1.3",
|
|
66
66
|
"style-attr": "^1.3.0"
|
|
67
67
|
},
|
|
68
68
|
"description": "",
|
|
69
69
|
"types": "types/index.d.ts",
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "0a43b0e00378ba1dcfeb30c18971d98da017fe0a",
|
|
71
71
|
"files": [
|
|
72
72
|
"dist",
|
|
73
73
|
"types"
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { EditableFieldProps } from './sharedTypes';
|
|
4
3
|
import { FieldMetadata } from '@sitecore-jss/sitecore-jss/layout';
|
|
@@ -54,5 +53,5 @@ export interface ImageProps extends EditableFieldProps {
|
|
|
54
53
|
* @param {ImageProps} otherProps {ImageProps} all other props included on the image component
|
|
55
54
|
* @returns Experience Editor Markup
|
|
56
55
|
*/
|
|
57
|
-
export declare const getEEMarkup: (imageField: ImageField, imageParams?: ImageProps[
|
|
56
|
+
export declare const getEEMarkup: (imageField: ImageField, imageParams?: ImageProps["imageParams"], mediaUrlPrefix?: RegExp, otherProps?: ImageProps) => React.JSX.Element;
|
|
58
57
|
export declare const Image: React.FC<ImageProps>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
1
|
import React from 'react';
|
|
3
|
-
export declare const withEditorChromes: (WrappedComponent: React.ComponentClass<unknown> | React.FC<unknown>) => React.ComponentClass
|
|
2
|
+
export declare const withEditorChromes: (WrappedComponent: React.ComponentClass<unknown> | React.FC<unknown>) => React.ComponentClass;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { EnhancedOmit } from '@sitecore-jss/sitecore-jss/utils';
|
|
4
3
|
import { SitecoreContextState, SitecoreContextValue } from '../components/SitecoreContext';
|
|
@@ -14,7 +13,7 @@ export type WithSitecoreContextHocProps<ComponentProps> = EnhancedOmit<Component
|
|
|
14
13
|
/**
|
|
15
14
|
* @param {WithSitecoreContextOptions} [options]
|
|
16
15
|
*/
|
|
17
|
-
export declare function withSitecoreContext(options?: WithSitecoreContextOptions): <ComponentProps extends WithSitecoreContextProps>(Component: React.ComponentType<ComponentProps>) => (props:
|
|
16
|
+
export declare function withSitecoreContext(options?: WithSitecoreContextOptions): <ComponentProps extends WithSitecoreContextProps>(Component: React.ComponentType<ComponentProps>) => (props: WithSitecoreContextHocProps<ComponentProps>) => React.JSX.Element;
|
|
18
17
|
/**
|
|
19
18
|
* This hook grants acсess to the current Sitecore page context
|
|
20
19
|
* by default JSS includes the following properties in this context:
|
package/types/utils.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const convertKebabCasetoCamelCase: (str: string) => string;
|
|
|
9
9
|
* @returns {Array} converted attributes
|
|
10
10
|
*/
|
|
11
11
|
export declare const convertStyleAttribute: (style?: string) => {};
|
|
12
|
-
export declare const convertAttributesToReactProps: (attributes: {
|
|
12
|
+
export declare const convertAttributesToReactProps: (attributes: null | {
|
|
13
13
|
[key: string]: unknown;
|
|
14
14
|
style?: string;
|
|
15
15
|
class?: string;
|