@patternfly/documentation-framework 1.2.30 → 1.2.31
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/CHANGELOG.md +11 -0
- package/helpers/codesandbox.js +1 -1
- package/package.json +2 -2
- package/scripts/md/mdx-hast-to-jsx.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 1.2.31 (2022-09-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove lookbacks in regex to support safari 16 ([#3205](https://github.com/patternfly/patternfly-org/issues/3205)) ([a89fdbb](https://github.com/patternfly/patternfly-org/commit/a89fdbb52af22aa56c0f89c9bdbc3efd78502c55))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 1.2.30 (2022-09-22)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @patternfly/documentation-framework
|
package/helpers/codesandbox.js
CHANGED
|
@@ -138,7 +138,7 @@ function getReactParams(title, code, scope, lang, relativeImports) {
|
|
|
138
138
|
code = code.replace(imgImportMatch[0], `const ${imgName} = "https://www.patternfly.org/v4${scope[imgName]}"`);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
const relImportRegex = /(
|
|
141
|
+
const relImportRegex = /(import[\s*{])([\w*{}\n\r\t, ]+)([\s*]from\s["']([\.\/]+.*)["'])/gm;
|
|
142
142
|
let relImportMatch;
|
|
143
143
|
while (relImportMatch = relImportRegex.exec(code)) {
|
|
144
144
|
const [ relImportName, _name, relImportPath ] = relImportMatch;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/documentation-framework",
|
|
3
3
|
"description": "A framework to build documentation for PatternFly.",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.31",
|
|
5
5
|
"author": "Red Hat",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"react": "^16.8.0 || ^17.0.0",
|
|
86
86
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "6f269ee0703d120046111b39a5a9319b1b2eeea1"
|
|
89
89
|
}
|
|
@@ -79,7 +79,7 @@ function serializeRoot(node, options) {
|
|
|
79
79
|
const [_match, absoluteImportPath] = relativeImportMatch;
|
|
80
80
|
if (absoluteImportPath && !absoluteImportPath.includes('srcImport')) {
|
|
81
81
|
// `@patternfly/react-core/src/demos/./examples/DashboardWrapper` to `DashboardWrapper`
|
|
82
|
-
let relativeFileImport = /(
|
|
82
|
+
let relativeFileImport = /(\.+\/.*)/gm.exec(absoluteImportPath);
|
|
83
83
|
if (relativeFileImport) {
|
|
84
84
|
// Build map of relative imports (from example.js code) to npm package import path (used in codesandbox.js)
|
|
85
85
|
const relativeFilePath = relativeFileImport[0];
|