From 9ca131b132a494001ad3c5cd11aa1a4f41dfddc2 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Tue, 25 Jul 2023 14:41:56 +0200 Subject: [PATCH] Merge pull request #23565 from joaonunomota/fix-controls docs: replace unsupported value 'string' in controls (cherry picked from commit 630ace1744003ab4af6d667a742eb0cc51695456) --- .../src/modules/store/csf/normalizeInputTypes.test.ts | 8 ++++---- docs/snippets/angular/arg-types-in-meta.ts.mdx | 2 +- docs/snippets/common/arg-types-in-meta.js.mdx | 2 +- docs/snippets/common/arg-types-in-meta.ts-4-9.mdx | 2 +- docs/snippets/common/arg-types-in-meta.ts.mdx | 2 +- docs/snippets/common/arg-types-in-preview.js.mdx | 2 +- docs/snippets/common/arg-types-in-preview.ts-4-9.mdx | 2 +- docs/snippets/common/arg-types-in-preview.ts.mdx | 2 +- docs/snippets/web-components/arg-types-in-meta.js.mdx | 2 +- docs/snippets/web-components/arg-types-in-meta.ts.mdx | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/code/lib/preview-api/src/modules/store/csf/normalizeInputTypes.test.ts b/code/lib/preview-api/src/modules/store/csf/normalizeInputTypes.test.ts index c06939e9cc59..5cdb504e94eb 100644 --- a/code/lib/preview-api/src/modules/store/csf/normalizeInputTypes.test.ts +++ b/code/lib/preview-api/src/modules/store/csf/normalizeInputTypes.test.ts @@ -9,7 +9,7 @@ describe('normalizeInputType', () => { { name: 'name', type: { name: 'string' }, - control: { type: 'string' }, + control: { type: 'text' }, description: 'description', defaultValue: 'defaultValue', }, @@ -18,7 +18,7 @@ describe('normalizeInputType', () => { ).toEqual({ name: 'name', type: { name: 'string' }, - control: { type: 'string' }, + control: { type: 'text' }, description: 'description', defaultValue: 'defaultValue', }); @@ -29,7 +29,7 @@ describe('normalizeInputType', () => { normalizeInputType( { type: 'string', - control: 'string', + control: 'text', description: 'description', defaultValue: 'defaultValue', }, @@ -38,7 +38,7 @@ describe('normalizeInputType', () => { ).toEqual({ name: 'arg', type: { name: 'string' }, - control: { type: 'string' }, + control: { type: 'text' }, description: 'description', defaultValue: 'defaultValue', }); diff --git a/docs/snippets/angular/arg-types-in-meta.ts.mdx b/docs/snippets/angular/arg-types-in-meta.ts.mdx index 1cc7933b518a..1bc7fd43f2f5 100644 --- a/docs/snippets/angular/arg-types-in-meta.ts.mdx +++ b/docs/snippets/angular/arg-types-in-meta.ts.mdx @@ -10,7 +10,7 @@ const meta: Meta