@cratis/showrunner.playbill.react 2.19.0 → 2.21.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.
Files changed (88) hide show
  1. package/Dialog/PlaybillDialog.tsx +5 -2
  2. package/Dialog/PlaybillHistoryDialog.tsx +47 -0
  3. package/Dialog/index.ts +1 -0
  4. package/Markdown/index.ts +1 -0
  5. package/Markdown/linkIssueReferences.ts +25 -0
  6. package/Playbill.tsx +5 -1
  7. package/README.md +2 -1
  8. package/Release/ReleaseNoteView.tsx +7 -3
  9. package/Release/index.ts +1 -0
  10. package/Release/issueRepositoryFor.ts +17 -0
  11. package/dist/cjs/Dialog/PlaybillDialog.d.ts +3 -2
  12. package/dist/cjs/Dialog/PlaybillDialog.d.ts.map +1 -1
  13. package/dist/cjs/Dialog/PlaybillDialog.js +3 -1
  14. package/dist/cjs/Dialog/PlaybillDialog.js.map +1 -1
  15. package/dist/cjs/Dialog/PlaybillHistoryDialog.d.ts +7 -0
  16. package/dist/cjs/Dialog/PlaybillHistoryDialog.d.ts.map +1 -0
  17. package/dist/cjs/Dialog/PlaybillHistoryDialog.js +41 -0
  18. package/dist/cjs/Dialog/PlaybillHistoryDialog.js.map +1 -0
  19. package/dist/cjs/Dialog/index.d.ts +1 -0
  20. package/dist/cjs/Dialog/index.d.ts.map +1 -1
  21. package/dist/cjs/Examples/HistoryDialog.d.ts +2 -0
  22. package/dist/cjs/Examples/HistoryDialog.d.ts.map +1 -0
  23. package/dist/cjs/Markdown/index.d.ts +1 -0
  24. package/dist/cjs/Markdown/index.d.ts.map +1 -1
  25. package/dist/cjs/Markdown/linkIssueReferences.d.ts +2 -0
  26. package/dist/cjs/Markdown/linkIssueReferences.d.ts.map +1 -0
  27. package/dist/cjs/Markdown/linkIssueReferences.js +22 -0
  28. package/dist/cjs/Markdown/linkIssueReferences.js.map +1 -0
  29. package/dist/cjs/Playbill.d.ts +3 -2
  30. package/dist/cjs/Playbill.d.ts.map +1 -1
  31. package/dist/cjs/Playbill.js +3 -1
  32. package/dist/cjs/Playbill.js.map +1 -1
  33. package/dist/cjs/Release/ReleaseNoteView.d.ts +2 -1
  34. package/dist/cjs/Release/ReleaseNoteView.d.ts.map +1 -1
  35. package/dist/cjs/Release/ReleaseNoteView.js +5 -3
  36. package/dist/cjs/Release/ReleaseNoteView.js.map +1 -1
  37. package/dist/cjs/Release/index.d.ts +1 -0
  38. package/dist/cjs/Release/index.d.ts.map +1 -1
  39. package/dist/cjs/Release/issueRepositoryFor.d.ts +3 -0
  40. package/dist/cjs/Release/issueRepositoryFor.d.ts.map +1 -0
  41. package/dist/cjs/Release/issueRepositoryFor.js +16 -0
  42. package/dist/cjs/Release/issueRepositoryFor.js.map +1 -0
  43. package/dist/cjs/index.js +6 -0
  44. package/dist/cjs/index.js.map +1 -1
  45. package/dist/esm/Dialog/PlaybillDialog.d.ts +3 -2
  46. package/dist/esm/Dialog/PlaybillDialog.d.ts.map +1 -1
  47. package/dist/esm/Dialog/PlaybillDialog.js +3 -1
  48. package/dist/esm/Dialog/PlaybillDialog.js.map +1 -1
  49. package/dist/esm/Dialog/PlaybillHistoryDialog.d.ts +7 -0
  50. package/dist/esm/Dialog/PlaybillHistoryDialog.d.ts.map +1 -0
  51. package/dist/esm/Dialog/PlaybillHistoryDialog.js +39 -0
  52. package/dist/esm/Dialog/PlaybillHistoryDialog.js.map +1 -0
  53. package/dist/esm/Dialog/index.d.ts +1 -0
  54. package/dist/esm/Dialog/index.d.ts.map +1 -1
  55. package/dist/esm/Dialog/index.js +1 -0
  56. package/dist/esm/Dialog/index.js.map +1 -1
  57. package/dist/esm/Examples/HistoryDialog.d.ts +2 -0
  58. package/dist/esm/Examples/HistoryDialog.d.ts.map +1 -0
  59. package/dist/esm/Examples/HistoryDialog.js +8 -0
  60. package/dist/esm/Examples/HistoryDialog.js.map +1 -0
  61. package/dist/esm/Markdown/index.d.ts +1 -0
  62. package/dist/esm/Markdown/index.d.ts.map +1 -1
  63. package/dist/esm/Markdown/index.js +1 -0
  64. package/dist/esm/Markdown/index.js.map +1 -1
  65. package/dist/esm/Markdown/linkIssueReferences.d.ts +2 -0
  66. package/dist/esm/Markdown/linkIssueReferences.d.ts.map +1 -0
  67. package/dist/esm/Markdown/linkIssueReferences.js +20 -0
  68. package/dist/esm/Markdown/linkIssueReferences.js.map +1 -0
  69. package/dist/esm/Playbill.d.ts +3 -2
  70. package/dist/esm/Playbill.d.ts.map +1 -1
  71. package/dist/esm/Playbill.js +3 -1
  72. package/dist/esm/Playbill.js.map +1 -1
  73. package/dist/esm/Release/ReleaseNoteView.d.ts +2 -1
  74. package/dist/esm/Release/ReleaseNoteView.d.ts.map +1 -1
  75. package/dist/esm/Release/ReleaseNoteView.js +5 -3
  76. package/dist/esm/Release/ReleaseNoteView.js.map +1 -1
  77. package/dist/esm/Release/index.d.ts +1 -0
  78. package/dist/esm/Release/index.d.ts.map +1 -1
  79. package/dist/esm/Release/index.js +1 -0
  80. package/dist/esm/Release/index.js.map +1 -1
  81. package/dist/esm/Release/issueRepositoryFor.d.ts +3 -0
  82. package/dist/esm/Release/issueRepositoryFor.d.ts.map +1 -0
  83. package/dist/esm/Release/issueRepositoryFor.js +14 -0
  84. package/dist/esm/Release/issueRepositoryFor.js.map +1 -0
  85. package/dist/esm/index.js +3 -0
  86. package/dist/esm/index.js.map +1 -1
  87. package/package.json +2 -2
  88. package/styles.css +6 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ReleaseNoteView.js","sources":["../../../Release/ReleaseNoteView.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { ComponentType } from 'react';\nimport { Release } from '../Client/index.js';\nimport { PlaybillLabels } from '../Labels/index.js';\nimport { PlaybillMarkdown, PlaybillMarkdownProps } from '../Markdown/index.js';\nimport { formatReleaseDate } from './formatReleaseDate.js';\nimport { sectionPresentation } from './sectionPresentation.js';\n\n/**\n * Props for {@link ReleaseNoteView}, and for the component given to the `release` slot of {@link Playbill} and\n * {@link PlaybillDialog}.\n */\nexport interface ReleaseNoteViewProps {\n /** The release to show. */\n release: Release;\n /** Where the files of the release are served from; given to the Markdown renderer so its images load. */\n assetBase?: string;\n /** The texts to show. */\n labels: PlaybillLabels;\n /** Renders the Markdown of the note; the `markdown` slot of {@link Playbill}. */\n markdown?: ComponentType<PlaybillMarkdownProps>;\n /** The locale to write the date in; the browser's when not given. */\n locale?: string | string[];\n /** Whether the person has not seen this release yet; it is marked with the `unread` text. */\n isUnread?: boolean;\n /** Whether this is the version the application is running; it is marked with the `current` text. */\n isCurrent?: boolean;\n /** The level of the heading of the version, so the release fits under the heading of the page or dialog around it. Defaults to 2. */\n headingLevel?: 2 | 3 | 4;\n}\n\n/**\n * One release: its version and date, what its note says before the first section, and each section under its heading.\n * It draws no frame of its own, so a page, a dialog or a product's own surface can hold it.\n */\nexport const ReleaseNoteView = ({\n release,\n assetBase,\n labels,\n markdown: Markdown = PlaybillMarkdown,\n locale,\n isUnread = false,\n isCurrent = false,\n headingLevel = 2\n}: ReleaseNoteViewProps) => {\n const Heading = `h${headingLevel}` as 'h2';\n const SectionHeading = `h${headingLevel + 1}` as 'h3';\n const date = formatReleaseDate(release.releasedAt, locale);\n return (\n <article className='playbill-release' data-version={release.version}>\n <header className='playbill-release__header'>\n <Heading className='playbill-release__version'>{release.version}</Heading>\n {isCurrent && <span className='playbill-tag playbill-tag--current'>{labels.current}</span>}\n {isUnread && <span className='playbill-tag playbill-tag--unread'>{labels.unread}</span>}\n {date && (\n <time className='playbill-release__date' dateTime={release.releasedAt ?? undefined}>\n {labels.released} {date}\n </time>\n )}\n </header>\n {release.lead.trim() !== '' && (\n <div className='playbill-release__lead'>\n <Markdown source={release.lead} assetBase={assetBase} />\n </div>\n )}\n {release.sections.map(section => {\n const presentation = sectionPresentation(section.name, labels);\n return (\n <section key={section.name} className={`playbill-section playbill-section--${presentation.modifier}`}>\n <SectionHeading className='playbill-section__title'>{presentation.title}</SectionHeading>\n <Markdown source={section.markdown} assetBase={assetBase} />\n </section>\n );\n })}\n </article>\n );\n};\n"],"names":["ReleaseNoteView","release","assetBase","labels","markdown","Markdown","PlaybillMarkdown","locale","isUnread","isCurrent","headingLevel","Heading","SectionHeading","date","formatReleaseDate","releasedAt","_jsxs","article","className","data-version","version","header","_jsx","span","current","unread","time","dateTime","undefined","released","lead","trim","div","source","sections","map","section","presentation","sectionPresentation","name","modifier","title"],"mappings":";;;;;AAAA;AACA;AAgCA;;;IAIO,MAAMA,eAAAA,GAAkB,CAAC,EAC5BC,OAAO,EACPC,SAAS,EACTC,MAAM,EACNC,QAAAA,EAAUC,WAAWC,gBAAgB,EACrCC,MAAM,EACNC,QAAAA,GAAW,KAAK,EAChBC,SAAAA,GAAY,KAAK,EACjBC,YAAAA,GAAe,CAAC,EACG,GAAA;AACnB,IAAA,MAAMC,OAAAA,GAAU,CAAC,CAAC,EAAED,YAAAA,CAAAA,CAAc;AAClC,IAAA,MAAME,cAAAA,GAAiB,CAAC,CAAC,EAAEF,eAAe,CAAA,CAAA,CAAG;AAC7C,IAAA,MAAMG,IAAAA,GAAOC,iBAAAA,CAAkBb,OAAAA,CAAQc,UAAU,EAAER,MAAAA,CAAAA;AACnD,IAAA,qBACIS,IAAA,CAACC,SAAAA,EAAAA;QAAQC,SAAAA,EAAU,kBAAA;AAAmBC,QAAAA,cAAAA,EAAclB,QAAQmB,OAAO;;0BAC/DJ,IAAA,CAACK,QAAAA,EAAAA;gBAAOH,SAAAA,EAAU,0BAAA;;kCACdI,GAAA,CAACX,OAAAA,EAAAA;wBAAQO,SAAAA,EAAU,2BAAA;AAA6BjB,wBAAAA,QAAAA,EAAAA,OAAAA,CAAQmB;;AACvDX,oBAAAA,SAAAA,kBAAaa,GAAA,CAACC,MAAAA,EAAAA;wBAAKL,SAAAA,EAAU,oCAAA;AAAsCf,wBAAAA,QAAAA,EAAAA,MAAAA,CAAOqB;;AAC1EhB,oBAAAA,QAAAA,kBA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seNoteView.js","sources":["../../../Release/ReleaseNoteView.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { ComponentType } from 'react';\nimport { Release } from '../Client/index.js';\nimport { PlaybillLabels } from '../Labels/index.js';\nimport { linkIssueReferences, PlaybillMarkdown, PlaybillMarkdownProps } from '../Markdown/index.js';\nimport { formatReleaseDate } from './formatReleaseDate.js';\nimport { sectionPresentation } from './sectionPresentation.js';\n\n/**\n * Props for {@link ReleaseNoteView}, and for the component given to the `release` slot of {@link Playbill} and\n * {@link PlaybillDialog}.\n */\nexport interface ReleaseNoteViewProps {\n /** The release to show. */\n release: Release;\n /** Where the files of the release are served from; given to the Markdown renderer so its images load. */\n assetBase?: string;\n /** The texts to show. */\n labels: PlaybillLabels;\n /** Renders the Markdown of the note; the `markdown` slot of {@link Playbill}. */\n markdown?: ComponentType<PlaybillMarkdownProps>;\n /** The locale to write the date in; the browser's when not given. */\n locale?: string | string[];\n /** Whether the person has not seen this release yet; it is marked with the `unread` text. */\n isUnread?: boolean;\n /** Whether this is the version the application is running; it is marked with the `current` text. */\n isCurrent?: boolean;\n /** The address of the repository whose issues a bare `#123` in the note refers to. The references are made links when it is given. */\n issueRepository?: string;\n /** The level of the heading of the version, so the release fits under the heading of the page or dialog around it. Defaults to 2. */\n headingLevel?: 2 | 3 | 4;\n}\n\n/**\n * One release: its version and date, what its note says before the first section, and each section under its heading.\n * It draws no frame of its own, so a page, a dialog or a product's own surface can hold it.\n */\nexport const ReleaseNoteView = ({\n release,\n assetBase,\n labels,\n markdown: Markdown = PlaybillMarkdown,\n locale,\n isUnread = false,\n isCurrent = false,\n issueRepository,\n headingLevel = 2\n}: ReleaseNoteViewProps) => {\n const Heading = `h${headingLevel}` as 'h2';\n const SectionHeading = `h${headingLevel + 1}` as 'h3';\n const date = formatReleaseDate(release.releasedAt, locale);\n const prepared = (markdown: string) => issueRepository ? linkIssueReferences(markdown, issueRepository) : markdown;\n return (\n <article className='playbill-release' data-version={release.version}>\n <header className='playbill-release__header'>\n <Heading className='playbill-release__version'>{release.version}</Heading>\n {isCurrent && <span className='playbill-tag playbill-tag--current'>{labels.current}</span>}\n {isUnread && <span className='playbill-tag playbill-tag--unread'>{labels.unread}</span>}\n {date && (\n <time className='playbill-release__date' dateTime={release.releasedAt ?? undefined}>\n {labels.released} {date}\n </time>\n )}\n </header>\n {release.lead.trim() !== '' && (\n <div className='playbill-release__lead'>\n <Markdown source={prepared(release.lead)} assetBase={assetBase} />\n </div>\n )}\n {release.sections.map(section => {\n const presentation = sectionPresentation(section.name, labels);\n return (\n <section key={section.name} className={`playbill-section playbill-section--${presentation.modifier}`}>\n <SectionHeading className='playbill-section__title'>{presentation.title}</SectionHeading>\n <Markdown source={prepared(section.markdown)} assetBase={assetBase} />\n </section>\n );\n })}\n </article>\n );\n};\n"],"names":["ReleaseNoteView","release","assetBase","labels","markdown","Markdown","PlaybillMarkdown","locale","isUnread","isCurrent","issueRepository","headingLevel","Heading","SectionHeading","date","formatReleaseDate","releasedAt","prepared","linkIssueReferences","_jsxs","article","className","data-version","version","header","_jsx","span","current","unread","time","dateTime","undefined","released","lead","trim","div","source","sections","map","section","presentation","sectionPresentation","name","modifier","title"],"mappings":";;;;;;AAAA;AACA;AAkCA;;;IAIO,MAAMA,eAAAA,GAAkB,CAAC,EAC5BC,OAAO,EACPC,SAAS,EACTC,MAAM,EACNC,QAAAA,EAAUC,QAAAA,GAAWC,gBAAgB,EACrCC,MAAM,EACNC,QAAAA,GAAW,KAAK,EAChBC,SAAAA,GAAY,KAAK,EACjBC,eAAe,EACfC,YAAAA,GAAe,CAAC,EACG,GAAA;AACnB,IAAA,MAAMC,OAAAA,GAAU,CAAC,CAAC,EAAED,YAAAA,CAAAA,CAAc;AAClC,IAAA,MAAME,cAAAA,GAAiB,CAAC,CAAC,EAAEF,eAAe,CAAA,CAAA,CAAG;AAC7C,IAAA,MAAMG,IAAAA,GAAOC,iBAAAA,C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AAG5DD,YAAAA,OAAAA,CAAQoC,QAAQ,CAACC,GAAG,CAACC,CAAAA,OAAAA,GAAAA;AAClB,gBAAA,MAAMC,YAAAA,GAAeC,mBAAAA,CAAoBF,OAAAA,CAAQG,IAAI,EAAEvC,MAAAA,CAAAA;AACvD,gBAAA,qBACIgB,IAAA,CAACoB,SAAAA,EAAAA;AAA2BlB,oBAAAA,SAAAA,EAAW,CAAC,mCAAmC,EAAEmB,YAAAA,CAAaG,QAAQ,CAAA,CAAE;;sCAChGlB,GAAA,CAACZ,cAAAA,EAAAA;4BAAeQ,SAAAA,EAAU,yBAAA;AAA2BmB,4BAAAA,QAAAA,EAAAA,YAAAA,CAAaI;;sCAClEnB,GAAA,CAACpB,QAAAA,EAAAA;4BAAS+B,MAAAA,EAAQnB,QAAAA,CAASsB,QAAQnC,QAAQ,CAAA;4BAAGF,SAAAA,EAAWA;;;AAF/CqC,iBAAAA,EAAAA,OAAAA,CAAQG,IAAI,CAAA;AAKlC,YAAA,CAAA;;;AAGZ;;"}
