Skip to content

Commit

Permalink
Feat(designer): moved intl (#4245)
Browse files Browse the repository at this point in the history
* intl moved

* removed intl files
  • Loading branch information
DanielleCogs committed Feb 22, 2024
1 parent 4ccc919 commit d343bb9
Show file tree
Hide file tree
Showing 76 changed files with 215,629 additions and 240 deletions.
9 changes: 4 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# Logic Apps Designer
## [2.120.0](https://github.com/Azure/LogicAppsUX/compare/v2.119.0...v2.120.0) (2024-02-22)

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

### Features

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

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

### Bug Fixes

* **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))
- **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))

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { Theme } from '@fluentui/react-components';
import { FluentProvider, themeToTokensObject, webDarkTheme, webLightTheme } from '@fluentui/react-components';
import { PortalCompatProvider } from '@fluentui/react-portal-compat';
import { AppInsightsContext } from '@microsoft/applicationinsights-react-js';
import { IntlProvider } from '@microsoft/intl-logic-apps';
import { IntlProvider } from '@microsoft/logic-apps-shared';

Check warning on line 12 in libs/data-mapper/src/lib/core/DataMapperDesignerProvider.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

'@microsoft/logic-apps-shared' imported multiple times

Check warning on line 12 in libs/data-mapper/src/lib/core/DataMapperDesignerProvider.tsx

View workflow job for this annotation

GitHub Actions / build (20.x)

'@microsoft/logic-apps-shared' imported multiple times
import { Theme as ThemeType } from '@microsoft/logic-apps-shared';

Check warning on line 13 in libs/data-mapper/src/lib/core/DataMapperDesignerProvider.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

'@microsoft/logic-apps-shared' imported multiple times

Check warning on line 13 in libs/data-mapper/src/lib/core/DataMapperDesignerProvider.tsx

View workflow job for this annotation

GitHub Actions / build (20.x)

'@microsoft/logic-apps-shared' imported multiple times
import React from 'react';
import { QueryClient, QueryClientProvider } from 'react-query';
Expand Down
2 changes: 1 addition & 1 deletion libs/designer-ui/src/lib/authentication/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { MSIAuthentication } from './MSIAuth/MSIAuth';
import { RawAuthentication } from './RawAuth';
import { parseAuthEditor } from './util';
import type { IDropdownOption } from '@fluentui/react/lib/Dropdown';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';

Check warning on line 15 in libs/designer-ui/src/lib/authentication/index.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

'@microsoft/logic-apps-shared' imported multiple times

Check warning on line 15 in libs/designer-ui/src/lib/authentication/index.tsx

View workflow job for this annotation

GitHub Actions / build (20.x)

'@microsoft/logic-apps-shared' imported multiple times
import type { ManagedIdentity } from '@microsoft/logic-apps-shared';
import { AssertionErrorCode, AssertionException, format } from '@microsoft/logic-apps-shared';

Check warning on line 17 in libs/designer-ui/src/lib/authentication/index.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

'@microsoft/logic-apps-shared' imported multiple times

Check warning on line 17 in libs/designer-ui/src/lib/authentication/index.tsx

View workflow job for this annotation

GitHub Actions / build (20.x)

'@microsoft/logic-apps-shared' imported multiple times
import { useUpdateEffect } from '@react-hookz/web';
Expand Down
2 changes: 1 addition & 1 deletion libs/designer-ui/src/lib/authentication/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ValueSegmentType } from '../editor';
import { convertStringToSegments } from '../editor/base/utils/editorToSegment';
import { convertKeyValueItemToSegments } from '../editor/base/utils/keyvalueitem';
import { AuthenticationOAuthType } from './AADOAuth/AADOAuth';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';

Check warning on line 9 in libs/designer-ui/src/lib/authentication/util.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

'@microsoft/logic-apps-shared' imported multiple times

Check warning on line 9 in libs/designer-ui/src/lib/authentication/util.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

'@microsoft/logic-apps-shared' imported multiple times
import type { ManagedIdentity } from '@microsoft/logic-apps-shared';
import { guid, equals, ResourceIdentityType } from '@microsoft/logic-apps-shared';

Check warning on line 11 in libs/designer-ui/src/lib/authentication/util.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

'@microsoft/logic-apps-shared' imported multiple times

Check warning on line 11 in libs/designer-ui/src/lib/authentication/util.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

'@microsoft/logic-apps-shared' imported multiple times

Expand Down
2 changes: 1 addition & 1 deletion libs/designer-ui/src/lib/code/util.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import constants from '../constants';
import type { Token, ValueSegment } from '../editor';
import { TokenType } from '../editor';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import { decodePropertySegment, OutputKeys } from '@microsoft/logic-apps-shared';
import { ArgumentException, endsWith, equals, prettifyJsonString, UnsupportedException } from '@microsoft/logic-apps-shared';

