Skip to content

Commit d343bb9

Browse files
authored
Feat(designer): moved intl (#4245)
* intl moved * removed intl files
1 parent 4ccc919 commit d343bb9

File tree

76 files changed

+215629
-240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+215629
-240
lines changed

CHANGELOG.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
# Logic Apps Designer
2-
## [2.120.0](https://github.com/Azure/LogicAppsUX/compare/v2.119.0...v2.120.0) (2024-02-22)
32

3+
## [2.120.0](https://github.com/Azure/LogicAppsUX/compare/v2.119.0...v2.120.0) (2024-02-22)
44

55
### Features
66

7-
* **Designer:** moved utils into new library ([#4236](https://github.com/Azure/LogicAppsUX/issues/4236)) ([9c8c883](https://github.com/Azure/LogicAppsUX/commit/9c8c883fd6b8310cb18e231822f6cd50463e8651))
8-
* **Designer:** Moving first lib into shared folder ([#4229](https://github.com/Azure/LogicAppsUX/issues/4229)) ([671689d](https://github.com/Azure/LogicAppsUX/commit/671689d22bf2cf686762d64d280b9f27200e681f))
9-
7+
- **Designer:** moved utils into new library ([#4236](https://github.com/Azure/LogicAppsUX/issues/4236)) ([9c8c883](https://github.com/Azure/LogicAppsUX/commit/9c8c883fd6b8310cb18e231822f6cd50463e8651))
8+
- **Designer:** Moving first lib into shared folder ([#4229](https://github.com/Azure/LogicAppsUX/issues/4229)) ([671689d](https://github.com/Azure/LogicAppsUX/commit/671689d22bf2cf686762d64d280b9f27200e681f))
109

1110
### Bug Fixes
1211

13-
* **consumption:** Changing until timeout default based on Stateful vs Stateless ([#4235](https://github.com/Azure/LogicAppsUX/issues/4235)) ([c1e26ec](https://github.com/Azure/LogicAppsUX/commit/c1e26ecd26719cce6052a8c7d7817c55f38da194))
12+
- **consumption:** Changing until timeout default based on Stateful vs Stateless ([#4235](https://github.com/Azure/LogicAppsUX/issues/4235)) ([c1e26ec](https://github.com/Azure/LogicAppsUX/commit/c1e26ecd26719cce6052a8c7d7817c55f38da194))
1413

1514
## [2.119.0](https://github.com/Azure/LogicAppsUX/compare/v2.118.0...v2.119.0) (2024-02-21)
1615

libs/data-mapper/src/lib/core/DataMapperDesignerProvider.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { Theme } from '@fluentui/react-components';
99
import { FluentProvider, themeToTokensObject, webDarkTheme, webLightTheme } from '@fluentui/react-components';
1010
import { PortalCompatProvider } from '@fluentui/react-portal-compat';
1111
import { AppInsightsContext } from '@microsoft/applicationinsights-react-js';
12-
import { IntlProvider } from '@microsoft/intl-logic-apps';
12+
import { IntlProvider } from '@microsoft/logic-apps-shared';
1313
import { Theme as ThemeType } from '@microsoft/logic-apps-shared';
1414
import React from 'react';
1515
import { QueryClient, QueryClientProvider } from 'react-query';

libs/designer-ui/src/lib/authentication/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { MSIAuthentication } from './MSIAuth/MSIAuth';
1212
import { RawAuthentication } from './RawAuth';
1313
import { parseAuthEditor } from './util';
1414
import type { IDropdownOption } from '@fluentui/react/lib/Dropdown';
15-
import { getIntl } from '@microsoft/intl-logic-apps';
15+
import { getIntl } from '@microsoft/logic-apps-shared';
1616
import type { ManagedIdentity } from '@microsoft/logic-apps-shared';
1717
import { AssertionErrorCode, AssertionException, format } from '@microsoft/logic-apps-shared';
1818
import { useUpdateEffect } from '@react-hookz/web';

libs/designer-ui/src/lib/authentication/util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ValueSegmentType } from '../editor';
66
import { convertStringToSegments } from '../editor/base/utils/editorToSegment';
77
import { convertKeyValueItemToSegments } from '../editor/base/utils/keyvalueitem';
88
import { AuthenticationOAuthType } from './AADOAuth/AADOAuth';
9-
import { getIntl } from '@microsoft/intl-logic-apps';
9+
import { getIntl } from '@microsoft/logic-apps-shared';
1010
import type { ManagedIdentity } from '@microsoft/logic-apps-shared';
1111
import { guid, equals, ResourceIdentityType } from '@microsoft/logic-apps-shared';
1212

libs/designer-ui/src/lib/code/util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import constants from '../constants';
22
import type { Token, ValueSegment } from '../editor';
33
import { TokenType } from '../editor';
4-
import { getIntl } from '@microsoft/intl-logic-apps';
4+
import { getIntl } from '@microsoft/logic-apps-shared';
55
import { decodePropertySegment, OutputKeys } from '@microsoft/logic-apps-shared';
66
import { ArgumentException, endsWith, equals, prettifyJsonString, UnsupportedException } from '@microsoft/logic-apps-shared';
77

libs/designer-ui/src/lib/combobox/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { IComboBox, IComboBoxOption, IComboBoxOptionStyles, IComboBoxStyles
77
import { SelectableOptionMenuItemType, ComboBox } from '@fluentui/react';
88
import { Button, Spinner, Tooltip } from '@fluentui/react-components';
99
import { bundleIcon, Dismiss24Filled, Dismiss24Regular } from '@fluentui/react-icons';
10-
import { getIntl } from '@microsoft/intl-logic-apps';
10+
import { getIntl } from '@microsoft/logic-apps-shared';
1111
import { guid } from '@microsoft/logic-apps-shared';
1212
import { useRef, useState, useCallback, useMemo, useEffect } from 'react';
1313
import type { FormEvent } from 'react';

libs/designer-ui/src/lib/dynamicallyaddedparameter/helper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { DynamicallyAddedParameterTypeType } from '../dynamicallyaddedparameter';
22
import { DynamicallyAddedParameterType } from '../dynamicallyaddedparameter';
3-
import { getIntl } from '@microsoft/intl-logic-apps';
3+
import { getIntl } from '@microsoft/logic-apps-shared';
44
import { generateUniqueName } from '@microsoft/logic-apps-shared';
55

66
export type DynamicallyAddedParameterIcon = string;

libs/designer-ui/src/lib/floatingactionmenu/floatingactionmenubase/helper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { FloatingActionMenuItem } from '.';
22
import { DynamicallyAddedParameterType } from '../../dynamicallyaddedparameter';
33
import { getIconForDynamicallyAddedParameterType } from '../../dynamicallyaddedparameter/helper';
4-
import { getIntl } from '@microsoft/intl-logic-apps';
4+
import { getIntl } from '@microsoft/logic-apps-shared';
55

66
export function getMenuItemsForDynamicAddedParameters(supportedTypes: string[]): FloatingActionMenuItem[] {
77
const intl = getIntl();

libs/designer-ui/src/lib/recurrence/preview.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Recurrence } from '.';
22
import constants from '../constants';
33
import { getIntervalValue } from './util';
4-
import { getIntl } from '@microsoft/intl-logic-apps';
4+
import { getIntl } from '@microsoft/logic-apps-shared';
55
import { equals, getPropertyValue } from '@microsoft/logic-apps-shared';
66
import { useIntl } from 'react-intl';
77

libs/designer-ui/src/lib/recurrence/util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Recurrence } from '.';
22
import type { ValueSegment } from '../editor';
3-
import { getIntl } from '@microsoft/intl-logic-apps';
3+
import { getIntl } from '@microsoft/logic-apps-shared';
44

55
export const getRecurrenceValue = (value: ValueSegment[]): Recurrence => {
66
const recurrenceValue = value[0].value;

libs/designer-ui/src/lib/searchbox/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { SearchBox } from '@fluentui/react/lib/SearchBox';
2-
import { getIntl } from '@microsoft/intl-logic-apps';
2+
import { getIntl } from '@microsoft/logic-apps-shared';
33

44
export interface SearchBoxProps {
55
searchCallback: (term: string) => void;

libs/designer-ui/src/lib/table/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ValueSegmentType } from '../editor';
44
import type { ChangeState } from '../editor/base';
55
import type { IDropdownOption, IDropdownStyles } from '@fluentui/react';
66
import { Dropdown } from '@fluentui/react';
7-
import { getIntl } from '@microsoft/intl-logic-apps';
7+
import { getIntl } from '@microsoft/logic-apps-shared';
88
import { guid } from '@microsoft/logic-apps-shared';
99
import type { FormEvent } from 'react';
1010
import { useState } from 'react';

libs/designer-ui/src/lib/utils/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Constants from '../constants';
2-
import { getIntl } from '@microsoft/intl-logic-apps';
2+
import { getIntl } from '@microsoft/logic-apps-shared';
33
import { equals, isBuiltInConnector, isCustomConnector } from '@microsoft/logic-apps-shared';
44

55
/**

libs/designer-ui/src/lib/workflow/languageservice/templatefunctions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getIntl } from '@microsoft/intl-logic-apps';
1+
import { getIntl } from '@microsoft/logic-apps-shared';
22

33
export interface FunctionGroupDefinition {
44
id: string;

libs/designer/src/lib/common/exceptions/exception.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getIntl } from '@microsoft/intl-logic-apps';
1+
import { getIntl } from '@microsoft/logic-apps-shared';
22
import type { Exception } from '@microsoft/logic-apps-shared';
33
import { isException } from '@microsoft/logic-apps-shared';
44

libs/designer/src/lib/core/DesignerProvider.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { AzureThemeLight } from '@fluentui/azure-themes/lib/azure/AzureThemeLigh
99
import { ThemeProvider } from '@fluentui/react';
1010
import { FluentProvider, webDarkTheme, webLightTheme } from '@fluentui/react-components';
1111
import type { OnErrorFn as OnIntlErrorFn } from '@formatjs/intl';
12-
import { IntlProvider } from '@microsoft/intl-logic-apps';
12+
import { IntlProvider } from '@microsoft/logic-apps-shared';
1313
import React, { useCallback, useEffect, useMemo } from 'react';
1414
import { Provider as ReduxProvider, useDispatch } from 'react-redux';
1515

libs/designer/src/lib/core/actions/bjsworkflow/initialize.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import {
4747
ApiManagementService,
4848
} from '@microsoft/designer-client-services-logic-apps';
4949
import type { OutputToken, ParameterInfo } from '@microsoft/designer-ui';
50-
import { getIntl } from '@microsoft/intl-logic-apps';
50+
import { getIntl } from '@microsoft/logic-apps-shared';
5151
import type { SchemaProperty, InputParameter, SwaggerParser, OutputParameter } from '@microsoft/logic-apps-shared';
5252
import {
5353
isDynamicListExtension,

libs/designer/src/lib/core/actions/bjsworkflow/operationdeserializer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ import {
5656
OperationManifestService,
5757
StaticResultService,
5858
} from '@microsoft/designer-client-services-logic-apps';
59-
import { getIntl } from '@microsoft/intl-logic-apps';
59+
import { getIntl } from '@microsoft/logic-apps-shared';
6060
import type { InputParameter, OutputParameter } from '@microsoft/logic-apps-shared';
6161
import { ManifestParser } from '@microsoft/logic-apps-shared';
6262
import type { LogicAppsV2, OperationManifest } from '@microsoft/logic-apps-shared';

libs/designer/src/lib/core/actions/bjsworkflow/serializer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import type { NodeStaticResults } from './staticresults';
2222
import { LogEntryLevel, LoggerService, OperationManifestService, WorkflowService } from '@microsoft/designer-client-services-logic-apps';
2323
import type { ParameterInfo } from '@microsoft/designer-ui';
2424
import { UIConstants } from '@microsoft/designer-ui';
25-
import { getIntl } from '@microsoft/intl-logic-apps';
25+
import { getIntl } from '@microsoft/logic-apps-shared';
2626
import type { Segment } from '@microsoft/logic-apps-shared';
2727
import {
2828
create,

libs/designer/src/lib/core/parsers/BJSWorkflow/BJSDeserializer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { createWorkflowNode, createWorkflowEdge } from '../../utils/graph';
66
import type { WorkflowNode, WorkflowEdge } from '../models/workflowNode';
77
import { LoggerService, Status } from '@microsoft/designer-client-services-logic-apps';
88
import { getDurationStringPanelMode } from '@microsoft/designer-ui';
9-
import { getIntl } from '@microsoft/intl-logic-apps';
9+
import { getIntl } from '@microsoft/logic-apps-shared';
1010
import type { LogicAppsV2, SubgraphType } from '@microsoft/logic-apps-shared';
1111
import {
1212
containsIdTag,

libs/designer/src/lib/core/state/workflowparameters/workflowparametersSlice.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { validateType } from '../../utils/validation';
66
import { resetWorkflowState } from '../global';
77
import type { WorkflowParameterUpdateEvent } from '@microsoft/designer-ui';
88
import { UIConstants } from '@microsoft/designer-ui';
9-
import { getIntl } from '@microsoft/intl-logic-apps';
9+
import { getIntl } from '@microsoft/logic-apps-shared';
1010
import { equals, getRecordEntry, guid } from '@microsoft/logic-apps-shared';
1111
import { createSlice } from '@reduxjs/toolkit';
1212
import type { PayloadAction } from '@reduxjs/toolkit';

libs/designer/src/lib/core/utils/connectors/connections.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
isServiceProviderOperation,
1313
} from '@microsoft/designer-client-services-logic-apps';
1414
import type { AssistedConnectionProps } from '@microsoft/designer-ui';
15-
import { getIntl } from '@microsoft/intl-logic-apps';
15+
import { getIntl } from '@microsoft/logic-apps-shared';
1616
import type {
1717
Connection,
1818
ConnectionParameterSet,

libs/designer/src/lib/core/utils/outputs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
import { convertOutputsToTokens, getTokenTitle } from './tokens';
2828
import { OperationManifestService } from '@microsoft/designer-client-services-logic-apps';
2929
import { generateSchemaFromJsonString, ValueSegmentType } from '@microsoft/designer-ui';
30-
import { getIntl } from '@microsoft/intl-logic-apps';
30+
import { getIntl } from '@microsoft/logic-apps-shared';
3131
import type {
3232
Expression,
3333
ExpressionFunction,

libs/designer/src/lib/core/utils/parameters/dynamicdata.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import type { ListDynamicValue, ManagedIdentityRequestProperties, TreeDynamicVal
3131
import { OperationManifestService } from '@microsoft/designer-client-services-logic-apps';
3232
import type { ParameterInfo } from '@microsoft/designer-ui';
3333
import { TokenType, ValueSegmentType } from '@microsoft/designer-ui';
34-
import { getIntl } from '@microsoft/intl-logic-apps';
34+
import { getIntl } from '@microsoft/logic-apps-shared';
3535
import type {
3636
DynamicParameters,
3737
ExpressionEvaluatorOptions,

libs/designer/src/lib/core/utils/parameters/helper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ import {
8686
TokenType,
8787
AuthenticationOAuthType,
8888
} from '@microsoft/designer-ui';
89-
import { getIntl } from '@microsoft/intl-logic-apps';
89+
import { getIntl } from '@microsoft/logic-apps-shared';
9090
import type {
9191
DependentParameterInfo,
9292
DynamicParameters,

libs/designer/src/lib/core/utils/swagger/inputsbuilder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Constants from '../../../common/constants';
22
import type { SerializedParameter } from '../../actions/bjsworkflow/serializer';
33
import { constructInputValues } from '../../actions/bjsworkflow/serializer';
44
import { getAndEscapeSegment, transformInputParameter, updateParameterWithValues } from '../parameters/helper';
5-
import { getIntl } from '@microsoft/intl-logic-apps';
5+
import { getIntl } from '@microsoft/logic-apps-shared';
66
import type { Expression, ExpressionFunction, InputParameter, Segment } from '@microsoft/logic-apps-shared';
77
import {
88
create,

libs/designer/src/lib/core/utils/tokens.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import { getVariableTokens } from './variables';
3737
import { OperationManifestService } from '@microsoft/designer-client-services-logic-apps';
3838
import type { FunctionDefinition, OutputToken, Token, ValueSegment } from '@microsoft/designer-ui';
3939
import { UIConstants, TemplateFunctions, TokenType, removeUTFExpressions } from '@microsoft/designer-ui';
40-
import { getIntl } from '@microsoft/intl-logic-apps';
40+
import { getIntl } from '@microsoft/logic-apps-shared';
4141
import { getKnownTitles, OutputKeys } from '@microsoft/logic-apps-shared';
4242
import type { BuiltInOutput, OperationManifest } from '@microsoft/logic-apps-shared';
4343
import { labelCase, unmap, equals, filterRecord, getRecordEntry } from '@microsoft/logic-apps-shared';

libs/designer/src/lib/core/utils/validation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
type ValueSegment,
99
FloatingActionMenuKind,
1010
} from '@microsoft/designer-ui';
11-
import { getIntl } from '@microsoft/intl-logic-apps';
11+
import { getIntl } from '@microsoft/logic-apps-shared';
1212
import type { Expression, ExpressionLiteral } from '@microsoft/logic-apps-shared';
1313
import {
1414
ExpressionParser,

libs/designer/src/lib/ui/settings/validation/validation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { AppDispatch } from '../../../core';
44
import type { Settings } from '../../../core/actions/bjsworkflow/settings';
55
import { setValidationError } from '../../../core/state/setting/settingSlice';
66
import { isISO8601 } from '../../../core/utils/validation';
7-
import { getIntl } from '@microsoft/intl-logic-apps';
7+
import { getIntl } from '@microsoft/logic-apps-shared';
88
import { isTemplateExpression } from '@microsoft/logic-apps-shared';
99

1010
export const ValidationErrorKeys = {

libs/logic-apps-shared/.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
77
"rules": {
8-
"@nrwl/nx/enforce-module-boundaries": ["warn"]
8+
"@nrwl/nx/enforce-module-boundaries": 0
99
}
1010
},
1111
{

libs/logic-apps-shared/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export * from './parsers';
22
export * from './utils/src';
3+
export * from './intl/src';

libs/services/intl/src/IntlProvider.tsx renamed to libs/logic-apps-shared/src/intl/src/IntlProvider.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { IntlGlobalProvider } from './intl';
22
import type { OnErrorFn } from '@formatjs/intl';
3+
import React from 'react';
34
import type { MessageFormatElement } from 'react-intl';
45
import { IntlProvider as ReactIntlProvider } from 'react-intl';
56
import { useQuery } from 'react-query';

0 commit comments

Comments
 (0)