@@ -1,4 +1,5 @@
1
1
  export * from './formatReleaseDate.js';
2
+ export * from './issueRepositoryFor.js';
2
3
  export * from './ReleaseNoteView.js';
3
4
  export * from './sectionPresentation.js';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Release/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Release/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './formatReleaseDate.js';
2
+ export * from './issueRepositoryFor.js';
2
3
  export * from './ReleaseNoteView.js';
3
4
  export * from './sectionPresentation.js';
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Release/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Release/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type IssueRepository = string | ((version: string) => string | undefined);
2
+ export declare const issueRepositoryFor: (issues: IssueRepository | undefined, version: string) => string | undefined;
3
+ //# sourceMappingURL=issueRepositoryFor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issueRepositoryFor.d.ts","sourceRoot":"","sources":["../../../Release/issueRepositoryFor.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC,CAAC;AAQjF,eAAO,MAAM,kBAAkB,GAAI,QAAQ,eAAe,GAAG,SAAS,EAAE,SAAS,MAAM,KAAG,MAAM,GAAG,SACxC,CAAC"}
@@ -0,0 +1,14 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+ /**
4
+ * Where the issues of a release are tracked: one address for every release, or a function that answers for each version, for a
5
+ * product whose issues moved to another repository at some point.
6
+ */ /**
7
+ * Works out the repository a release's issue references belong to.
8
+ * @param issues - What the product gave, if anything.
9
+ * @param version - The version of the release.
10
+ * @returns The address of the repository, or undefined to leave the references as text.
11
+ */ const issueRepositoryFor = (issues, version)=>typeof issues === 'function' ? issues(version) : issues;
12
+
13
+ export { issueRepositoryFor };
14
+ //# sourceMappingURL=issueRepositoryFor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issueRepositoryFor.js","sources":["../../../Release/issueRepositoryFor.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * Where the issues of a release are tracked: one address for every release, or a function that answers for each version, for a\n * product whose issues moved to another repository at some point.\n */\nexport type IssueRepository = string | ((version: string) => string | undefined);\n\n/**\n * Works out the repository a release's issue references belong to.\n * @param issues - What the product gave, if anything.\n * @param version - The version of the release.\n * @returns The address of the repository, or undefined to leave the references as text.\n */\nexport const issueRepositoryFor = (issues: IssueRepository | undefined, version: string): string | undefined =>\n typeof issues === 'function' ? issues(version) : issues;\n"],"names":["issueRepositoryFor","issues","version"],"mappings":"AAAA;AACA;AAEA;;;;;;;;IAYO,MAAMA,kBAAAA,GAAqB,CAACC,MAAAA,EAAqCC,OAAAA,GACpE,OAAOD,MAAAA,KAAW,UAAA,GAAaA,MAAAA,CAAOC,OAAAA,CAAAA,GAAWD;;"}
package/dist/esm/index.js CHANGED
@@ -2,14 +2,17 @@ export { PlaybillBadge } from './Badge/PlaybillBadge.js';
2
2
  export { PlaybillClient, defaultBasePath } from './Client/PlaybillClient.js';
