Skip to content

Commit

Permalink
cmf-router, dataviz, design-tokens and faceted-search
Browse files Browse the repository at this point in the history
  • Loading branch information
smouillour committed Apr 15, 2024
1 parent 0093762 commit 1e1a39c
Show file tree
Hide file tree
Showing 11 changed files with 97 additions and 15 deletions.
16 changes: 16 additions & 0 deletions packages/cmf-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,26 @@
"version": "6.1.2",
"description": "",
"main": "lib/index.js",
"module": "./lib/esm/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
},
"require": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
}
},
"author": "Talend Frontend <[email protected]> (http://www.talend.com)",
"license": "Apache-2.0",
"scripts": {
"build:dev": "talend-scripts build --umd --dev",
"build:prod": "talend-scripts build --umd --prod",
"build:lib:esm": "tsc --project ./tsconfig.esm.json",
"pre-release": "yarn build:dev && yarn build:prod",
"build:lib": "talend-scripts build",
"start": "echo nothing to start",
Expand Down Expand Up @@ -39,6 +54,7 @@
"@talend/scripts-core": "^16.3.5",
"@talend/scripts-config-babel": "^13.3.1",
"@talend/scripts-config-react-webpack": "^16.5.1",
"@talend/scripts-config-typescript": "^11.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"redux-saga-tester": "^1.0.874"
Expand Down
7 changes: 7 additions & 0 deletions packages/cmf-router/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "lib/esm",
"module": "ESNext"
}
}
4 changes: 4 additions & 0 deletions packages/cmf-router/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "@talend/scripts-config-typescript/tsconfig.json",
"include": ["src/**/*"]
}
16 changes: 15 additions & 1 deletion packages/dataviz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,28 @@
"version": "6.1.3",
"description": "Talend charts and visualization components",
"main": "lib/index.js",
"mainSrc": "src/index.ts",
"types": "./lib/index.d.ts",
"module": "./lib/esm/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
},
"require": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
}
},
"license": "Apache-2.0",
"scripts": {
"pre-release": "yarn build:umd:dev && yarn build:umd:prod",
"build:umd:dev": "talend-scripts build --umd --dev",
"build:umd:prod": "talend-scripts build --umd",
"build:lib": "talend-scripts build",
"build:lib:esm": "tsc --project ./tsconfig.esm.json && cpx 'src/**/*.{scss,json}' lib/esm --verbose",
"build-storybook": "talend-scripts build-storybook",
"extract-i18n": "i18next-scanner --config i18next-scanner.config.js",
"lint": "talend-scripts lint",
Expand Down
8 changes: 8 additions & 0 deletions packages/dataviz/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "lib/esm",
"module": "ESNext"
},
"exclude": ["src/**/*.test.*", "src/**/*.stories.*", "src/**/*.cy.*"]
}
10 changes: 2 additions & 8 deletions packages/design-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@
"module": "./lib/esm/index.js",
"exports": {
"./package.json": "./package.json",
"./lib/tokens": {
"import": "./lib/esm/_tokens.scss",
"require": "./lib/_tokens.scss"
},
"./lib/_tokens": {
"import": "./lib/esm/_tokens.scss",
"require": "./lib/_tokens.scss"
},
"./lib/tokens": "./lib/esm/_tokens.scss",
"./lib/_tokens": "./lib/esm/_tokens.scss",
"./lib/*": {
"import": "./lib/esm/*",
"require": "./lib/*"
Expand Down
27 changes: 26 additions & 1 deletion packages/faceted-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,37 @@
"version": "19.0.0",
"description": "Faceted search",
"main": "lib/index.js",
"mainSrc": "src/index.js",
"module": "./lib/esm/index.js",
"exports": {
"./package.json": "./package.json",
"./lib/*": {
"import": {
"types": "./lib/esm/*/index.d.ts",
"default": "./lib/esm/*/index.js"
},
"require": {
"types": "./lib/*/index.d.ts",
"default": "./lib/*/index.js"
}
},
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
},
"require": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
}
},
"license": "Apache-2.0",
"scripts": {
"build:dev": "talend-scripts build --umd --dev",
"build:prod": "talend-scripts build --umd --prod",
"pre-release": "yarn build:dev && yarn build:prod",
"build:lib": "talend-scripts build",
"build:lib:esm": "tsc --project ./tsconfig.esm.json && cpx 'src/**/*.{scss,json}' lib/esm --verbose",
"test": "cross-env TZ=UTC talend-scripts test",
"test:watch": "cross-env TZ=UTC talend-scripts test --watch",
"test:cov": "cross-env TZ=UTC talend-scripts test --coverage",
Expand Down Expand Up @@ -55,6 +79,7 @@
"@talend/scripts-config-jest": "^14.0.2",
"@talend/scripts-config-react-webpack": "^16.5.1",
"@talend/scripts-config-storybook-lib": "^5.3.1",
"@talend/scripts-config-typescript": "^11.2.1",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"babel-plugin-angularjs-annotate": "^0.10.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { useState, useMemo } from 'react';
import PropTypes from 'prop-types';
import { useMemo, useState } from 'react';

import get from 'lodash/get';
import { Typeahead } from '@talend/react-components/lib/Typeahead';
import PropTypes from 'prop-types';

import Typeahead from '@talend/react-components/lib/Typeahead';

import { badgesFacetedPropTypes } from '../facetedSearch.propTypes';

export const DEFAULT_QUICKSEARCH_OPERATOR = 'containsIgnoreCase';
Expand Down Expand Up @@ -62,7 +65,7 @@ export const QuickSearchInput = ({
}),
suggestions: filteredFacets.map(a => get(a, ['properties', 'label'], null)),
},
]
]
: undefined
}
value={value}
Expand Down
7 changes: 7 additions & 0 deletions packages/faceted-search/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "lib/esm",
"module": "ESNext"
}
}
4 changes: 4 additions & 0 deletions packages/faceted-search/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "@talend/scripts-config-typescript/tsconfig.json",
"include": ["src/**/*"]
}
2 changes: 1 addition & 1 deletion packages/forms/stories/CustomArrayTemplate.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function CustomArrayTemplate({
return (
<li key={index}>
<Actions actions={actions} hideLabel />
{renderItem(index) ?? null}
{renderItem(index)}
</li>
);
})}
Expand Down

0 comments on commit 1e1a39c

Please sign in to comment.