@wtf/project-docs 5.0.1 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/api/.generated +24 -0
- package/api/@wtf/project-astro/config/functions/baseConfig.md +1 -1
- package/api/@wtf/project-astro/config/functions/baseOf.md +1 -1
- package/api/@wtf/project-astro/config/functions/siteOf.md +1 -1
- package/api/@wtf/project-astro/config/type-aliases/BaseOptions.md +6 -6
- package/api/@wtf/project-astro/config/type-aliases/Env.md +1 -1
- package/api/@wtf/project-astro/errors/classes/BrokenLinksError.md +5 -5
- package/api/@wtf/project-astro/errors/classes/InvalidRedirectError.md +6 -6
- package/api/@wtf/project-astro/errors/classes/RedirectedLinksError.md +5 -5
- package/api/@wtf/project-astro/errors/classes/SiteError.md +4 -4
- package/api/@wtf/project-astro/index/type-aliases/AstroPlatform.md +1 -1
- package/api/@wtf/project-astro/index/type-aliases/BrokenLink.md +3 -3
- package/api/@wtf/project-astro/index/type-aliases/IgnoredLine.md +4 -4
- package/api/@wtf/project-astro/index/type-aliases/RedirectInput.md +2 -2
- package/api/@wtf/project-astro/index/type-aliases/RedirectMatch.md +3 -3
- package/api/@wtf/project-astro/index/type-aliases/RedirectRule.md +5 -5
- package/api/@wtf/project-astro/index/type-aliases/RedirectStatus.md +1 -1
- package/api/@wtf/project-astro/index/type-aliases/RedirectedLink.md +2 -2
- package/api/@wtf/project-astro/index/type-aliases/Redirects.md +3 -3
- package/api/@wtf/project-astro/links/functions/brokenLinksIn.md +1 -1
- package/api/@wtf/project-astro/links/functions/links.md +1 -1
- package/api/@wtf/project-astro/links/functions/redirectedLinksIn.md +1 -1
- package/api/@wtf/project-astro/links/type-aliases/LinksOptions.md +2 -2
- package/api/@wtf/project-astro/links/variables/LINKS.md +1 -1
- package/api/@wtf/project-astro/pages/functions/fixSearchUrlsIn.md +1 -1
- package/api/@wtf/project-astro/pages/functions/moveConflictingPages.md +1 -1
- package/api/@wtf/project-astro/pages/functions/pages.md +1 -1
- package/api/@wtf/project-astro/pages/functions/prefixedLocaleOf.md +1 -1
- package/api/@wtf/project-astro/pages/functions/redirectBaseToLocaleIn.md +1 -1
- package/api/@wtf/project-astro/pages/functions/slashFolderLinksIn.md +1 -1
- package/api/@wtf/project-astro/pages/type-aliases/I18n.md +1 -1
- package/api/@wtf/project-astro/pages/type-aliases/PagesOptions.md +2 -2
- package/api/@wtf/project-astro/pages/variables/PAGES.md +1 -1
- package/api/@wtf/project-astro/preview/functions/files.md +1 -1
- package/api/@wtf/project-astro/preview/functions/listen.md +1 -1
- package/api/@wtf/project-astro/preview/functions/notFound.md +1 -1
- package/api/@wtf/project-astro/preview/functions/pagesOf.md +1 -1
- package/api/@wtf/project-astro/preview/functions/previewOf.md +1 -1
- package/api/@wtf/project-astro/preview/type-aliases/FilesOptions.md +2 -2
- package/api/@wtf/project-astro/preview/type-aliases/Handler.md +1 -1
- package/api/@wtf/project-astro/preview/type-aliases/ListenOptions.md +4 -4
- package/api/@wtf/project-astro/preview/type-aliases/Listening.md +5 -5
- package/api/@wtf/project-astro/preview/type-aliases/Pages.md +3 -3
- package/api/@wtf/project-astro/preview/type-aliases/Preview.md +4 -4
- package/api/@wtf/project-astro/preview/type-aliases/PreviewOptions.md +3 -3
- package/api/@wtf/project-astro/redirects/functions/formatRedirects.md +1 -1
- package/api/@wtf/project-astro/redirects/functions/matchRedirect.md +1 -1
- package/api/@wtf/project-astro/redirects/functions/parseRedirects.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_PARTS.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_RULES.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_SIZE.md +1 -1
- package/api/@wtf/project-astro/schema/functions/astroSchemaWith.md +1 -1
- package/api/@wtf/project-astro/schema/type-aliases/AstroSection.md +1 -1
- package/api/@wtf/project-astro/schema/type-aliases/JsonSchema.md +12 -12
- package/api/@wtf/project-astro/schema/type-aliases/OptionsSchema.md +1 -1
- package/api/@wtf/project-astro/schema/variables/astroProperties.md +1 -1
- package/api/@wtf/project-astro/schema/variables/astroSchema.md +1 -1
- package/api/@wtf/project-config/define/functions/defineConfig.md +1 -1
- package/api/@wtf/project-config/env/functions/envNameOf.md +1 -1
- package/api/@wtf/project-config/env/functions/envPrefixOf.md +1 -1
- package/api/@wtf/project-config/env/functions/jsonSchemaOf.md +1 -1
- package/api/@wtf/project-config/env/functions/variablesOf.md +1 -1
- package/api/@wtf/project-config/env/functions/withEnvironment.md +1 -1
- package/api/@wtf/project-config/env/type-aliases/Environment.md +1 -1
- package/api/@wtf/project-config/env/type-aliases/EnvironmentValue.md +3 -3
- package/api/@wtf/project-config/env/type-aliases/WithEnvironment.md +3 -3
- package/api/@wtf/project-config/errors/classes/ConfigError.md +4 -4
- package/api/@wtf/project-config/errors/classes/ConfigFileMismatchError.md +6 -6
- package/api/@wtf/project-config/errors/classes/ConfigInCodeError.md +5 -5
- package/api/@wtf/project-config/errors/classes/ConfigPathError.md +5 -5
- package/api/@wtf/project-config/errors/classes/EnvPlaceholderUnsetError.md +6 -6
- package/api/@wtf/project-config/errors/classes/InvalidConfigFileError.md +5 -5
- package/api/@wtf/project-config/errors/classes/InvalidSectionError.md +7 -7
- package/api/@wtf/project-config/errors/classes/NamedError.md +12 -12
- package/api/@wtf/project-config/errors/classes/NoConfigFileError.md +5 -5
- package/api/@wtf/project-config/errors/classes/NoConfigValueError.md +6 -6
- package/api/@wtf/project-config/errors/classes/SyncSchemaError.md +5 -5
- package/api/@wtf/project-config/errors/classes/UnwritableConfigFileError.md +5 -5
- package/api/@wtf/project-config/errors/type-aliases/NamedErrorCode.md +1 -1
- package/api/@wtf/project-config/errors/type-aliases/NamedErrorDetails.md +9 -9
- package/api/@wtf/project-config/index/type-aliases/ConfigDefaults.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigEnvironment.md +4 -4
- package/api/@wtf/project-config/index/type-aliases/ConfigIssue.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigNames.md +4 -4
- package/api/@wtf/project-config/index/type-aliases/ConfigPath.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ConfigPlatform.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ConfigSection.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ConfigSource.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigWrite.md +10 -10
- package/api/@wtf/project-config/index/type-aliases/ImportModule.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/JsonSchema.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/LocatedConfig.md +4 -4
- package/api/@wtf/project-config/index/type-aliases/NamespaceConfig.md +2 -2
- package/api/@wtf/project-config/index/type-aliases/ResolvedConfig.md +9 -9
- package/api/@wtf/project-config/index/type-aliases/SectionSchema.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/SectionsOf.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ValidateSection.md +1 -1
- package/api/@wtf/project-config/load/functions/ignoredWarning.md +1 -1
- package/api/@wtf/project-config/load/functions/importFileModule.md +1 -1
- package/api/@wtf/project-config/load/functions/loadConfig.md +1 -1
- package/api/@wtf/project-config/load/type-aliases/LoadLayers.md +3 -3
- package/api/@wtf/project-config/load/type-aliases/LoadOptions.md +3 -3
- package/api/@wtf/project-config/load/type-aliases/LoadPlatform.md +1 -1
- package/api/@wtf/project-config/locate/functions/configFilesOf.md +1 -1
- package/api/@wtf/project-config/locate/functions/configNamesOf.md +1 -1
- package/api/@wtf/project-config/locate/functions/jsonFilesOf.md +1 -1
- package/api/@wtf/project-config/locate/functions/locateConfig.md +1 -1
- package/api/@wtf/project-config/locate/functions/projectRootOf.md +1 -1
- package/api/@wtf/project-config/locate/type-aliases/LocateNames.md +2 -2
- package/api/@wtf/project-config/locate/type-aliases/LocateOptions.md +2 -2
- package/api/@wtf/project-config/locate/type-aliases/NamespaceNames.md +2 -2
- package/api/@wtf/project-config/locate/variables/DEFAULT_NAMESPACE.md +1 -1
- package/api/@wtf/project-config/named/functions/factoryOf.md +1 -1
- package/api/@wtf/project-config/named/functions/namedSchema.md +1 -1
- package/api/@wtf/project-config/named/functions/namedSetSchema.md +1 -1
- package/api/@wtf/project-config/named/functions/resolveNamed.md +1 -1
- package/api/@wtf/project-config/named/functions/resolveNamedSet.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/LoadModule.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/ModuleReference.md +3 -3
- package/api/@wtf/project-config/named/type-aliases/NamedCheckOptions.md +5 -5
- package/api/@wtf/project-config/named/type-aliases/NamedEntries.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedFactory.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedOptions.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedReference.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedResolveOptions.md +3 -3
- package/api/@wtf/project-config/named/type-aliases/NamedSchema.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedSchemaOptions.md +4 -4
- package/api/@wtf/project-config/named/type-aliases/NamedSet.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedSetOptions.md +2 -2
- package/api/@wtf/project-config/named/type-aliases/NamedSetSchemaOptions.md +3 -3
- package/api/@wtf/project-config/named/type-aliases/NamedSets.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedUse.md +1 -1
- package/api/@wtf/project-config/path/functions/configPathOf.md +1 -1
- package/api/@wtf/project-config/path/functions/textOfConfigPath.md +1 -1
- package/api/@wtf/project-config/path/functions/valueAt.md +1 -1
- package/api/@wtf/project-config/placeholder/functions/expandPlaceholders.md +1 -1
- package/api/@wtf/project-config/placeholder/functions/expandString.md +1 -1
- package/api/@wtf/project-config/schema/functions/namespaceSchema.md +1 -1
- package/api/@wtf/project-config/schema/functions/sectionIdOf.md +1 -1
- package/api/@wtf/project-config/schema/type-aliases/NamespaceSchemaOptions.md +3 -3
- package/api/@wtf/project-config/schema/variables/JSON_SCHEMA_DRAFT.md +1 -1
- package/api/@wtf/project-config/section/functions/issuesOf.md +1 -1
- package/api/@wtf/project-config/section/functions/issuesOfSync.md +1 -1
- package/api/@wtf/project-config/section/functions/mergeSection.md +1 -1
- package/api/@wtf/project-config/section/functions/sectionOf.md +1 -1
- package/api/@wtf/project-config/section/type-aliases/Checked.md +3 -3
- package/api/@wtf/project-config/write/functions/setConfigValue.md +1 -1
- package/api/@wtf/project-config/write/functions/unsetConfigValue.md +1 -1
- package/api/@wtf/project-config/write/type-aliases/WriteOptions.md +2 -2
- package/api/@wtf/project-oxfmt/config/functions/oxfmtConfig.md +1 -1
- package/api/@wtf/project-oxfmt/config/type-aliases/OxfmtOptions.md +1 -1
- package/api/@wtf/project-oxfmt/config/variables/OXFMT_DEFAULTS.md +6 -6
- package/api/@wtf/project-oxfmt/config/variables/default.md +1 -1
- package/api/@wtf/project-oxfmt/schema/variables/oxfmtSchema.md +1 -1
- package/api/@wtf/project-oxlint/config/functions/oxlintConfig.md +1 -1
- package/api/@wtf/project-oxlint/config/type-aliases/OxlintOptions.md +1 -1
- package/api/@wtf/project-oxlint/config/variables/OXLINT_DEFAULTS.md +17 -17
- package/api/@wtf/project-oxlint/config/variables/default.md +1 -1
- package/api/@wtf/project-oxlint/schema/variables/oxlintSchema.md +1 -1
- package/api/@wtf/project-resolve/condition/variables/SOURCE_CONDITION.md +1 -1
- package/api/@wtf/project-resolve/env/functions/isHook.md +1 -1
- package/api/@wtf/project-resolve/env/functions/optionsWithoutHook.md +1 -1
- package/api/@wtf/project-resolve/env/functions/withoutHook.md +1 -1
- package/api/@wtf/project-resolve/env/type-aliases/Env.md +1 -1
- package/api/@wtf/project-resolve/errors/classes/ResolveError.md +4 -4
- package/api/@wtf/project-resolve/errors/classes/UnreadableWorkspaceError.md +6 -6
- package/api/@wtf/project-resolve/errors/classes/WorkspaceError.md +5 -5
- package/api/@wtf/project-resolve/hooks/functions/candidatesOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/functions/sourcesHookOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/functions/sourcesOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/variables/resolveTypeScript.md +1 -1
- package/api/@wtf/project-resolve/node/functions/nodePlatform.md +5 -5
- package/api/@wtf/project-resolve/register/variables/REGISTERED.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/filesOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/packagesOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceAt.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceRootAbove.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceRootOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/Agent.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/DirectoryEntry.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/FileContents.md +3 -3
- package/api/@wtf/project-resolve/workspace/type-aliases/PackageManager.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/PackageManagerName.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/ProcessWorkspaceOptions.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/Workspace.md +5 -5
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceDirectoryHandle.md +6 -6
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFileHandle.md +3 -3
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFiles.md +6 -6
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceOptions.md +2 -2
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePackage.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePaths.md +7 -7
- package/api/@wtf/project-storybook/README.md +90 -0
- package/api/@wtf/project-storybook/config/README.md +60 -0
- package/api/@wtf/project-storybook/config/functions/escapeAttribute.md +21 -0
- package/api/@wtf/project-storybook/config/functions/folderOf.md +28 -0
- package/api/@wtf/project-storybook/config/functions/metaTags.md +23 -0
- package/api/@wtf/project-storybook/config/functions/refsOf.md +22 -0
- package/api/@wtf/project-storybook/config/functions/storybookConfig.md +25 -0
- package/api/@wtf/project-storybook/config/type-aliases/ComposedRef.md +31 -0
- package/api/@wtf/project-storybook/config/type-aliases/StorybookConfig.md +132 -0
- package/api/@wtf/project-storybook/config/type-aliases/StorybookOptions.md +158 -0
- package/api/@wtf/project-storybook/config/type-aliases/StorybookRef.md +47 -0
- package/api/@wtf/project-storybook/config/type-aliases/VersionLabel.md +47 -0
- package/api/@wtf/project-storybook/manager/README.md +24 -0
- package/api/@wtf/project-storybook/manager/functions/registerVersion.md +23 -0
- package/api/@wtf/project-storybook/manager/type-aliases/VersionOptions.md +23 -0
- package/api/@wtf/project-storybook/schema/README.md +35 -0
- package/api/@wtf/project-storybook/schema/type-aliases/StorybookSection.md +13 -0
- package/api/@wtf/project-storybook/schema/variables/storybookSchema.md +13 -0
- package/api/@wtf/project-storybook/versions/README.md +36 -0
- package/api/@wtf/project-storybook/versions/functions/labelOf.md +22 -0
- package/api/@wtf/project-storybook/versions/functions/versionsOf.md +30 -0
- package/api/@wtf/project-storybook/versions/type-aliases/Label.md +59 -0
- package/api/@wtf/project-storybook/versions/type-aliases/ListedVersion.md +47 -0
- package/api/@wtf/project-storybook/versions/variables/META.md +20 -0
- package/api/@wtf/project-typedoc/config/functions/gitRevisionOf.md +1 -1
- package/api/@wtf/project-typedoc/config/functions/typedocConfig.md +1 -1
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocConfig.md +1 -1
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocOptions.md +7 -7
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocPlatform.md +2 -2
- package/api/@wtf/project-typedoc/plugins/functions/cleanGeneratedMarkdown.md +1 -1
- package/api/@wtf/project-typedoc/plugins/functions/linkTrackedSources.md +1 -1
- package/api/@wtf/project-typedoc/plugins/functions/preventMediaFiles.md +1 -1
- package/api/@wtf/project-typedoc/plugins/type-aliases/CleanGeneratedMarkdownOptions.md +4 -4
- package/api/@wtf/project-typedoc/plugins/type-aliases/LinkTrackedSourcesOptions.md +3 -3
- package/api/@wtf/project-typedoc/plugins/type-aliases/PreventMediaFilesOptions.md +4 -4
- package/api/@wtf/project-typedoc/plugins/type-aliases/TypedocPlugin.md +1 -1
- package/api/@wtf/project-typedoc/schema/type-aliases/TypedocSection.md +2 -2
- package/api/@wtf/project-typedoc/schema/variables/typedocSchema.md +1 -1
- package/api/@wtf/project-vite/config/functions/baseConfig.md +4 -4
- package/api/@wtf/project-vite/config/functions/buildsSite.md +1 -1
- package/api/@wtf/project-vite/config/functions/compress.md +1 -1
- package/api/@wtf/project-vite/config/functions/conditionsOf.md +1 -1
- package/api/@wtf/project-vite/config/functions/fromDist.md +1 -1
- package/api/@wtf/project-vite/config/type-aliases/BaseOptions.md +3 -3
- package/api/@wtf/project-vite/config/type-aliases/CompressOptions.md +4 -4
- package/api/@wtf/project-vite/config/variables/CLIENT_CONDITIONS.md +1 -1
- package/api/@wtf/project-vite/config/variables/COMPRESSIBLE.md +1 -1
- package/api/@wtf/project-vite/config/variables/THRESHOLD.md +1 -1
- package/api/@wtf/project-vite/schema/type-aliases/ViteSection.md +1 -1
- package/api/@wtf/project-vite/schema/variables/viteSchema.md +1 -1
- package/api/@wtf/project-vitest/browser/functions/browserConfig.md +1 -1
- package/api/@wtf/project-vitest/browser/functions/browserRootConfig.md +1 -1
- package/api/@wtf/project-vitest/browser/type-aliases/BrowserOptions.md +4 -4
- package/api/@wtf/project-vitest/config/functions/fromDist.md +1 -1
- package/api/@wtf/project-vitest/config/functions/integrationConfig.md +1 -1
- package/api/@wtf/project-vitest/config/functions/packageConfig.md +1 -1
- package/api/@wtf/project-vitest/config/functions/rootConfig.md +1 -1
- package/api/@wtf/project-vitest/config/type-aliases/PackageOptions.md +2 -2
- package/api/@wtf/project-vitest/config/type-aliases/RootConfigOptions.md +2 -2
- package/api/@wtf/project-vitest/config/type-aliases/RootOptions.md +8 -8
- package/api/@wtf/project-vitest/config/type-aliases/VitestPlatform.md +4 -4
- package/api/@wtf/project-vitest/config/type-aliases/VitestRootPlatform.md +1 -1
- package/api/@wtf/project-vitest/config/variables/GUARD_TIMEOUT.md +1 -1
- package/api/@wtf/project-vitest/config/variables/integration.md +9 -9
- package/api/@wtf/project-vitest/process/functions/childEnv.md +1 -1
- package/api/@wtf/project-vitest/process/type-aliases/Env.md +1 -1
- package/api/@wtf/project-vitest/schema/type-aliases/VitestSection.md +1 -1
- package/api/@wtf/project-vitest/schema/variables/vitestSchema.md +1 -1
- package/api/@wtf/project-vitest/storybook/functions/storybookConfig.md +1 -1
- package/api/@wtf/project-vitest/storybook/type-aliases/StorybookOptions.md +2 -2
- package/api/@wtf/project-wpt/builtins/functions/builtins.md +1 -1
- package/api/@wtf/project-wpt/builtins/functions/intrinsics.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutFolderOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutTests.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutWpt.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/execOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/fileOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckedOutTests.md +3 -3
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutOptions.md +8 -8
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutTestsOptions.md +2 -2
- package/api/@wtf/project-wpt/checkout/variables/HARNESS.md +1 -1
- package/api/@wtf/project-wpt/checkout/variables/REWRITES.md +1 -1
- package/api/@wtf/project-wpt/checkout/variables/WPT_REPOSITORY.md +1 -1
- package/api/@wtf/project-wpt/errors/classes/HarnessFailedError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/InvalidCommitError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/InvalidExpectationsError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/NoSuiteError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/NotInWptError.md +5 -5
- package/api/@wtf/project-wpt/errors/classes/StaleExpectationError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/SubtestFailedError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/UnexpectedPassError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/WptError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/WptFetchError.md +4 -4
- package/api/@wtf/project-wpt/expectations/functions/checkHarness.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/checkSubtest.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/expectationOf.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/expectationsIssues.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/readExpectations.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/staleOf.md +1 -1
- package/api/@wtf/project-wpt/expectations/type-aliases/ReadExpectations.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/CreateRealm.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Exec.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Expectations.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/FileExpectation.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/FileResult.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/Globals.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/HarnessResult.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/HarnessStatus.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/HoldRejections.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Realm.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/SubtestResult.md +5 -5
- package/api/@wtf/project-wpt/index/type-aliases/SubtestStatus.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/WptFile.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/WptFiles.md +9 -9
- package/api/@wtf/project-wpt/index/type-aliases/WptPaths.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/WptPlatform.md +2 -2
- package/api/@wtf/project-wpt/index/type-aliases/WptSystem.md +6 -6
- package/api/@wtf/project-wpt/index/type-aliases/WptTest.md +3 -3
- package/api/@wtf/project-wpt/meta/functions/idOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/metaOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/runsOutsideWindow.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/scriptPathsOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/testsOf.md +1 -1
- package/api/@wtf/project-wpt/meta/type-aliases/Meta.md +6 -6
- package/api/@wtf/project-wpt/node/functions/nodeSystem.md +1 -1
- package/api/@wtf/project-wpt/node/type-aliases/NodeSystemPlatform.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeFiles.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeRealm.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeRejections.md +1 -1
- package/api/@wtf/project-wpt/run/functions/runTest.md +1 -1
- package/api/@wtf/project-wpt/run/type-aliases/RunOptions.md +8 -8
- package/api/@wtf/project-wpt/run/type-aliases/RunPlatform.md +1 -1
- package/api/@wtf/project-wpt/run/variables/LONG_TIMEOUT.md +1 -1
- package/api/@wtf/project-wpt/run/variables/TIMEOUT.md +1 -1
- package/api/@wtf/project-wpt/run/variables/WPT_ORIGIN.md +1 -1
- package/api/@wtf/project-wpt/schema/type-aliases/WptConfig.md +2 -2
- package/api/@wtf/project-wpt/schema/type-aliases/WptSuiteConfig.md +2 -2
- package/api/@wtf/project-wpt/schema/variables/wptSchema.md +1 -1
- package/api/@wtf/project-wpt/suite/functions/wptSuite.md +1 -1
- package/api/@wtf/project-wpt/suite/type-aliases/WptSuiteOptions.md +8 -8
- package/api/README.md +1 -0
- package/api/trains.json +3 -0
- package/guides/storybook.md +157 -0
- package/package.json +2 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type FileContents = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/workspace.ts:46](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
9
|
+
Defined in: [packages/project-resolve/src/workspace.ts:46](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L46)
|
|
10
10
|
|
|
11
11
|
A file as its handle gives it, `getFile()`: its bytes, as text or as a buffer.
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ A file as its handle gives it, `getFile()`: its bytes, as text or as a buffer.
|
|
|
18
18
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/project-resolve/src/workspace.ts:46](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
21
|
+
Defined in: [packages/project-resolve/src/workspace.ts:46](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L46)
|
|
22
22
|
|
|
23
23
|
#### Returns
|
|
24
24
|
|
|
@@ -32,7 +32,7 @@ Defined in: [packages/project-resolve/src/workspace.ts:46](https://gitlab.com/we
|
|
|
32
32
|
text(): Promise<string>;
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
Defined in: [packages/project-resolve/src/workspace.ts:46](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
35
|
+
Defined in: [packages/project-resolve/src/workspace.ts:46](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L46)
|
|
36
36
|
|
|
37
37
|
#### Returns
|
|
38
38
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type PackageManager = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/workspace.ts:106](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
9
|
+
Defined in: [packages/project-resolve/src/workspace.ts:106](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L106)
|
|
10
10
|
|
|
11
11
|
A package manager: its name, its agent, and its version, if it is known, as
|
|
12
12
|
`major[.minor[.patch]]`.
|
|
@@ -19,7 +19,7 @@ A package manager: its name, its agent, and its version, if it is known, as
|
|
|
19
19
|
readonly agent: Agent;
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
Defined in: [packages/project-resolve/src/workspace.ts:108](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
22
|
+
Defined in: [packages/project-resolve/src/workspace.ts:108](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L108)
|
|
23
23
|
|
|
24
24
|
***
|
|
25
25
|
|
|
@@ -29,7 +29,7 @@ Defined in: [packages/project-resolve/src/workspace.ts:108](https://gitlab.com/w
|
|
|
29
29
|
readonly name: PackageManagerName;
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
Defined in: [packages/project-resolve/src/workspace.ts:107](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
32
|
+
Defined in: [packages/project-resolve/src/workspace.ts:107](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L107)
|
|
33
33
|
|
|
34
34
|
***
|
|
35
35
|
|
|
@@ -39,4 +39,4 @@ Defined in: [packages/project-resolve/src/workspace.ts:107](https://gitlab.com/w
|
|
|
39
39
|
readonly optional version?: string;
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
Defined in: [packages/project-resolve/src/workspace.ts:109](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
42
|
+
Defined in: [packages/project-resolve/src/workspace.ts:109](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L109)
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
type PackageManagerName = "npm" | "pnpm" | "yarn" | "bun";
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/workspace.ts:98](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
9
|
+
Defined in: [packages/project-resolve/src/workspace.ts:98](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L98)
|
|
10
10
|
|
|
11
11
|
The package managers whose workspaces are read.
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
type ProcessWorkspaceOptions = WorkspaceOptions;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/workspace.ts:613](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
9
|
+
Defined in: [packages/project-resolve/src/workspace.ts:613](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L613)
|
|
10
10
|
|
|
11
11
|
What a reader of the workspace a process runs in reads by: the platform of [WorkspaceOptions](WorkspaceOptions.md).
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type Workspace = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/workspace.ts:113](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
9
|
+
Defined in: [packages/project-resolve/src/workspace.ts:113](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L113)
|
|
10
10
|
|
|
11
11
|
A workspace: its root, its package manager, and its packages.
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ A workspace: its root, its package manager, and its packages.
|
|
|
18
18
|
readonly packageManager: PackageManager;
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/project-resolve/src/workspace.ts:120](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
21
|
+
Defined in: [packages/project-resolve/src/workspace.ts:120](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L120)
|
|
22
22
|
|
|
23
23
|
The package manager whose workspace it is: pnpm, of a pnpm-workspace.yaml; and of a
|
|
24
24
|
package.json's `workspaces`, the one its `packageManager` or `devEngines` field names, else
|
|
@@ -32,7 +32,7 @@ the one whose lockfile the root holds, else npm. At its version, when the field
|
|
|
32
32
|
readonly packages: ReadonlyMap<string, string>;
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
Defined in: [packages/project-resolve/src/workspace.ts:124](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
35
|
+
Defined in: [packages/project-resolve/src/workspace.ts:124](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L124)
|
|
36
36
|
|
|
37
37
|
Each package of the workspace by its name: its folder, in the order of their paths. A folder
|
|
38
38
|
whose package.json has no name is none of them, and the root is none either, unless a
|
|
@@ -46,7 +46,7 @@ pattern names it.
|
|
|
46
46
|
readonly projects: readonly string[];
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
Defined in: [packages/project-resolve/src/workspace.ts:127](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
49
|
+
Defined in: [packages/project-resolve/src/workspace.ts:127](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L127)
|
|
50
50
|
|
|
51
51
|
The folder of each project its patterns name, in the order of their paths: each that holds a
|
|
52
52
|
package.json, of a name or not, which a tool that refuses a package of no name reads.
|
|
@@ -59,7 +59,7 @@ package.json, of a name or not, which a tool that refuses a package of no name r
|
|
|
59
59
|
readonly root: string;
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
Defined in: [packages/project-resolve/src/workspace.ts:116](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
62
|
+
Defined in: [packages/project-resolve/src/workspace.ts:116](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L116)
|
|
63
63
|
|
|
64
64
|
The folder of its pnpm-workspace.yaml, or of the package.json whose `workspaces` names its
|
|
65
65
|
packages.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type WorkspaceDirectoryHandle = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/workspace.ts:60](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
9
|
+
Defined in: [packages/project-resolve/src/workspace.ts:60](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L60)
|
|
10
10
|
|
|
11
11
|
A folder's handle, of the WHATWG File System Standard, as a workspace is read by it: a folder or
|
|
12
12
|
a file in it, and its entries. A `FileSystemDirectoryHandle` of the DOM is one, as a browser
|
|
@@ -27,7 +27,7 @@ and a link back up is walked as a folder of its own, until the handle fails to g
|
|
|
27
27
|
readonly kind: "directory";
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
Defined in: [packages/project-resolve/src/workspace.ts:61](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
30
|
+
Defined in: [packages/project-resolve/src/workspace.ts:61](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L61)
|
|
31
31
|
|
|
32
32
|
## Methods
|
|
33
33
|
|
|
@@ -39,7 +39,7 @@ entries(): AsyncIterable<[string,
|
|
|
39
39
|
| WorkspaceDirectoryHandle]>;
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
Defined in: [packages/project-resolve/src/workspace.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
42
|
+
Defined in: [packages/project-resolve/src/workspace.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L64)
|
|
43
43
|
|
|
44
44
|
#### Returns
|
|
45
45
|
|
|
@@ -55,7 +55,7 @@ Defined in: [packages/project-resolve/src/workspace.ts:64](https://gitlab.com/we
|
|
|
55
55
|
getDirectoryHandle(name): Promise<WorkspaceDirectoryHandle>;
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
Defined in: [packages/project-resolve/src/workspace.ts:62](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
58
|
+
Defined in: [packages/project-resolve/src/workspace.ts:62](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L62)
|
|
59
59
|
|
|
60
60
|
#### Parameters
|
|
61
61
|
|
|
@@ -75,7 +75,7 @@ Defined in: [packages/project-resolve/src/workspace.ts:62](https://gitlab.com/we
|
|
|
75
75
|
getFileHandle(name): Promise<WorkspaceFileHandle>;
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
Defined in: [packages/project-resolve/src/workspace.ts:63](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
78
|
+
Defined in: [packages/project-resolve/src/workspace.ts:63](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L63)
|
|
79
79
|
|
|
80
80
|
#### Parameters
|
|
81
81
|
|
|
@@ -95,7 +95,7 @@ Defined in: [packages/project-resolve/src/workspace.ts:63](https://gitlab.com/we
|
|
|
95
95
|
optional realpath(): Promise<string>;
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
Defined in: [packages/project-resolve/src/workspace.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
98
|
+
Defined in: [packages/project-resolve/src/workspace.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L66)
|
|
99
99
|
|
|
100
100
|
The real path of the folder, of no link, where the handle says it: no call of the standard.
|
|
101
101
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type WorkspaceFileHandle = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/workspace.ts:40](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
9
|
+
Defined in: [packages/project-resolve/src/workspace.ts:40](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L40)
|
|
10
10
|
|
|
11
11
|
A file's handle, of the WHATWG File System Standard, as a workspace is read by it: the file's
|
|
12
12
|
bytes, by `getFile()`. A `FileSystemFileHandle` of the DOM is one.
|
|
@@ -19,7 +19,7 @@ bytes, by `getFile()`. A `FileSystemFileHandle` of the DOM is one.
|
|
|
19
19
|
readonly kind: "file";
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
Defined in: [packages/project-resolve/src/workspace.ts:41](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
22
|
+
Defined in: [packages/project-resolve/src/workspace.ts:41](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L41)
|
|
23
23
|
|
|
24
24
|
## Methods
|
|
25
25
|
|
|
@@ -29,7 +29,7 @@ Defined in: [packages/project-resolve/src/workspace.ts:41](https://gitlab.com/we
|
|
|
29
29
|
getFile(): Promise<FileContents>;
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
Defined in: [packages/project-resolve/src/workspace.ts:42](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
32
|
+
Defined in: [packages/project-resolve/src/workspace.ts:42](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L42)
|
|
33
33
|
|
|
34
34
|
#### Returns
|
|
35
35
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type WorkspaceFiles = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/workspace.ts:149](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
9
|
+
Defined in: [packages/project-resolve/src/workspace.ts:149](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L149)
|
|
10
10
|
|
|
11
11
|
The calls of a file system of promises that a workspace is read by, and any reader of paths: of
|
|
12
12
|
absolute paths, the handles of a platform's file system walked down by their parts
|
|
@@ -20,7 +20,7 @@ absolute paths, the handles of a platform's file system walked down by their par
|
|
|
20
20
|
exists(path): Promise<boolean>;
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Defined in: [packages/project-resolve/src/workspace.ts:157](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
23
|
+
Defined in: [packages/project-resolve/src/workspace.ts:157](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L157)
|
|
24
24
|
|
|
25
25
|
Whether a file or a folder is there: of one that cannot be read, no.
|
|
26
26
|
|
|
@@ -42,7 +42,7 @@ Whether a file or a folder is there: of one that cannot be read, no.
|
|
|
42
42
|
readBytes(path): Promise<Uint8Array<ArrayBufferLike>>;
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
Defined in: [packages/project-resolve/src/workspace.ts:153](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
45
|
+
Defined in: [packages/project-resolve/src/workspace.ts:153](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L153)
|
|
46
46
|
|
|
47
47
|
A file's bytes.
|
|
48
48
|
|
|
@@ -64,7 +64,7 @@ A file's bytes.
|
|
|
64
64
|
readdir(path): Promise<readonly DirectoryEntry[]>;
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
Defined in: [packages/project-resolve/src/workspace.ts:155](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
67
|
+
Defined in: [packages/project-resolve/src/workspace.ts:155](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L155)
|
|
68
68
|
|
|
69
69
|
The entries of a folder.
|
|
70
70
|
|
|
@@ -86,7 +86,7 @@ The entries of a folder.
|
|
|
86
86
|
readFile(path): Promise<string>;
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
-
Defined in: [packages/project-resolve/src/workspace.ts:151](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
89
|
+
Defined in: [packages/project-resolve/src/workspace.ts:151](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L151)
|
|
90
90
|
|
|
91
91
|
A file's text.
|
|
92
92
|
|
|
@@ -108,7 +108,7 @@ A file's text.
|
|
|
108
108
|
realpath(path): Promise<string>;
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
Defined in: [packages/project-resolve/src/workspace.ts:159](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
111
|
+
Defined in: [packages/project-resolve/src/workspace.ts:159](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L159)
|
|
112
112
|
|
|
113
113
|
The real path of a folder, of no link, where its handle says it; else the path.
|
|
114
114
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type WorkspaceOptions = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/workspace.ts:82](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
9
|
+
Defined in: [packages/project-resolve/src/workspace.ts:82](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L82)
|
|
10
10
|
|
|
11
11
|
What a workspace is read by.
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ What a workspace is read by.
|
|
|
18
18
|
readonly platform: object;
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/project-resolve/src/workspace.ts:89](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
21
|
+
Defined in: [packages/project-resolve/src/workspace.ts:89](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L89)
|
|
22
22
|
|
|
23
23
|
The platform it is read by: its file system, `navigator.storage.getDirectory()`, the handle of
|
|
24
24
|
the root of the WHATWG File System Standard, as a browser's or `nodePlatform()` of ./node
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type WorkspacePackage = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/workspace.ts:649](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
9
|
+
Defined in: [packages/project-resolve/src/workspace.ts:649](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L649)
|
|
10
10
|
|
|
11
11
|
A package of the workspace a process runs in: its folder, its name, and its export map.
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ A package of the workspace a process runs in: its folder, its name, and its expo
|
|
|
18
18
|
readonly dir: string;
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/project-resolve/src/workspace.ts:650](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
21
|
+
Defined in: [packages/project-resolve/src/workspace.ts:650](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L650)
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ Defined in: [packages/project-resolve/src/workspace.ts:650](https://gitlab.com/w
|
|
|
28
28
|
readonly exports: Readonly<Record<string, unknown>>;
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
Defined in: [packages/project-resolve/src/workspace.ts:652](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
31
|
+
Defined in: [packages/project-resolve/src/workspace.ts:652](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L652)
|
|
32
32
|
|
|
33
33
|
***
|
|
34
34
|
|
|
@@ -38,4 +38,4 @@ Defined in: [packages/project-resolve/src/workspace.ts:652](https://gitlab.com/w
|
|
|
38
38
|
readonly name: string;
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
Defined in: [packages/project-resolve/src/workspace.ts:651](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
41
|
+
Defined in: [packages/project-resolve/src/workspace.ts:651](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L651)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type WorkspacePaths = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/workspace.ts:73](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
9
|
+
Defined in: [packages/project-resolve/src/workspace.ts:73](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L73)
|
|
10
10
|
|
|
11
11
|
The paths a workspace is read by: the members of a platform's paths it calls, by their names and
|
|
12
12
|
signatures, as `node:path` has them. This package depends on nothing, so it names them itself.
|
|
@@ -19,7 +19,7 @@ signatures, as `node:path` has them. This package depends on nothing, so it name
|
|
|
19
19
|
readonly sep: string;
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
Defined in: [packages/project-resolve/src/workspace.ts:74](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
22
|
+
Defined in: [packages/project-resolve/src/workspace.ts:74](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L74)
|
|
23
23
|
|
|
24
24
|
## Methods
|
|
25
25
|
|
|
@@ -29,7 +29,7 @@ Defined in: [packages/project-resolve/src/workspace.ts:74](https://gitlab.com/we
|
|
|
29
29
|
dirname(path): string;
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
Defined in: [packages/project-resolve/src/workspace.ts:77](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
32
|
+
Defined in: [packages/project-resolve/src/workspace.ts:77](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L77)
|
|
33
33
|
|
|
34
34
|
#### Parameters
|
|
35
35
|
|
|
@@ -49,7 +49,7 @@ Defined in: [packages/project-resolve/src/workspace.ts:77](https://gitlab.com/we
|
|
|
49
49
|
join(...paths): string;
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
Defined in: [packages/project-resolve/src/workspace.ts:75](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
52
|
+
Defined in: [packages/project-resolve/src/workspace.ts:75](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L75)
|
|
53
53
|
|
|
54
54
|
#### Parameters
|
|
55
55
|
|
|
@@ -69,7 +69,7 @@ Defined in: [packages/project-resolve/src/workspace.ts:75](https://gitlab.com/we
|
|
|
69
69
|
parse(path): object;
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
Defined in: [packages/project-resolve/src/workspace.ts:78](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
72
|
+
Defined in: [packages/project-resolve/src/workspace.ts:78](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L78)
|
|
73
73
|
|
|
74
74
|
#### Parameters
|
|
75
75
|
|
|
@@ -83,7 +83,7 @@ Defined in: [packages/project-resolve/src/workspace.ts:78](https://gitlab.com/we
|
|
|
83
83
|
|
|
84
84
|
| Name | Type | Defined in |
|
|
85
85
|
| ------ | ------ | ------ |
|
|
86
|
-
| `root` | `string` | [packages/project-resolve/src/workspace.ts:78](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
86
|
+
| `root` | `string` | [packages/project-resolve/src/workspace.ts:78](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L78) |
|
|
87
87
|
|
|
88
88
|
***
|
|
89
89
|
|
|
@@ -93,7 +93,7 @@ Defined in: [packages/project-resolve/src/workspace.ts:78](https://gitlab.com/we
|
|
|
93
93
|
resolve(...paths): string;
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
Defined in: [packages/project-resolve/src/workspace.ts:76](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.0
|
|
96
|
+
Defined in: [packages/project-resolve/src/workspace.ts:76](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-resolve/src/workspace.ts#L76)
|
|
97
97
|
|
|
98
98
|
#### Parameters
|
|
99
99
|
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
[Documentation](../../README.md) / @wtf/project-storybook
|
|
2
|
+
|
|
3
|
+
# @wtf/project-storybook
|
|
4
|
+
|
|
5
|
+
The base of a Storybook in a workspace, on Vite. Every Storybook of a repo starts its
|
|
6
|
+
`.storybook/main.ts` from one call, so they all resolve the workspace from source, build compressed
|
|
7
|
+
sites, show the version they are of, and compose one another the same way.
|
|
8
|
+
|
|
9
|
+
| Subpath | What you get |
|
|
10
|
+
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
11
|
+
| `./config` | `storybookConfig`, the config of a Storybook; `metaTags`, `refsOf`, `folderOf` and `escapeAttribute`, the parts it is made of |
|
|
12
|
+
| `./manager` | `registerVersion`, the version in the manager's toolbar: a label linked to its release, or a picker of the versions a host keeps |
|
|
13
|
+
| `./versions` | `labelOf` and `versionsOf`, the label and the list of versions a manager reads, as data; `META`, the names of the meta tags that carry them |
|
|
14
|
+
| `./schema` | `storybookSchema`: the Standard Schema of the options of `storybookConfig()`, which gives their JSON Schema |
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
// .storybook/main.ts
|
|
18
|
+
import { nodeStorage } from '@wtf/platform-fs-node/storage'
|
|
19
|
+
import { nodePlatform } from '@wtf/platform-node/platform'
|
|
20
|
+
|
|
21
|
+
import { storybookConfig } from '@wtf/project-storybook/config'
|
|
22
|
+
|
|
23
|
+
const platform = nodePlatform({ fetch, storage: nodeStorage() })
|
|
24
|
+
|
|
25
|
+
export default await storybookConfig({
|
|
26
|
+
platform,
|
|
27
|
+
from: import.meta.url,
|
|
28
|
+
framework: '@storybook/react-vite',
|
|
29
|
+
addons: ['@storybook/addon-docs'],
|
|
30
|
+
stories: ['../stories/**/*.stories.tsx'],
|
|
31
|
+
label: { text: 'v1.2.0', url: 'https://example.com/releases/v1.2.0' },
|
|
32
|
+
versions: '../versions.json'
|
|
33
|
+
})
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
// .storybook/manager.ts
|
|
38
|
+
import { registerVersion } from '@wtf/project-storybook/manager'
|
|
39
|
+
|
|
40
|
+
registerVersion()
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
What `storybookConfig()` gives you:
|
|
44
|
+
|
|
45
|
+
- **The framework and the addons, found.** Storybook's CLI looks a framework or an addon up from
|
|
46
|
+
its own folder, which pnpm keeps apart, so it finds none of them by name. Each is given as the
|
|
47
|
+
folder your Storybook's package resolves it to, through the platform's `modules`, from `from`.
|
|
48
|
+
- **Vite of the workspace.** `viteFinal` starts from `baseConfig()` of
|
|
49
|
+
[`@wtf/project-vite`](../project-vite/README.md): your packages from their source, or from their
|
|
50
|
+
build with `TEST_FROM=dist`, and brotli and gzip copies of the site's files. Your `vite` config
|
|
51
|
+
is merged over it, as for Tailwind's plugin.
|
|
52
|
+
- **The version it shows.** `label` is the version in the toolbar, with what it says on hover and
|
|
53
|
+
where it links; `versions` is where a host that serves the versions side by side keeps the list
|
|
54
|
+
of them. Both go into the manager's page as meta tags, which `registerVersion()` reads. What the
|
|
55
|
+
label says is yours to work out, from a tag or a package's version.
|
|
56
|
+
- **Composition.** `refs` are the Storybooks it shows of its own: each at a URL relative to the
|
|
57
|
+
site in a build, so the site works under any path, and at its dev server's in development.
|
|
58
|
+
- **No telemetry**, unless `telemetry: true`.
|
|
59
|
+
|
|
60
|
+
Spread the result to add what your Storybook sets of its own, as `staticDirs` or `previewHead`.
|
|
61
|
+
|
|
62
|
+
## The list of versions
|
|
63
|
+
|
|
64
|
+
A host that serves several versions of a Storybook side by side writes the list of them as JSON,
|
|
65
|
+
an array of each version and the folder of its Storybook, relative to the list:
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
[
|
|
69
|
+
{ "version": "1.2", "url": "1.2/" },
|
|
70
|
+
{ "version": "1.1", "url": "1.1/" }
|
|
71
|
+
]
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
With `versions: '../versions.json'`, a Storybook served from `1.1/` finds the list beside its
|
|
75
|
+
folder. Its toolbar shows a picker of the versions, the one it is of picked, and picking another
|
|
76
|
+
opens the same story there. A Storybook of no list, or of a list it cannot read, shows its label.
|
|
77
|
+
|
|
78
|
+
The platform is the config file's own: `nodePlatform()` of `@wtf/platform-node/platform` makes
|
|
79
|
+
Node's. `storybook` and `react` are peer dependencies, as your Storybook installs them.
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
MIT
|
|
84
|
+
|
|
85
|
+
## Modules
|
|
86
|
+
|
|
87
|
+
- [config](config/README.md)
|
|
88
|
+
- [manager](manager/README.md)
|
|
89
|
+
- [schema](schema/README.md)
|
|
90
|
+
- [versions](versions/README.md)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-storybook](../README.md) / config
|
|
2
|
+
|
|
3
|
+
# config
|
|
4
|
+
|
|
5
|
+
The base of a Storybook's `.storybook/main.ts`: `storybookConfig()`, which gives the config of
|
|
6
|
+
a Storybook of a workspace, built on Vite. Each Storybook of a repo starts from it, so they
|
|
7
|
+
resolve, build, label their version and compose alike:
|
|
8
|
+
|
|
9
|
+
- **The framework and the addons, as folders.** Storybook's CLI resolves a framework or an
|
|
10
|
+
addon by its name from its own folder, which pnpm keeps apart in its store, so each is given
|
|
11
|
+
as the folder the Storybook's own package resolves it to ([folderOf](functions/folderOf.md)).
|
|
12
|
+
- **Vite of the workspace.** `viteFinal` starts from the base Vite config of
|
|
13
|
+
`@wtf/project-vite/config`: the workspace's packages by their source, or by their build with
|
|
14
|
+
`TEST_FROM=dist`, and the compressed copies of the site's build; then the config's own.
|
|
15
|
+
- **The version it shows.** A label, as `v1.2.0` linked to its release, and where the list of
|
|
16
|
+
the versions a host keeps beside it is, as meta tags of the manager's page, which
|
|
17
|
+
`registerVersion()` of `./manager` reads. What the label says is the repo's to give: this
|
|
18
|
+
package knows nothing of how a project tags or releases.
|
|
19
|
+
- **Composition.** Each Storybook it shows of its own (`refs`), at a URL relative to the site
|
|
20
|
+
in a build, so a site served under a path finds them, and at its dev server's in development.
|
|
21
|
+
|
|
22
|
+
It reads nothing of the process: the config file, its entry point, gives the platform, as
|
|
23
|
+
`nodePlatform()` of `@wtf/platform-node/platform` makes Node's, and its own `import.meta.url`,
|
|
24
|
+
which the framework and the addons resolve from.
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
// .storybook/main.ts
|
|
28
|
+
import { nodeStorage } from '@wtf/platform-fs-node/storage'
|
|
29
|
+
import { nodePlatform } from '@wtf/platform-node/platform'
|
|
30
|
+
|
|
31
|
+
import { storybookConfig } from '@wtf/project-storybook/config'
|
|
32
|
+
|
|
33
|
+
const platform = nodePlatform({ fetch, storage: nodeStorage() })
|
|
34
|
+
|
|
35
|
+
export default await storybookConfig({
|
|
36
|
+
platform,
|
|
37
|
+
from: import.meta.url,
|
|
38
|
+
framework: '@storybook/react-vite',
|
|
39
|
+
addons: ['@storybook/addon-docs'],
|
|
40
|
+
stories: ['../stories/**/*.stories.tsx'],
|
|
41
|
+
label: { text: 'v1.2.0', url: 'https://example.com/releases/v1.2.0' },
|
|
42
|
+
versions: '../versions.json'
|
|
43
|
+
})
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Type Aliases
|
|
47
|
+
|
|
48
|
+
- [ComposedRef](type-aliases/ComposedRef.md)
|
|
49
|
+
- [StorybookConfig](type-aliases/StorybookConfig.md)
|
|
50
|
+
- [StorybookOptions](type-aliases/StorybookOptions.md)
|
|
51
|
+
- [StorybookRef](type-aliases/StorybookRef.md)
|
|
52
|
+
- [VersionLabel](type-aliases/VersionLabel.md)
|
|
53
|
+
|
|
54
|
+
## Functions
|
|
55
|
+
|
|
56
|
+
- [escapeAttribute](functions/escapeAttribute.md)
|
|
57
|
+
- [folderOf](functions/folderOf.md)
|
|
58
|
+
- [metaTags](functions/metaTags.md)
|
|
59
|
+
- [refsOf](functions/refsOf.md)
|
|
60
|
+
- [storybookConfig](functions/storybookConfig.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-storybook](../../README.md) / [config](../README.md) / escapeAttribute
|
|
2
|
+
|
|
3
|
+
# Function: escapeAttribute()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function escapeAttribute(value): string;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-storybook/src/config.ts:121](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-storybook/src/config.ts#L121)
|
|
10
|
+
|
|
11
|
+
`value` safe in a double-quoted attribute of HTML.
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
| Parameter | Type |
|
|
16
|
+
| ------ | ------ |
|
|
17
|
+
| `value` | `string` |
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`string`
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-storybook](../../README.md) / [config](../README.md) / folderOf
|
|
2
|
+
|
|
3
|
+
# Function: folderOf()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function folderOf(
|
|
7
|
+
platform,
|
|
8
|
+
name,
|
|
9
|
+
from
|
|
10
|
+
): Promise<string>;
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Defined in: [packages/project-storybook/src/config.ts:146](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-storybook/src/config.ts#L146)
|
|
14
|
+
|
|
15
|
+
The folder of the package `name`, as the module at `from` resolves it, by the platform's
|
|
16
|
+
`modules`: of its package.json, which each Storybook package exports.
|
|
17
|
+
|
|
18
|
+
## Parameters
|
|
19
|
+
|
|
20
|
+
| Parameter | Type |
|
|
21
|
+
| ------ | ------ |
|
|
22
|
+
| `platform` | `Pick`\<`ProcessPlatform`, `"modules"` \| `"path"`\> |
|
|
23
|
+
| `name` | `string` |
|
|
24
|
+
| `from` | `string` |
|
|
25
|
+
|
|
26
|
+
## Returns
|
|
27
|
+
|
|
28
|
+
`Promise`\<`string`\>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-storybook](../../README.md) / [config](../README.md) / metaTags
|
|
2
|
+
|
|
3
|
+
# Function: metaTags()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function metaTags(label?, versions?): string[];
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-storybook/src/config.ts:132](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-storybook/src/config.ts#L132)
|
|
10
|
+
|
|
11
|
+
The meta tags of the manager's page that say the version the site shows, `label`, and where the
|
|
12
|
+
list of `versions` is: one of each value given, none of none.
|
|
13
|
+
|
|
14
|
+
## Parameters
|
|
15
|
+
|
|
16
|
+
| Parameter | Type |
|
|
17
|
+
| ------ | ------ |
|
|
18
|
+
| `label?` | [`VersionLabel`](../type-aliases/VersionLabel.md) |
|
|
19
|
+
| `versions?` | `string` |
|
|
20
|
+
|
|
21
|
+
## Returns
|
|
22
|
+
|
|
23
|
+
`string`[]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-storybook](../../README.md) / [config](../README.md) / refsOf
|
|
2
|
+
|
|
3
|
+
# Function: refsOf()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function refsOf(refs): (_config, __namedParameters) => Record<string, ComposedRef>;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-storybook/src/config.ts:158](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.1.0/packages/project-storybook/src/config.ts#L158)
|
|
10
|
+
|
|
11
|
+
The `refs` of Storybook of `refs`: each at its `dev` URL in development, and at its `url` in a
|
|
12
|
+
build.
|
|
13
|
+
|
|
14
|
+
## Parameters
|
|
15
|
+
|
|
16
|
+
| Parameter | Type |
|
|
17
|
+
| ------ | ------ |
|
|
18
|
+
| `refs` | `Readonly`\<`Record`\<`string`, [`StorybookRef`](../type-aliases/StorybookRef.md)\>\> |
|
|
19
|
+
|
|
20
|
+
## Returns
|
|
21
|
+
|
|
22
|
+
(`_config`, `__namedParameters`) => `Record`\<`string`, [`ComposedRef`](../type-aliases/ComposedRef.md)\>
|