@xyd-js/storybook 0.0.1-build.178 → 0.0.1-build.180
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/CHANGELOG.md +9 -2517
- package/package.json +9 -9
- package/storybook-static/assets/Atlas.stories-B3Ix52TV.js +0 -153
- package/storybook-static/assets/Badge.stories-D3nfVAAW.js +0 -84
- package/storybook-static/assets/Banner.stories-BHLs2WlR.js +0 -394
- package/storybook-static/assets/Baseline.stories-Bwx2zF_U.js +0 -103
- package/storybook-static/assets/Blockquote.stories-Cxf9fDVo.js +0 -468
- package/storybook-static/assets/Breadcrumbs.stories-CFjDJvdh.js +0 -219
- package/storybook-static/assets/Button-Cj99tk5U-Cn0Wrqkw.js +0 -3
- package/storybook-static/assets/Button.stories-DUfQIyn7.js +0 -472
- package/storybook-static/assets/Callout.stories-CIQWommc.js +0 -134
- package/storybook-static/assets/Card.stories-0mJDPE-f.js +0 -278
- package/storybook-static/assets/CodeSample.stories-1k1_b2U_.js +0 -8
- package/storybook-static/assets/CodeSample.stories-BEAQ3H6A.js +0 -22
- package/storybook-static/assets/Color-YHDXOIA2-BAq_yxd2.js +0 -1
- package/storybook-static/assets/ColorSchemeButton.stories-C1yuuA8O.js +0 -384
- package/storybook-static/assets/Details.stories-BacIPYUH.js +0 -290
- package/storybook-static/assets/DocsRenderer-CFRXHY34-BwJiFRuq.js +0 -575
- package/storybook-static/assets/DocsTemplate-B8_ZAKIZ.js +0 -16
- package/storybook-static/assets/GuideCard.stories-IJbjW-xe.js +0 -253
- package/storybook-static/assets/Heading.stories-C9rBwnlZ.js +0 -337
- package/storybook-static/assets/Hr.stories-bgwD4mmY.js +0 -351
- package/storybook-static/assets/IconSocial.stories-Bv3u90GB.js +0 -715
- package/storybook-static/assets/Icons-CjNNbMNR.js +0 -1
- package/storybook-static/assets/Image.stories-BlrJ8Th7.js +0 -349
- package/storybook-static/assets/List.stories-mzy4ZAGg.js +0 -513
- package/storybook-static/assets/Nav.stories-CZhCHFlj.js +0 -13
- package/storybook-static/assets/NavLinks.stories-DuFRhZLh.js +0 -359
- package/storybook-static/assets/PageBlogHome.stories-BnmA2r3q.js +0 -14
- package/storybook-static/assets/PageFirstSlide-D2kcGYmB-BWfslHla.js +0 -1
- package/storybook-static/assets/PageFirstSlide-SzOOIHx0.css +0 -1
- package/storybook-static/assets/PageFirstSlide.stories-CoKlxYlH.js +0 -55
- package/storybook-static/assets/PageHome.stories-DcgUrGxe.js +0 -121
- package/storybook-static/assets/Pre.stories-CKu9R4kn.js +0 -11
- package/storybook-static/assets/Sidebar.stories-BivU6MOT.js +0 -9
- package/storybook-static/assets/Steps.stories-fSa3Sw8j.js +0 -1146
- package/storybook-static/assets/SubNav.stories-CL_Th3oO.js +0 -19
- package/storybook-static/assets/Table.stories-BdNM7k9y.js +0 -581
- package/storybook-static/assets/Tabs.stories-A3NcBab_.js +0 -873
- package/storybook-static/assets/Text-BAwif7rv-BYvLGGQV.js +0 -31
- package/storybook-static/assets/TocCard.stories-BRB1SH6U.js +0 -299
- package/storybook-static/assets/Update-DflVXGGQ-qVV03FlC.js +0 -1
- package/storybook-static/assets/Update.stories-DG383caW.js +0 -387
- package/storybook-static/assets/VideoGuide.stories-BnCDLXK7.js +0 -3
- package/storybook-static/assets/__vite-browser-external-FmFgRqLi.js +0 -1
- package/storybook-static/assets/_rollupPluginBabelHelpers-DuYa1R0C-CyXpXONY.js +0 -4
- package/storybook-static/assets/chunk-EF7DTUVF-DPkwZaUR.js +0 -12
- package/storybook-static/assets/chunk-XP5HYGXS-BpfKkqn7.js +0 -1
- package/storybook-static/assets/content-BRdfAQPf.js +0 -27
- package/storybook-static/assets/entry-preview-D5WwyKaL.js +0 -2
- package/storybook-static/assets/entry-preview-docs-DU3GzdsG.js +0 -46
- package/storybook-static/assets/entry-preview-rsc-56ExrKd2.js +0 -1
- package/storybook-static/assets/github-BKgXy13-.js +0 -6
- package/storybook-static/assets/iframe-YbiB23cy.js +0 -211
- package/storybook-static/assets/index-Cf9b6H0j.js +0 -8
- package/storybook-static/assets/index-CrSc8wm9.js +0 -240
- package/storybook-static/assets/index-CzKwSnp0.js +0 -9
- package/storybook-static/assets/index-D6tQpKjq.js +0 -12
- package/storybook-static/assets/index-DUCcPMOf.js +0 -1
- package/storybook-static/assets/index-D_kTjGoR.js +0 -9
- package/storybook-static/assets/index-DgnBCu_c.js +0 -1
- package/storybook-static/assets/index-DrFu-skq.js +0 -6
- package/storybook-static/assets/index-H0MBf5rE.js +0 -1
- package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +0 -9
- package/storybook-static/assets/layouts-DBdGRyBm.js +0 -1
- package/storybook-static/assets/preview-B5edrxhc.js +0 -1
- package/storybook-static/assets/preview-BWzBA1C2.js +0 -396
- package/storybook-static/assets/preview-C5EOgwJ9.js +0 -2
- package/storybook-static/assets/preview-DGZ5Qq08.js +0 -34
- package/storybook-static/assets/preview-DTyQTpzx.js +0 -1
- package/storybook-static/assets/preview-TqM3Oi8H.js +0 -1
- package/storybook-static/assets/preview-WIE65ICp.js +0 -1
- package/storybook-static/assets/preview-_Oh-njOd.css +0 -1
- package/storybook-static/assets/preview-caVMbCIR.js +0 -7
- package/storybook-static/assets/react-18-Tf4JhPOR.js +0 -25
- package/storybook-static/assets/system-CcsYyfSK.js +0 -1
- package/storybook-static/assets/test-utils-BaXAOqRT.js +0 -9
- package/storybook-static/assets/themes.stories-D1474P9U.js +0 -41
- package/storybook-static/assets/writer-DkrWmB39.js +0 -1
- package/storybook-static/favicon.svg +0 -1
- package/storybook-static/iframe.html +0 -666
- package/storybook-static/index.html +0 -183
- package/storybook-static/index.json +0 -1
- package/storybook-static/logo.svg +0 -10
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +0 -1
- package/storybook-static/sb-addons/docs-9/manager-bundle.js +0 -242
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -12
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -402
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/storybook-10/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
- package/storybook-static/sb-addons/storysource-8/manager-bundle.js +0 -3
- package/storybook-static/sb-common-assets/favicon.svg +0 -1
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +0 -1052
- package/storybook-static/sb-manager/globals-runtime.js +0 -42127
- package/storybook-static/sb-manager/globals.js +0 -48
- package/storybook-static/sb-manager/runtime.js +0 -12048
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,387 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{h as n}from"./content-BRdfAQPf.js";import"./writer-DkrWmB39.js";import{A as a,q as r}from"./Update-DflVXGGQ-qVV03FlC.js";import{k as s,i,M as t}from"./Text-BAwif7rv-BYvLGGQV.js";import"./_rollupPluginBabelHelpers-DuYa1R0C-CyXpXONY.js";import"./Button-Cj99tk5U-Cn0Wrqkw.js";import"./index-CzKwSnp0.js";import"./PageFirstSlide-D2kcGYmB-BWfslHla.js";import"./index-DUCcPMOf.js";import"./index-DgnBCu_c.js";import"./index-D_kTjGoR.js";const z={title:"Components/Writer/Update",component:a,parameters:{docs:{description:{component:"Update component displays version information, release dates, and changelog content. Perfect for documenting software releases, feature updates, and version history with rich content support."}}},argTypes:{date:{description:"The release date in YYYY-MM-DD format",control:"text"},version:{description:"The version number or release identifier",control:"text"},children:{description:"Rich content including images, text, and other components",control:!1}}},o={args:{date:"2024-10-12",version:"v0.1.1",children:e.jsxs(n,{children:[e.jsx(r,{src:"https://placehold.co/600x300?text=Screenshot+or+Content",alt:"Screenshot placeholder"}),e.jsx(s,{size:2,children:"Changelog"}),e.jsx(i,{children:"You can add anything here, like a screenshot, a code snippet, or a list of changes."}),e.jsx(s,{size:3,children:"Features"}),e.jsxs(t,{children:[e.jsx(t.Item,{children:"Initial layout"}),e.jsx(t.Item,{children:"Basic navigation"})]})]})}},d={args:{date:"2024-12-01",version:"v2.0.0",children:e.jsxs(n,{children:[e.jsx(r,{src:"https://placehold.co/600x300?text=Major+Release+Screenshot",alt:"Major release screenshot"}),e.jsx(s,{size:2,children:"Major Release - v2.0.0"}),e.jsx(i,{children:"This is a major release with significant improvements and new features. We've completely redesigned the user interface and introduced a new component library."}),e.jsx(s,{size:3,children:"What's New"}),e.jsxs(t,{children:[e.jsx(t.Item,{children:"Complete UI redesign with modern aesthetics"}),e.jsx(t.Item,{children:"New component library with 50+ components"}),e.jsx(t.Item,{children:"Performance improvements up to 40% faster"}),e.jsx(t.Item,{children:"Enhanced accessibility with WCAG 2.1 compliance"}),e.jsx(t.Item,{children:"New dark mode support"}),e.jsx(t.Item,{children:"Improved TypeScript support"})]}),e.jsx(s,{size:3,children:"Breaking Changes"}),e.jsx(i,{children:"This release includes breaking changes. Please review the migration guide before updating your applications."})]})},parameters:{docs:{description:{story:"Major release example with significant features and breaking changes."}}}},c={args:{date:"2024-11-15",version:"v1.5.0",children:e.jsxs(n,{children:[e.jsx(r,{src:"https://placehold.co/600x300?text=Minor+Release+Screenshot",alt:"Minor release screenshot"}),e.jsx(s,{size:2,children:"Minor Release - v1.5.0"}),e.jsx(i,{children:"This minor release adds new components and includes various bug fixes and performance improvements."}),e.jsx(s,{size:3,children:"New Components"}),e.jsxs(t,{children:[e.jsx(t.Item,{children:"DataTable component for displaying tabular data"}),e.jsx(t.Item,{children:"Modal component with backdrop and animations"}),e.jsx(t.Item,{children:"Toast notification system"}),e.jsx(t.Item,{children:"Progress bar component"})]}),e.jsx(s,{size:3,children:"Improvements"}),e.jsxs(t,{children:[e.jsx(t.Item,{children:"Fixed accessibility issues in form components"}),e.jsx(t.Item,{children:"Improved performance of list rendering"}),e.jsx(t.Item,{children:"Updated documentation with new examples"}),e.jsx(t.Item,{children:"Enhanced TypeScript type definitions"})]})]})},parameters:{docs:{description:{story:"Minor release example with new features and improvements."}}}},l={args:{date:"2024-11-08",version:"v1.4.3",children:e.jsxs(n,{children:[e.jsx(s,{size:2,children:"Patch Release - v1.4.3"}),e.jsx(i,{children:"This patch release focuses on bug fixes and security updates to ensure stability and security."}),e.jsx(s,{size:3,children:"Bug Fixes"}),e.jsxs(t,{children:[e.jsx(t.Item,{children:"Fixed issue with button hover states in Safari"}),e.jsx(t.Item,{children:"Resolved memory leak in dropdown components"}),e.jsx(t.Item,{children:"Fixed alignment issues in grid layouts"}),e.jsx(t.Item,{children:"Corrected typography scaling on mobile devices"})]}),e.jsx(s,{size:3,children:"Security Updates"}),e.jsxs(t,{children:[e.jsx(t.Item,{children:"Updated dependencies to patch known vulnerabilities"}),e.jsx(t.Item,{children:"Enhanced input validation for form components"})]})]})},parameters:{docs:{description:{story:"Patch release example focusing on bug fixes and security updates."}}}},m={args:{date:"2024-11-20",version:"v2.0.0-beta.1",children:e.jsxs(n,{children:[e.jsx(r,{src:"https://placehold.co/600x300?text=Beta+Release+Screenshot",alt:"Beta release screenshot"}),e.jsx(s,{size:2,children:"Beta Release - v2.0.0-beta.1"}),e.jsx(i,{children:"This beta release introduces experimental features and improvements. We're seeking community feedback to refine these features before the final release."}),e.jsx(s,{size:3,children:"Experimental Features"}),e.jsxs(t,{children:[e.jsx(t.Item,{children:"New animation system with Framer Motion integration"}),e.jsx(t.Item,{children:"Advanced theming with CSS custom properties"}),e.jsx(t.Item,{children:"Component composition patterns"}),e.jsx(t.Item,{children:"Real-time collaboration features"})]}),e.jsx(s,{size:3,children:"Known Issues"}),e.jsxs(t,{children:[e.jsx(t.Item,{children:"Animation performance may vary on older devices"}),e.jsx(t.Item,{children:"Some components may have inconsistent styling"}),e.jsx(t.Item,{children:"Documentation is still being updated"})]}),e.jsxs(i,{children:[e.jsx("strong",{children:"Note:"})," This is a beta release intended for testing and feedback. Please report any issues you encounter."]})]})},parameters:{docs:{description:{story:"Beta release example with experimental features and known issues."}}}},p={render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"3rem",alignItems:"stretch"},children:[e.jsx(a,{date:"2024-12-01",version:"v2.0.0",children:e.jsxs(n,{children:[e.jsx(r,{src:"https://placehold.co/600x300?text=Major+Release+v2.0.0",alt:"Major release screenshot"}),e.jsx(s,{size:2,children:"Major Release - v2.0.0"}),e.jsx(i,{children:"A complete redesign with new components, improved performance, and enhanced accessibility."}),e.jsx(s,{size:3,children:"Highlights"}),e.jsxs(t,{children:[e.jsx(t.Item,{children:"Complete UI redesign with modern aesthetics"}),e.jsx(t.Item,{children:"New component library with 50+ components"}),e.jsx(t.Item,{children:"Performance improvements up to 40% faster"}),e.jsx(t.Item,{children:"Enhanced accessibility with WCAG 2.1 compliance"})]})]})}),e.jsx(a,{date:"2024-11-15",version:"v1.5.0",children:e.jsxs(n,{children:[e.jsx(r,{src:"https://placehold.co/600x300?text=Minor+Release+v1.5.0",alt:"Minor release screenshot"}),e.jsx(s,{size:2,children:"Minor Release - v1.5.0"}),e.jsx(i,{children:"Added new components and various improvements to existing functionality."}),e.jsx(s,{size:3,children:"New Components"}),e.jsxs(t,{children:[e.jsx(t.Item,{children:"DataTable component for displaying tabular data"}),e.jsx(t.Item,{children:"Modal component with backdrop and animations"}),e.jsx(t.Item,{children:"Toast notification system"})]})]})}),e.jsx(a,{date:"2024-11-08",version:"v1.4.3",children:e.jsxs(n,{children:[e.jsx(s,{size:2,children:"Patch Release - v1.4.3"}),e.jsx(i,{children:"Focused on bug fixes and security updates to ensure stability."}),e.jsx(s,{size:3,children:"Bug Fixes"}),e.jsxs(t,{children:[e.jsx(t.Item,{children:"Fixed issue with button hover states in Safari"}),e.jsx(t.Item,{children:"Resolved memory leak in dropdown components"}),e.jsx(t.Item,{children:"Fixed alignment issues in grid layouts"})]})]})})]}),parameters:{docs:{description:{story:"This example shows multiple updates in a changelog format, demonstrating how the Update component can be used to create a complete release history."}}}},h={render:()=>e.jsxs("div",{style:{padding:"20px",maxWidth:"800px"},children:[e.jsxs("div",{style:{background:"var(--xyd-bgcolor)",border:"1px solid var(--xyd-border-color)",borderRadius:"8px",padding:"20px",marginBottom:"20px"},children:[e.jsx("h2",{style:{marginBottom:"16px"},children:"Product Changelog"}),e.jsx("p",{style:{marginBottom:"16px",color:"var(--xyd-text-color)"},children:"Track the evolution of our product with detailed release notes and feature updates."})]}),e.jsx(a,{date:"2024-12-01",version:"v2.0.0",children:e.jsxs(n,{children:[e.jsx(r,{src:"https://placehold.co/600x300?text=Product+Redesign",alt:"Product redesign screenshot"}),e.jsx(s,{size:2,children:"🎉 Major Release - v2.0.0"}),e.jsx(i,{children:"We're excited to announce our biggest release yet! This version brings a complete redesign, new features, and significant performance improvements."}),e.jsx(s,{size:3,children:"✨ What's New"}),e.jsxs(t,{children:[e.jsx(t.Item,{children:"Complete UI redesign with modern, clean aesthetics"}),e.jsx(t.Item,{children:"New dashboard with customizable widgets"}),e.jsx(t.Item,{children:"Advanced analytics with real-time data visualization"}),e.jsx(t.Item,{children:"Enhanced collaboration features with real-time editing"}),e.jsx(t.Item,{children:"Mobile app for iOS and Android"})]}),e.jsx(s,{size:3,children:"🚀 Performance Improvements"}),e.jsxs(t,{children:[e.jsx(t.Item,{children:"40% faster page load times"}),e.jsx(t.Item,{children:"Reduced memory usage by 30%"}),e.jsx(t.Item,{children:"Improved search functionality with instant results"})]}),e.jsx(s,{size:3,children:"🔧 Breaking Changes"}),e.jsxs(i,{children:["This release includes some breaking changes. Please review our",e.jsx("a",{href:"#migration-guide",style:{color:"var(--xyd-link-color)"},children:" migration guide"}),"before updating."]})]})})]}),parameters:{docs:{description:{story:"This example shows how the Update component is typically used in real applications for product changelogs and release notes."}}}},x={render:()=>e.jsxs("div",{style:{padding:"20px"},children:[e.jsxs("div",{style:{background:"var(--xyd-bgcolor)",border:"1px solid var(--xyd-border-color)",borderRadius:"8px",padding:"20px",marginBottom:"20px"},children:[e.jsx("h3",{style:{marginBottom:"16px"},children:"Update Component Demo"}),e.jsx("p",{style:{marginBottom:"16px",color:"var(--xyd-text-color)"},children:"This example demonstrates the Update component with various content types and use cases."}),e.jsx(a,{date:"2024-11-20",version:"v1.6.0",children:e.jsxs(n,{children:[e.jsx(s,{size:2,children:"Component Improvements"}),e.jsx(i,{children:"This release focuses on improving existing components and adding better documentation."}),e.jsx(s,{size:3,children:"Improvements"}),e.jsxs(t,{children:[e.jsx(t.Item,{children:"Enhanced accessibility for all form components"}),e.jsx(t.Item,{children:"Better TypeScript support with improved type definitions"}),e.jsx(t.Item,{children:"Updated documentation with comprehensive examples"}),e.jsx(t.Item,{children:"Improved error handling and validation"})]})]})})]}),e.jsxs("div",{style:{background:"var(--xyd-bgcolor)",border:"1px solid var(--xyd-border-color)",borderRadius:"8px",padding:"20px"},children:[e.jsx("h4",{style:{marginBottom:"12px"},children:"Usage Guidelines"}),e.jsxs("ul",{style:{color:"var(--xyd-text-color)"},children:[e.jsx("li",{children:"Use semantic versioning for version numbers (e.g., v1.2.3)"}),e.jsx("li",{children:"Include the release date in YYYY-MM-DD format"}),e.jsx("li",{children:"Provide a concise list of key features or changes"}),e.jsx("li",{children:"Use rich content to explain changes in detail"}),e.jsx("li",{children:"Include screenshots or demos for visual changes"}),e.jsx("li",{children:"Document breaking changes clearly"}),e.jsx("li",{children:"Consider using emojis for visual appeal"})]})]})]}),parameters:{docs:{description:{story:"This interactive example demonstrates the Update component functionality and usage guidelines."}}}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
args: {
|
|
3
|
-
date: '2024-10-12',
|
|
4
|
-
version: 'v0.1.1',
|
|
5
|
-
children: <ContentDecorator>
|
|
6
|
-
<Image src="https://placehold.co/600x300?text=Screenshot+or+Content" alt="Screenshot placeholder" />
|
|
7
|
-
<Heading size={2}>
|
|
8
|
-
Changelog
|
|
9
|
-
</Heading>
|
|
10
|
-
<Text>
|
|
11
|
-
You can add anything here, like a screenshot, a code snippet, or a list of changes.
|
|
12
|
-
</Text>
|
|
13
|
-
|
|
14
|
-
<Heading size={3}>
|
|
15
|
-
Features
|
|
16
|
-
</Heading>
|
|
17
|
-
<List>
|
|
18
|
-
<List.Item>Initial layout</List.Item>
|
|
19
|
-
<List.Item>Basic navigation</List.Item>
|
|
20
|
-
</List>
|
|
21
|
-
</ContentDecorator>
|
|
22
|
-
}
|
|
23
|
-
}`,...o.parameters?.docs?.source}}};d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`{
|
|
24
|
-
args: {
|
|
25
|
-
date: '2024-12-01',
|
|
26
|
-
version: 'v2.0.0',
|
|
27
|
-
children: <ContentDecorator>
|
|
28
|
-
<Image src="https://placehold.co/600x300?text=Major+Release+Screenshot" alt="Major release screenshot" />
|
|
29
|
-
<Heading size={2}>
|
|
30
|
-
Major Release - v2.0.0
|
|
31
|
-
</Heading>
|
|
32
|
-
<Text>
|
|
33
|
-
This is a major release with significant improvements and new features.
|
|
34
|
-
We've completely redesigned the user interface and introduced a new component library.
|
|
35
|
-
</Text>
|
|
36
|
-
|
|
37
|
-
<Heading size={3}>
|
|
38
|
-
What's New
|
|
39
|
-
</Heading>
|
|
40
|
-
<List>
|
|
41
|
-
<List.Item>Complete UI redesign with modern aesthetics</List.Item>
|
|
42
|
-
<List.Item>New component library with 50+ components</List.Item>
|
|
43
|
-
<List.Item>Performance improvements up to 40% faster</List.Item>
|
|
44
|
-
<List.Item>Enhanced accessibility with WCAG 2.1 compliance</List.Item>
|
|
45
|
-
<List.Item>New dark mode support</List.Item>
|
|
46
|
-
<List.Item>Improved TypeScript support</List.Item>
|
|
47
|
-
</List>
|
|
48
|
-
|
|
49
|
-
<Heading size={3}>
|
|
50
|
-
Breaking Changes
|
|
51
|
-
</Heading>
|
|
52
|
-
<Text>
|
|
53
|
-
This release includes breaking changes. Please review the migration guide
|
|
54
|
-
before updating your applications.
|
|
55
|
-
</Text>
|
|
56
|
-
</ContentDecorator>
|
|
57
|
-
},
|
|
58
|
-
parameters: {
|
|
59
|
-
docs: {
|
|
60
|
-
description: {
|
|
61
|
-
story: 'Major release example with significant features and breaking changes.'
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}`,...d.parameters?.docs?.source}}};c.parameters={...c.parameters,docs:{...c.parameters?.docs,source:{originalSource:`{
|
|
66
|
-
args: {
|
|
67
|
-
date: '2024-11-15',
|
|
68
|
-
version: 'v1.5.0',
|
|
69
|
-
children: <ContentDecorator>
|
|
70
|
-
<Image src="https://placehold.co/600x300?text=Minor+Release+Screenshot" alt="Minor release screenshot" />
|
|
71
|
-
<Heading size={2}>
|
|
72
|
-
Minor Release - v1.5.0
|
|
73
|
-
</Heading>
|
|
74
|
-
<Text>
|
|
75
|
-
This minor release adds new components and includes various bug fixes
|
|
76
|
-
and performance improvements.
|
|
77
|
-
</Text>
|
|
78
|
-
|
|
79
|
-
<Heading size={3}>
|
|
80
|
-
New Components
|
|
81
|
-
</Heading>
|
|
82
|
-
<List>
|
|
83
|
-
<List.Item>DataTable component for displaying tabular data</List.Item>
|
|
84
|
-
<List.Item>Modal component with backdrop and animations</List.Item>
|
|
85
|
-
<List.Item>Toast notification system</List.Item>
|
|
86
|
-
<List.Item>Progress bar component</List.Item>
|
|
87
|
-
</List>
|
|
88
|
-
|
|
89
|
-
<Heading size={3}>
|
|
90
|
-
Improvements
|
|
91
|
-
</Heading>
|
|
92
|
-
<List>
|
|
93
|
-
<List.Item>Fixed accessibility issues in form components</List.Item>
|
|
94
|
-
<List.Item>Improved performance of list rendering</List.Item>
|
|
95
|
-
<List.Item>Updated documentation with new examples</List.Item>
|
|
96
|
-
<List.Item>Enhanced TypeScript type definitions</List.Item>
|
|
97
|
-
</List>
|
|
98
|
-
</ContentDecorator>
|
|
99
|
-
},
|
|
100
|
-
parameters: {
|
|
101
|
-
docs: {
|
|
102
|
-
description: {
|
|
103
|
-
story: 'Minor release example with new features and improvements.'
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}`,...c.parameters?.docs?.source}}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
|
|
108
|
-
args: {
|
|
109
|
-
date: '2024-11-08',
|
|
110
|
-
version: 'v1.4.3',
|
|
111
|
-
children: <ContentDecorator>
|
|
112
|
-
<Heading size={2}>
|
|
113
|
-
Patch Release - v1.4.3
|
|
114
|
-
</Heading>
|
|
115
|
-
<Text>
|
|
116
|
-
This patch release focuses on bug fixes and security updates to ensure
|
|
117
|
-
stability and security.
|
|
118
|
-
</Text>
|
|
119
|
-
|
|
120
|
-
<Heading size={3}>
|
|
121
|
-
Bug Fixes
|
|
122
|
-
</Heading>
|
|
123
|
-
<List>
|
|
124
|
-
<List.Item>Fixed issue with button hover states in Safari</List.Item>
|
|
125
|
-
<List.Item>Resolved memory leak in dropdown components</List.Item>
|
|
126
|
-
<List.Item>Fixed alignment issues in grid layouts</List.Item>
|
|
127
|
-
<List.Item>Corrected typography scaling on mobile devices</List.Item>
|
|
128
|
-
</List>
|
|
129
|
-
|
|
130
|
-
<Heading size={3}>
|
|
131
|
-
Security Updates
|
|
132
|
-
</Heading>
|
|
133
|
-
<List>
|
|
134
|
-
<List.Item>Updated dependencies to patch known vulnerabilities</List.Item>
|
|
135
|
-
<List.Item>Enhanced input validation for form components</List.Item>
|
|
136
|
-
</List>
|
|
137
|
-
</ContentDecorator>
|
|
138
|
-
},
|
|
139
|
-
parameters: {
|
|
140
|
-
docs: {
|
|
141
|
-
description: {
|
|
142
|
-
story: 'Patch release example focusing on bug fixes and security updates.'
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}`,...l.parameters?.docs?.source}}};m.parameters={...m.parameters,docs:{...m.parameters?.docs,source:{originalSource:`{
|
|
147
|
-
args: {
|
|
148
|
-
date: '2024-11-20',
|
|
149
|
-
version: 'v2.0.0-beta.1',
|
|
150
|
-
children: <ContentDecorator>
|
|
151
|
-
<Image src="https://placehold.co/600x300?text=Beta+Release+Screenshot" alt="Beta release screenshot" />
|
|
152
|
-
<Heading size={2}>
|
|
153
|
-
Beta Release - v2.0.0-beta.1
|
|
154
|
-
</Heading>
|
|
155
|
-
<Text>
|
|
156
|
-
This beta release introduces experimental features and improvements.
|
|
157
|
-
We're seeking community feedback to refine these features before the final release.
|
|
158
|
-
</Text>
|
|
159
|
-
|
|
160
|
-
<Heading size={3}>
|
|
161
|
-
Experimental Features
|
|
162
|
-
</Heading>
|
|
163
|
-
<List>
|
|
164
|
-
<List.Item>New animation system with Framer Motion integration</List.Item>
|
|
165
|
-
<List.Item>Advanced theming with CSS custom properties</List.Item>
|
|
166
|
-
<List.Item>Component composition patterns</List.Item>
|
|
167
|
-
<List.Item>Real-time collaboration features</List.Item>
|
|
168
|
-
</List>
|
|
169
|
-
|
|
170
|
-
<Heading size={3}>
|
|
171
|
-
Known Issues
|
|
172
|
-
</Heading>
|
|
173
|
-
<List>
|
|
174
|
-
<List.Item>Animation performance may vary on older devices</List.Item>
|
|
175
|
-
<List.Item>Some components may have inconsistent styling</List.Item>
|
|
176
|
-
<List.Item>Documentation is still being updated</List.Item>
|
|
177
|
-
</List>
|
|
178
|
-
|
|
179
|
-
<Text>
|
|
180
|
-
<strong>Note:</strong> This is a beta release intended for testing and feedback.
|
|
181
|
-
Please report any issues you encounter.
|
|
182
|
-
</Text>
|
|
183
|
-
</ContentDecorator>
|
|
184
|
-
},
|
|
185
|
-
parameters: {
|
|
186
|
-
docs: {
|
|
187
|
-
description: {
|
|
188
|
-
story: 'Beta release example with experimental features and known issues.'
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}`,...m.parameters?.docs?.source}}};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:`{
|
|
193
|
-
render: () => <div style={{
|
|
194
|
-
display: 'flex',
|
|
195
|
-
flexDirection: 'column',
|
|
196
|
-
gap: '3rem',
|
|
197
|
-
alignItems: 'stretch'
|
|
198
|
-
}}>
|
|
199
|
-
<Update date="2024-12-01" version="v2.0.0">
|
|
200
|
-
<ContentDecorator>
|
|
201
|
-
<Image src="https://placehold.co/600x300?text=Major+Release+v2.0.0" alt="Major release screenshot" />
|
|
202
|
-
<Heading size={2}>Major Release - v2.0.0</Heading>
|
|
203
|
-
<Text>
|
|
204
|
-
A complete redesign with new components, improved performance, and enhanced accessibility.
|
|
205
|
-
</Text>
|
|
206
|
-
<Heading size={3}>Highlights</Heading>
|
|
207
|
-
<List>
|
|
208
|
-
<List.Item>Complete UI redesign with modern aesthetics</List.Item>
|
|
209
|
-
<List.Item>New component library with 50+ components</List.Item>
|
|
210
|
-
<List.Item>Performance improvements up to 40% faster</List.Item>
|
|
211
|
-
<List.Item>Enhanced accessibility with WCAG 2.1 compliance</List.Item>
|
|
212
|
-
</List>
|
|
213
|
-
</ContentDecorator>
|
|
214
|
-
</Update>
|
|
215
|
-
|
|
216
|
-
<Update date="2024-11-15" version="v1.5.0">
|
|
217
|
-
<ContentDecorator>
|
|
218
|
-
<Image src="https://placehold.co/600x300?text=Minor+Release+v1.5.0" alt="Minor release screenshot" />
|
|
219
|
-
<Heading size={2}>Minor Release - v1.5.0</Heading>
|
|
220
|
-
<Text>
|
|
221
|
-
Added new components and various improvements to existing functionality.
|
|
222
|
-
</Text>
|
|
223
|
-
<Heading size={3}>New Components</Heading>
|
|
224
|
-
<List>
|
|
225
|
-
<List.Item>DataTable component for displaying tabular data</List.Item>
|
|
226
|
-
<List.Item>Modal component with backdrop and animations</List.Item>
|
|
227
|
-
<List.Item>Toast notification system</List.Item>
|
|
228
|
-
</List>
|
|
229
|
-
</ContentDecorator>
|
|
230
|
-
</Update>
|
|
231
|
-
|
|
232
|
-
<Update date="2024-11-08" version="v1.4.3">
|
|
233
|
-
<ContentDecorator>
|
|
234
|
-
<Heading size={2}>Patch Release - v1.4.3</Heading>
|
|
235
|
-
<Text>
|
|
236
|
-
Focused on bug fixes and security updates to ensure stability.
|
|
237
|
-
</Text>
|
|
238
|
-
<Heading size={3}>Bug Fixes</Heading>
|
|
239
|
-
<List>
|
|
240
|
-
<List.Item>Fixed issue with button hover states in Safari</List.Item>
|
|
241
|
-
<List.Item>Resolved memory leak in dropdown components</List.Item>
|
|
242
|
-
<List.Item>Fixed alignment issues in grid layouts</List.Item>
|
|
243
|
-
</List>
|
|
244
|
-
</ContentDecorator>
|
|
245
|
-
</Update>
|
|
246
|
-
</div>,
|
|
247
|
-
parameters: {
|
|
248
|
-
docs: {
|
|
249
|
-
description: {
|
|
250
|
-
story: 'This example shows multiple updates in a changelog format, demonstrating how the Update component can be used to create a complete release history.'
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}`,...p.parameters?.docs?.source}}};h.parameters={...h.parameters,docs:{...h.parameters?.docs,source:{originalSource:`{
|
|
255
|
-
render: () => <div style={{
|
|
256
|
-
padding: '20px',
|
|
257
|
-
maxWidth: '800px'
|
|
258
|
-
}}>
|
|
259
|
-
<div style={{
|
|
260
|
-
background: 'var(--xyd-bgcolor)',
|
|
261
|
-
border: '1px solid var(--xyd-border-color)',
|
|
262
|
-
borderRadius: '8px',
|
|
263
|
-
padding: '20px',
|
|
264
|
-
marginBottom: '20px'
|
|
265
|
-
}}>
|
|
266
|
-
<h2 style={{
|
|
267
|
-
marginBottom: '16px'
|
|
268
|
-
}}>Product Changelog</h2>
|
|
269
|
-
<p style={{
|
|
270
|
-
marginBottom: '16px',
|
|
271
|
-
color: 'var(--xyd-text-color)'
|
|
272
|
-
}}>
|
|
273
|
-
Track the evolution of our product with detailed release notes and feature updates.
|
|
274
|
-
</p>
|
|
275
|
-
</div>
|
|
276
|
-
|
|
277
|
-
<Update date="2024-12-01" version="v2.0.0">
|
|
278
|
-
<ContentDecorator>
|
|
279
|
-
<Image src="https://placehold.co/600x300?text=Product+Redesign" alt="Product redesign screenshot" />
|
|
280
|
-
<Heading size={2}>🎉 Major Release - v2.0.0</Heading>
|
|
281
|
-
<Text>
|
|
282
|
-
We're excited to announce our biggest release yet! This version brings a complete
|
|
283
|
-
redesign, new features, and significant performance improvements.
|
|
284
|
-
</Text>
|
|
285
|
-
|
|
286
|
-
<Heading size={3}>✨ What's New</Heading>
|
|
287
|
-
<List>
|
|
288
|
-
<List.Item>Complete UI redesign with modern, clean aesthetics</List.Item>
|
|
289
|
-
<List.Item>New dashboard with customizable widgets</List.Item>
|
|
290
|
-
<List.Item>Advanced analytics with real-time data visualization</List.Item>
|
|
291
|
-
<List.Item>Enhanced collaboration features with real-time editing</List.Item>
|
|
292
|
-
<List.Item>Mobile app for iOS and Android</List.Item>
|
|
293
|
-
</List>
|
|
294
|
-
|
|
295
|
-
<Heading size={3}>🚀 Performance Improvements</Heading>
|
|
296
|
-
<List>
|
|
297
|
-
<List.Item>40% faster page load times</List.Item>
|
|
298
|
-
<List.Item>Reduced memory usage by 30%</List.Item>
|
|
299
|
-
<List.Item>Improved search functionality with instant results</List.Item>
|
|
300
|
-
</List>
|
|
301
|
-
|
|
302
|
-
<Heading size={3}>🔧 Breaking Changes</Heading>
|
|
303
|
-
<Text>
|
|
304
|
-
This release includes some breaking changes. Please review our
|
|
305
|
-
<a href="#migration-guide" style={{
|
|
306
|
-
color: 'var(--xyd-link-color)'
|
|
307
|
-
}}> migration guide</a>
|
|
308
|
-
before updating.
|
|
309
|
-
</Text>
|
|
310
|
-
</ContentDecorator>
|
|
311
|
-
</Update>
|
|
312
|
-
</div>,
|
|
313
|
-
parameters: {
|
|
314
|
-
docs: {
|
|
315
|
-
description: {
|
|
316
|
-
story: 'This example shows how the Update component is typically used in real applications for product changelogs and release notes.'
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}`,...h.parameters?.docs?.source}}};x.parameters={...x.parameters,docs:{...x.parameters?.docs,source:{originalSource:`{
|
|
321
|
-
render: () => <div style={{
|
|
322
|
-
padding: '20px'
|
|
323
|
-
}}>
|
|
324
|
-
<div style={{
|
|
325
|
-
background: 'var(--xyd-bgcolor)',
|
|
326
|
-
border: '1px solid var(--xyd-border-color)',
|
|
327
|
-
borderRadius: '8px',
|
|
328
|
-
padding: '20px',
|
|
329
|
-
marginBottom: '20px'
|
|
330
|
-
}}>
|
|
331
|
-
<h3 style={{
|
|
332
|
-
marginBottom: '16px'
|
|
333
|
-
}}>Update Component Demo</h3>
|
|
334
|
-
<p style={{
|
|
335
|
-
marginBottom: '16px',
|
|
336
|
-
color: 'var(--xyd-text-color)'
|
|
337
|
-
}}>
|
|
338
|
-
This example demonstrates the Update component with various content types and use cases.
|
|
339
|
-
</p>
|
|
340
|
-
|
|
341
|
-
<Update date="2024-11-20" version="v1.6.0">
|
|
342
|
-
<ContentDecorator>
|
|
343
|
-
<Heading size={2}>Component Improvements</Heading>
|
|
344
|
-
<Text>
|
|
345
|
-
This release focuses on improving existing components and adding better documentation.
|
|
346
|
-
</Text>
|
|
347
|
-
<Heading size={3}>Improvements</Heading>
|
|
348
|
-
<List>
|
|
349
|
-
<List.Item>Enhanced accessibility for all form components</List.Item>
|
|
350
|
-
<List.Item>Better TypeScript support with improved type definitions</List.Item>
|
|
351
|
-
<List.Item>Updated documentation with comprehensive examples</List.Item>
|
|
352
|
-
<List.Item>Improved error handling and validation</List.Item>
|
|
353
|
-
</List>
|
|
354
|
-
</ContentDecorator>
|
|
355
|
-
</Update>
|
|
356
|
-
</div>
|
|
357
|
-
|
|
358
|
-
<div style={{
|
|
359
|
-
background: 'var(--xyd-bgcolor)',
|
|
360
|
-
border: '1px solid var(--xyd-border-color)',
|
|
361
|
-
borderRadius: '8px',
|
|
362
|
-
padding: '20px'
|
|
363
|
-
}}>
|
|
364
|
-
<h4 style={{
|
|
365
|
-
marginBottom: '12px'
|
|
366
|
-
}}>Usage Guidelines</h4>
|
|
367
|
-
<ul style={{
|
|
368
|
-
color: 'var(--xyd-text-color)'
|
|
369
|
-
}}>
|
|
370
|
-
<li>Use semantic versioning for version numbers (e.g., v1.2.3)</li>
|
|
371
|
-
<li>Include the release date in YYYY-MM-DD format</li>
|
|
372
|
-
<li>Provide a concise list of key features or changes</li>
|
|
373
|
-
<li>Use rich content to explain changes in detail</li>
|
|
374
|
-
<li>Include screenshots or demos for visual changes</li>
|
|
375
|
-
<li>Document breaking changes clearly</li>
|
|
376
|
-
<li>Consider using emojis for visual appeal</li>
|
|
377
|
-
</ul>
|
|
378
|
-
</div>
|
|
379
|
-
</div>,
|
|
380
|
-
parameters: {
|
|
381
|
-
docs: {
|
|
382
|
-
description: {
|
|
383
|
-
story: 'This interactive example demonstrates the Update component functionality and usage guidelines.'
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}`,...x.parameters?.docs?.source}}};const H=["Default","MajorRelease","MinorRelease","PatchRelease","BetaRelease","MultipleUpdates","RealWorldExample","Interactive"];export{m as BetaRelease,o as Default,x as Interactive,d as MajorRelease,c as MinorRelease,p as MultipleUpdates,l as PatchRelease,h as RealWorldExample,H as __namedExportsOrder,z as default};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./jsx-runtime-D_zvdyIk.js";import"./writer-DkrWmB39.js";import{$ as e}from"./Text-BAwif7rv-BYvLGGQV.js";import"./Update-DflVXGGQ-qVV03FlC.js";import"./index-CzKwSnp0.js";import"./Button-Cj99tk5U-Cn0Wrqkw.js";import"./_rollupPluginBabelHelpers-DuYa1R0C-CyXpXONY.js";import"./index-DUCcPMOf.js";import"./index-DgnBCu_c.js";import"./index-D_kTjGoR.js";const x={title:"Components/Writer/VideoGuide",component:e,parameters:{layout:"centered"}},r={render:()=>t.jsx(e.Miniature,{})};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
render: () => <VideoGuide.Miniature />
|
|
3
|
-
}`,...r.parameters?.docs?.source}}};const l=["Miniature"];export{r as Miniature,l as __namedExportsOrder,x as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t={};export{t as default};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
function G(r,t){(t==null||t>r.length)&&(t=r.length);for(var n=0,e=Array(t);n<t;n++)e[n]=r[n];return e}function C(r){if(Array.isArray(r))return r}function D(r,t,n,e,o,a,u){try{var f=r[a](u),i=f.value}catch(c){return void n(c)}f.done?t(i):Promise.resolve(i).then(e,o)}function V(r){return function(){var t=this,n=arguments;return new Promise(function(e,o){var a=r.apply(t,n);function u(i){D(a,e,o,u,f,"next",i)}function f(i){D(a,e,o,u,f,"throw",i)}u(void 0)})}}function W(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function X(r,t,n){if(R())return Reflect.construct.apply(null,arguments);var e=[null];return e.push.apply(e,t),new(r.bind.apply(r,e))}function Y(r,t,n){return t&&function(e,o){for(var a=0;a<o.length;a++){var u=o[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,U(u.key),u)}}(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function Z(r,t){var n=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=T(r))||t){n&&(r=n);var e=0,o=function(){};return{s:o,n:function(){return e>=r.length?{done:!0}:{done:!1,value:r[e++]}},e:function(i){throw i},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,u=!0,f=!1;return{s:function(){n=n.call(r)},n:function(){var i=n.next();return u=i.done,i},e:function(i){f=!0,a=i},f:function(){try{u||n.return==null||n.return()}finally{if(f)throw a}}}}function L(r,t,n){return(t=U(t))in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r}function R(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R=function(){return!!r})()}function M(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function N(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F(r,t){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),n.push.apply(n,e)}return n}function rr(r){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F(Object(n),!0).forEach(function(e){L(r,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))})}return r}function tr(r,t){if(r==null)return{};var n,e,o=function(u,f){if(u==null)return{};var i={};for(var c in u)if({}.hasOwnProperty.call(u,c)){if(f.indexOf(c)!==-1)continue;i[c]=u[c]}return i}(r,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);for(e=0;e<a.length;e++)n=a[e],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}function Q(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var r,t,n=typeof Symbol=="function"?Symbol:{},e=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(w,x,$,q){var z=x&&x.prototype instanceof f?x:f,_=Object.create(z.prototype);return s(_,"_invoke",function(H,J,K){var O,l,y,P=0,k=K||[],j=!1,d={p:0,n:0,v:r,a:A,f:A.bind(r,4),d:function(v,p){return O=v,l=0,y=r,d.n=p,u}};function A(v,p){for(l=v,y=p,t=0;!j&&P&&!g&&t<k.length;t++){var g,b=k[t],I=d.p,E=b[2];v>3?(g=E===p)&&(y=b[(l=b[4])?5:(l=3,3)],b[4]=b[5]=r):b[0]<=I&&((g=v<2&&I<b[1])?(l=0,d.v=p,d.n=b[1]):I<E&&(g=v<3||b[0]>p||p>E)&&(b[4]=v,b[5]=p,d.n=E,l=0))}if(g||v>1)return u;throw j=!0,p}return function(v,p,g){if(P>1)throw TypeError("Generator is already running");for(j&&p===1&&A(p,g),l=p,y=g;(t=l<2?r:y)||!j;){O||(l?l<3?(l>1&&(d.n=-1),A(l,y)):d.n=y:d.v=y);try{if(P=2,O){if(l||(v="next"),t=O[v]){if(!(t=t.call(O,y)))throw TypeError("iterator result is not an object");if(!t.done)return t;y=t.value,l<2&&(l=0)}else l===1&&(t=O.return)&&t.call(O),l<2&&(y=TypeError("The iterator does not provide a '"+v+"' method"),l=1);O=r}else if((t=(j=d.n<0)?y:H.call(J,d))!==u)break}catch(b){O=r,l=1,y=b}finally{P=1}}return{value:t,done:j}}}(w,$,q),!0),_}var u={};function f(){}function i(){}function c(){}t=Object.getPrototypeOf;var h=[][e]?t(t([][e]())):(s(t={},e,function(){return this}),t),m=c.prototype=f.prototype=Object.create(h);function S(w){return Object.setPrototypeOf?Object.setPrototypeOf(w,c):(w.__proto__=c,s(w,o,"GeneratorFunction")),w.prototype=Object.create(m),w}return i.prototype=c,s(m,"constructor",c),s(c,"constructor",i),i.displayName="GeneratorFunction",s(c,o,"GeneratorFunction"),s(m),s(m,o,"Generator"),s(m,e,function(){return this}),s(m,"toString",function(){return"[object Generator]"}),(Q=function(){return{w:a,m:S}})()}function s(r,t,n,e){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}s=function(a,u,f,i){function c(h,m){s(a,h,function(S){return this._invoke(h,m,S)})}u?o?o(a,u,{value:f,enumerable:!i,configurable:!i,writable:!i}):a[u]=f:(c("next",0),c("throw",1),c("return",2))},s(r,t,n,e)}function nr(r,t){return C(r)||function(n,e){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var a,u,f,i,c=[],h=!0,m=!1;try{if(f=(o=o.call(n)).next,e===0){if(Object(o)!==o)return;h=!1}else for(;!(h=(a=f.call(o)).done)&&(c.push(a.value),c.length!==e);h=!0);}catch(S){m=!0,u=S}finally{try{if(!h&&o.return!=null&&(i=o.return(),Object(i)!==i))return}finally{if(m)throw u}}return c}}(r,t)||T(r,t)||N()}function er(r){return C(r)||M(r)||T(r)||N()}function or(r){return function(t){if(Array.isArray(t))return G(t)}(r)||M(r)||T(r)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function U(r){var t=function(n,e){if(typeof n!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var a=o.call(n,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(r,"string");return typeof t=="symbol"?t:t+""}function B(r){return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(r)}function T(r,t){if(r){if(typeof r=="string")return G(r,t);var n={}.toString.call(r).slice(8,-1);return n==="Object"&&r.constructor&&(n=r.constructor.name),n==="Map"||n==="Set"?Array.from(r):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(r,t):void 0}}export{or as O,Z as a,rr as b,nr as d,V as e,er as h,X as i,W as o,tr as s,Y as u,Q as v,B as w};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{r as i}from"./index-CzKwSnp0.js";/**
|
|
2
|
-
* react-router v7.7.0
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Remix Software Inc.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/function Ce(e={}){let{initialEntries:t=["/"],initialIndex:n,v5Compat:l=!1}=e,r;r=t.map((d,p)=>f(d,typeof d=="string"?null:d.state,p===0?"default":void 0));let a=u(n??r.length-1),s="POP",c=null;function u(d){return Math.min(Math.max(d,0),r.length-1)}function o(){return r[a]}function f(d,p=null,y){let v=Ee(r?o().pathname:"/",d,p,y);return E(v.pathname.charAt(0)==="/",`relative pathnames are not supported in memory history: ${JSON.stringify(d)}`),v}function h(d){return typeof d=="string"?d:V(d)}return{get index(){return a},get action(){return s},get location(){return o()},createHref:h,createURL(d){return new URL(h(d),"http://localhost")},encodeLocation(d){let p=typeof d=="string"?I(d):d;return{pathname:p.pathname||"",search:p.search||"",hash:p.hash||""}},push(d,p){s="PUSH";let y=f(d,p);a+=1,r.splice(a,r.length,y),l&&c&&c({action:s,location:y,delta:1})},replace(d,p){s="REPLACE";let y=f(d,p);r[a]=y,l&&c&&c({action:s,location:y,delta:0})},go(d){s="POP";let p=u(a+d),y=r[p];a=p,c&&c({action:s,location:y,delta:d})},listen(d){return c=d,()=>{c=null}}}}function x(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function E(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Re(){return Math.random().toString(36).substring(2,10)}function Ee(e,t,n=null,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?I(t):t,state:n,key:t&&t.key||l||Re()}}function V({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function I(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let l=e.indexOf("?");l>=0&&(t.search=e.substring(l),e=e.substring(0,l)),e&&(t.pathname=e)}return t}function le(e,t,n="/"){return be(e,t,n,!1)}function be(e,t,n,l){let r=typeof t=="string"?I(t):t,a=L(r.pathname||"/",n);if(a==null)return null;let s=oe(e);Pe(s);let c=null;for(let u=0;c==null&&u<s.length;++u){let o=Ae(a);c=De(s[u],o,l)}return c}function oe(e,t=[],n=[],l=""){let r=(a,s,c)=>{let u={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};u.relativePath.startsWith("/")&&(x(u.relativePath.startsWith(l),`Absolute route path "${u.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(l.length));let o=P([l,u.relativePath]),f=n.concat(u);a.children&&a.children.length>0&&(x(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${o}".`),oe(a.children,t,f,o)),!(a.path==null&&!a.index)&&t.push({path:o,score:Ie(o,a.index),routesMeta:f})};return e.forEach((a,s)=>{if(a.path===""||!a.path?.includes("?"))r(a,s);else for(let c of ie(a.path))r(a,s,c)}),t}function ie(e){let t=e.split("/");if(t.length===0)return[];let[n,...l]=t,r=n.endsWith("?"),a=n.replace(/\?$/,"");if(l.length===0)return r?[a,""]:[a];let s=ie(l.join("/")),c=[];return c.push(...s.map(u=>u===""?a:[a,u].join("/"))),r&&c.push(...s),c.map(u=>e.startsWith("/")&&u===""?"/":u)}function Pe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ne(t.routesMeta.map(l=>l.childrenIndex),n.routesMeta.map(l=>l.childrenIndex)))}var Le=/^:[\w-]+$/,Se=3,ke=2,$e=1,Me=10,Fe=-2,ne=e=>e==="*";function Ie(e,t){let n=e.split("/"),l=n.length;return n.some(ne)&&(l+=Fe),t&&(l+=ke),n.filter(r=>!ne(r)).reduce((r,a)=>r+(Le.test(a)?Se:a===""?$e:Me),l)}function Ne(e,t){return e.length===t.length&&e.slice(0,-1).every((l,r)=>l===t[r])?e[e.length-1]-t[t.length-1]:0}function De(e,t,n=!1){let{routesMeta:l}=e,r={},a="/",s=[];for(let c=0;c<l.length;++c){let u=l[c],o=c===l.length-1,f=a==="/"?t:t.slice(a.length)||"/",h=z({path:u.relativePath,caseSensitive:u.caseSensitive,end:o},f),g=u.route;if(!h&&o&&n&&!l[l.length-1].route.index&&(h=z({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},f)),!h)return null;Object.assign(r,h.params),s.push({params:r,pathname:P([a,h.pathname]),pathnameBase:Ue(P([a,h.pathnameBase])),route:g}),h.pathnameBase!=="/"&&(a=P([a,h.pathnameBase]))}return s}function z(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,l]=Te(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let a=r[0],s=a.replace(/(.)\/+$/,"$1"),c=r.slice(1);return{params:l.reduce((o,{paramName:f,isOptional:h},g)=>{if(f==="*"){let p=c[g]||"";s=a.slice(0,a.length-p.length).replace(/(.)\/+$/,"$1")}const d=c[g];return h&&!d?o[f]=void 0:o[f]=(d||"").replace(/%2F/g,"/"),o},{}),pathname:a,pathnameBase:s,pattern:e}}function Te(e,t=!1,n=!0){E(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let l=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,c,u)=>(l.push({paramName:c,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(l.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),l]}function Ae(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return E(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function L(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,l=e.charAt(n);return l&&l!=="/"?null:e.slice(n)||"/"}function Oe(e,t="/"){let{pathname:n,search:l="",hash:r=""}=typeof e=="string"?I(e):e;return{pathname:n?n.startsWith("/")?n:Be(n,t):t,search:He(l),hash:_e(r)}}function Be(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function Y(e,t,n,l){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function We(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ue(e){let t=We(e);return t.map((n,l)=>l===t.length-1?n.pathname:n.pathnameBase)}function se(e,t,n,l=!1){let r;typeof e=="string"?r=I(e):(r={...e},x(!r.pathname||!r.pathname.includes("?"),Y("?","pathname","search",r)),x(!r.pathname||!r.pathname.includes("#"),Y("#","pathname","hash",r)),x(!r.search||!r.search.includes("#"),Y("#","search","hash",r)));let a=e===""||r.pathname==="",s=a?"/":r.pathname,c;if(s==null)c=n;else{let h=t.length-1;if(!l&&s.startsWith("..")){let g=s.split("/");for(;g[0]==="..";)g.shift(),h-=1;r.pathname=g.join("/")}c=h>=0?t[h]:"/"}let u=Oe(r,c),o=s&&s!=="/"&&s.endsWith("/"),f=(a||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(o||f)&&(u.pathname+="/"),u}var P=e=>e.join("/").replace(/\/\/+/g,"/"),Ue=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),He=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ve(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var ce=["POST","PUT","PATCH","DELETE"];new Set(ce);var ze=["GET",...ce];new Set(ze);var N=i.createContext(null);N.displayName="DataRouter";var J=i.createContext(null);J.displayName="DataRouterState";i.createContext(!1);var fe=i.createContext({isTransitioning:!1});fe.displayName="ViewTransition";var Je=i.createContext(new Map);Je.displayName="Fetchers";var Ke=i.createContext(null);Ke.displayName="Await";var b=i.createContext(null);b.displayName="Navigation";var K=i.createContext(null);K.displayName="Location";var S=i.createContext({outlet:null,matches:[],isDataRoute:!1});S.displayName="Route";var G=i.createContext(null);G.displayName="RouteError";function je(e,{relative:t}={}){x(A(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:l}=i.useContext(b),{hash:r,pathname:a,search:s}=O(e,{relative:t}),c=a;return n!=="/"&&(c=a==="/"?n:P([n,a])),l.createHref({pathname:c,search:s,hash:r})}function A(){return i.useContext(K)!=null}function $(){return x(A(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(K).location}var de="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function he(e){i.useContext(b).static||i.useLayoutEffect(e)}function Ye(){let{isDataRoute:e}=i.useContext(S);return e?it():qe()}function qe(){x(A(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(N),{basename:t,navigator:n}=i.useContext(b),{matches:l}=i.useContext(S),{pathname:r}=$(),a=JSON.stringify(ue(l)),s=i.useRef(!1);return he(()=>{s.current=!0}),i.useCallback((u,o={})=>{if(E(s.current,de),!s.current)return;if(typeof u=="number"){n.go(u);return}let f=se(u,JSON.parse(a),r,o.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:P([t,f.pathname])),(o.replace?n.replace:n.push)(f,o.state,o)},[t,n,a,r,e])}i.createContext(null);function O(e,{relative:t}={}){let{matches:n}=i.useContext(S),{pathname:l}=$(),r=JSON.stringify(ue(n));return i.useMemo(()=>se(e,JSON.parse(r),l,t==="path"),[e,r,l,t])}function Ge(e,t,n,l){x(A(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=i.useContext(b),{matches:a}=i.useContext(S),s=a[a.length-1],c=s?s.params:{},u=s?s.pathname:"/",o=s?s.pathnameBase:"/",f=s&&s.route;{let m=f&&f.path||"";me(u,!f||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${m}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
11
|
-
|
|
12
|
-
Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let h=$(),g;g=h;let d=g.pathname||"/",p=d;if(o!=="/"){let m=o.replace(/^\//,"").split("/");p="/"+d.replace(/^\//,"").split("/").slice(m.length).join("/")}let y=le(e,{pathname:p});return E(f||y!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),E(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),tt(y&&y.map(m=>Object.assign({},m,{params:Object.assign({},c,m.params),pathname:P([o,r.encodeLocation?r.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?o:P([o,r.encodeLocation?r.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),a,n,l)}function Xe(){let e=ot(),t=Ve(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:l},a={padding:"2px 4px",backgroundColor:l},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:a},"ErrorBoundary")," or"," ",i.createElement("code",{style:a},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:r},n):null,s)}var Qe=i.createElement(Xe,null),Ze=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?i.createElement(S.Provider,{value:this.props.routeContext},i.createElement(G.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function et({routeContext:e,match:t,children:n}){let l=i.useContext(N);return l&&l.static&&l.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(S.Provider,{value:e},n)}function tt(e,t=[],n=null,l=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let r=e,a=n?.errors;if(a!=null){let u=r.findIndex(o=>o.route.id&&a?.[o.route.id]!==void 0);x(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),r=r.slice(0,Math.min(r.length,u+1))}let s=!1,c=-1;if(n)for(let u=0;u<r.length;u++){let o=r[u];if((o.route.HydrateFallback||o.route.hydrateFallbackElement)&&(c=u),o.route.id){let{loaderData:f,errors:h}=n,g=o.route.loader&&!f.hasOwnProperty(o.route.id)&&(!h||h[o.route.id]===void 0);if(o.route.lazy||g){s=!0,c>=0?r=r.slice(0,c+1):r=[r[0]];break}}}return r.reduceRight((u,o,f)=>{let h,g=!1,d=null,p=null;n&&(h=a&&o.route.id?a[o.route.id]:void 0,d=o.route.errorElement||Qe,s&&(c<0&&f===0?(me("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,p=null):c===f&&(g=!0,p=o.route.hydrateFallbackElement||null)));let y=t.concat(r.slice(0,f+1)),v=()=>{let m;return h?m=d:g?m=p:o.route.Component?m=i.createElement(o.route.Component,null):o.route.element?m=o.route.element:m=u,i.createElement(et,{match:o,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:m})};return n&&(o.route.ErrorBoundary||o.route.errorElement||f===0)?i.createElement(Ze,{location:n.location,revalidation:n.revalidation,component:d,error:h,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}function X(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nt(e){let t=i.useContext(N);return x(t,X(e)),t}function rt(e){let t=i.useContext(J);return x(t,X(e)),t}function at(e){let t=i.useContext(S);return x(t,X(e)),t}function Q(e){let t=at(e),n=t.matches[t.matches.length-1];return x(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function lt(){return Q("useRouteId")}function ot(){let e=i.useContext(G),t=rt("useRouteError"),n=Q("useRouteError");return e!==void 0?e:t.errors?.[n]}function it(){let{router:e}=nt("useNavigate"),t=Q("useNavigate"),n=i.useRef(!1);return he(()=>{n.current=!0}),i.useCallback(async(r,a={})=>{E(n.current,de),n.current&&(typeof r=="number"?e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))},[e,t])}var re={};function me(e,t,n){!t&&!re[e]&&(re[e]=!0,E(!1,n))}i.memo(ut);function ut({routes:e,future:t,state:n}){return Ge(e,void 0,n,t)}function _t({basename:e,children:t,initialEntries:n,initialIndex:l}){let r=i.useRef();r.current==null&&(r.current=Ce({initialEntries:n,initialIndex:l,v5Compat:!0}));let a=r.current,[s,c]=i.useState({action:a.action,location:a.location}),u=i.useCallback(o=>{i.startTransition(()=>c(o))},[c]);return i.useLayoutEffect(()=>a.listen(u),[a,u]),i.createElement(st,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}function st({basename:e="/",children:t=null,location:n,navigationType:l="POP",navigator:r,static:a=!1}){x(!A(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=i.useMemo(()=>({basename:s,navigator:r,static:a,future:{}}),[s,r,a]);typeof n=="string"&&(n=I(n));let{pathname:u="/",search:o="",hash:f="",state:h=null,key:g="default"}=n,d=i.useMemo(()=>{let p=L(u,s);return p==null?null:{location:{pathname:p,search:o,hash:f,state:h,key:g},navigationType:l}},[s,u,o,f,h,g,l]);return E(d!=null,`<Router basename="${s}"> is not able to match the URL "${u}${o}${f}" because it does not start with the basename, so the <Router> won't render anything.`),d==null?null:i.createElement(b.Provider,{value:c},i.createElement(K.Provider,{children:t,value:d}))}var H="get",_="application/x-www-form-urlencoded";function j(e){return e!=null&&typeof e.tagName=="string"}function ct(e){return j(e)&&e.tagName.toLowerCase()==="button"}function ft(e){return j(e)&&e.tagName.toLowerCase()==="form"}function dt(e){return j(e)&&e.tagName.toLowerCase()==="input"}function ht(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function mt(e,t){return e.button===0&&(!t||t==="_self")&&!ht(e)}var U=null;function pt(){if(U===null)try{new FormData(document.createElement("form"),0),U=!1}catch{U=!0}return U}var gt=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function q(e){return e!=null&&!gt.has(e)?(E(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_}"`),null):e}function yt(e,t){let n,l,r,a,s;if(ft(e)){let c=e.getAttribute("action");l=c?L(c,t):null,n=e.getAttribute("method")||H,r=q(e.getAttribute("enctype"))||_,a=new FormData(e)}else if(ct(e)||dt(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||c.getAttribute("action");if(l=u?L(u,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||H,r=q(e.getAttribute("formenctype"))||q(c.getAttribute("enctype"))||_,a=new FormData(c,e),!pt()){let{name:o,type:f,value:h}=e;if(f==="image"){let g=o?`${o}.`:"";a.append(`${g}x`,"0"),a.append(`${g}y`,"0")}else o&&a.append(o,h)}}else{if(j(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=H,l=null,r=_,s=e}return a&&r==="text/plain"&&(s=a,a=void 0),{action:l,method:n.toLowerCase(),encType:r,formData:a,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Z(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vt(e,t,n){let l=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return l.pathname==="/"?l.pathname=`_root.${n}`:t&&L(l.pathname,t)==="/"?l.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${n}`,l}async function wt(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function xt(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Ct(e,t,n){let l=await Promise.all(e.map(async r=>{let a=t.routes[r.route.id];if(a){let s=await wt(a,n);return s.links?s.links():[]}return[]}));return Pt(l.flat(1).filter(xt).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function ae(e,t,n,l,r,a){let s=(u,o)=>n[o]?u.route.id!==n[o].route.id:!0,c=(u,o)=>n[o].pathname!==u.pathname||n[o].route.path?.endsWith("*")&&n[o].params["*"]!==u.params["*"];return a==="assets"?t.filter((u,o)=>s(u,o)||c(u,o)):a==="data"?t.filter((u,o)=>{let f=l.routes[u.route.id];if(!f||!f.hasLoader)return!1;if(s(u,o)||c(u,o))return!0;if(u.route.shouldRevalidate){let h=u.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function Rt(e,t,{includeHydrateFallback:n}={}){return Et(e.map(l=>{let r=t.routes[l.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1))}function Et(e){return[...new Set(e)]}function bt(e){let t={},n=Object.keys(e).sort();for(let l of n)t[l]=e[l];return t}function Pt(e,t){let n=new Set;return new Set(t),e.reduce((l,r)=>{let a=JSON.stringify(bt(r));return n.has(a)||(n.add(a),l.push({key:a,link:r})),l},[])}function pe(){let e=i.useContext(N);return Z(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Lt(){let e=i.useContext(J);return Z(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ee=i.createContext(void 0);ee.displayName="FrameworkContext";function ge(){let e=i.useContext(ee);return Z(e,"You must render this element inside a <HydratedRouter> element"),e}function St(e,t){let n=i.useContext(ee),[l,r]=i.useState(!1),[a,s]=i.useState(!1),{onFocus:c,onBlur:u,onMouseEnter:o,onMouseLeave:f,onTouchStart:h}=t,g=i.useRef(null);i.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let y=m=>{m.forEach(C=>{s(C.isIntersecting)})},v=new IntersectionObserver(y,{threshold:.5});return g.current&&v.observe(g.current),()=>{v.disconnect()}}},[e]),i.useEffect(()=>{if(l){let y=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(y)}}},[l]);let d=()=>{r(!0)},p=()=>{r(!1),s(!1)};return n?e!=="intent"?[a,g,{}]:[a,g,{onFocus:T(c,d),onBlur:T(u,p),onMouseEnter:T(o,d),onMouseLeave:T(f,p),onTouchStart:T(h,d)}]:[!1,g,{}]}function T(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function kt({page:e,...t}){let{router:n}=pe(),l=i.useMemo(()=>le(n.routes,e,n.basename),[n.routes,e,n.basename]);return l?i.createElement(Mt,{page:e,matches:l,...t}):null}function $t(e){let{manifest:t,routeModules:n}=ge(),[l,r]=i.useState([]);return i.useEffect(()=>{let a=!1;return Ct(e,t,n).then(s=>{a||r(s)}),()=>{a=!0}},[e,t,n]),l}function Mt({page:e,matches:t,...n}){let l=$(),{manifest:r,routeModules:a}=ge(),{basename:s}=pe(),{loaderData:c,matches:u}=Lt(),o=i.useMemo(()=>ae(e,t,u,r,l,"data"),[e,t,u,r,l]),f=i.useMemo(()=>ae(e,t,u,r,l,"assets"),[e,t,u,r,l]),h=i.useMemo(()=>{if(e===l.pathname+l.search+l.hash)return[];let p=new Set,y=!1;if(t.forEach(m=>{let C=r.routes[m.route.id];!C||!C.hasLoader||(!o.some(w=>w.route.id===m.route.id)&&m.route.id in c&&a[m.route.id]?.shouldRevalidate||C.hasClientLoader?y=!0:p.add(m.route.id))}),p.size===0)return[];let v=vt(e,s,"data");return y&&p.size>0&&v.searchParams.set("_routes",t.filter(m=>p.has(m.route.id)).map(m=>m.route.id).join(",")),[v.pathname+v.search]},[s,c,l,r,o,t,e,a]),g=i.useMemo(()=>Rt(f,r),[f,r]),d=$t(f);return i.createElement(i.Fragment,null,h.map(p=>i.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...n})),g.map(p=>i.createElement("link",{key:p,rel:"modulepreload",href:p,...n})),d.map(({key:p,link:y})=>i.createElement("link",{key:p,...y})))}function Ft(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var ye=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ye&&(window.__reactRouterVersion="7.7.0")}catch{}var ve=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,we=i.forwardRef(function({onClick:t,discover:n="render",prefetch:l="none",relative:r,reloadDocument:a,replace:s,state:c,target:u,to:o,preventScrollReset:f,viewTransition:h,...g},d){let{basename:p}=i.useContext(b),y=typeof o=="string"&&ve.test(o),v,m=!1;if(typeof o=="string"&&y&&(v=o,ye))try{let R=new URL(window.location.href),F=o.startsWith("//")?new URL(R.protocol+o):new URL(o),te=L(F.pathname,p);F.origin===R.origin&&te!=null?o=te+F.search+F.hash:m=!0}catch{E(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let C=je(o,{relative:r}),[w,M,k]=St(l,g),B=Tt(o,{replace:s,state:c,target:u,preventScrollReset:f,relative:r,viewTransition:h});function D(R){t&&t(R),R.defaultPrevented||B(R)}let W=i.createElement("a",{...g,...k,href:v||C,onClick:m||a?t:D,ref:Ft(d,M),target:u,"data-discover":!y&&n==="render"?"true":void 0});return w&&!y?i.createElement(i.Fragment,null,W,i.createElement(kt,{page:C})):W});we.displayName="Link";var It=i.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:l="",end:r=!1,style:a,to:s,viewTransition:c,children:u,...o},f){let h=O(s,{relative:o.relative}),g=$(),d=i.useContext(J),{navigator:p,basename:y}=i.useContext(b),v=d!=null&&Ut(h)&&c===!0,m=p.encodeLocation?p.encodeLocation(h).pathname:h.pathname,C=g.pathname,w=d&&d.navigation&&d.navigation.location?d.navigation.location.pathname:null;n||(C=C.toLowerCase(),w=w?w.toLowerCase():null,m=m.toLowerCase()),w&&y&&(w=L(w,y)||w);const M=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let k=C===m||!r&&C.startsWith(m)&&C.charAt(M)==="/",B=w!=null&&(w===m||!r&&w.startsWith(m)&&w.charAt(m.length)==="/"),D={isActive:k,isPending:B,isTransitioning:v},W=k?t:void 0,R;typeof l=="function"?R=l(D):R=[l,k?"active":null,B?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let F=typeof a=="function"?a(D):a;return i.createElement(we,{...o,"aria-current":W,className:R,ref:f,style:F,to:s,viewTransition:c},typeof u=="function"?u(D):u)});It.displayName="NavLink";var Nt=i.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:l,replace:r,state:a,method:s=H,action:c,onSubmit:u,relative:o,preventScrollReset:f,viewTransition:h,...g},d)=>{let p=Bt(),y=Wt(c,{relative:o}),v=s.toLowerCase()==="get"?"get":"post",m=typeof c=="string"&&ve.test(c),C=w=>{if(u&&u(w),w.defaultPrevented)return;w.preventDefault();let M=w.nativeEvent.submitter,k=M?.getAttribute("formmethod")||s;p(M||w.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:r,state:a,relative:o,preventScrollReset:f,viewTransition:h})};return i.createElement("form",{ref:d,method:v,action:y,onSubmit:l?u:C,...g,"data-discover":!m&&e==="render"?"true":void 0})});Nt.displayName="Form";function Dt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xe(e){let t=i.useContext(N);return x(t,Dt(e)),t}function Tt(e,{target:t,replace:n,state:l,preventScrollReset:r,relative:a,viewTransition:s}={}){let c=Ye(),u=$(),o=O(e,{relative:a});return i.useCallback(f=>{if(mt(f,t)){f.preventDefault();let h=n!==void 0?n:V(u)===V(o);c(e,{replace:h,state:l,preventScrollReset:r,relative:a,viewTransition:s})}},[u,c,o,n,l,t,e,r,a,s])}var At=0,Ot=()=>`__${String(++At)}__`;function Bt(){let{router:e}=xe("useSubmit"),{basename:t}=i.useContext(b),n=lt();return i.useCallback(async(l,r={})=>{let{action:a,method:s,encType:c,formData:u,body:o}=yt(l,t);if(r.navigate===!1){let f=r.fetcherKey||Ot();await e.fetch(f,n,r.action||a,{preventScrollReset:r.preventScrollReset,formData:u,body:o,formMethod:r.method||s,formEncType:r.encType||c,flushSync:r.flushSync})}else await e.navigate(r.action||a,{preventScrollReset:r.preventScrollReset,formData:u,body:o,formMethod:r.method||s,formEncType:r.encType||c,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[e,t,n])}function Wt(e,{relative:t}={}){let{basename:n}=i.useContext(b),l=i.useContext(S);x(l,"useFormAction must be used inside a RouteContext");let[r]=l.matches.slice(-1),a={...O(e||".",{relative:t})},s=$();if(e==null){a.search=s.search;let c=new URLSearchParams(a.search),u=c.getAll("index");if(u.some(f=>f==="")){c.delete("index"),u.filter(h=>h).forEach(h=>c.append("index",h));let f=c.toString();a.search=f?`?${f}`:""}}return(!e||e===".")&&r.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:P([n,a.pathname])),V(a)}function Ut(e,t={}){let n=i.useContext(fe);x(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=xe("useViewTransitionState"),r=O(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=L(n.currentLocation.pathname,l)||n.currentLocation.pathname,s=L(n.nextLocation.pathname,l)||n.nextLocation.pathname;return z(r.pathname,s)!=null||z(r.pathname,a)!=null}export{we as L,_t as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var u=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,c=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,l=(e,r)=>function(){return e&&(r=(0,e[o(e)[0]])(e=0)),r},v=(e,r)=>function(){return r||(0,e[o(e)[0]])((r={exports:{}}).exports,r),r.exports},b=(e,r)=>{for(var t in r)a(e,t,{get:r[t],enumerable:!0})},n=(e,r,t,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let _ of o(r))!O.call(e,_)&&_!==t&&a(e,_,{get:()=>r[_],enumerable:!(p=s(r,_))||p.enumerable});return e},P=(e,r,t)=>(t=e!=null?u(c(e)):{},n(!e||!e.__esModule?a(t,"default",{value:e,enumerable:!0}):t,e)),y=e=>n(a({},"__esModule",{value:!0}),e);export{P as _,v as a,b,l as c,y as d};
|