Skip to content

Commit

Permalink
Release v1.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
compose-sdk-release-bot committed Sep 5, 2024
1 parent 784f640 commit 38deaac
Show file tree
Hide file tree
Showing 24 changed files with 109 additions and 70 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [1.18.1] - 2024-09-04

### Added

- Disable forecast and trend in Fusion widgets temporarily to troubleshoot authorization-related issues

## [1.18.0] - 2024-09-03

### Added
Expand Down
6 changes: 6 additions & 0 deletions docs-md/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [1.18.1] - 2024-09-04

### Added

- Disable forecast and trend in Fusion widgets temporarily to troubleshoot authorization-related issues

## [1.18.0] - 2024-09-03

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.18.0",
"version": "1.18.1",
"type": "module",
"license": "SEE LICENSE IN LICENSE.md",
"private": true,
Expand Down
14 changes: 7 additions & 7 deletions packages/sdk-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Sisense",
"Compose SDK"
],
"version": "1.18.0",
"version": "1.18.1",
"type": "module",
"exports": "./dist/index.js",
"main": "./dist/index.js",
Expand All @@ -20,12 +20,12 @@
"license": "SEE LICENSE IN LICENSE.md",
"bin": "./dist/index.js",
"dependencies": {
"@sisense/sdk-common": "^1.18.0",
"@sisense/sdk-data": "^1.18.0",
"@sisense/sdk-modeling": "^1.18.0",
"@sisense/sdk-query-client": "^1.18.0",
"@sisense/sdk-rest-client": "^1.18.0",
"@sisense/sdk-tracking": "^1.18.0",
"@sisense/sdk-common": "^1.18.1",
"@sisense/sdk-data": "^1.18.1",
"@sisense/sdk-modeling": "^1.18.1",
"@sisense/sdk-query-client": "^1.18.1",
"@sisense/sdk-rest-client": "^1.18.1",
"@sisense/sdk-tracking": "^1.18.1",
"cross-fetch": "^4.0.0",
"inquirer": "^8.1.2",
"js-levenshtein": "^1.1.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Sisense",
"Compose SDK"
],
"version": "1.18.0",
"version": "1.18.1",
"type": "module",
"exports": {
".": "./dist/index.js"
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Sisense",
"Compose SDK"
],
"version": "1.18.0",
"version": "1.18.1",
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/index.js",
Expand All @@ -27,8 +27,8 @@
"author": "Sisense",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
"@sisense/sdk-common": "^1.18.0",
"@sisense/sdk-rest-client": "^1.18.0",
"@sisense/sdk-common": "^1.18.1",
"@sisense/sdk-rest-client": "^1.18.1",
"guid-typescript": "^1.0.9",
"hash-it": "^6.0.0",
"lodash-es": "^4.17.21",
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk-modeling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Sisense",
"Compose SDK"
],
"version": "1.18.0",
"version": "1.18.1",
"author": "Sisense",
"license": "SEE LICENSE IN LICENSE.md",
"type": "module",
Expand All @@ -20,7 +20,7 @@
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"dependencies": {
"@sisense/sdk-data": "^1.18.0",
"@sisense/sdk-data": "^1.18.1",
"prettier": "^3.2.5",
"typescript": "4.8.4"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk-pivot-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Sisense",
"Compose SDK"
],
"version": "1.18.0",
"version": "1.18.1",
"type": "module",
"exports": "./dist/index.js",
"main": "./dist/index.js",
Expand Down Expand Up @@ -39,8 +39,8 @@
],
"dependencies": {
"@mui/material": "^5.11.0",
"@sisense/sdk-data": "^1.18.0",
"@sisense/sdk-rest-client": "^1.18.0",
"@sisense/sdk-data": "^1.18.1",
"@sisense/sdk-rest-client": "^1.18.1",
"classnames": "2.3.2",
"dom-css": "2.1.0",
"immer": "^10.0.2",
Expand Down
10 changes: 5 additions & 5 deletions packages/sdk-query-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Sisense",
"Compose SDK"
],
"version": "1.18.0",
"version": "1.18.1",
"type": "module",
"exports": "./dist/index.js",
"main": "./dist/index.js",
Expand All @@ -20,10 +20,10 @@
"author": "Sisense",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
"@sisense/sdk-common": "^1.18.0",
"@sisense/sdk-data": "^1.18.0",
"@sisense/sdk-pivot-client": "^1.18.0",
"@sisense/sdk-rest-client": "^1.18.0",
"@sisense/sdk-common": "^1.18.1",
"@sisense/sdk-data": "^1.18.1",
"@sisense/sdk-pivot-client": "^1.18.1",
"@sisense/sdk-rest-client": "^1.18.1",
"@sisense/task-manager": "^0.1.0",
"numeral": "^2.0.6",
"ts-deepmerge": "6.0.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk-rest-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Sisense",
"Compose SDK"
],
"version": "1.18.0",
"version": "1.18.1",
"type": "module",
"exports": "./dist/index.js",
"main": "./dist/index.js",
Expand All @@ -20,7 +20,7 @@
"author": "Sisense",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
"@sisense/sdk-common": "^1.18.0",
"@sisense/sdk-common": "^1.18.1",
"fetch-intercept": "^2.4.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-tracking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Sisense",
"Compose SDK"
],
"version": "1.18.0",
"version": "1.18.1",
"type": "module",
"exports": {
".": "./dist/index.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-ui-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Sisense",
"Compose SDK"
],
"version": "1.18.0",
"version": "1.18.1",
"author": "Sisense",
"license": "SEE LICENSE IN LICENSE.md",
"main": "dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk-ui-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Sisense",
"Compose SDK"
],
"version": "1.18.0",
"version": "1.18.1",
"type": "module",
"exports": {
".": {
Expand All @@ -25,7 +25,7 @@
"author": "Sisense",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
"@sisense/sdk-ui": "^1.18.0",
"@sisense/sdk-ui": "^1.18.1",
"preact": "^10.13.2"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-ui-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Sisense",
"Compose SDK"
],
"version": "1.18.0",
"version": "1.18.1",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down
14 changes: 7 additions & 7 deletions packages/sdk-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Sisense",
"Compose SDK"
],
"version": "1.18.0",
"version": "1.18.1",
"type": "module",
"exports": {
".": {
Expand Down Expand Up @@ -53,12 +53,12 @@
"@emotion/styled": "^11.10.5",
"@mui/material": "^5.15.16",
"@mui/system": "^5.15.15",
"@sisense/sdk-common": "^1.18.0",
"@sisense/sdk-data": "^1.18.0",
"@sisense/sdk-pivot-client": "^1.18.0",
"@sisense/sdk-query-client": "^1.18.0",
"@sisense/sdk-rest-client": "^1.18.0",
"@sisense/sdk-tracking": "^1.18.0",
"@sisense/sdk-common": "^1.18.1",
"@sisense/sdk-data": "^1.18.1",
"@sisense/sdk-pivot-client": "^1.18.1",
"@sisense/sdk-query-client": "^1.18.1",
"@sisense/sdk-rest-client": "^1.18.1",
"@sisense/sdk-tracking": "^1.18.1",
"@sisense/sisense-charts": "5.1.1",
"@tanstack/react-query": "4.36.1",
"classnames": "^2.3.2",
Expand Down
7 changes: 6 additions & 1 deletion packages/sdk-ui/src/__stories__/template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ const themeSettings = {
const contextDecorator = {
decorators: [
(Story: StoryFn) => (
<SisenseContextProvider url={url} token={token}>
<SisenseContextProvider
url={url}
token={token}
showRuntimeErrors={true}
appConfig={{ errorBoundaryConfig: { alwaysShowErrorText: true } }}
>
<ThemeProvider theme={themeSettings}>
<Story />
</ThemeProvider>
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk-ui/src/__stories__/widget-style.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { templateForComponent } from './template';
const sisenseContextProps: SisenseContextProviderProps = {
url: import.meta.env.VITE_APP_SISENSE_URL ?? '',
token: import.meta.env.VITE_APP_SISENSE_TOKEN,
showRuntimeErrors: true,
appConfig: { errorBoundaryConfig: { alwaysShowErrorText: true } },
};

const template = templateForComponent(ChartWidget);
Expand Down
7 changes: 6 additions & 1 deletion packages/sdk-ui/src/ai/__mocks__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ import AiContextProvider from '../ai-context-provider';
* @internal
*/
export const AiTestWrapper = ({ children }: { children: ReactNode }) => (
<SisenseContextProvider url={mockUrl} token={mockToken}>
<SisenseContextProvider
url={mockUrl}
token={mockToken}
showRuntimeErrors={true}
appConfig={{ errorBoundaryConfig: { alwaysShowErrorText: true } }}
>
<AiContextProvider>
<QueryClientProvider
client={
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk-ui/src/ai/__stories__/chart-message.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { getDefaultThemeSettings, ThemeProvider } from '@/index';
const sisenseContextProps: SisenseContextProviderProps = {
url: import.meta.env.VITE_APP_SISENSE_URL ?? '',
token: import.meta.env.VITE_APP_SISENSE_TOKEN,
showRuntimeErrors: true,
appConfig: { errorBoundaryConfig: { alwaysShowErrorText: true } },
};

const meta: Meta<typeof ChartMessage> = {
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk-ui/src/ai/__stories__/chatbot.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { Chatbot } from '../chatbot';
const sisenseContextProps: SisenseContextProviderProps = {
url: import.meta.env.VITE_APP_SISENSE_URL ?? '',
token: import.meta.env.VITE_APP_SISENSE_TOKEN,
showRuntimeErrors: true,
appConfig: { errorBoundaryConfig: { alwaysShowErrorText: true } },
};

const meta: Meta<typeof Chatbot> = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { measureFactory } from '@sisense/sdk-data';
const sisenseContextProps: SisenseContextProviderProps = {
url: import.meta.env.VITE_APP_SISENSE_URL ?? '',
token: import.meta.env.VITE_APP_SISENSE_TOKEN,
showRuntimeErrors: true,
appConfig: { errorBoundaryConfig: { alwaysShowErrorText: true } },
};

const meta: Meta<typeof GetNlgQueryResult> = {
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk-ui/src/ai/__stories__/insights.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export default meta;
const sisenseContextProps: SisenseContextProviderProps = {
url: import.meta.env.VITE_APP_SISENSE_URL ?? '',
token: import.meta.env.VITE_APP_SISENSE_TOKEN,
showRuntimeErrors: true,
appConfig: { errorBoundaryConfig: { alwaysShowErrorText: true } },
};

export const Default = template(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,13 @@ function extractNumberFormat(item: PanelItem): NumberFormatConfig | null {
return null;
}

/**
* Temporary internal flag to enable/disable statistical models in the data options.
*
* @internal
*/
const ENABLE_STATISTICAL_MODELS = false;

/** @internal */
export function applyStatisticalModels(
dataOption: StyledMeasureColumn,
Expand All @@ -180,7 +187,7 @@ export function applyStatisticalModels(
};
},
): StyledMeasureColumn {
if (!statisticalModels) return dataOption;
if (!statisticalModels || !ENABLE_STATISTICAL_MODELS) return dataOption;

const { forecast, trend } = statisticalModels;
let newDataOption = { ...dataOption }; // Create a shallow copy to avoid mutation
Expand Down
Loading

0 comments on commit 38deaac

Please sign in to comment.