Expand Down
2 changes: 1 addition & 1 deletion libs/designer-ui/src/lib/combobox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { IComboBox, IComboBoxOption, IComboBoxOptionStyles, IComboBoxStyles
import { SelectableOptionMenuItemType, ComboBox } from '@fluentui/react';
import { Button, Spinner, Tooltip } from '@fluentui/react-components';
import { bundleIcon, Dismiss24Filled, Dismiss24Regular } from '@fluentui/react-icons';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import { guid } from '@microsoft/logic-apps-shared';
import { useRef, useState, useCallback, useMemo, useEffect } from 'react';
import type { FormEvent } from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { DynamicallyAddedParameterTypeType } from '../dynamicallyaddedparameter';
import { DynamicallyAddedParameterType } from '../dynamicallyaddedparameter';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import { generateUniqueName } from '@microsoft/logic-apps-shared';

export type DynamicallyAddedParameterIcon = string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { FloatingActionMenuItem } from '.';
import { DynamicallyAddedParameterType } from '../../dynamicallyaddedparameter';
import { getIconForDynamicallyAddedParameterType } from '../../dynamicallyaddedparameter/helper';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';

export function getMenuItemsForDynamicAddedParameters(supportedTypes: string[]): FloatingActionMenuItem[] {
const intl = getIntl();
Expand Down
2 changes: 1 addition & 1 deletion libs/designer-ui/src/lib/recurrence/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Recurrence } from '.';
import constants from '../constants';
import { getIntervalValue } from './util';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import { equals, getPropertyValue } from '@microsoft/logic-apps-shared';
import { useIntl } from 'react-intl';

Expand Down
2 changes: 1 addition & 1 deletion libs/designer-ui/src/lib/recurrence/util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Recurrence } from '.';
import type { ValueSegment } from '../editor';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';

export const getRecurrenceValue = (value: ValueSegment[]): Recurrence => {
const recurrenceValue = value[0].value;
Expand Down
2 changes: 1 addition & 1 deletion libs/designer-ui/src/lib/searchbox/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SearchBox } from '@fluentui/react/lib/SearchBox';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';

export interface SearchBoxProps {
searchCallback: (term: string) => void;
Expand Down
2 changes: 1 addition & 1 deletion libs/designer-ui/src/lib/table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ValueSegmentType } from '../editor';
import type { ChangeState } from '../editor/base';
import type { IDropdownOption, IDropdownStyles } from '@fluentui/react';
import { Dropdown } from '@fluentui/react';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import { guid } from '@microsoft/logic-apps-shared';
import type { FormEvent } from 'react';
import { useState } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion libs/designer-ui/src/lib/utils/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Constants from '../constants';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import { equals, isBuiltInConnector, isCustomConnector } from '@microsoft/logic-apps-shared';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';

