From 359873e71f90e697fbc7a6870c5f940a6da1bbe2 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Thu, 13 Oct 2022 09:40:27 +0200 Subject: [PATCH 1/3] remove angular example from monorepo --- code/addons/jest/README.md | 2 - code/examples/angular-cli/.editorconfig | 13 - code/examples/angular-cli/.env | 1 - code/examples/angular-cli/.eslintignore | 1 - code/examples/angular-cli/.eslintrc.js | 15 - code/examples/angular-cli/.gitignore | 43 - code/examples/angular-cli/.storybook/main.ts | 41 - .../angular-cli/.storybook/preview.ts | 55 -- .../angular-cli/.storybook/tsconfig.json | 8 - code/examples/angular-cli/README.md | 27 - code/examples/angular-cli/angular.json | 134 --- .../examples/angular-cli/angularshots.test.js | 13 - code/examples/angular-cli/e2e/app.e2e-spec.ts | 16 - code/examples/angular-cli/e2e/app.po.ts | 11 - .../angular-cli/e2e/tsconfig.e2e.json | 10 - .../angular-cli/jest-config/globalMocks.ts | 19 - .../examples/angular-cli/jest-config/setup.ts | 4 - .../examples/angular-cli/jest.addon-config.js | 7 - code/examples/angular-cli/jest.config.js | 35 - code/examples/angular-cli/package.json | 84 -- code/examples/angular-cli/protractor.conf.js | 27 - .../angular-cli/src/app/app.component.html | 25 - .../angular-cli/src/app/app.component.scss | 5 - .../angular-cli/src/app/app.component.spec.ts | 32 - .../angular-cli/src/app/app.component.ts | 13 - .../angular-cli/src/app/app.module.ts | 12 - code/examples/angular-cli/src/assets/.gitkeep | 0 code/examples/angular-cli/src/assets/a/a.json | 0 code/examples/angular-cli/src/assets/b/b.json | 0 .../angular-cli/src/assets/favicon.ico | Bin 5430 -> 0 bytes .../angular-cli/src/commons/_colors.scss | 1 - code/examples/angular-cli/src/cssWarning.ts | 12 - .../src/environments/environment.prod.ts | 3 - .../src/environments/environment.ts | 8 - code/examples/angular-cli/src/index.html | 14 - code/examples/angular-cli/src/karma.ts | 31 - code/examples/angular-cli/src/main.ts | 14 - code/examples/angular-cli/src/polyfills.ts | 52 - .../welcome-angular.stories.storyshot | 61 -- .../welcome-storybook.stories.storyshot | 92 -- .../src/stories/addons/README.stories.mdx | 7 - .../addon-interactions.stories.storyshot | 896 ------------------ .../addon-interactions.stories.ts | 112 --- .../hero-form/hero-form.component.css | 270 ------ .../hero-form/hero-form.component.html | 79 -- .../hero-form/hero-form.component.ts | 51 - .../addon-jest.stories.storyshot | 61 -- .../stories/addons/jest/addon-jest.stories.ts | 26 - .../addon-links.stories.storyshot | 13 - .../addons/links/addon-links.stories.ts | 15 - .../stories/angular-demo/button.component.ts | 26 - .../src/stories/angular-demo/index.ts | 4 - .../stories/angular-demo/welcome.component.ts | 81 -- .../src/stories/from-cli/Button.stories.ts | 43 - .../src/stories/from-cli/button.component.ts | 53 -- .../src/stories/from-cli/button.css | 30 - .../preview/csf3/input-with-play.stories.ts | 35 - .../preview/csf3/sb-input.component.ts | 7 - .../src/stories/welcome-angular.stories.ts | 13 - .../src/stories/welcome-storybook.stories.ts | 13 - code/examples/angular-cli/src/styles.css | 5 - code/examples/angular-cli/src/styles.scss | 17 - .../angular-cli/src/tsconfig.spec.json | 12 - code/examples/angular-cli/src/typings.d.ts | 10 - code/examples/angular-cli/tsconfig.app.json | 10 - code/examples/angular-cli/tsconfig.json | 38 - code/jest.config.js | 1 - code/workspace.json | 5 - code/yarn.lock | 424 +-------- 69 files changed, 9 insertions(+), 3289 deletions(-) delete mode 100644 code/examples/angular-cli/.editorconfig delete mode 100644 code/examples/angular-cli/.env delete mode 100644 code/examples/angular-cli/.eslintignore delete mode 100644 code/examples/angular-cli/.eslintrc.js delete mode 100644 code/examples/angular-cli/.gitignore delete mode 100644 code/examples/angular-cli/.storybook/main.ts delete mode 100644 code/examples/angular-cli/.storybook/preview.ts delete mode 100644 code/examples/angular-cli/.storybook/tsconfig.json delete mode 100644 code/examples/angular-cli/README.md delete mode 100644 code/examples/angular-cli/angular.json delete mode 100644 code/examples/angular-cli/angularshots.test.js delete mode 100644 code/examples/angular-cli/e2e/app.e2e-spec.ts delete mode 100644 code/examples/angular-cli/e2e/app.po.ts delete mode 100644 code/examples/angular-cli/e2e/tsconfig.e2e.json delete mode 100644 code/examples/angular-cli/jest-config/globalMocks.ts delete mode 100644 code/examples/angular-cli/jest-config/setup.ts delete mode 100644 code/examples/angular-cli/jest.addon-config.js delete mode 100644 code/examples/angular-cli/jest.config.js delete mode 100644 code/examples/angular-cli/package.json delete mode 100644 code/examples/angular-cli/protractor.conf.js delete mode 100644 code/examples/angular-cli/src/app/app.component.html delete mode 100644 code/examples/angular-cli/src/app/app.component.scss delete mode 100644 code/examples/angular-cli/src/app/app.component.spec.ts delete mode 100644 code/examples/angular-cli/src/app/app.component.ts delete mode 100644 code/examples/angular-cli/src/app/app.module.ts delete mode 100644 code/examples/angular-cli/src/assets/.gitkeep delete mode 100644 code/examples/angular-cli/src/assets/a/a.json delete mode 100644 code/examples/angular-cli/src/assets/b/b.json delete mode 100644 code/examples/angular-cli/src/assets/favicon.ico delete mode 100644 code/examples/angular-cli/src/commons/_colors.scss delete mode 100644 code/examples/angular-cli/src/cssWarning.ts delete mode 100644 code/examples/angular-cli/src/environments/environment.prod.ts delete mode 100644 code/examples/angular-cli/src/environments/environment.ts delete mode 100644 code/examples/angular-cli/src/index.html delete mode 100644 code/examples/angular-cli/src/karma.ts delete mode 100644 code/examples/angular-cli/src/main.ts delete mode 100644 code/examples/angular-cli/src/polyfills.ts delete mode 100644 code/examples/angular-cli/src/stories/__snapshots__/welcome-angular.stories.storyshot delete mode 100644 code/examples/angular-cli/src/stories/__snapshots__/welcome-storybook.stories.storyshot delete mode 100644 code/examples/angular-cli/src/stories/addons/README.stories.mdx delete mode 100644 code/examples/angular-cli/src/stories/addons/interactions/__snapshots__/addon-interactions.stories.storyshot delete mode 100644 code/examples/angular-cli/src/stories/addons/interactions/addon-interactions.stories.ts delete mode 100644 code/examples/angular-cli/src/stories/addons/interactions/hero-form/hero-form.component.css delete mode 100644 code/examples/angular-cli/src/stories/addons/interactions/hero-form/hero-form.component.html delete mode 100644 code/examples/angular-cli/src/stories/addons/interactions/hero-form/hero-form.component.ts delete mode 100644 code/examples/angular-cli/src/stories/addons/jest/__snapshots__/addon-jest.stories.storyshot delete mode 100644 code/examples/angular-cli/src/stories/addons/jest/addon-jest.stories.ts delete mode 100644 code/examples/angular-cli/src/stories/addons/links/__snapshots__/addon-links.stories.storyshot delete mode 100644 code/examples/angular-cli/src/stories/addons/links/addon-links.stories.ts delete mode 100644 code/examples/angular-cli/src/stories/angular-demo/button.component.ts delete mode 100644 code/examples/angular-cli/src/stories/angular-demo/index.ts delete mode 100644 code/examples/angular-cli/src/stories/angular-demo/welcome.component.ts delete mode 100644 code/examples/angular-cli/src/stories/from-cli/Button.stories.ts delete mode 100644 code/examples/angular-cli/src/stories/from-cli/button.component.ts delete mode 100644 code/examples/angular-cli/src/stories/from-cli/button.css delete mode 100644 code/examples/angular-cli/src/stories/preview/csf3/input-with-play.stories.ts delete mode 100644 code/examples/angular-cli/src/stories/preview/csf3/sb-input.component.ts delete mode 100644 code/examples/angular-cli/src/stories/welcome-angular.stories.ts delete mode 100644 code/examples/angular-cli/src/stories/welcome-storybook.stories.ts delete mode 100644 code/examples/angular-cli/src/styles.css delete mode 100644 code/examples/angular-cli/src/styles.scss delete mode 100644 code/examples/angular-cli/src/tsconfig.spec.json delete mode 100644 code/examples/angular-cli/src/typings.d.ts delete mode 100644 code/examples/angular-cli/tsconfig.app.json delete mode 100644 code/examples/angular-cli/tsconfig.json diff --git a/code/addons/jest/README.md b/code/addons/jest/README.md index d6e9cb782016..87444270ff3c 100644 --- a/code/addons/jest/README.md +++ b/code/addons/jest/README.md @@ -246,8 +246,6 @@ Default.parameters = { }; ``` -##### Example [here](https://github.com/storybookjs/storybook/tree/main/examples/angular-cli) - ## Available options - **options.results**: OBJECT jest output results. _mandatory_ diff --git a/code/examples/angular-cli/.editorconfig b/code/examples/angular-cli/.editorconfig deleted file mode 100644 index 6e87a003da89..000000000000 --- a/code/examples/angular-cli/.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Editor configuration, see http://editorconfig.org -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -insert_final_newline = true -trim_trailing_whitespace = true - -[*.md] -max_line_length = off -trim_trailing_whitespace = false diff --git a/code/examples/angular-cli/.env b/code/examples/angular-cli/.env deleted file mode 100644 index d24e628d2810..000000000000 --- a/code/examples/angular-cli/.env +++ /dev/null @@ -1 +0,0 @@ -STORYBOOK_EXAMPLE_APP=true diff --git a/code/examples/angular-cli/.eslintignore b/code/examples/angular-cli/.eslintignore deleted file mode 100644 index 6c5a2da47b08..000000000000 --- a/code/examples/angular-cli/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -addon-jest.testresults.json diff --git a/code/examples/angular-cli/.eslintrc.js b/code/examples/angular-cli/.eslintrc.js deleted file mode 100644 index 4de262aa2700..000000000000 --- a/code/examples/angular-cli/.eslintrc.js +++ /dev/null @@ -1,15 +0,0 @@ -const ignore = 0; - -module.exports = { - overrides: [ - { - files: ['./src/stories/addon-jest.stories.ts'], - rules: { - 'import/no-useless-path-segments': ignore, - }, - settings: { - 'import/core-modules': ['../../addon-jest.testresults.json'], - }, - }, - ], -}; diff --git a/code/examples/angular-cli/.gitignore b/code/examples/angular-cli/.gitignore deleted file mode 100644 index f0613141c711..000000000000 --- a/code/examples/angular-cli/.gitignore +++ /dev/null @@ -1,43 +0,0 @@ -# See http://help.github.com/ignore-files/ for more about ignoring files. - -# Compiled output -/dist -/tmp -/out-tsc -/bazel-out - -# Node -/node_modules -npm-debug.log -yarn-error.log - -# IDEs and editors -.idea/ -.project -.classpath -.c9/ -*.launch -.settings/ -*.sublime-workspace - -# Visual Studio Code -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -.history/* - -# Miscellaneous -/.angular/cache -.sass-cache/ -/connect.lock -/coverage -/libpeerconnection.log -testem.log -/typings -documentation.json - -# System files -.DS_Store -Thumbs.db diff --git a/code/examples/angular-cli/.storybook/main.ts b/code/examples/angular-cli/.storybook/main.ts deleted file mode 100644 index 41e94c2c0013..000000000000 --- a/code/examples/angular-cli/.storybook/main.ts +++ /dev/null @@ -1,41 +0,0 @@ -const mainConfig: import('@storybook/angular').StorybookConfig = { - stories: ['../src/stories/**/*.stories.@(ts|tsx|js|jsx|mdx)'], - logLevel: 'debug', - addons: [ - '@storybook/addon-docs', - '@storybook/addon-controls', - '@storybook/addon-storysource', - '@storybook/addon-actions', - '@storybook/addon-viewport', - '@storybook/addon-interactions', - '@storybook/addon-links', - '@storybook/addon-jest', - '@storybook/addon-backgrounds', - '@storybook/addon-a11y', - '@storybook/addon-toolbars', - '@storybook/addon-highlight', - ], - core: { - channelOptions: { allowFunction: false, maxDepth: 10 }, - disableTelemetry: true, - }, - staticDirs: [ - '../src/assets', - // reproduction of https://github.com/storybookjs/storybook/issues/16732 - { from: '../src/assets/a', to: 'assets' }, - { from: '../src/assets/b', to: 'assets/b' }, - ], - features: { - buildStoriesJson: false, - breakingChangesV7: false, - storyStoreV7: false, - }, - framework: { - name: '@storybook/angular', - options: { - enableIvy: true, - enableNgcc: true, - }, - }, -}; -module.exports = mainConfig; diff --git a/code/examples/angular-cli/.storybook/preview.ts b/code/examples/angular-cli/.storybook/preview.ts deleted file mode 100644 index 670c15d3a06b..000000000000 --- a/code/examples/angular-cli/.storybook/preview.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* eslint-disable import/extensions, import/no-unresolved */ -import { setCompodocJson } from '@storybook/addon-docs/angular'; -import addCssWarning from '../src/cssWarning'; - -import docJson from '../documentation.json'; -// remove ButtonComponent to test #12009 -const filtered = !docJson?.components - ? docJson - : { - ...docJson, - components: docJson.components.filter((c) => c.name !== 'ButtonComponent'), - }; -setCompodocJson(filtered); - -addCssWarning(); - -export const parameters = { - docs: { - inlineStories: true, - }, - options: { - storySort: { - order: ['Welcome', 'Core ', 'Addons ', 'Basics '], - }, - }, -}; - -export const globalTypes = { - theme: { - name: 'Theme', - description: 'Global theme for components', - defaultValue: 'light', - toolbar: { - icon: 'paintbrush', - items: [ - { value: 'light', title: 'Light theme' }, - { value: 'dark', title: 'Dark theme' }, - ], - }, - }, - locale: { - name: 'Locale', - description: 'Internationalization locale', - defaultValue: 'en', - toolbar: { - icon: 'globe', - items: [ - { value: 'en', right: '🇺🇸', title: 'English' }, - { value: 'es', right: '🇪🇸', title: 'Español' }, - { value: 'zh', right: '🇨🇳', title: '中文' }, - { value: 'kr', right: '🇰🇷', title: '한국어' }, - ], - }, - }, -}; diff --git a/code/examples/angular-cli/.storybook/tsconfig.json b/code/examples/angular-cli/.storybook/tsconfig.json deleted file mode 100644 index b204c9f780fb..000000000000 --- a/code/examples/angular-cli/.storybook/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../tsconfig.app.json", - "exclude": ["../src/karma.ts", "../src/**/*.spec.ts"], - "include": ["../src/**/*", "preview.ts"], - "compilerOptions": { - "types": ["@testing-library/jest-dom"] - } -} diff --git a/code/examples/angular-cli/README.md b/code/examples/angular-cli/README.md deleted file mode 100644 index abde1422bbbf..000000000000 --- a/code/examples/angular-cli/README.md +++ /dev/null @@ -1,27 +0,0 @@ -# AngularCli - -This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.0.0. - -## Development server - -Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. - -## Code scaffolding - -Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. - -## Build - -Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. - -## Running unit tests - -Run `ng test` to execute the unit tests via [Jest](https://facebook.github.io/jest/). - -## Running end-to-end tests - -Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). - -## Further help - -To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). diff --git a/code/examples/angular-cli/angular.json b/code/examples/angular-cli/angular.json deleted file mode 100644 index a54f3edead0c..000000000000 --- a/code/examples/angular-cli/angular.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - /* angular.json can have comments */ - // angular.json can have comments - "$schema": "../../node_modules/@angular/cli/lib/config/schema.json", - "version": 1, - "newProjectRoot": "projects", - "projects": { - "angular-cli": { - "root": "", - "sourceRoot": "src", - "projectType": "application", - "prefix": "app", - "schematics": {}, - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "outputPath": "dist/angular-cli", - "index": "src/index.html", - "main": "src/main.ts", - "polyfills": "src/polyfills.ts", - "tsConfig": "tsconfig.app.json", - "assets": ["src/favicon.ico", "src/assets"], - "styles": ["src/styles.css", "src/styles.scss"], - "stylePreprocessorOptions": { - "includePaths": ["src/commons"] - }, - "scripts": [], - "aot": false, - "vendorChunk": true, - "extractLicenses": false, - "buildOptimizer": false, - "sourceMap": true, - "optimization": false, - "namedChunks": true - }, - "configurations": { - "production": { - "fileReplacements": [ - { - "replace": "src/environments/environment.ts", - "with": "src/environments/environment.prod.ts" - } - ], - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true - } - }, - "defaultConfiguration": "" - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "browserTarget": "angular-cli:build" - }, - "configurations": { - "production": { - "browserTarget": "angular-cli:build:production" - } - } - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "browserTarget": "angular-cli:build" - } - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "src/karma.ts", - "polyfills": "src/polyfills.ts", - "tsConfig": "src/tsconfig.spec.json", - "karmaConfig": "src/karma.conf.js", - "styles": ["styles.css"], - "scripts": [], - "assets": ["src/favicon.ico", "src/assets"] - } - }, - "storybook": { - "builder": "@storybook/angular:start-storybook", - "options": { - "browserTarget": "angular-cli:build", - "port": 4400 - } - }, - "build-storybook": { - "builder": "@storybook/angular:build-storybook", - "options": { - "browserTarget": "angular-cli:build" - } - } - } - }, - "angular-cli-e2e": { - "root": "e2e/", - "projectType": "application", - "architect": { - "e2e": { - "builder": "@angular-devkit/build-angular:protractor", - "options": { - "protractorConfig": "e2e/protractor.conf.js", - "devServerTarget": "angular-cli:serve" - } - } - } - }, - "without-browser-target": { - "root": "", - "projectType": "library", - "architect": { - "storybook": { - "builder": "@storybook/angular:start-storybook", - "options": { - "tsConfig": "tsconfig.app.json" - } - }, - "build-storybook": { - "builder": "@storybook/angular:build-storybook", - "options": { - "tsConfig": "tsconfig.app.json" - } - } - } - } - }, - "defaultProject": "angular-cli" -} diff --git a/code/examples/angular-cli/angularshots.test.js b/code/examples/angular-cli/angularshots.test.js deleted file mode 100644 index a7532588da4f..000000000000 --- a/code/examples/angular-cli/angularshots.test.js +++ /dev/null @@ -1,13 +0,0 @@ -import path from 'path'; -import initStoryshots, { multiSnapshotWithOptions } from '@storybook/addon-storyshots'; - -jest.mock('./addon-jest.testresults.json', () => ({}), { virtual: true }); -jest.mock('./documentation.json', () => ({}), { virtual: true }); -jest.mock('./environments/environment', () => ({}), { virtual: true }); - -initStoryshots({ - framework: 'angular', - integrityOptions: { cwd: path.join(__dirname, 'src', 'stories') }, - configPath: path.join(__dirname, '.storybook'), - test: multiSnapshotWithOptions(), -}); diff --git a/code/examples/angular-cli/e2e/app.e2e-spec.ts b/code/examples/angular-cli/e2e/app.e2e-spec.ts deleted file mode 100644 index 33a23c8b6cff..000000000000 --- a/code/examples/angular-cli/e2e/app.e2e-spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* eslint-disable import/no-extraneous-dependencies */ -import { AppPage } from './app.po'; -import 'jasmine'; - -describe('ng5test App', () => { - let page: AppPage; - - beforeEach(() => { - page = new AppPage(); - }); - - it('should display welcome message', () => { - page.navigateTo(); - expect(page.getParagraphText() as any).toEqual('Welcome to app!'); - }); -}); diff --git a/code/examples/angular-cli/e2e/app.po.ts b/code/examples/angular-cli/e2e/app.po.ts deleted file mode 100644 index eb663398fd58..000000000000 --- a/code/examples/angular-cli/e2e/app.po.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { browser, by, element } from 'protractor'; - -export class AppPage { - navigateTo() { - return browser.get('/'); - } - - getParagraphText() { - return element(by.css('storybook-app-root h1')).getText(); - } -} diff --git a/code/examples/angular-cli/e2e/tsconfig.e2e.json b/code/examples/angular-cli/e2e/tsconfig.e2e.json deleted file mode 100644 index f60fd80412d3..000000000000 --- a/code/examples/angular-cli/e2e/tsconfig.e2e.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "outDir": "../out-tsc/e2e", - "baseUrl": "./", - "module": "commonjs", - "target": "es5", - "types": ["jasmine", "jasminewd2", "node"] - } -} diff --git a/code/examples/angular-cli/jest-config/globalMocks.ts b/code/examples/angular-cli/jest-config/globalMocks.ts deleted file mode 100644 index ea4ad1e138d4..000000000000 --- a/code/examples/angular-cli/jest-config/globalMocks.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* eslint-disable no-return-assign */ -const mock = () => { - let storage = {}; - return { - getItem: (key) => (key in storage ? storage[key] : null), - setItem: (key, value) => (storage[key] = value || ''), - removeItem: (key) => delete storage[key], - clear: () => (storage = {}), - }; -}; -Object.defineProperty(window, 'localStorage', { - value: mock(), -}); -Object.defineProperty(window, 'sessionStorage', { - value: mock(), -}); -Object.defineProperty(window, 'getComputedStyle', { - value: () => ['-webkit-appearance'], -}); diff --git a/code/examples/angular-cli/jest-config/setup.ts b/code/examples/angular-cli/jest-config/setup.ts deleted file mode 100644 index 276aba67d769..000000000000 --- a/code/examples/angular-cli/jest-config/setup.ts +++ /dev/null @@ -1,4 +0,0 @@ -import 'jest-preset-angular/setup-jest'; -import './globalMocks'; - -require('@storybook/babel-plugin-require-context-hook/register')(); diff --git a/code/examples/angular-cli/jest.addon-config.js b/code/examples/angular-cli/jest.addon-config.js deleted file mode 100644 index 04efa309f44d..000000000000 --- a/code/examples/angular-cli/jest.addon-config.js +++ /dev/null @@ -1,7 +0,0 @@ -/* eslint-disable import/extensions */ -const base = require('./jest.config.js'); - -module.exports = { - ...base, - testPathIgnorePatterns: ['/node_modules/', '/storybook-static/', 'angularshots.test.js', 'dist'], -}; diff --git a/code/examples/angular-cli/jest.config.js b/code/examples/angular-cli/jest.config.js deleted file mode 100644 index d30bd54e04dd..000000000000 --- a/code/examples/angular-cli/jest.config.js +++ /dev/null @@ -1,35 +0,0 @@ -const path = require('path'); -const config = require('../../jest.config'); - -const projectDir = path.join(__dirname, '../../'); - -module.exports = { - preset: 'jest-preset-angular', - globals: { - 'ts-jest': { - tsconfig: path.join(__dirname, 'src/tsconfig.spec.json'), - stringifyContentPathRegex: '\\.html$', - astTransformers: { - before: [ - 'jest-preset-angular/build/InlineFilesTransformer', - 'jest-preset-angular/build/StripStylesTransformer', - ], - }, - }, - }, - roots: [__dirname], - transform: { - '^.+\\.stories\\.[jt]sx?$': '@storybook/addon-storyshots/injectFileName', - '^.+\\.(ts|html)$': 'ts-jest', - '^.+\\.jsx?$': path.join(projectDir, '../scripts/utils/jest-transform-js.js'), - '^.+\\.mdx$': '@storybook/addon-docs/jest-transform-mdx', - }, - moduleFileExtensions: [...config.moduleFileExtensions, 'html'], - snapshotSerializers: [ - 'jest-preset-angular/build/serializers/html-comment', - 'jest-preset-angular/build/serializers/ng-snapshot', - 'jest-preset-angular/build/serializers/no-ng-attributes', - ], - setupFilesAfterEnv: ['./jest-config/setup.ts'], - testPathIgnorePatterns: ['app.component.spec.ts'], -}; diff --git a/code/examples/angular-cli/package.json b/code/examples/angular-cli/package.json deleted file mode 100644 index bd3dbd50f910..000000000000 --- a/code/examples/angular-cli/package.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "name": "angular-cli", - "version": "7.0.0-alpha.37", - "private": true, - "license": "MIT", - "workspaces": { - "nohoist": [ - "**" - ] - }, - "scripts": { - "build": "ng build", - "build-storybook": "yarn storybook-prebuild && ng run angular-cli:build-storybook", - "docs:json": "compodoc -p ./tsconfig.json -e json -d .", - "e2e": "ng e2e", - "postinstall": "ngcc --source ../../node_modules", - "ng": "ng", - "start": "ng serve", - "storybook": "yarn storybook-prebuild && ng run angular-cli:storybook", - "storybook-prebuild": "yarn test:generate-output", - "test": "jest", - "test:coverage": "jest --coverage", - "test:generate-output": "jest --json --config=jest.addon-config.js --outputFile=addon-jest.testresults.json || true", - "test:watch": "jest --watch" - }, - "dependencies": { - "@angular/common": "^13.3.6", - "@angular/compiler": "^13.3.6", - "@angular/core": "^13.3.6", - "@angular/forms": "^13.3.6", - "@angular/platform-browser": "^13.3.6", - "@angular/platform-browser-dynamic": "^13.3.6", - "@ngrx/store": "^13.2.0", - "rxjs": "^6.6.7", - "sass": "^1.43.4", - "telejson": "^6.0.8", - "zone.js": "~0.11.4" - }, - "devDependencies": { - "@angular-devkit/build-angular": "^13.3.5", - "@angular-devkit/core": "^13.3.5", - "@angular/cli": "^13.3.5", - "@angular/compiler-cli": "^13.3.6", - "@angular/elements": "^13.3.6", - "@compodoc/compodoc": "^1.1.18", - "@storybook/addon-a11y": "7.0.0-alpha.37", - "@storybook/addon-actions": "7.0.0-alpha.37", - "@storybook/addon-backgrounds": "7.0.0-alpha.37", - "@storybook/addon-controls": "7.0.0-alpha.37", - "@storybook/addon-docs": "7.0.0-alpha.37", - "@storybook/addon-highlight": "7.0.0-alpha.37", - "@storybook/addon-interactions": "7.0.0-alpha.37", - "@storybook/addon-jest": "7.0.0-alpha.37", - "@storybook/addon-links": "7.0.0-alpha.37", - "@storybook/addon-storyshots": "7.0.0-alpha.37", - "@storybook/addon-storysource": "7.0.0-alpha.37", - "@storybook/addons": "7.0.0-alpha.37", - "@storybook/angular": "7.0.0-alpha.37", - "@storybook/babel-plugin-require-context-hook": "1.0.1", - "@storybook/jest": "^0.0.10", - "@storybook/source-loader": "7.0.0-alpha.37", - "@storybook/testing-library": "0.0.14-next.0", - "@types/jest": "^26.0.16", - "@types/node": "^14.14.20 || ^16.0.0", - "@types/sass": "^1", - "@webcomponents/custom-elements": "^1.4.3", - "global": "^4.4.0", - "jasmine-core": "~3.6.0", - "jasmine-spec-reporter": "~5.0.2", - "jest": "^26.6.3", - "jest-preset-angular": "^8.3.2", - "protractor": "~7.0.0", - "storybook": "7.0.0-alpha.37", - "storybook-addon-angular-ivy": "^0.0.1", - "ts-jest": "^26.4.4", - "ts-node": "^10.4.0", - "typescript": "~4.6.3" - }, - "storybook": { - "chromatic": { - "projectToken": "tl92yzsj6w" - } - } -} diff --git a/code/examples/angular-cli/protractor.conf.js b/code/examples/angular-cli/protractor.conf.js deleted file mode 100644 index 7699c9c53812..000000000000 --- a/code/examples/angular-cli/protractor.conf.js +++ /dev/null @@ -1,27 +0,0 @@ -/*eslint-disable*/ -// Protractor configuration file, see link for more information -// https://github.com/angular/protractor/blob/master/lib/config.ts - -const { SpecReporter } = require('jasmine-spec-reporter'); - -exports.config = { - allScriptsTimeout: 11000, - specs: ['./e2e/**/*.e2e-spec.ts'], - capabilities: { - browserName: 'chrome', - }, - directConnect: true, - baseUrl: 'http://localhost:4200/', - framework: 'jasmine', - jasmineNodeOpts: { - showColors: true, - defaultTimeoutInterval: 30000, - print() {}, - }, - onPrepare() { - require('ts-node').register({ - project: 'e2e/tsconfig.e2e.json', - }); - jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); - }, -}; diff --git a/code/examples/angular-cli/src/app/app.component.html b/code/examples/angular-cli/src/app/app.component.html deleted file mode 100644 index 3715229078a1..000000000000 --- a/code/examples/angular-cli/src/app/app.component.html +++ /dev/null @@ -1,25 +0,0 @@ - -
- This should be hidden, if not - scss is not loaded as needed. -
-
-

Welcome to {{ title }}!

- -
-

Here are some links to help you start:

- diff --git a/code/examples/angular-cli/src/app/app.component.scss b/code/examples/angular-cli/src/app/app.component.scss deleted file mode 100644 index 8b20dbe44d7a..000000000000 --- a/code/examples/angular-cli/src/app/app.component.scss +++ /dev/null @@ -1,5 +0,0 @@ -$display: none; - -.hide { - display: $display; -} diff --git a/code/examples/angular-cli/src/app/app.component.spec.ts b/code/examples/angular-cli/src/app/app.component.spec.ts deleted file mode 100644 index fc39d934a589..000000000000 --- a/code/examples/angular-cli/src/app/app.component.spec.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserTestingModule } from '@angular/platform-browser/testing'; - -import { AppComponent } from './app.component'; - -describe('AppComponent', () => { - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [BrowserTestingModule], - declarations: [AppComponent], - }).compileComponents(); - })); - - it('should create the app', waitForAsync(() => { - const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; - expect(app).toBeTruthy(); - })); - - it(`should have as title 'app'`, waitForAsync(() => { - const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; - expect(app.title).toEqual('app'); - })); - - it('should render title in a h1 tag', waitForAsync(() => { - const fixture = TestBed.createComponent(AppComponent); - fixture.detectChanges(); - const compiled = fixture.debugElement.nativeElement; - expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!'); - })); -}); diff --git a/code/examples/angular-cli/src/app/app.component.ts b/code/examples/angular-cli/src/app/app.component.ts deleted file mode 100644 index cd7b01613d85..000000000000 --- a/code/examples/angular-cli/src/app/app.component.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'storybook-app-root', - templateUrl: './app.component.html', - styleUrls: ['./app.component.scss'], -}) -export class AppComponent { - /** - * The name of your app - */ - title = 'app'; -} diff --git a/code/examples/angular-cli/src/app/app.module.ts b/code/examples/angular-cli/src/app/app.module.ts deleted file mode 100644 index 5ce7811a4c03..000000000000 --- a/code/examples/angular-cli/src/app/app.module.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BrowserModule } from '@angular/platform-browser'; -import { NgModule } from '@angular/core'; - -import { AppComponent } from './app.component'; - -@NgModule({ - declarations: [AppComponent], - imports: [BrowserModule], - providers: [], - bootstrap: [AppComponent], -}) -export class AppModule {} diff --git a/code/examples/angular-cli/src/assets/.gitkeep b/code/examples/angular-cli/src/assets/.gitkeep deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/code/examples/angular-cli/src/assets/a/a.json b/code/examples/angular-cli/src/assets/a/a.json deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/code/examples/angular-cli/src/assets/b/b.json b/code/examples/angular-cli/src/assets/b/b.json deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/code/examples/angular-cli/src/assets/favicon.ico b/code/examples/angular-cli/src/assets/favicon.ico deleted file mode 100644 index 8081c7ceaf2be08bf59010158c586170d9d2d517..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5430 zcmc(je{54#6vvCoAI3i*G5%$U7!sA3wtMZ$fH6V9C`=eXGJb@R1%(I_{vnZtpD{6n z5Pl{DmxzBDbrB>}`90e12m8T*36WoeDLA&SD_hw{H^wM!cl_RWcVA!I+x87ee975; z@4kD^=bYPn&pmG@(+JZ`rqQEKxW<}RzhW}I!|ulN=fmjVi@x{p$cC`)5$a!)X&U+blKNvN5tg=uLvuLnuqRM;Yc*swiexsoh#XPNu{9F#c`G zQLe{yWA(Y6(;>y|-efAy11k<09(@Oo1B2@0`PtZSkqK&${ zgEY}`W@t{%?9u5rF?}Y7OL{338l*JY#P!%MVQY@oqnItpZ}?s z!r?*kwuR{A@jg2Chlf0^{q*>8n5Ir~YWf*wmsh7B5&EpHfd5@xVaj&gqsdui^spyL zB|kUoblGoO7G(MuKTfa9?pGH0@QP^b#!lM1yHWLh*2iq#`C1TdrnO-d#?Oh@XV2HK zKA{`eo{--^K&MW66Lgsktfvn#cCAc*(}qsfhrvOjMGLE?`dHVipu1J3Kgr%g?cNa8 z)pkmC8DGH~fG+dlrp(5^-QBeEvkOvv#q7MBVLtm2oD^$lJZx--_=K&Ttd=-krx(Bb zcEoKJda@S!%%@`P-##$>*u%T*mh+QjV@)Qa=Mk1?#zLk+M4tIt%}wagT{5J%!tXAE;r{@=bb%nNVxvI+C+$t?!VJ@0d@HIyMJTI{vEw0Ul ze(ha!e&qANbTL1ZneNl45t=#Ot??C0MHjjgY8%*mGisN|S6%g3;Hlx#fMNcL<87MW zZ>6moo1YD?P!fJ#Jb(4)_cc50X5n0KoDYfdPoL^iV`k&o{LPyaoqMqk92wVM#_O0l z09$(A-D+gVIlq4TA&{1T@BsUH`Bm=r#l$Z51J-U&F32+hfUP-iLo=jg7Xmy+WLq6_tWv&`wDlz#`&)Jp~iQf zZP)tu>}pIIJKuw+$&t}GQuqMd%Z>0?t%&BM&Wo^4P^Y z)c6h^f2R>X8*}q|bblAF?@;%?2>$y+cMQbN{X$)^R>vtNq_5AB|0N5U*d^T?X9{xQnJYeU{ zoZL#obI;~Pp95f1`%X3D$Mh*4^?O?IT~7HqlWguezmg?Ybq|7>qQ(@pPHbE9V?f|( z+0xo!#m@Np9PljsyxBY-UA*{U*la#8Wz2sO|48_-5t8%_!n?S$zlGe+NA%?vmxjS- zHE5O3ZarU=X}$7>;Okp(UWXJxI%G_J-@IH;%5#Rt$(WUX?6*Ux!IRd$dLP6+SmPn= z8zjm4jGjN772R{FGkXwcNv8GBcZI#@Y2m{RNF_w8(Z%^A*!bS*!}s6sh*NnURytky humW;*g7R+&|Ledvc- - - - - Ng5test - - - - - - - - - diff --git a/code/examples/angular-cli/src/karma.ts b/code/examples/angular-cli/src/karma.ts deleted file mode 100644 index 6d9bcf8f0f42..000000000000 --- a/code/examples/angular-cli/src/karma.ts +++ /dev/null @@ -1,31 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'zone.js/dist/long-stack-trace-zone'; -// eslint-disable-next-line import/extensions -import 'zone.js/dist/proxy.js'; -import 'zone.js/dist/sync-test'; -import 'zone.js/dist/jasmine-patch'; -import 'zone.js/dist/async-test'; -import 'zone.js/dist/fake-async-test'; -import { getTestBed } from '@angular/core/testing'; -import { - BrowserDynamicTestingModule, - platformBrowserDynamicTesting, -} from '@angular/platform-browser-dynamic/testing'; - -// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. -// eslint-disable-next-line no-underscore-dangle -declare const __karma__: any; -declare const require: any; - -// Prevent Karma from running prematurely. -__karma__.loaded = () => {}; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); -// Then we find all the tests. -const context = require.context('./', true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); -// Finally, start Karma to run the tests. -__karma__.start(); diff --git a/code/examples/angular-cli/src/main.ts b/code/examples/angular-cli/src/main.ts deleted file mode 100644 index dbd339586678..000000000000 --- a/code/examples/angular-cli/src/main.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { enableProdMode } from '@angular/core'; -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; - -import { AppModule } from './app/app.module'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} - -platformBrowserDynamic() - .bootstrapModule(AppModule) - // eslint-disable-next-line - .catch((err) => console.error(err)); diff --git a/code/examples/angular-cli/src/polyfills.ts b/code/examples/angular-cli/src/polyfills.ts deleted file mode 100644 index 4dc52c21f276..000000000000 --- a/code/examples/angular-cli/src/polyfills.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * This file includes polyfills needed by Angular and is loaded before the app. - * You can add your own extra polyfills to this file. - * - * This file is divided into 2 sections: - * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. - * 2. Application imports. Files imported after ZoneJS that should be loaded before your main - * file. - * - * The current setup is for so-called "evergreen" browsers; the last versions of browsers that - * automatically update themselves. This includes recent versions of Safari, Chrome (including - * Opera), Edge on the desktop, and iOS and Chrome on mobile. - * - * Learn more in https://angular.io/guide/browser-support - */ - -/** ************************************************************************************************* - * BROWSER POLYFILLS - */ - -/** - * By default, zone.js will patch all possible macroTask and DomEvents - * user can disable parts of macroTask/DomEvents patch by setting following flags - * because those flags need to be set before `zone.js` being loaded, and webpack - * will put import in the top of bundle, so user need to create a separate file - * in this directory (for example: zone-flags.ts), and put the following flags - * into that file, and then add the following code before importing zone.js. - * import './zone-flags'; - * - * The flags allowed in zone-flags.ts are listed here. - * - * The following flags will work for all browsers. - * - * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame - * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick - * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames - * - * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js - * with the following flag, it will bypass `zone.js` patch for IE/Edge - * - * (window as any).__Zone_enable_cross_context_check = true; - * - */ - -/** ************************************************************************************************* - * Zone JS is required by default for Angular itself. - */ -import 'zone.js'; // Included with Angular CLI. - -/** ************************************************************************************************* - * APPLICATION IMPORTS - */ diff --git a/code/examples/angular-cli/src/stories/__snapshots__/welcome-angular.stories.storyshot b/code/examples/angular-cli/src/stories/__snapshots__/welcome-angular.stories.storyshot deleted file mode 100644 index 3c6dbf4540b1..000000000000 --- a/code/examples/angular-cli/src/stories/__snapshots__/welcome-angular.stories.storyshot +++ /dev/null @@ -1,61 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Welcome/ To Angular To Angular 1`] = ` - - -
- This should be hidden, if not - scss is not loaded as needed. - -
-
-

- Welcome to app! -

- -
-

- Here are some links to help you start: -

- -
-
-`; diff --git a/code/examples/angular-cli/src/stories/__snapshots__/welcome-storybook.stories.storyshot b/code/examples/angular-cli/src/stories/__snapshots__/welcome-storybook.stories.storyshot deleted file mode 100644 index 3b19bc7405fe..000000000000 --- a/code/examples/angular-cli/src/stories/__snapshots__/welcome-storybook.stories.storyshot +++ /dev/null @@ -1,92 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Welcome/ To Storybook To Storybook 1`] = ` - - -
-

- Welcome to storybook -

-

- This is a UI component dev environment for your app. -

-

- We've added some basic stories inside the - - src/stories - - directory. -
- A story is a single state of one or more UI components. You can have as many stories as you want. -
- (Basically a story is like a visual test case.) -

-

- See these sample - - stories - - for a component called - - Button - - . -

-

- Just like that, you can add your own components as stories. -
- You can also edit those components and see changes right away. -
- (Try editing the - - Button - - stories located at - - src/stories/index.js - - .) -

-

- Usually we create stories with smaller UI components in the app. -
- Have a look at the - - Writing Stories - - section in our documentation. -

-

- - NOTE: - -
- Have a look at the - - .storybook/webpack.config.js - - to add webpack loaders and plugins you are using in this project. -

-
-
-
-`; diff --git a/code/examples/angular-cli/src/stories/addons/README.stories.mdx b/code/examples/angular-cli/src/stories/addons/README.stories.mdx deleted file mode 100644 index a9a1efaa54ff..000000000000 --- a/code/examples/angular-cli/src/stories/addons/README.stories.mdx +++ /dev/null @@ -1,7 +0,0 @@ -import { Meta } from '@storybook/addon-docs'; - - - -# Examples for Storybook addons - -These examples can be used to check the correct operation of addons requiring a particular configuration for angular diff --git a/code/examples/angular-cli/src/stories/addons/interactions/__snapshots__/addon-interactions.stories.storyshot b/code/examples/angular-cli/src/stories/addons/interactions/__snapshots__/addon-interactions.stories.storyshot deleted file mode 100644 index c81acafb0a8d..000000000000 --- a/code/examples/angular-cli/src/stories/addons/interactions/__snapshots__/addon-interactions.stories.storyshot +++ /dev/null @@ -1,896 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Addons/Interactions Filled 1`] = ` - - -
-
-

- Hero Form -

-
-
- - - -
-
- - -
-
- - - -
- -
-
- -
-
-
-`; - -exports[`Storyshots Addons/Interactions Invalid Fields 1`] = ` - - -
-
-

- Hero Form -

-
-
- - - -
-
- - -
-
- - - -
- -
-
- -
-
-
-`; - -exports[`Storyshots Addons/Interactions Standard 1`] = ` - - -
-
-

- Hero Form -

-
-
- - - -
-
- - -
-
- - - -
- -
-
- -
-
-
-`; - -exports[`Storyshots Addons/Interactions Submitted 1`] = ` - - -
-
-

- Hero Form -

-
-
- - - -
-
- - -
-
- - - -
- -
-
- -
-
-
-`; - -exports[`Storyshots Addons/Interactions Submitted And Edited After 1`] = ` - - -
-
-

- Hero Form -

-
-
- - - -
-
- - -
-
- - - -
- -
-
- -
-
-
-`; diff --git a/code/examples/angular-cli/src/stories/addons/interactions/addon-interactions.stories.ts b/code/examples/angular-cli/src/stories/addons/interactions/addon-interactions.stories.ts deleted file mode 100644 index 79f27fc7fdd7..000000000000 --- a/code/examples/angular-cli/src/stories/addons/interactions/addon-interactions.stories.ts +++ /dev/null @@ -1,112 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { StoryFn, Meta, moduleMetadata } from '@storybook/angular'; -import { expect } from '@storybook/jest'; -import { within, userEvent, waitFor } from '@storybook/testing-library'; - -import { HeroForm } from './hero-form/hero-form.component'; - -export default { - title: 'Addons/Interactions', - component: HeroForm, - decorators: [ - moduleMetadata({ - imports: [CommonModule, FormsModule], - }), - ], -} as Meta; - -const Template: StoryFn = (args) => ({ - props: args, -}); - -export const Standard: StoryFn = Template.bind({}); - -export const Filled: StoryFn = Template.bind({}); -Filled.play = async ({ canvasElement }) => { - const canvas = within(canvasElement); - const heroName = canvas.getByRole('textbox', { - name: /name/i, - }); - await userEvent.type(heroName, 'Storm'); - - const alterEgo = canvas.getByRole('textbox', { - name: /alter ego/i, - }); - await userEvent.type(alterEgo, 'Ororo Munroe'); - - const heroPower = canvas.getByRole('combobox', { name: /hero power/i }); - await userEvent.selectOptions(heroPower, 'Weather Changer'); -}; - -export const InvalidFields: StoryFn = Template.bind({}); -InvalidFields.play = async (context) => { - await Filled.play(context); - - const canvas = within(context.canvasElement); - await userEvent.clear( - canvas.getByRole('textbox', { - name: /name/i, - }) - ); - await userEvent.clear( - canvas.getByRole('textbox', { - name: /alter ego/i, - }) - ); - - const heroPower = canvas.getByRole('combobox', { name: /hero power/i }); - await userEvent.selectOptions(heroPower, ''); -}; - -export const Submitted: StoryFn = Template.bind({}); -Submitted.play = async (context) => { - await Filled.play(context); - - const canvas = within(context.canvasElement); - await userEvent.click(canvas.getByText('Submit')); - - await waitFor( - async () => { - await expect( - canvas.getByRole('heading', { - name: /you submitted the following:/i, - }) - ).toBeInTheDocument(); - await expect(canvas.getByTestId('hero-name').textContent).toEqual('Storm'); - await expect(canvas.getByTestId('hero-alterego').textContent).toEqual('Ororo Munroe'); - await expect(canvas.getByTestId('hero-power').textContent).toEqual('Weather Changer'); - }, - { timeout: 2000 } - ); -}; - -export const SubmittedAndEditedAfter: StoryFn = Template.bind({}); -SubmittedAndEditedAfter.play = async (context) => { - await Submitted.play(context); - - const canvas = within(context.canvasElement); - await userEvent.click(canvas.getByText('Edit')); - - const heroName = canvas.getByRole('textbox', { - name: /name/i, - }); - await userEvent.clear(heroName); - await userEvent.type(heroName, 'Wakanda Queen'); - - await userEvent.click(canvas.getByText('Submit')); - - await waitFor(async () => { - await expect( - canvas.getByRole('heading', { - name: /you submitted the following:/i, - }) - ).toBeInTheDocument(); - // new value - await expect(canvas.getByTestId('hero-name').textContent).toEqual('Wakanda Queen'); - - // previous values - await expect(canvas.getByTestId('hero-alterego').textContent).toEqual('Ororo Munroe'); - await expect(canvas.getByTestId('hero-power').textContent).toEqual('Weather Changer'); - }); -}; diff --git a/code/examples/angular-cli/src/stories/addons/interactions/hero-form/hero-form.component.css b/code/examples/angular-cli/src/stories/addons/interactions/hero-form/hero-form.component.css deleted file mode 100644 index bb3b7b432db6..000000000000 --- a/code/examples/angular-cli/src/stories/addons/interactions/hero-form/hero-form.component.css +++ /dev/null @@ -1,270 +0,0 @@ -.ng-valid[required], -.ng-valid.required { - border-left: 5px solid #42a948; -} - -.ng-invalid:not(form) { - border-left: 5px solid #a94442; -} - -* { - font-family: Roboto, 'Helvetica Neue', Arial, Helvetica, sans-serif; - box-sizing: border-box; -} -h1, -h2 { - margin-top: 0; - margin-bottom: 0.5rem; - font-weight: 500; - line-height: 1.2; -} -h1 { - font-size: 2.5rem; -} -h2 { - font-size: 2rem; -} -@media (min-width: 576px) { - .container, - .container-sm { - max-width: 540px; - } -} -@media (min-width: 768px) { - .container, - .container-md, - .container-sm { - max-width: 720px; - } -} -@media (min-width: 992px) { - .container, - .container-lg, - .container-md, - .container-sm { - max-width: 960px; - } -} -@media (min-width: 1200px) { - .container, - .container-lg, - .container-md, - .container-sm { - max-width: 1140px; - } -} -.container { - width: 100%; - padding-right: 15px; - padding-left: 15px; - margin-right: auto; - margin-left: auto; -} - -.form-control { - display: block; - width: 100%; - height: calc(1.5em + 0.75rem + 2px); - padding: 0.375rem 0.75rem; - font-size: 1rem; - font-weight: 400; - line-height: 1.5; - color: #495057; - background-color: #fff; - background-clip: padding-box; - border: 1px solid #ced4da; - border-radius: 0.25rem; - transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -} -.form-control:focus { - color: #495057; - background-color: #fff; - border-color: #80bdff; - outline: 0; - box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%); -} -.form-group { - margin-bottom: 1rem; -} -label { - display: inline-block; - margin-bottom: 0.5rem; - line-height: 1.5; -} -.alert { - position: relative; - padding: 0.75rem 1.25rem; - margin-bottom: 1rem; - border: 1px solid transparent; - border-radius: 0.25rem; -} - -.alert-danger { - color: #721c24; - background-color: #f8d7da; - border-color: #f5c6cb; -} -.btn { - display: inline-block; - font-weight: 400; - color: #212529; - text-align: center; - vertical-align: middle; - cursor: pointer; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - background-color: transparent; - border: 1px solid transparent; - padding: 0.375rem 0.75rem; - font-size: 1rem; - line-height: 1.5; - border-radius: 0.25rem; - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -} - -.btn.disabled, -.btn:disabled { - opacity: 0.65; -} - -.btn-success { - color: #fff; - background-color: #28a745; - border-color: #28a745; -} - -.btn-success.disabled, -.btn-success:disabled { - color: #fff; - background-color: #28a745; - border-color: #28a745; -} -.btn-primary { - margin-top: 0.37rem; - color: #fff; - background-color: #007bff; - border-color: #007bff; -} -.spinner-border { - display: inline-block; - width: 2rem; - height: 2rem; - vertical-align: text-bottom; - border: 0.25em solid currentColor; - border-right-color: transparent; - border-radius: 50%; - -webkit-animation: spinner-border 0.75s linear infinite; - animation: spinner-border 0.75s linear infinite; -} -.spinner-border-sm { - margin-left: 0.5rem !important; - width: 1rem; - height: 1rem; - border-width: 0.2em; -} -@keyframes spinner-border { - to { - transform: rotate(360deg); - } -} -.font-weight-bold { - font-weight: 700 !important; -} -.row { - display: flex; - flex-wrap: wrap; - margin-right: -15px; - margin-left: -15px; -} -.col, -.col-1, -.col-10, -.col-11, -.col-12, -.col-2, -.col-3, -.col-4, -.col-5, -.col-6, -.col-7, -.col-8, -.col-9, -.col-auto, -.col-lg, -.col-lg-1, -.col-lg-10, -.col-lg-11, -.col-lg-12, -.col-lg-2, -.col-lg-3, -.col-lg-4, -.col-lg-5, -.col-lg-6, -.col-lg-7, -.col-lg-8, -.col-lg-9, -.col-lg-auto, -.col-md, -.col-md-1, -.col-md-10, -.col-md-11, -.col-md-12, -.col-md-2, -.col-md-3, -.col-md-4, -.col-md-5, -.col-md-6, -.col-md-7, -.col-md-8, -.col-md-9, -.col-md-auto, -.col-sm, -.col-sm-1, -.col-sm-10, -.col-sm-11, -.col-sm-12, -.col-sm-2, -.col-sm-3, -.col-sm-4, -.col-sm-5, -.col-sm-6, -.col-sm-7, -.col-sm-8, -.col-sm-9, -.col-sm-auto, -.col-xl, -.col-xl-1, -.col-xl-10, -.col-xl-11, -.col-xl-12, -.col-xl-2, -.col-xl-3, -.col-xl-4, -.col-xl-5, -.col-xl-6, -.col-xl-7, -.col-xl-8, -.col-xl-9, -.col-xl-auto { - position: relative; - width: 100%; - padding-right: 15px; - padding-left: 15px; - line-height: 24px; -} - -@media (min-width: 576px) { - .col-sm-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-sm-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } -} diff --git a/code/examples/angular-cli/src/stories/addons/interactions/hero-form/hero-form.component.html b/code/examples/angular-cli/src/stories/addons/interactions/hero-form/hero-form.component.html deleted file mode 100644 index f6a1943738a6..000000000000 --- a/code/examples/angular-cli/src/stories/addons/interactions/hero-form/hero-form.component.html +++ /dev/null @@ -1,79 +0,0 @@ -
-
-

Hero Form

-
-
- - -
- Name is required -
-
- -
- - -
-
- - - -
- Power is required -
-
- - -
-
- -
-

You submitted the following:

-
-
Name
-
{{ model.name }}
-
-
-
Alter Ego
-
{{ model.alterEgo }}
-
-
-
Power
-
{{ model.power }}
-
-
- -
-
diff --git a/code/examples/angular-cli/src/stories/addons/interactions/hero-form/hero-form.component.ts b/code/examples/angular-cli/src/stories/addons/interactions/hero-form/hero-form.component.ts deleted file mode 100644 index 6470db34d173..000000000000 --- a/code/examples/angular-cli/src/stories/addons/interactions/hero-form/hero-form.component.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { Component, NgModule } from '@angular/core'; -import { FormsModule } from '@angular/forms'; -import { CommonModule } from '@angular/common'; - -class Hero { - // eslint-disable-next-line no-useless-constructor - constructor( - public id: number, - public name: string, - public power: string, - public alterEgo?: string - ) {} -} - -@Component({ - selector: 'hero-form', - templateUrl: './hero-form.component.html', - styleUrls: ['./hero-form.component.css'], -}) -export class HeroForm { - /** - * This does not work on addon-controls as it is turned into a string - * @ignore - */ - model = new Hero(0, '', '', ''); - - /** - * This does not work on addon-controls as it is turned into a string - * @ignore - */ - powers = ['Really Smart', 'Super Flexible', 'Super Hot', 'Weather Changer']; - - submitting = false; - - submitted = false; - - onSubmit() { - this.submitting = true; - setTimeout(() => { - this.submitted = true; - this.submitting = false; - }, 1000); - } -} - -@NgModule({ - declarations: [HeroForm], - exports: [HeroForm], - imports: [CommonModule, FormsModule], -}) -export class HeroFormModule {} diff --git a/code/examples/angular-cli/src/stories/addons/jest/__snapshots__/addon-jest.stories.storyshot b/code/examples/angular-cli/src/stories/addons/jest/__snapshots__/addon-jest.stories.storyshot deleted file mode 100644 index cbe47f78285c..000000000000 --- a/code/examples/angular-cli/src/stories/addons/jest/__snapshots__/addon-jest.stories.storyshot +++ /dev/null @@ -1,61 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Addons/Jest app.component with jest tests 1`] = ` - - -
- This should be hidden, if not - scss is not loaded as needed. - -
-
-

- Welcome to app! -

- -
-

- Here are some links to help you start: -

- -
-
-`; diff --git a/code/examples/angular-cli/src/stories/addons/jest/addon-jest.stories.ts b/code/examples/angular-cli/src/stories/addons/jest/addon-jest.stories.ts deleted file mode 100644 index 8d1ef787c2de..000000000000 --- a/code/examples/angular-cli/src/stories/addons/jest/addon-jest.stories.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* eslint-disable import/extensions, import/no-unresolved */ -import { withTests } from '@storybook/addon-jest'; - -import { AppComponent } from '../../../app/app.component'; -import * as results from '../../../../addon-jest.testresults.json'; - -export default { - title: 'Addons/Jest', - component: AppComponent, - decorators: [ - withTests({ - results, - filesExt: '((\\.specs?)|(\\.tests?))?(\\.ts)?$', - }), - ], -}; - -export const AppComponentWithJestTests = () => ({ - props: {}, -}); - -AppComponentWithJestTests.storyName = 'app.component with jest tests'; - -AppComponentWithJestTests.parameters = { - jest: 'app.component', -}; diff --git a/code/examples/angular-cli/src/stories/addons/links/__snapshots__/addon-links.stories.storyshot b/code/examples/angular-cli/src/stories/addons/links/__snapshots__/addon-links.stories.storyshot deleted file mode 100644 index 988f64ab24eb..000000000000 --- a/code/examples/angular-cli/src/stories/addons/links/__snapshots__/addon-links.stories.storyshot +++ /dev/null @@ -1,13 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Addons/Links button with link to another story 1`] = ` - - - - - -`; diff --git a/code/examples/angular-cli/src/stories/addons/links/addon-links.stories.ts b/code/examples/angular-cli/src/stories/addons/links/addon-links.stories.ts deleted file mode 100644 index cb84b90ac77a..000000000000 --- a/code/examples/angular-cli/src/stories/addons/links/addon-links.stories.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Button } from '../../angular-demo'; - -export default { - component: Button, - title: 'Addons/Links', -}; - -export const ButtonWithLinkToAnotherStory = () => ({ - props: { - text: 'Go to Welcome Story', - onClick: () => {}, - }, -}); - -ButtonWithLinkToAnotherStory.storyName = 'button with link to another story'; diff --git a/code/examples/angular-cli/src/stories/angular-demo/button.component.ts b/code/examples/angular-cli/src/stories/angular-demo/button.component.ts deleted file mode 100644 index da804e507b7d..000000000000 --- a/code/examples/angular-cli/src/stories/angular-demo/button.component.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Component, Input, Output, EventEmitter } from '@angular/core'; - -@Component({ - selector: 'storybook-button-component', - template: ` `, - styles: [ - ` - button { - border: 1px solid #eee; - border-radius: 3px; - background-color: #ffffff; - cursor: pointer; - font-size: 15px; - padding: 3px 10px; - margin: 10px; - } - `, - ], -}) -export default class ButtonComponent { - @Input() - text = ''; - - @Output() - onClick = new EventEmitter(); -} diff --git a/code/examples/angular-cli/src/stories/angular-demo/index.ts b/code/examples/angular-cli/src/stories/angular-demo/index.ts deleted file mode 100644 index 738b3ea0e179..000000000000 --- a/code/examples/angular-cli/src/stories/angular-demo/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -import Welcome from './welcome.component'; -import Button from './button.component'; - -export { Welcome, Button }; diff --git a/code/examples/angular-cli/src/stories/angular-demo/welcome.component.ts b/code/examples/angular-cli/src/stories/angular-demo/welcome.component.ts deleted file mode 100644 index ab8309c1a581..000000000000 --- a/code/examples/angular-cli/src/stories/angular-demo/welcome.component.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { Component, Output, EventEmitter } from '@angular/core'; - -@Component({ - selector: 'storybook-welcome-component', - template: ` -
-

Welcome to storybook

-

This is a UI component dev environment for your app.

-

- We've added some basic stories inside the - src/stories directory.
- A story is a single state of one or more UI components. You can have as many stories as you - want.
- (Basically a story is like a visual test case.) -

-

- See these sample - stories for a component - called Button . -

-

- Just like that, you can add your own components as stories.
- You can also edit those components and see changes right away.
- (Try editing the Button stories located at - src/stories/index.js.) -

-

- Usually we create stories with smaller UI components in the app.
- Have a look at the - - Writing Stories - - section in our documentation. -

-

- NOTE:
- Have a look at the .storybook/webpack.config.js to add - webpack loaders and plugins you are using in this project. -

-
- `, - styles: [ - ` - main { - padding: 15px; - line-height: 1.4; - font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif; - background-color: #ffffff; - } - - .note { - opacity: 0.5; - } - - .inline-code { - font-size: 15px; - font-weight: 600; - padding: 2px 5px; - border: 1px solid #eae9e9; - border-radius: 4px; - background-color: #f3f2f2; - color: #3a3a3a; - } - - a { - color: #1474f3; - text-decoration: none; - border-bottom: 1px solid #1474f3; - padding-bottom: 2px; - } - `, - ], -}) -export default class WelcomeComponent { - @Output() - showApp = new EventEmitter(); -} diff --git a/code/examples/angular-cli/src/stories/from-cli/Button.stories.ts b/code/examples/angular-cli/src/stories/from-cli/Button.stories.ts deleted file mode 100644 index 1a4d6894f9a7..000000000000 --- a/code/examples/angular-cli/src/stories/from-cli/Button.stories.ts +++ /dev/null @@ -1,43 +0,0 @@ -import type { Meta, StoryFn } from '@storybook/angular'; -import Button from './button.component'; - -// More on default export: https://storybook.js.org/docs/angular/writing-stories/introduction#default-export -export default { - title: 'Example/Button', - component: Button, - // More on argTypes: https://storybook.js.org/docs/angular/api/argtypes - argTypes: { - backgroundColor: { control: 'color' }, - }, -} as Meta; - -// More on component templates: https://storybook.js.org/docs/angular/writing-stories/introduction#using-args -const Template: StoryFn`, - styleUrls: ['./button.css'], -}) -export default class MyButtonComponent { - /** - * Is this the principal call to action on the page? - */ - @Input() - primary = false; - - /** - * What background color to use - */ - @Input() - backgroundColor?: string; - - /** - * How large should the button be? - */ - @Input() - size?: 'small' | 'medium' | 'large'; - - /** - * Button contents - * - * @required - */ - @Input() - label = 'Button'; - - /** - * Optional click handler - */ - @Output() - onClick = new EventEmitter(); - - public get classes(): string[] { - const mode = this.primary ? 'storybook-button--primary' : 'storybook-button--secondary'; - - return ['storybook-button', `storybook-button--${this.size || 'medium'}`, mode]; - } -} diff --git a/code/examples/angular-cli/src/stories/from-cli/button.css b/code/examples/angular-cli/src/stories/from-cli/button.css deleted file mode 100644 index dc91dc76370b..000000000000 --- a/code/examples/angular-cli/src/stories/from-cli/button.css +++ /dev/null @@ -1,30 +0,0 @@ -.storybook-button { - font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-weight: 700; - border: 0; - border-radius: 3em; - cursor: pointer; - display: inline-block; - line-height: 1; -} -.storybook-button--primary { - color: white; - background-color: #1ea7fd; -} -.storybook-button--secondary { - color: #333; - background-color: transparent; - box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset; -} -.storybook-button--small { - font-size: 12px; - padding: 10px 16px; -} -.storybook-button--medium { - font-size: 14px; - padding: 11px 20px; -} -.storybook-button--large { - font-size: 16px; - padding: 12px 24px; -} diff --git a/code/examples/angular-cli/src/stories/preview/csf3/input-with-play.stories.ts b/code/examples/angular-cli/src/stories/preview/csf3/input-with-play.stories.ts deleted file mode 100644 index 924953246535..000000000000 --- a/code/examples/angular-cli/src/stories/preview/csf3/input-with-play.stories.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* eslint-disable storybook/await-interactions */ -/* eslint-disable storybook/use-storybook-testing-library */ -// @TODO: use addon-interactions and remove the rule disable above -import { screen } from '@testing-library/react'; -import userEvent from '@testing-library/user-event'; -import { InputComponent } from './sb-input.component'; - -export default { - title: 'Preview/CSF3/WithPlayFunction', - component: InputComponent, - parameters: { - // disabled : Not compatible yet with csf3 - storyshots: { disable: true }, - }, -}; - -export const Default = { - title: 'Default', - play: async () => { - const input = await screen.getByAltText('sb-input'); - await userEvent.type(input, `Typing from CSF3`); - }, -}; - -export const WithTemplate = { - title: 'Template', - render: (props) => ({ - props, - template: '

Heading

', - }), - play: async () => { - const input = screen.getByAltText('sb-input'); - userEvent.type(input, `Typing from CSF3`); - }, -}; diff --git a/code/examples/angular-cli/src/stories/preview/csf3/sb-input.component.ts b/code/examples/angular-cli/src/stories/preview/csf3/sb-input.component.ts deleted file mode 100644 index 403e240e9c9b..000000000000 --- a/code/examples/angular-cli/src/stories/preview/csf3/sb-input.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'sb-input', - template: ``, -}) -export class InputComponent {} diff --git a/code/examples/angular-cli/src/stories/welcome-angular.stories.ts b/code/examples/angular-cli/src/stories/welcome-angular.stories.ts deleted file mode 100644 index 48c0f874577a..000000000000 --- a/code/examples/angular-cli/src/stories/welcome-angular.stories.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { Meta, StoryFn } from '@storybook/angular'; -import { AppComponent } from '../app/app.component'; - -export default { - title: 'Welcome/ To Angular', -} as Meta; - -export const ToAngular: StoryFn = () => ({ - component: AppComponent, - props: { - showApp: () => {}, - }, -}); diff --git a/code/examples/angular-cli/src/stories/welcome-storybook.stories.ts b/code/examples/angular-cli/src/stories/welcome-storybook.stories.ts deleted file mode 100644 index 698119ce641d..000000000000 --- a/code/examples/angular-cli/src/stories/welcome-storybook.stories.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { Meta, StoryFn } from '@storybook/angular'; -import { Welcome } from './angular-demo'; - -export default { - title: 'Welcome/ To Storybook', -} as Meta; - -export const ToStorybook: StoryFn = () => ({ - component: Welcome, - props: { - showApp: () => {}, - }, -}); diff --git a/code/examples/angular-cli/src/styles.css b/code/examples/angular-cli/src/styles.css deleted file mode 100644 index dd56b348e94b..000000000000 --- a/code/examples/angular-cli/src/styles.css +++ /dev/null @@ -1,5 +0,0 @@ -/* You can add global styles to this file, and also import other style files */ - -.css-rules-warning { - display: none; -} diff --git a/code/examples/angular-cli/src/styles.scss b/code/examples/angular-cli/src/styles.scss deleted file mode 100644 index 2bcb866267c9..000000000000 --- a/code/examples/angular-cli/src/styles.scss +++ /dev/null @@ -1,17 +0,0 @@ -/* You can add global styles to this file, and also import other style files */ - -// should work because of the stylePreprocessorOptions in angular.json -@import '_colors'; - -.green-color { - color: $color; -} - -.light-theme { - background-color: white; -} - -.dark-theme { - background-color: rgb(75, 75, 75); - color: white; -} diff --git a/code/examples/angular-cli/src/tsconfig.spec.json b/code/examples/angular-cli/src/tsconfig.spec.json deleted file mode 100644 index 0f6fdc58d87b..000000000000 --- a/code/examples/angular-cli/src/tsconfig.spec.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "outDir": "../out-tsc/spec", - "baseUrl": "./", - "module": "commonjs", - "target": "es5", - "types": ["jest", "node"] - }, - "files": ["karma.ts"], - "include": ["**/*.spec.ts", "**/*.d.ts"] -} diff --git a/code/examples/angular-cli/src/typings.d.ts b/code/examples/angular-cli/src/typings.d.ts deleted file mode 100644 index b58fa33df4f6..000000000000 --- a/code/examples/angular-cli/src/typings.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* SystemJS module definition */ -declare var module: NodeModule; -interface NodeModule { - id: string; -} - -declare module '*.json' { - const value: any; - export default value; -} diff --git a/code/examples/angular-cli/tsconfig.app.json b/code/examples/angular-cli/tsconfig.app.json deleted file mode 100644 index 2722dbe8c96c..000000000000 --- a/code/examples/angular-cli/tsconfig.app.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./out-tsc/app", - "types": [] - }, - "files": ["src/main.ts", "src/polyfills.ts"], - "include": ["src/**/*.d.ts"], - "exclude": ["**/*.stories.*"] -} diff --git a/code/examples/angular-cli/tsconfig.json b/code/examples/angular-cli/tsconfig.json deleted file mode 100644 index e8b97eb7bb68..000000000000 --- a/code/examples/angular-cli/tsconfig.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - /* tsconfig.json can have comments */ - // tsconfig.json can have comments - "lerna": { - "disabled": true - }, - "compileOnSave": false, - "compilerOptions": { - "allowSyntheticDefaultImports": true, - "baseUrl": "./", - "declaration": false, - "downlevelIteration": true, - "emitDecoratorMetadata": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "forceConsistentCasingInFileNames": true, - "importHelpers": true, - "lib": ["es2020", "dom"], - "module": "es2020", - "moduleResolution": "node", - "noFallthroughCasesInSwitch": true, - "noImplicitOverride": true, - "noImplicitReturns": false, - "noPropertyAccessFromIndexSignature": false, - "outDir": "./dist/out-tsc", - "skipLibCheck": true, - "sourceMap": true, - "strict": false, - "target": "es2017", - "typeRoots": ["../../node_modules/@types", "node_modules/@types"] - }, - "angularCompilerOptions": { - "enableI18nLegacyMessageIdFormat": false, - "strictInjectionParameters": true, - "strictInputAccessModifiers": true, - "strictTemplates": true - } -} diff --git a/code/jest.config.js b/code/jest.config.js index 05fe5764cc93..13a5ef6f4450 100644 --- a/code/jest.config.js +++ b/code/jest.config.js @@ -29,7 +29,6 @@ module.exports = { // '/app/angular', // '/examples/svelte-kitchen-sink', // '/examples/vue-kitchen-sink', - // '/examples/angular-cli', // '/examples/preact-kitchen-sink', // This is explicitly commented out because having vue 2 & 3 in the // dependency graph makes it impossible to run storyshots on both examples diff --git a/code/workspace.json b/code/workspace.json index 23d0bc9244fa..770d879fb0e2 100644 --- a/code/workspace.json +++ b/code/workspace.json @@ -411,11 +411,6 @@ "type": "library", "implicitDependencies": [] }, - "angular-cli": { - "root": "examples/angular-cli", - "type": "library", - "implicitDependencies": [] - }, "ember-example": { "root": "examples/ember-cli", "type": "library", diff --git a/code/yarn.lock b/code/yarn.lock index a60edc3aeb9c..8b8af0a5642c 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -4894,18 +4894,6 @@ __metadata: languageName: node linkType: hard -"@ngrx/store@npm:^13.2.0": - version: 13.2.0 - resolution: "@ngrx/store@npm:13.2.0" - dependencies: - tslib: ^2.0.0 - peerDependencies: - "@angular/core": ^13.0.0 - rxjs: ^6.5.3 || ^7.4.0 - checksum: 1d465373a3e76d5423d0c6d998591adad933af827ea389cee88ba88c67b96b506d23dfc10ae9fabec47e2d5627504c1f0025e7bccd3c33509e5390c0f18dd45b - languageName: node - linkType: hard - "@ngtools/webpack@npm:13.3.9": version: 13.3.9 resolution: "@ngtools/webpack@npm:13.3.9" @@ -6630,7 +6618,7 @@ __metadata: languageName: unknown linkType: soft -"@storybook/addon-jest@7.0.0-alpha.37, @storybook/addon-jest@workspace:*, @storybook/addon-jest@workspace:addons/jest": +"@storybook/addon-jest@workspace:*, @storybook/addon-jest@workspace:addons/jest": version: 0.0.0-use.local resolution: "@storybook/addon-jest@workspace:addons/jest" dependencies: @@ -10072,13 +10060,6 @@ __metadata: languageName: node linkType: hard -"@types/q@npm:^0.0.32": - version: 0.0.32 - resolution: "@types/q@npm:0.0.32" - checksum: 63b690f5e34e29978ddf6286d614a926e05681a9f3497bf926a141b34cd3fe805a78adc6b436c48b2a07d43bdb8bea0615297ae67de438202683330c09223bb2 - languageName: node - linkType: hard - "@types/qs@npm:*, @types/qs@npm:^6, @types/qs@npm:^6.9.5": version: 6.9.7 resolution: "@types/qs@npm:6.9.7" @@ -10168,7 +10149,7 @@ __metadata: languageName: node linkType: hard -"@types/sass@npm:^1, @types/sass@npm:^1.16.0": +"@types/sass@npm:^1.16.0": version: 1.43.1 resolution: "@types/sass@npm:1.43.1" dependencies: @@ -10184,13 +10165,6 @@ __metadata: languageName: node linkType: hard -"@types/selenium-webdriver@npm:^3.0.0": - version: 3.0.20 - resolution: "@types/selenium-webdriver@npm:3.0.20" - checksum: d401051ddeafe9f39177c964be30dccb73650e5d650c972a644702786416070ad583dae539e111059ec736679b1fb151024513b7b9bc808dfaa943ac36f5ca4f - languageName: node - linkType: hard - "@types/semver@npm:^7.3.4": version: 7.3.12 resolution: "@types/semver@npm:7.3.12" @@ -11157,13 +11131,6 @@ __metadata: languageName: node linkType: hard -"@webcomponents/custom-elements@npm:^1.4.3": - version: 1.5.0 - resolution: "@webcomponents/custom-elements@npm:1.5.0" - checksum: 58a8a1c2a45ca6fbd69f0bc4a9dacea5ba92181052ee94bbe5d08435f298ee0d14c09cc172f3b093c17c94e32336788944fe68978ea8ae3cb66a73cccb113252 - languageName: node - linkType: hard - "@webpack-cli/configtest@npm:^1.2.0": version: 1.2.0 resolution: "@webpack-cli/configtest@npm:1.2.0" @@ -11458,13 +11425,6 @@ __metadata: languageName: node linkType: hard -"adm-zip@npm:^0.4.9": - version: 0.4.16 - resolution: "adm-zip@npm:0.4.16" - checksum: c56c6e138fd19006155fc716acae14d54e07c267ae19d78c8a8cdca04762bf20170a71a41aa8d8bad2f13b70d4f3e9a191009bafa5280e05a440ee506f871a55 - languageName: node - linkType: hard - "agent-base@npm:4, agent-base@npm:^4.3.0": version: 4.3.0 resolution: "agent-base@npm:4.3.0" @@ -11635,62 +11595,6 @@ __metadata: languageName: node linkType: hard -"angular-cli@workspace:examples/angular-cli": - version: 0.0.0-use.local - resolution: "angular-cli@workspace:examples/angular-cli" - dependencies: - "@angular-devkit/build-angular": ^13.3.5 - "@angular-devkit/core": ^13.3.5 - "@angular/cli": ^13.3.5 - "@angular/common": ^13.3.6 - "@angular/compiler": ^13.3.6 - "@angular/compiler-cli": ^13.3.6 - "@angular/core": ^13.3.6 - "@angular/elements": ^13.3.6 - "@angular/forms": ^13.3.6 - "@angular/platform-browser": ^13.3.6 - "@angular/platform-browser-dynamic": ^13.3.6 - "@compodoc/compodoc": ^1.1.18 - "@ngrx/store": ^13.2.0 - "@storybook/addon-a11y": 7.0.0-alpha.37 - "@storybook/addon-actions": 7.0.0-alpha.37 - "@storybook/addon-backgrounds": 7.0.0-alpha.37 - "@storybook/addon-controls": 7.0.0-alpha.37 - "@storybook/addon-docs": 7.0.0-alpha.37 - "@storybook/addon-highlight": 7.0.0-alpha.37 - "@storybook/addon-interactions": 7.0.0-alpha.37 - "@storybook/addon-jest": 7.0.0-alpha.37 - "@storybook/addon-links": 7.0.0-alpha.37 - "@storybook/addon-storyshots": 7.0.0-alpha.37 - "@storybook/addon-storysource": 7.0.0-alpha.37 - "@storybook/addons": 7.0.0-alpha.37 - "@storybook/angular": 7.0.0-alpha.37 - "@storybook/babel-plugin-require-context-hook": 1.0.1 - "@storybook/jest": ^0.0.10 - "@storybook/source-loader": 7.0.0-alpha.37 - "@storybook/testing-library": 0.0.14-next.0 - "@types/jest": ^26.0.16 - "@types/node": ^14.14.20 || ^16.0.0 - "@types/sass": ^1 - "@webcomponents/custom-elements": ^1.4.3 - global: ^4.4.0 - jasmine-core: ~3.6.0 - jasmine-spec-reporter: ~5.0.2 - jest: ^26.6.3 - jest-preset-angular: ^8.3.2 - protractor: ~7.0.0 - rxjs: ^6.6.7 - sass: ^1.43.4 - storybook: 7.0.0-alpha.37 - storybook-addon-angular-ivy: ^0.0.1 - telejson: ^6.0.8 - ts-jest: ^26.4.4 - ts-node: ^10.4.0 - typescript: ~4.6.3 - zone.js: ~0.11.4 - languageName: unknown - linkType: soft - "ansi-align@npm:^3.0.0": version: 3.0.1 resolution: "ansi-align@npm:3.0.1" @@ -12218,7 +12122,7 @@ __metadata: languageName: node linkType: hard -"arrify@npm:^1.0.0, arrify@npm:^1.0.1": +"arrify@npm:^1.0.1": version: 1.0.1 resolution: "arrify@npm:1.0.1" checksum: c35c8d1a81bcd5474c0c57fe3f4bad1a4d46a5fa353cedcff7a54da315df60db71829e69104b859dff96c5d68af46bd2be259fe5e50dc6aa9df3b36bea0383ab @@ -13194,17 +13098,6 @@ __metadata: languageName: node linkType: hard -"blocking-proxy@npm:^1.0.0": - version: 1.0.1 - resolution: "blocking-proxy@npm:1.0.1" - dependencies: - minimist: ^1.2.0 - bin: - blocking-proxy: built/lib/bin.js - checksum: 789db8ac579b6302332f5310aa2288191c4037e3d1b9d3a14f2a410dba97e2340b6057e128b717bc2f64378efce9c6481994af5c44ab8a8f23dfc4f06666cbde - languageName: node - linkType: hard - "bluebird@npm:^3.1.1, bluebird@npm:^3.4.6, bluebird@npm:^3.5.1, bluebird@npm:^3.5.3, bluebird@npm:^3.5.5, bluebird@npm:^3.7.2": version: 3.7.2 resolution: "bluebird@npm:3.7.2" @@ -14034,15 +13927,6 @@ __metadata: languageName: node linkType: hard -"browserstack@npm:^1.5.1": - version: 1.6.1 - resolution: "browserstack@npm:1.6.1" - dependencies: - https-proxy-agent: ^2.2.1 - checksum: d1a12b3e5473b566e8a25da926fd9fa9571596636b76381390034062937c1f7b3a33c1d518c0c07513f668dbd61341629b81ba33ee1421d583040d15a30ff957 - languageName: node - linkType: hard - "bs-logger@npm:0.x, bs-logger@npm:^0.2.6": version: 0.2.6 resolution: "bs-logger@npm:0.2.6" @@ -14611,7 +14495,7 @@ __metadata: languageName: node linkType: hard -"chalk@npm:^1.0.0, chalk@npm:^1.1.1, chalk@npm:^1.1.3": +"chalk@npm:^1.0.0, chalk@npm:^1.1.3": version: 1.1.3 resolution: "chalk@npm:1.1.3" dependencies: @@ -16797,21 +16681,6 @@ __metadata: languageName: node linkType: hard -"del@npm:^2.2.0": - version: 2.2.2 - resolution: "del@npm:2.2.2" - dependencies: - globby: ^5.0.0 - is-path-cwd: ^1.0.0 - is-path-in-cwd: ^1.0.0 - object-assign: ^4.0.1 - pify: ^2.0.0 - pinkie-promise: ^2.0.0 - rimraf: ^2.2.8 - checksum: f20cbf3629df2dec4778b33e38a2b8fbc1d8a77cee07ae6e79c415a3afcb8fecd06e2170182a991aed21122988df9d745f07e8b68311dd6084e251bf6e667a47 - languageName: node - linkType: hard - "del@npm:^6.0.0": version: 6.1.1 resolution: "del@npm:6.1.1" @@ -21670,7 +21539,7 @@ __metadata: languageName: node linkType: hard -"glob@npm:^7.0.0, glob@npm:^7.0.3, glob@npm:^7.0.4, glob@npm:^7.0.6, glob@npm:^7.1.1, glob@npm:^7.1.2, glob@npm:^7.1.3, glob@npm:^7.1.4, glob@npm:^7.1.6, glob@npm:^7.2.0": +"glob@npm:^7.0.0, glob@npm:^7.0.3, glob@npm:^7.0.4, glob@npm:^7.1.1, glob@npm:^7.1.2, glob@npm:^7.1.3, glob@npm:^7.1.4, glob@npm:^7.1.6, glob@npm:^7.2.0": version: 7.2.3 resolution: "glob@npm:7.2.3" dependencies: @@ -21813,20 +21682,6 @@ __metadata: languageName: node linkType: hard -"globby@npm:^5.0.0": - version: 5.0.0 - resolution: "globby@npm:5.0.0" - dependencies: - array-union: ^1.0.1 - arrify: ^1.0.0 - glob: ^7.0.3 - object-assign: ^4.0.1 - pify: ^2.0.0 - pinkie-promise: ^2.0.0 - checksum: 5ac35ff5d4614dbf2926b08cefa3c835d530c2080416bdcdee304598255f9c30a1296b93118400c308f520d7118dbfc87d46c9c2f4f4cbb976be00cceb94573f - languageName: node - linkType: hard - "globby@npm:^7.1.1": version: 7.1.1 resolution: "globby@npm:7.1.1" @@ -23169,13 +23024,6 @@ __metadata: languageName: node linkType: hard -"immediate@npm:~3.0.5": - version: 3.0.6 - resolution: "immediate@npm:3.0.6" - checksum: f8ba7ede69bee9260241ad078d2d535848745ff5f6995c7c7cb41cfdc9ccc213f66e10fa5afb881f90298b24a3f7344b637b592beb4f54e582770cdce3f1f039 - languageName: node - linkType: hard - "immediate@npm:~3.2.3": version: 3.2.3 resolution: "immediate@npm:3.2.3" @@ -24002,13 +23850,6 @@ __metadata: languageName: node linkType: hard -"is-path-cwd@npm:^1.0.0": - version: 1.0.0 - resolution: "is-path-cwd@npm:1.0.0" - checksum: 8cc3acd4cbe5dd1c2932651ffa37a3d64765405bde2d4b61f76f9fa77d195fedae42d8b8aed2027ea6f7e2cc4ce7d7f8cb875e036c6113174193f6f7467393fc - languageName: node - linkType: hard - "is-path-cwd@npm:^2.2.0": version: 2.2.0 resolution: "is-path-cwd@npm:2.2.0" @@ -24016,24 +23857,6 @@ __metadata: languageName: node linkType: hard -"is-path-in-cwd@npm:^1.0.0": - version: 1.0.1 - resolution: "is-path-in-cwd@npm:1.0.1" - dependencies: - is-path-inside: ^1.0.0 - checksum: d459e591f71ff1006791a1639c8bf7d2d668b60a489ec6ab84500182d265fde8058ddff1ca795d2c30ca044c522954b1293171760528f720046aa3dd20cf08bc - languageName: node - linkType: hard - -"is-path-inside@npm:^1.0.0": - version: 1.0.1 - resolution: "is-path-inside@npm:1.0.1" - dependencies: - path-is-inside: ^1.0.1 - checksum: 093ab1324e33a95c2d057e1450e1936ee7a3ed25b78c8dc42f576f3dc3489dd8788d431ea2969bb0e081f005de1571792ea99cf7b1b69ab2dd4ca477ae7a8e51 - languageName: node - linkType: hard - "is-path-inside@npm:^3.0.2": version: 3.0.3 resolution: "is-path-inside@npm:3.0.3" @@ -24492,49 +24315,6 @@ __metadata: languageName: node linkType: hard -"jasmine-core@npm:~2.8.0": - version: 2.8.0 - resolution: "jasmine-core@npm:2.8.0" - checksum: fae03b26d322c50f11cc47232f50577accacacc2478b8dd32c94a242240739f9e527e4de5b50e630656715dcc9ab12c6c91e514a546148565816c0bc6169e34c - languageName: node - linkType: hard - -"jasmine-core@npm:~3.6.0": - version: 3.6.0 - resolution: "jasmine-core@npm:3.6.0" - checksum: cc10049ecd2cacca17e174b91c2b8137ac03d493667570fc2beab38912027947bb7388302ad812d984cd5749d8f38aaa891e4ab54543db31c96a8a41bc01d40a - languageName: node - linkType: hard - -"jasmine-spec-reporter@npm:~5.0.2": - version: 5.0.2 - resolution: "jasmine-spec-reporter@npm:5.0.2" - dependencies: - colors: 1.4.0 - checksum: 18b5ce95c4de29b0bd3fe095021e39ffbbfd36e3feb29ba8d5d4d7653fc6474f9340b22acf74d5dac876890df15cd5420eae6b44472da0f01be4733b78881227 - languageName: node - linkType: hard - -"jasmine@npm:2.8.0": - version: 2.8.0 - resolution: "jasmine@npm:2.8.0" - dependencies: - exit: ^0.1.2 - glob: ^7.0.6 - jasmine-core: ~2.8.0 - bin: - jasmine: ./bin/jasmine.js - checksum: 2ab762c7c298c1529bed89bb0caf121a63d10228b9d28aceb0566b1efc55e23d771743bf82533e5c528b3ea38c867d8153f742f47bd92d40c7481f18ca0a1818 - languageName: node - linkType: hard - -"jasminewd2@npm:^2.1.0": - version: 2.2.0 - resolution: "jasminewd2@npm:2.2.0" - checksum: cd0f572e8c44cd0b478ecc6e1e7f5f811f18dfc3ff4818e47f9ba36d744f26acb5b66d1a3272f95cfe4efc5d0e6700de106072a7b50aa527fa85a7018fb475ac - languageName: node - linkType: hard - "javascript-stringify@npm:^2.0.1": version: 2.1.0 resolution: "javascript-stringify@npm:2.1.0" @@ -26804,18 +26584,6 @@ __metadata: languageName: node linkType: hard -"jszip@npm:^3.1.3": - version: 3.10.1 - resolution: "jszip@npm:3.10.1" - dependencies: - lie: ~3.3.0 - pako: ~1.0.2 - readable-stream: ~2.3.6 - setimmediate: ^1.0.5 - checksum: 58e01ec9c4960383fb8b38dd5f67b83ccc1ec215bf74c8a5b32f42b6e5fb79fada5176842a11409c4051b5b94275044851814a31076bf49e1be218d3ef57c863 - languageName: node - linkType: hard - "jwa@npm:^1.4.1": version: 1.4.1 resolution: "jwa@npm:1.4.1" @@ -27247,15 +27015,6 @@ __metadata: languageName: node linkType: hard -"lie@npm:~3.3.0": - version: 3.3.0 - resolution: "lie@npm:3.3.0" - dependencies: - immediate: ~3.0.5 - checksum: 56dd113091978f82f9dc5081769c6f3b947852ecf9feccaf83e14a123bc630c2301439ce6182521e5fbafbde88e88ac38314327a4e0493a1bea7e0699a7af808 - languageName: node - linkType: hard - "lightningcss-darwin-arm64@npm:1.16.0": version: 1.16.0 resolution: "lightningcss-darwin-arm64@npm:1.16.0" @@ -31751,7 +31510,7 @@ __metadata: languageName: node linkType: hard -"pako@npm:^1.0.3, pako@npm:~1.0.2, pako@npm:~1.0.5": +"pako@npm:^1.0.3, pako@npm:~1.0.5": version: 1.0.11 resolution: "pako@npm:1.0.11" checksum: 86dd99d8b34c3930345b8bbeb5e1cd8a05f608eeb40967b293f72fe469d0e9c88b783a8777e4cc7dc7c91ce54c5e93d88ff4b4f060e6ff18408fd21030d9ffbe @@ -32097,13 +31856,6 @@ __metadata: languageName: node linkType: hard -"path-is-inside@npm:^1.0.1": - version: 1.0.2 - resolution: "path-is-inside@npm:1.0.2" - checksum: 7fdd4b41672c70461cce734fc222b33e7b447fa489c7c4377c95e7e6852d83d69741f307d88ec0cc3b385b41cb4accc6efac3c7c511cd18512e95424f5fa980c - languageName: node - linkType: hard - "path-key@npm:^2.0.0, path-key@npm:^2.0.1": version: 2.0.1 resolution: "path-key@npm:2.0.1" @@ -33503,32 +33255,6 @@ __metadata: languageName: node linkType: hard -"protractor@npm:~7.0.0": - version: 7.0.0 - resolution: "protractor@npm:7.0.0" - dependencies: - "@types/q": ^0.0.32 - "@types/selenium-webdriver": ^3.0.0 - blocking-proxy: ^1.0.0 - browserstack: ^1.5.1 - chalk: ^1.1.3 - glob: ^7.0.3 - jasmine: 2.8.0 - jasminewd2: ^2.1.0 - q: 1.4.1 - saucelabs: ^1.5.0 - selenium-webdriver: 3.6.0 - source-map-support: ~0.4.0 - webdriver-js-extender: 2.1.0 - webdriver-manager: ^12.1.7 - yargs: ^15.3.1 - bin: - protractor: bin/protractor - webdriver-manager: bin/webdriver-manager - checksum: fd1428f6de395e0dc0f27e2da19cb8cd3602a97e090f90c37600eb48a4bf49cac442c1ef8b5f1217ccfee5a78d4f87a66af38e6090782ff5516813c8bc825d3b - languageName: node - linkType: hard - "proxy-addr@npm:~2.0.5, proxy-addr@npm:~2.0.7": version: 2.0.7 resolution: "proxy-addr@npm:2.0.7" @@ -33827,14 +33553,7 @@ __metadata: languageName: node linkType: hard -"q@npm:1.4.1": - version: 1.4.1 - resolution: "q@npm:1.4.1" - checksum: 14d1c219f1f6f6b7ab56405dec58961ff8bcfa7ff4d9d90feee9a3396a67d77bd88d81ee062d57bed8d29b03f448b540a3ce77e8f674f6d776a7f99dae285f99 - languageName: node - linkType: hard - -"q@npm:^1.4.1, q@npm:^1.5.1": +"q@npm:^1.5.1": version: 1.5.1 resolution: "q@npm:1.5.1" checksum: 7855fbdba126cb7e92ef3a16b47ba998c0786ec7fface236e3eb0135b65df36429d91a86b1fff3ab0927b4ac4ee88a2c44527c7c3b8e2a37efbec9fe34803df4 @@ -36091,7 +35810,7 @@ __metadata: languageName: node linkType: hard -"rxjs@npm:6.6.7, rxjs@npm:^6.4.0, rxjs@npm:^6.5.2, rxjs@npm:^6.5.4, rxjs@npm:^6.6.0, rxjs@npm:^6.6.3, rxjs@npm:^6.6.7": +"rxjs@npm:6.6.7, rxjs@npm:^6.4.0, rxjs@npm:^6.5.2, rxjs@npm:^6.5.4, rxjs@npm:^6.6.0, rxjs@npm:^6.6.3": version: 6.6.7 resolution: "rxjs@npm:6.6.7" dependencies: @@ -36278,29 +35997,7 @@ __metadata: languageName: node linkType: hard -"sass@npm:^1.43.4": - version: 1.55.0 - resolution: "sass@npm:1.55.0" - dependencies: - chokidar: ">=3.0.0 <4.0.0" - immutable: ^4.0.0 - source-map-js: ">=0.6.2 <2.0.0" - bin: - sass: sass.js - checksum: cc518d8f3ea1fdb4044f665e8fbdd49dc740561ffb188eb164d32edd48d50e7b840f1671c3d95634780c63495f0ae37616e72b251e4bc10c80493b1c2f8e7a6c - languageName: node - linkType: hard - -"saucelabs@npm:^1.5.0": - version: 1.5.0 - resolution: "saucelabs@npm:1.5.0" - dependencies: - https-proxy-agent: ^2.2.1 - checksum: 4c793d8fe36a5f8e91f6100459b8e6b4b475fd22765810f4d459018981efeed481c47c992e477e3ee854e1cc89acf8e1c0f5104011b46944a3020e69e879a773 - languageName: node - linkType: hard - -"sax@npm:>=0.6.0, sax@npm:^1.2.4, sax@npm:~1.2.4": +"sax@npm:^1.2.4, sax@npm:~1.2.4": version: 1.2.4 resolution: "sax@npm:1.2.4" checksum: 6e9b05ff443ee5e5096ce92d31c0740a20d33002fad714ebcb8fc7a664d9ee159103ebe8f7aef0a1f7c5ecacdd01f177f510dff95611c589399baf76437d3fe3 @@ -36441,18 +36138,6 @@ __metadata: languageName: node linkType: hard -"selenium-webdriver@npm:3.6.0, selenium-webdriver@npm:^3.0.1": - version: 3.6.0 - resolution: "selenium-webdriver@npm:3.6.0" - dependencies: - jszip: ^3.1.3 - rimraf: ^2.5.4 - tmp: 0.0.30 - xml2js: ^0.4.17 - checksum: b4707005102f0cbac3cdf9bf13674b531ac10773631baec0c379c581dde53e4b1af4521bcb6097688e490816c5346221b8dc56094deac8f78a10d9759e02adbe - languageName: node - linkType: hard - "selfsigned@npm:^2.0.0, selfsigned@npm:^2.1.1": version: 2.1.1 resolution: "selfsigned@npm:2.1.1" @@ -36724,13 +36409,6 @@ __metadata: languageName: node linkType: hard -"setimmediate@npm:^1.0.5": - version: 1.0.5 - resolution: "setimmediate@npm:1.0.5" - checksum: 5bae81bfdbfbd0ce992893286d49c9693c82b1bcc00dcaaf3a09c8f428fdeacf4190c013598b81875dfac2b08a572422db7df779a99332d0fce186d15a3e4d49 - languageName: node - linkType: hard - "setprototypeof@npm:1.1.0": version: 1.1.0 resolution: "setprototypeof@npm:1.1.0" @@ -37226,15 +36904,6 @@ __metadata: languageName: node linkType: hard -"source-map-support@npm:~0.4.0": - version: 0.4.18 - resolution: "source-map-support@npm:0.4.18" - dependencies: - source-map: ^0.5.6 - checksum: cd9f0309c1632b1e01a7715a009e0b036d565f3af8930fa8cda2a06aeec05ad1d86180e743b7e1f02cc3c97abe8b6d8de7c3878c2d8e01e86e17f876f7ecf98e - languageName: node - linkType: hard - "source-map-url@npm:^0.3.0": version: 0.3.0 resolution: "source-map-url@npm:0.3.0" @@ -37696,15 +37365,6 @@ __metadata: languageName: node linkType: hard -"storybook-addon-angular-ivy@npm:^0.0.1": - version: 0.0.1 - resolution: "storybook-addon-angular-ivy@npm:0.0.1" - peerDependencies: - "@storybook/addons": ">= 6.3.0-alpha.11" - checksum: 4346e6522c214538cfaf3511710977582f33a6c70a696cd3b6994ceb71e46718605805f4ee51f4d5c9ecc426151bb9f061880ea74992082f59088b2475842533 - languageName: node - linkType: hard - "storybook@7.0.0-alpha.37, storybook@workspace:lib/cli-storybook": version: 0.0.0-use.local resolution: "storybook@workspace:lib/cli-storybook" @@ -39065,15 +38725,6 @@ __metadata: languageName: node linkType: hard -"tmp@npm:0.0.30": - version: 0.0.30 - resolution: "tmp@npm:0.0.30" - dependencies: - os-tmpdir: ~1.0.1 - checksum: ebaa6fb9a6f355294a8aa85d9bcbfba992eb333d7bd9c1ec97902e3935cd4c8ed7b482c1b0b446a52d3ff1f9ca075d3d6aef368876969c86304c3c59f0c6cce7 - languageName: node - linkType: hard - "tmp@npm:0.0.33, tmp@npm:^0.0.33": version: 0.0.33 resolution: "tmp@npm:0.0.33" @@ -41429,37 +41080,6 @@ __metadata: languageName: node linkType: hard -"webdriver-js-extender@npm:2.1.0": - version: 2.1.0 - resolution: "webdriver-js-extender@npm:2.1.0" - dependencies: - "@types/selenium-webdriver": ^3.0.0 - selenium-webdriver: ^3.0.1 - checksum: ada52e5567b5274e73de8f75de2d2d01bbbb0362f3a5f3393d35f560041823a813f67768dbbca7162c320284d5571f10558671aaa1bcd41d1020af4379756a2a - languageName: node - linkType: hard - -"webdriver-manager@npm:^12.1.7": - version: 12.1.8 - resolution: "webdriver-manager@npm:12.1.8" - dependencies: - adm-zip: ^0.4.9 - chalk: ^1.1.1 - del: ^2.2.0 - glob: ^7.0.3 - ini: ^1.3.4 - minimist: ^1.2.0 - q: ^1.4.1 - request: ^2.87.0 - rimraf: ^2.5.2 - semver: ^5.3.0 - xml2js: ^0.4.17 - bin: - webdriver-manager: bin/webdriver-manager - checksum: 7fc5162e798195e1ef0106149a3c03e3f02de4978c2bb013fefb7d483d0a70f61ba4f1cdac97dd191363e9099e11c5016374f9d46ff1b506b845dd4f52bc6feb - languageName: node - linkType: hard - "webidl-conversions@npm:^3.0.0": version: 3.0.1 resolution: "webidl-conversions@npm:3.0.1" @@ -42260,16 +41880,6 @@ __metadata: languageName: node linkType: hard -"xml2js@npm:^0.4.17": - version: 0.4.23 - resolution: "xml2js@npm:0.4.23" - dependencies: - sax: ">=0.6.0" - xmlbuilder: ~11.0.0 - checksum: a3f41c9afc46d5bd0bea4070e5108777b605fd5ce2ebb978a68fd4c75513978ad5939f8135664ffea6f1adb342f391b1ba1584ed7955123b036e9ab8a1d26566 - languageName: node - linkType: hard - "xml@npm:^1.0.1": version: 1.0.1 resolution: "xml@npm:1.0.1" @@ -42277,13 +41887,6 @@ __metadata: languageName: node linkType: hard -"xmlbuilder@npm:~11.0.0": - version: 11.0.1 - resolution: "xmlbuilder@npm:11.0.1" - checksum: 74b979f89a0a129926bc786b913459bdbcefa809afaa551c5ab83f89b1915bdaea14c11c759284bb9b931e3b53004dbc2181e21d3ca9553eeb0b2a7b4e40c35b - languageName: node - linkType: hard - "xmlchars@npm:^2.1.1, xmlchars@npm:^2.2.0": version: 2.2.0 resolution: "xmlchars@npm:2.2.0" @@ -42571,15 +42174,6 @@ __metadata: languageName: node linkType: hard -"zone.js@npm:~0.11.4": - version: 0.11.8 - resolution: "zone.js@npm:0.11.8" - dependencies: - tslib: ^2.3.0 - checksum: f77d5a84bd358e2df43d52221fcee32a8113ef2d794f2b673029b50d4d7e69cefb09c08b659295196166d7bd9d39ef5541702594791de77280a03a234a6f79a9 - languageName: node - linkType: hard - "zwitch@npm:^1.0.0": version: 1.0.5 resolution: "zwitch@npm:1.0.5" From 86f13c86df6baade9ddfb7048a9ce64507596ac1 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Thu, 13 Oct 2022 14:25:02 +0200 Subject: [PATCH 2/3] fix linting & CI setup after removal --- .circleci/config.yml | 2 +- code/frameworks/angular/package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 224ed237e48f..1d8624f129a2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -125,7 +125,7 @@ jobs: executor: class: medium+ name: sb_node_14_browsers - parallelism: 6 + parallelism: 5 steps: - git-shallow-clone/checkout_advanced: clone_options: '--depth 1 --verbose' diff --git a/code/frameworks/angular/package.json b/code/frameworks/angular/package.json index 6c8ed04493f6..bc4d44c4b491 100644 --- a/code/frameworks/angular/package.json +++ b/code/frameworks/angular/package.json @@ -95,7 +95,8 @@ "jest-specific-snapshot": "^5.0.0", "tmp": "^0.2.1", "typescript": "~4.6.3", - "webpack": "5" + "webpack": "5", + "zone.js": "^0.11.0" }, "peerDependencies": { "@angular-devkit/architect": ">=0.1300.0", From 59b2ddcb44dd24f44649d8596d45bff8c97c396d Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Thu, 13 Oct 2022 14:33:38 +0200 Subject: [PATCH 3/3] fix lockfile --- code/yarn.lock | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/yarn.lock b/code/yarn.lock index 8b8af0a5642c..a459e3f2b53b 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -7017,6 +7017,7 @@ __metadata: typescript: ~4.6.3 util-deprecate: ^1.0.2 webpack: 5 + zone.js: ^0.11.0 peerDependencies: "@angular-devkit/architect": ">=0.1300.0" "@angular-devkit/build-angular": ">=13.0.0" @@ -42174,6 +42175,15 @@ __metadata: languageName: node linkType: hard +"zone.js@npm:^0.11.0": + version: 0.11.8 + resolution: "zone.js@npm:0.11.8" + dependencies: + tslib: ^2.3.0 + checksum: f77d5a84bd358e2df43d52221fcee32a8113ef2d794f2b673029b50d4d7e69cefb09c08b659295196166d7bd9d39ef5541702594791de77280a03a234a6f79a9 + languageName: node + linkType: hard + "zwitch@npm:^1.0.0": version: 1.0.5 resolution: "zwitch@npm:1.0.5"