3
3
  export { PlaybillProvider, usePlaybillClient } from './Configuration/PlaybillProvider.js';
4
4
  export { PlaybillDialog } from './Dialog/PlaybillDialog.js';
5
+ export { PlaybillHistoryDialog } from './Dialog/PlaybillHistoryDialog.js';
5
6
  export { PlaybillIcon } from './Icons.js';
6
7
  export { defaultPlaybillLabels } from './Labels/defaultPlaybillLabels.js';
7
8
  export { resolveLabels, withCount } from './Labels/resolveLabels.js';
8
9
  export { resolveAssetUrl } from './Markdown/assetUrl.js';
10
+ export { linkIssueReferences } from './Markdown/linkIssueReferences.js';
9
11
  export { PlaybillMarkdown } from './Markdown/PlaybillMarkdown.js';
10
12
  export { isSafeLink, safeLinkOrEmpty } from './Markdown/safeLink.js';
11
13
  export { Playbill } from './Playbill.js';
12
14
  export { formatReleaseDate } from './Release/formatReleaseDate.js';
15
+ export { issueRepositoryFor } from './Release/issueRepositoryFor.js';
13
16
  export { ReleaseNoteView } from './Release/ReleaseNoteView.js';
14
17
  export { sectionPresentation } from './Release/sectionPresentation.js';
15
18
  export { usePlaybill } from './usePlaybill.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@cratis/showrunner.playbill.react",
4
- "version": "2.19.0",
4
+ "version": "2.21.0",
5
5
  "description": "The Playbill release-notes experience for React — a releases page, a what is new dialog and an unread badge, drawn with Cratis Components, styled with the Cratis tokens and open to your own components, built on Cratis Arc.",
6
6
  "keywords": [
7
7
  "cratis",
@@ -64,7 +64,7 @@
64
64
  "up": "yarn g:up"
65
65
  },
66
66
  "dependencies": {
67
- "@cratis/showrunner.playbill": "2.19.0",
67
+ "@cratis/showrunner.playbill": "2.21.0",
68
68
  "react-markdown": "10.1.0"
69
69
  },
70
70
  "devDependencies": {
package/styles.css CHANGED
@@ -243,6 +243,12 @@
243
243
  color: var(--playbill-text-resolved);
244
244
  }
245
245
 
246
+ .playbill-history {
247
+ min-height: 20rem;
248
+ max-height: 70vh;
249
+ overflow: auto;
250
+ }
251
+
246
252
  .playbill-dialog__earlier {
247
253
  margin: 0;
248
254
  color: var(--playbill-muted-resolved);