export interface FunctionGroupDefinition {
id: string;
Expand Down
2 changes: 1 addition & 1 deletion libs/designer/src/lib/common/exceptions/exception.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import type { Exception } from '@microsoft/logic-apps-shared';
import { isException } from '@microsoft/logic-apps-shared';

Expand Down
2 changes: 1 addition & 1 deletion libs/designer/src/lib/core/DesignerProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { AzureThemeLight } from '@fluentui/azure-themes/lib/azure/AzureThemeLigh
import { ThemeProvider } from '@fluentui/react';
import { FluentProvider, webDarkTheme, webLightTheme } from '@fluentui/react-components';
import type { OnErrorFn as OnIntlErrorFn } from '@formatjs/intl';
import { IntlProvider } from '@microsoft/intl-logic-apps';
import { IntlProvider } from '@microsoft/logic-apps-shared';
import React, { useCallback, useEffect, useMemo } from 'react';
import { Provider as ReduxProvider, useDispatch } from 'react-redux';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {
ApiManagementService,
} from '@microsoft/designer-client-services-logic-apps';
import type { OutputToken, ParameterInfo } from '@microsoft/designer-ui';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import type { SchemaProperty, InputParameter, SwaggerParser, OutputParameter } from '@microsoft/logic-apps-shared';
import {
isDynamicListExtension,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import {
OperationManifestService,
StaticResultService,
} from '@microsoft/designer-client-services-logic-apps';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import type { InputParameter, OutputParameter } from '@microsoft/logic-apps-shared';
import { ManifestParser } from '@microsoft/logic-apps-shared';
import type { LogicAppsV2, OperationManifest } from '@microsoft/logic-apps-shared';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import type { NodeStaticResults } from './staticresults';
import { LogEntryLevel, LoggerService, OperationManifestService, WorkflowService } from '@microsoft/designer-client-services-logic-apps';
import type { ParameterInfo } from '@microsoft/designer-ui';
import { UIConstants } from '@microsoft/designer-ui';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import type { Segment } from '@microsoft/logic-apps-shared';
import {
create,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { createWorkflowNode, createWorkflowEdge } from '../../utils/graph';
import type { WorkflowNode, WorkflowEdge } from '../models/workflowNode';
import { LoggerService, Status } from '@microsoft/designer-client-services-logic-apps';
import { getDurationStringPanelMode } from '@microsoft/designer-ui';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import type { LogicAppsV2, SubgraphType } from '@microsoft/logic-apps-shared';
import {
containsIdTag,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { validateType } from '../../utils/validation';
import { resetWorkflowState } from '../global';
import type { WorkflowParameterUpdateEvent } from '@microsoft/designer-ui';
import { UIConstants } from '@microsoft/designer-ui';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import { equals, getRecordEntry, guid } from '@microsoft/logic-apps-shared';
import { createSlice } from '@reduxjs/toolkit';
import type { PayloadAction } from '@reduxjs/toolkit';
Expand Down
2 changes: 1 addition & 1 deletion libs/designer/src/lib/core/utils/connectors/connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
isServiceProviderOperation,
} from '@microsoft/designer-client-services-logic-apps';
import type { AssistedConnectionProps } from '@microsoft/designer-ui';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import type {
Connection,
ConnectionParameterSet,
Expand Down
2 changes: 1 addition & 1 deletion libs/designer/src/lib/core/utils/outputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
import { convertOutputsToTokens, getTokenTitle } from './tokens';
import { OperationManifestService } from '@microsoft/designer-client-services-logic-apps';
import { generateSchemaFromJsonString, ValueSegmentType } from '@microsoft/designer-ui';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import type {
Expression,
ExpressionFunction,
Expand Down
2 changes: 1 addition & 1 deletion libs/designer/src/lib/core/utils/parameters/dynamicdata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import type { ListDynamicValue, ManagedIdentityRequestProperties, TreeDynamicVal
import { OperationManifestService } from '@microsoft/designer-client-services-logic-apps';
import type { ParameterInfo } from '@microsoft/designer-ui';
import { TokenType, ValueSegmentType } from '@microsoft/designer-ui';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import type {
DynamicParameters,
ExpressionEvaluatorOptions,
Expand Down
2 changes: 1 addition & 1 deletion libs/designer/src/lib/core/utils/parameters/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ import {
TokenType,
AuthenticationOAuthType,
} from '@microsoft/designer-ui';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import type {
DependentParameterInfo,
DynamicParameters,
Expand Down
2 changes: 1 addition & 1 deletion libs/designer/src/lib/core/utils/swagger/inputsbuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Constants from '../../../common/constants';
import type { SerializedParameter } from '../../actions/bjsworkflow/serializer';
import { constructInputValues } from '../../actions/bjsworkflow/serializer';
import { getAndEscapeSegment, transformInputParameter, updateParameterWithValues } from '../parameters/helper';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import type { Expression, ExpressionFunction, InputParameter, Segment } from '@microsoft/logic-apps-shared';
import {
create,
Expand Down
2 changes: 1 addition & 1 deletion libs/designer/src/lib/core/utils/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { getVariableTokens } from './variables';
import { OperationManifestService } from '@microsoft/designer-client-services-logic-apps';
import type { FunctionDefinition, OutputToken, Token, ValueSegment } from '@microsoft/designer-ui';
import { UIConstants, TemplateFunctions, TokenType, removeUTFExpressions } from '@microsoft/designer-ui';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import { getKnownTitles, OutputKeys } from '@microsoft/logic-apps-shared';
import type { BuiltInOutput, OperationManifest } from '@microsoft/logic-apps-shared';
import { labelCase, unmap, equals, filterRecord, getRecordEntry } from '@microsoft/logic-apps-shared';
Expand Down
2 changes: 1 addition & 1 deletion libs/designer/src/lib/core/utils/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
type ValueSegment,
FloatingActionMenuKind,
} from '@microsoft/designer-ui';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import type { Expression, ExpressionLiteral } from '@microsoft/logic-apps-shared';
import {
ExpressionParser,
Expand Down
2 changes: 1 addition & 1 deletion libs/designer/src/lib/ui/settings/validation/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { AppDispatch } from '../../../core';
import type { Settings } from '../../../core/actions/bjsworkflow/settings';
import { setValidationError } from '../../../core/state/setting/settingSlice';
import { isISO8601 } from '../../../core/utils/validation';
import { getIntl } from '@microsoft/intl-logic-apps';
import { getIntl } from '@microsoft/logic-apps-shared';
import { isTemplateExpression } from '@microsoft/logic-apps-shared';

export const ValidationErrorKeys = {
Expand Down
2 changes: 1 addition & 1 deletion libs/logic-apps-shared/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": ["warn"]
"@nrwl/nx/enforce-module-boundaries": 0
}
},
{
Expand Down
1 change: 1 addition & 0 deletions libs/logic-apps-shared/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './parsers';
export * from './utils/src';
export * from './intl/src';
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { IntlGlobalProvider } from './intl';
import type { OnErrorFn } from '@formatjs/intl';
import React from 'react';
import type { MessageFormatElement } from 'react-intl';
import { IntlProvider as ReactIntlProvider } from 'react-intl';
import { useQuery } from 'react-query';
Expand Down

0 comments on commit d343bb9

Please sign in to comment.