@sitecore-jss/sitecore-jss-react 22.2.0-canary.47 → 22.2.0-canary.49

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.
@@ -6,10 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.PlaceholderMetadata = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const layout_1 = require("@sitecore-jss/sitecore-jss/layout");
9
- /**
10
- * default value of uid for root placeholder when uid is not present.
11
- */
12
- const DEFAULT_PLACEHOLDER_UID = '00000000-0000-0000-0000-000000000000';
9
+ const editing_1 = require("@sitecore-jss/sitecore-jss/editing");
13
10
  /**
14
11
  * A React component to generate metadata blocks for a placeholder or rendering.
15
12
  * It utilizes dynamic attributes based on whether the component acts as a placeholder
@@ -37,7 +34,7 @@ const PlaceholderMetadata = ({ rendering, placeholderName, children, }) => {
37
34
  if (placeholderName === placeholder) {
38
35
  phId = id
39
36
  ? `${placeholderName}_${id}`
40
- : `${placeholderName}_${DEFAULT_PLACEHOLDER_UID}`;
37
+ : `${placeholderName}_${editing_1.DEFAULT_PLACEHOLDER_UID}`;
41
38
  break;
42
39
  }
43
40
  // Check if the placeholder is a dynamic placeholder
@@ -45,7 +42,7 @@ const PlaceholderMetadata = ({ rendering, placeholderName, children, }) => {
45
42
  const pattern = (0, layout_1.getDynamicPlaceholderPattern)(placeholder);
46
43
  // Check if the placeholder matches the dynamic placeholder pattern
47
44
  if (pattern.test(placeholderName)) {
48
- phId = id ? `${placeholder}_${id}` : `${placeholder}_${DEFAULT_PLACEHOLDER_UID}`;
45
+ phId = id ? `${placeholder}_${id}` : `${placeholder}_${editing_1.DEFAULT_PLACEHOLDER_UID}`;
49
46
  break;
50
47
  }
51
48
  }
@@ -1,9 +1,6 @@
1
1
  import React from 'react';
2
2
  import { getDynamicPlaceholderPattern, isDynamicPlaceholder, } from '@sitecore-jss/sitecore-jss/layout';
3
- /**
4
- * default value of uid for root placeholder when uid is not present.
5
- */
6
- const DEFAULT_PLACEHOLDER_UID = '00000000-0000-0000-0000-000000000000';
3
+ import { DEFAULT_PLACEHOLDER_UID } from '@sitecore-jss/sitecore-jss/editing';
7
4
  /**
8
5
  * A React component to generate metadata blocks for a placeholder or rendering.
9
6
  * It utilizes dynamic attributes based on whether the component acts as a placeholder
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-jss/sitecore-jss-react",
3
- "version": "22.2.0-canary.47",
3
+ "version": "22.2.0-canary.49",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "sideEffects": false,
@@ -61,14 +61,14 @@
61
61
  "react-dom": "^18.2.0"
62
62
  },
63
63
  "dependencies": {
64
- "@sitecore-jss/sitecore-jss": "^22.2.0-canary.47",
64
+ "@sitecore-jss/sitecore-jss": "^22.2.0-canary.49",
65
65
  "fast-deep-equal": "^3.1.3",
66
66
  "prop-types": "^15.8.1",
67
67
  "style-attr": "^1.3.0"
68
68
  },
69
69
  "description": "",
70
70
  "types": "types/index.d.ts",
71
- "gitHead": "948f99616ad4fd68f3a955adcd7e1e3135162750",
71
+ "gitHead": "6bf25fd8b2273f0b036d6894ce89d2ff94b7aef6",
72
72
  "files": [
73
73
  "dist",
74
74
  "types"