Skip to content

Commit

Permalink
Adjust Container release NEXT_RELEASE_CONTAINER string (#3807)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndricimrr authored Jul 8, 2024
1 parent 7251b0e commit a4f9a59
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
8 changes: 4 additions & 4 deletions container/prepareNextRelease.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Script to replace 'NEXT_RELEASE' with the 'package.json' version on the container package.
* Script to replace 'NEXT_RELEASE_CONTAINER' with the 'package.json' version on the container package.
*
* @usage
* 1. Run: `node replace-version.js`
Expand Down Expand Up @@ -36,9 +36,9 @@ const replaceVersionInFolder = folderPath => {
let fileContent = fs.readFileSync(filePath, 'utf8');

// Check if the file contains the keyword
if (fileContent.includes('NEXT_RELEASE')) {
// Replace NEXT_RELEASE with the actual version
fileContent = fileContent.replace(/NEXT_RELEASE/g, version);
if (fileContent.includes('NEXT_RELEASE_CONTAINER_CONTAINER')) {
// Replace NEXT_RELEASE_CONTAINER with the actual version
fileContent = fileContent.replace(/NEXT_RELEASE_CONTAINER/g, version);

// Write the updated content back to the file
fs.writeFileSync(filePath, fileContent, 'utf8');
Expand Down
6 changes: 3 additions & 3 deletions container/typings/LuigiCompoundContainer.svelte.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,21 @@ export default class LuigiCompoundContainer extends HTMLElement {

/**
* The document title value to be passed to the compound micro frontend.
* @since NEXT_RELEASE
* @since NEXT_RELEASE_CONTAINER
*/
documentTitle: string;

/**
* The hasBack value to be passed to the compound micro frontend.
* It indicates that there is one or more preserved views. Useful when you need to show a back button.
* @since NEXT_RELEASE
* @since NEXT_RELEASE_CONTAINER
*/
hasBack: string;

/**
* The dirty status value to be passed to the compound micro frontend.
* It's used to indicate that there are unsaved changes when navigating away.
* @since NEXT_RELEASE
* @since NEXT_RELEASE_CONTAINER
*/
dirtyStatus: boolean;

Expand Down
12 changes: 6 additions & 6 deletions container/typings/LuigiContainer.svelte.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,34 +124,34 @@ export default class LuigiContainer extends HTMLElement {
/**
* The list of rules for the content in the iframe, managed by the HTML `allow` attribute.
* You can use one or more rules by adding them to the array, for example allowRules: ["microphone", "camera"].
* @since NEXT_RELEASE
* @since NEXT_RELEASE_CONTAINER
*/
allowRules: string[];

/**
* The list of rules for the content in the iframe, managed by the HTML `sandbox` attribute.
* You can use one or more rules by adding them to the array, for example sandboxRules: ["allow-scripts", "allow-same-origin"].
* @since NEXT_RELEASE
* @since NEXT_RELEASE_CONTAINER
*/
sandboxRules: string[];

/**
* The document title value to be passed to the web-component-based micro frontend.
* @since NEXT_RELEASE
* @since NEXT_RELEASE_CONTAINER
*/
documentTitle: string;

/**
* The hasBack value to be passed to the web-component-based micro frontend.
* It indicates that there is one or more preserved views. Useful when you need to show a back button.
* @since NEXT_RELEASE
* @since NEXT_RELEASE_CONTAINER
*/
hasBack: string;

/**
* The dirty status value to be passed to the web-component-based micro frontend.
* It's used to indicate that there are unsaved changes when navigating away.
* @since NEXT_RELEASE
* @since NEXT_RELEASE_CONTAINER
*/
dirtyStatus: boolean;

Expand Down Expand Up @@ -199,7 +199,7 @@ export default class LuigiContainer extends HTMLElement {

/**
* The authData value to be passed to the iframe-based micro frontend.
* @since NEXT_RELEASE
* @since NEXT_RELEASE_CONTAINER
*/
authData: Object;
}
6 changes: 3 additions & 3 deletions docs/luigi-compound-container-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa

**Meta**

- **since**: NEXT_RELEASE
- **since**: NEXT_RELEASE_CONTAINER

### hasBack

Expand All @@ -138,7 +138,7 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa

**Meta**

- **since**: NEXT_RELEASE
- **since**: NEXT_RELEASE_CONTAINER

### dirtyStatus

Expand All @@ -149,7 +149,7 @@ Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Glob

**Meta**

- **since**: NEXT_RELEASE
- **since**: NEXT_RELEASE_CONTAINER

### webcomponent

Expand Down
12 changes: 6 additions & 6 deletions docs/luigi-container-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ Type: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global

**Meta**

- **since**: NEXT_RELEASE
- **since**: NEXT_RELEASE_CONTAINER

### sandboxRules

Expand All @@ -220,7 +220,7 @@ Type: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global

**Meta**

- **since**: NEXT_RELEASE
- **since**: NEXT_RELEASE_CONTAINER

### documentTitle

Expand All @@ -230,7 +230,7 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa

**Meta**

- **since**: NEXT_RELEASE
- **since**: NEXT_RELEASE_CONTAINER

### hasBack

Expand All @@ -241,7 +241,7 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa

**Meta**

- **since**: NEXT_RELEASE
- **since**: NEXT_RELEASE_CONTAINER

### dirtyStatus

Expand All @@ -252,7 +252,7 @@ Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Glob

**Meta**

- **since**: NEXT_RELEASE
- **since**: NEXT_RELEASE_CONTAINER

### updateContext

Expand Down Expand Up @@ -341,4 +341,4 @@ Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa

**Meta**

- **since**: NEXT_RELEASE
- **since**: NEXT_RELEASE_CONTAINER

0 comments on commit a4f9a59

Please sign in to comment.