rikiki-deck 0.6.0 → 0.7.2
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/.claude/skills/rikiki-debug/SKILL.md +17 -7
- package/.claude/skills/rikiki-deck/SKILL.md +362 -77
- package/.claude/skills/rikiki-theme/SKILL.md +1 -1
- package/README.md +69 -50
- package/bin/lib/assemble.mjs +154 -0
- package/bin/lib/box-geometry.mjs +66 -0
- package/bin/lib/browser.mjs +302 -0
- package/bin/lib/check-api.d.ts +28 -0
- package/bin/lib/check-api.mjs +6 -0
- package/bin/lib/check-plugins.mjs +228 -0
- package/bin/lib/check.mjs +1347 -0
- package/bin/lib/cli-error.mjs +26 -0
- package/bin/lib/component-deps.mjs +69 -0
- package/bin/lib/diff.mjs +275 -0
- package/bin/lib/export-pdf.mjs +65 -0
- package/bin/lib/graph-hit.mjs +86 -0
- package/bin/lib/inline.mjs +137 -39
- package/bin/lib/narrative.mjs +77 -0
- package/bin/lib/prune-icons.mjs +104 -0
- package/bin/lib/render.mjs +195 -0
- package/bin/lib/scan-external.mjs +126 -0
- package/bin/lib/starter.mjs +27 -14
- package/bin/lib/visual.mjs +120 -0
- package/bin/rikiki.mjs +420 -35
- package/dist/annotation-marks.d.ts +60 -0
- package/dist/annotation-marks.js +1 -0
- package/dist/bar-segments.d.ts +28 -0
- package/dist/bar-segments.js +1 -0
- package/dist/browser-location.d.ts +3 -0
- package/dist/browser-location.js +1 -0
- package/dist/cards-syntax.d.ts +31 -0
- package/dist/cards-syntax.js +6 -0
- package/dist/{plugins/click-stages.d.ts → click-stages.d.ts} +1 -1
- package/dist/deck-agenda.d.ts +25 -0
- package/dist/deck-agenda.js +6 -0
- package/dist/deck-annotate.d.ts +108 -0
- package/dist/deck-annotate.js +18 -0
- package/dist/deck-bar.d.ts +32 -0
- package/dist/deck-bar.js +19 -0
- package/dist/deck-bento.d.ts +38 -0
- package/dist/deck-bento.js +4 -0
- package/dist/{molecules/deck-callout.d.ts → deck-callout.d.ts} +2 -0
- package/dist/deck-callout.js +1 -1
- package/dist/deck-cell.d.ts +19 -0
- package/dist/deck-cell.js +1 -0
- package/dist/deck-checklist.d.ts +20 -0
- package/dist/deck-checklist.js +1 -0
- package/dist/{layouts/deck-cover.d.ts → deck-cover.d.ts} +8 -0
- package/dist/deck-cover.js +9 -6
- package/dist/deck-csv.d.ts +38 -0
- package/dist/deck-csv.js +15 -0
- package/dist/deck-feature-cards.js +2 -2
- package/dist/deck-feature.d.ts +18 -0
- package/dist/deck-feature.js +2 -2
- package/dist/deck-figure.d.ts +26 -0
- package/dist/deck-figure.js +8 -0
- package/dist/deck-fit.d.ts +14 -0
- package/dist/deck-fit.js +1 -0
- package/dist/deck-flow.d.ts +41 -0
- package/dist/deck-flow.js +7 -0
- package/dist/deck-graph.d.ts +92 -0
- package/dist/deck-graph.js +25 -0
- package/dist/deck-grid.js +1 -1
- package/dist/deck-icon.d.ts +20 -0
- package/dist/deck-icon.js +1 -0
- package/dist/{atoms/deck-kicker.d.ts → deck-kicker.d.ts} +5 -0
- package/dist/deck-kicker.js +1 -1
- package/dist/deck-kpi-grid.d.ts +26 -0
- package/dist/deck-kpi-grid.js +4 -0
- package/dist/deck-link.d.ts +21 -0
- package/dist/deck-link.js +1 -0
- package/dist/{molecules/deck-md.d.ts → deck-md.d.ts} +3 -0
- package/dist/deck-md.js +8 -3
- package/dist/deck-mermaid.js +15 -3
- package/dist/deck-outline.d.ts +50 -0
- package/dist/deck-outline.js +1 -0
- package/dist/deck-overview.js +53 -39
- package/dist/deck-persona.d.ts +31 -0
- package/dist/deck-persona.js +6 -0
- package/dist/deck-photo.js +1 -1
- package/dist/deck-point.d.ts +22 -0
- package/dist/deck-point.js +1 -0
- package/dist/deck-presenter.js +120 -48
- package/dist/deck-pull.d.ts +13 -0
- package/dist/deck-pull.js +1 -0
- package/dist/{atoms/deck-punch.d.ts → deck-punch.d.ts} +6 -0
- package/dist/deck-punch.js +1 -1
- package/dist/deck-quote.d.ts +28 -0
- package/dist/deck-quote.js +6 -0
- package/dist/{runtime/deck-root.d.ts → deck-root.d.ts} +88 -8
- package/dist/deck-root.js +17 -13
- package/dist/deck-section.js +2 -2
- package/dist/deck-source.d.ts +12 -0
- package/dist/deck-source.js +2 -0
- package/dist/deck-split.d.ts +30 -0
- package/dist/deck-split.js +5 -3
- package/dist/{molecules/deck-stat.d.ts → deck-stat.d.ts} +2 -0
- package/dist/deck-stat.js +2 -2
- package/dist/{molecules/deck-step-list.d.ts → deck-step-list.d.ts} +8 -0
- package/dist/deck-step-list.js +4 -2
- package/dist/deck-table.d.ts +26 -0
- package/dist/deck-table.js +1 -0
- package/dist/deck-takeaway.d.ts +18 -0
- package/dist/deck-takeaway.js +2 -2
- package/dist/deck-timeline.d.ts +37 -0
- package/dist/deck-timeline.js +5 -0
- package/dist/deck-transition.js +3 -3
- package/dist/deck-versus.d.ts +18 -0
- package/dist/deck-versus.js +9 -0
- package/dist/deep-link.d.ts +29 -0
- package/dist/deep-link.js +1 -0
- package/dist/escape-html.d.ts +3 -0
- package/dist/escape-html.js +1 -0
- package/dist/fit-controller.d.ts +27 -0
- package/dist/fit-controller.js +1 -0
- package/dist/graph-layout.d.ts +35 -0
- package/dist/graph-layout.js +1 -0
- package/dist/grid-tracks.d.ts +17 -0
- package/dist/grid-tracks.js +1 -0
- package/dist/icon-set.d.ts +6 -0
- package/dist/icon-set.js +1 -0
- package/dist/index.d.ts +37 -31
- package/dist/index.js +95 -49
- package/dist/keymap.d.ts +40 -0
- package/dist/keymap.js +1 -0
- package/dist/mouse-nav.d.ts +12 -0
- package/dist/mouse-nav.js +1 -0
- package/dist/navigation.d.ts +25 -0
- package/dist/navigation.js +1 -0
- package/dist/parse-csv.d.ts +9 -0
- package/dist/parse-csv.js +3 -0
- package/dist/shared-styles.js +1 -1
- package/dist/shiki.d.ts +8 -0
- package/dist/signature.d.ts +2 -0
- package/dist/signature.js +1 -0
- package/dist/slide-fill.d.ts +8 -0
- package/dist/slide-fill.js +1 -0
- package/dist/standalone.js +301 -169
- package/dist/vendor/THIRD-PARTY-NOTICES.txt +4347 -0
- package/dist/vendor/inventory.json +3029 -0
- package/dist/vendor/lit.js +62 -2
- package/dist/vendor/mermaid.min.js +95 -95
- package/dist/vendor/shiki.js +1 -57
- package/dist/viewport.d.ts +42 -0
- package/dist/viewport.js +1 -0
- package/docs/llms/rikiki-reference.md +955 -64
- package/docs/llms/rikiki-workflow.md +536 -0
- package/llms.txt +39 -12
- package/package.json +33 -12
- package/themes/rikiki.css +173 -47
- package/themes/siliceum.css +171 -51
- package/dist/layouts/deck-feature.d.ts +0 -11
- package/dist/layouts/deck-split.d.ts +0 -18
- package/dist/layouts/deck-takeaway.d.ts +0 -11
- package/dist/plugins/shiki.d.ts +0 -8
- /package/dist/{runtime/color.d.ts → color.d.ts} +0 -0
- /package/dist/{atoms/deck-badge.d.ts → deck-badge.d.ts} +0 -0
- /package/dist/{molecules/deck-card.d.ts → deck-card.d.ts} +0 -0
- /package/dist/{atoms/deck-code-highlighter.d.ts → deck-code-highlighter.d.ts} +0 -0
- /package/dist/{atoms/deck-code.d.ts → deck-code.d.ts} +0 -0
- /package/dist/{layouts/deck-feature-cards.d.ts → deck-feature-cards.d.ts} +0 -0
- /package/dist/{molecules/deck-grid.d.ts → deck-grid.d.ts} +0 -0
- /package/dist/{runtime/deck-help.d.ts → deck-help.d.ts} +0 -0
- /package/dist/{molecules/deck-mermaid.d.ts → deck-mermaid.d.ts} +0 -0
- /package/dist/{molecules/deck-metric.d.ts → deck-metric.d.ts} +0 -0
- /package/dist/{runtime/deck-notes.d.ts → deck-notes.d.ts} +0 -0
- /package/dist/{runtime/deck-overview.d.ts → deck-overview.d.ts} +0 -0
- /package/dist/{layouts/deck-photo.d.ts → deck-photo.d.ts} +0 -0
- /package/dist/{runtime/deck-presenter.d.ts → deck-presenter.d.ts} +0 -0
- /package/dist/{layouts/deck-section.d.ts → deck-section.d.ts} +0 -0
- /package/dist/{molecules/deck-shortcut.d.ts → deck-shortcut.d.ts} +0 -0
- /package/dist/{molecules/deck-stack.d.ts → deck-stack.d.ts} +0 -0
- /package/dist/{molecules/deck-tier-list.d.ts → deck-tier-list.d.ts} +0 -0
- /package/dist/{runtime/deck-transition.d.ts → deck-transition.d.ts} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { DeckOutline, DeckPosition, StepsOf } from '../domain/deck-outline.js';
|
|
2
|
+
/** The URL, as the application is allowed to see it. Implemented by the browser
|
|
3
|
+
* adapter; a test supplies a plain object. */
|
|
4
|
+
export interface LocationPort {
|
|
5
|
+
/** The current fragment, `#` included, or an empty string. */
|
|
6
|
+
read(): string;
|
|
7
|
+
/** Replace the fragment without adding a history entry. Implementations
|
|
8
|
+
* swallow the SecurityError an opaque origin throws · see the adapter. */
|
|
9
|
+
write(hash: string): void;
|
|
10
|
+
}
|
|
11
|
+
export interface DeepLinkContext {
|
|
12
|
+
readonly outline: DeckOutline;
|
|
13
|
+
readonly twoD: boolean;
|
|
14
|
+
readonly stepsOf: StepsOf;
|
|
15
|
+
/** False for an embedded deck · the fragment belongs to the host page. */
|
|
16
|
+
readonly ownsUrl: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The position the current URL asks for, or null when it asks for nothing.
|
|
20
|
+
*
|
|
21
|
+
* `coldLoad` matters: before the plugins have computed their step counts, the
|
|
22
|
+
* model would clamp `#4.2` down to step 0 and lose the link. Until a count
|
|
23
|
+
* exists the asked-for step is kept as-is; from then on it is clamped, so a
|
|
24
|
+
* link to a click that no longer exists settles on the last available one.
|
|
25
|
+
*/
|
|
26
|
+
export declare function readDeepLink(port: LocationPort, ctx: DeepLinkContext, coldLoad?: boolean): DeckPosition | null;
|
|
27
|
+
/** Write a position to the URL, in the grammar `readDeepLink` will read back.
|
|
28
|
+
* A deck that does not own the URL writes nothing at all. */
|
|
29
|
+
export declare function publishDeepLink(port: LocationPort, position: DeckPosition, ctx: Pick<DeepLinkContext, 'outline' | 'twoD' | 'ownsUrl'>): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var f=/^#(\d+)\.(\d+)(?:s(\d+))?$/,k=/^#(\d+)(?:\.(\d+))?$/;function l(e,t){if(t){let n=f.exec(e);if(n)return{kind:"coords",coords:{chapter:Number(n[1])-1,index:Number(n[2])-1},step:n[3]?Number(n[3]):0}}let o=k.exec(e);return o?{kind:"slide",slide:Number(o[1])-1,step:o[2]?Number(o[2]):0}:null}function c(e,t){if(t.twoD&&t.coords){let{chapter:o,index:n}=t.coords,r=e.step>0?`s${e.step}`:"";return`#${o+1}.${n+1}${r}`}return`#${e.slide+1}${e.step>0?`.${e.step}`:""}`}function u(e,t){for(let o=0;o<e.chapters.length;o++){let n=e.chapters[o],r=t-n.start;if(r>=0&&r<n.length)return{chapter:o,index:r}}return{chapter:0,index:0}}function p(e,t){if(e.chapters.length===0)return null;let o=s(t.chapter,0,e.chapters.length-1),n=e.chapters[o],r=s(t.index,0,n.length-1);return n.start+r}function s(e,t,o){return Number.isNaN(e)?t:Math.max(t,Math.min(o,e))}var D=e=>e.slideCount<=0;function i(e,t,o){if(D(e))return null;let n=s(t.slide,0,e.slideCount-1),r=Math.max(0,o(n));return{slide:n,step:s(t.step,0,r)}}function a(e,t,o){return i(e,{slide:t,step:0},o)}function d(e,t,o){let n=p(e,t);return n===null?null:i(e,{slide:n,step:0},o)}function C(e,t,o=!1){if(!t.ownsUrl)return null;let n=l(e.read(),t.twoD);if(!n)return null;let r=n.kind==="coords"?d(t.outline,n.coords,t.stepsOf):a(t.outline,n.slide,t.stepsOf);return r?t.stepsOf(r.slide)>0||!o?i(t.outline,{slide:r.slide,step:n.step},t.stepsOf):{slide:r.slide,step:Math.max(0,n.step)}:null}function w(e,t,o){if(!o.ownsUrl)return;let n=c(t,{twoD:o.twoD,coords:o.twoD?u(o.outline,t.slide):void 0});e.read()!==n&&e.write(n)}export{w as publishDeepLink,C as readDeepLink};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r={"&":"&","<":"<",">":">",'"':""","'":"'"};function e(n){return n==null?"":String(n).replace(/[&<>"']/g,t=>r[t])}export{e as escapeHtml};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
/** Largest size in [min, max] for which `fits(px)` holds, found by bisection.
|
|
3
|
+
* `fits` must be monotonic (true up to some threshold, false above). If even
|
|
4
|
+
* `min` overflows, returns `min` · a tiny clip beats vanishing text. Pure and
|
|
5
|
+
* DOM-free so the search is unit-testable with a mock predicate. */
|
|
6
|
+
export declare function bestFitSize(min: number, max: number, fits: (px: number) => boolean, epsilon?: number): number;
|
|
7
|
+
type FitHost = ReactiveControllerHost & HTMLElement;
|
|
8
|
+
export interface FitOptions {
|
|
9
|
+
/** When false, the controller clears its sizing and stays idle. */
|
|
10
|
+
enabled?: () => boolean;
|
|
11
|
+
/** Floor size in rem (resolved against the root font-size). Default 1. */
|
|
12
|
+
minRem?: () => number;
|
|
13
|
+
/** Ceiling size in rem. Default 12. */
|
|
14
|
+
maxRem?: () => number;
|
|
15
|
+
}
|
|
16
|
+
export declare class FitController implements ReactiveController {
|
|
17
|
+
private host;
|
|
18
|
+
private opts;
|
|
19
|
+
private ro?;
|
|
20
|
+
constructor(host: FitHost, opts?: FitOptions);
|
|
21
|
+
hostConnected(): void;
|
|
22
|
+
hostDisconnected(): void;
|
|
23
|
+
/** Re-measure and size the host · safe to call after content or attribute
|
|
24
|
+
* changes (the host's updated() hook should call it). */
|
|
25
|
+
refit(): void;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function c(n,e,t,s=.5){if(e<=n)return n;if(t(e))return e;let o=n,i=e;for(;i-o>s;){let r=(o+i)/2;t(r)?o=r:i=r}return o}var l=class{constructor(e,t={}){this.host=e;this.opts=t;e.addController(this)}hostConnected(){this.ro=new ResizeObserver(()=>this.refit()),this.ro.observe(this.host),this.refit(),document.fonts?.ready?.then(()=>{this.ro&&this.refit()})}hostDisconnected(){this.ro?.disconnect(),this.ro=void 0}refit(){let e=this.host;if(this.opts.enabled&&!this.opts.enabled()){e.style.removeProperty("font-size");return}if(e.clientWidth===0||e.clientHeight===0)return;let t=parseFloat(getComputedStyle(document.documentElement).fontSize)||16,s=(this.opts.minRem?.()??1)*t,o=(this.opts.maxRem?.()??12)*t,i=r=>(e.style.fontSize=`${r}px`,e.scrollWidth<=e.clientWidth&&e.scrollHeight<=e.clientHeight);e.style.fontSize=`${c(s,o,i)}px`}};export{l as FitController,c as bestFitSize};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface Point {
|
|
2
|
+
readonly x: number;
|
|
3
|
+
readonly y: number;
|
|
4
|
+
}
|
|
5
|
+
export type GraphLayout = 'free' | 'row' | 'column';
|
|
6
|
+
/** Read an `at="x,y"` attribute · null when it is absent or unreadable, so the
|
|
7
|
+
* caller can fall back to an arrangement rather than pinning to a corner. */
|
|
8
|
+
export declare function parsePoint(raw: string | null | undefined): Point | null;
|
|
9
|
+
/**
|
|
10
|
+
* Resolve a position for every node.
|
|
11
|
+
*
|
|
12
|
+
* `free` honours what the author wrote and centres anything unwritten. `row`
|
|
13
|
+
* and `column` space the nodes evenly and ignore `at` entirely · the two cases
|
|
14
|
+
* that would otherwise be typed out by hand on every chain diagram.
|
|
15
|
+
*
|
|
16
|
+
* The inset keeps the first and last node off the edge, where their labels
|
|
17
|
+
* would be cut by the slide padding.
|
|
18
|
+
*/
|
|
19
|
+
export declare function arrange(raw: readonly (string | null)[], layout?: GraphLayout, inset?: number): Point[];
|
|
20
|
+
export interface EdgeGeometry {
|
|
21
|
+
readonly x1: number;
|
|
22
|
+
readonly y1: number;
|
|
23
|
+
readonly x2: number;
|
|
24
|
+
readonly y2: number;
|
|
25
|
+
/** Midpoint, where a label sits. */
|
|
26
|
+
readonly mx: number;
|
|
27
|
+
readonly my: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The segment between two nodes, shortened at both ends.
|
|
31
|
+
*
|
|
32
|
+
* The gap is what stops a line from running under a label · without it every
|
|
33
|
+
* edge appears to strike through the word it connects.
|
|
34
|
+
*/
|
|
35
|
+
export declare function edgeGeometry(from: Point, to: Point, gap?: number): EdgeGeometry;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l=n=>Number.isFinite(n)?Math.max(0,Math.min(100,n)):50;function m(n){if(!n)return null;let[e="",t=""]=n.split(",");if(e.trim()===""||t.trim()==="")return null;let r=Number(e),y=Number(t);return!Number.isFinite(r)||!Number.isFinite(y)?null:{x:l(r),y:l(y)}}function a(n,e="free",t=12){let r=n.length;if(r===0)return[];if(e==="free")return n.map(u=>m(u)??{x:50,y:50});let y=100-t*2;return n.map((u,i)=>{let o=r===1?.5:i/(r-1),x=t+y*o;return e==="row"?{x,y:50}:{x:50,y:x}})}function c(n,e,t=6){let r=e.x-n.x,y=e.y-n.y,u=Math.hypot(r,y);if(u===0)return{x1:n.x,y1:n.y,x2:e.x,y2:e.y,mx:n.x,my:n.y};let i=Math.min(t,u/3),o=r/u,x=y/u;return{x1:n.x+o*i,y1:n.y+x*i,x2:e.x-o*i,y2:e.y-x*i,mx:(n.x+e.x)/2,my:(n.y+e.y)/2}}export{a as arrange,c as edgeGeometry,m as parsePoint};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** `cols`/`rows` value · integer 1..12 → `repeat(N, minmax(0, 1fr))`, else the
|
|
2
|
+
* value is passed through as an explicit track template ("1fr 2fr"). */
|
|
3
|
+
export declare function expandTracks(value: string | undefined): string | null;
|
|
4
|
+
/** `gap` value · integer 1..6 → `var(--rik-space-N)`, else any CSS length. */
|
|
5
|
+
export declare function expandGap(value: string | undefined): string | null;
|
|
6
|
+
export interface CellSpan {
|
|
7
|
+
/** grid-column value */
|
|
8
|
+
col: string;
|
|
9
|
+
/** grid-row value */
|
|
10
|
+
row: string;
|
|
11
|
+
}
|
|
12
|
+
/** Turn one axis of a span into a grid-* value · a positive integer becomes
|
|
13
|
+
* `span N`, anything else (raw line syntax like "1 / 3") passes through. */
|
|
14
|
+
export declare function toTrack(value: string | undefined): string;
|
|
15
|
+
/** Parse a bento cell span. Accepts "CxR" (e.g. "2x1"), a bare column count
|
|
16
|
+
* ("2" → span 2 columns, 1 row), or empty (→ a single auto-placed cell). */
|
|
17
|
+
export declare function parseSpan(value: string | undefined): CellSpan;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(r){if(!r)return null;let n=parseInt(r,10);return!Number.isNaN(n)&&String(n)===r.trim()&&n>=1&&n<=12?`repeat(${n}, minmax(0, 1fr))`:r}function o(r){if(!r)return null;let n=parseInt(r,10);return!Number.isNaN(n)&&String(n)===r.trim()&&n>=1&&n<=6?`var(--rik-space-${n})`:r}function t(r){if(!r)return"auto";let n=r.trim();return/^\d+$/.test(n)?`span ${n}`:n}function s(r){if(!r)return{col:"auto",row:"auto"};let[n,i]=r.toLowerCase().split("x");return{col:t(n),row:t(i)}}export{o as expandGap,e as expandTracks,s as parseSpan,t as toTrack};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const ICONS: Readonly<Record<string, string>>;
|
|
2
|
+
export type IconName = string;
|
|
3
|
+
export declare const ICON_NAMES: string[];
|
|
4
|
+
/** The path for a name · null when the set does not have it, so the component
|
|
5
|
+
* can render a slotted SVG instead of an empty box. */
|
|
6
|
+
export declare function iconPath(name: string | null | undefined): string | null;
|
package/dist/icon-set.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e='{"check":"M20 6 9 17l-5-5","cross":"M18 6 6 18M6 6l12 12","alert":"M12 9v4m0 4h.01M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z","info":"M12 16v-4m0-4h.01M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z","question":"M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3m.1 4h.01M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z","ban":"M4.9 4.9l14.2 14.2M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z","arrow":"M5 12h14m-6-6 6 6-6 6","arrow-down":"M12 5v14m6-6-6 6-6-6","clock":"M12 6v6l4 2m6-2a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z","calendar":"M8 2v4m8-4v4M3 10h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z","refresh":"M21 12a9 9 0 1 1-3-6.7M21 3v6h-6","trend":"M22 7 13.5 15.5l-5-5L2 17M16 7h6v6","user":"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2M16 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z","team":"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2M13 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm10 14v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8","target":"M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm0-6a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 9a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z","flag":"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1Zm0 0v7","lock":"M7 11V7a5 5 0 0 1 10 0v4M5 11h14a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z","search":"M21 21l-4.3-4.3M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z","code":"M16 18l6-6-6-6M8 6l-6 6 6 6","database":"M3 5c0 1.7 4 3 9 3s9-1.3 9-3-4-3-9-3-9 1.3-9 3Zm0 0v14c0 1.7 4 3 9 3s9-1.3 9-3V5M3 12c0 1.7 4 3 9 3s9-1.3 9-3","cloud":"M17.5 19a4.5 4.5 0 0 0 0-9h-1.3A7 7 0 1 0 4 16.9","document":"M14 2v6h6M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Zm-6 11h8m-8 4h8m-8-8h2","chart":"M3 3v18h18M7 16V9m5 7V5m5 11v-4","spark":"M12 2 15 9l7 3-7 3-3 7-3-7-7-3 7-3Z"}',M=Object.freeze(JSON.parse(e)),r=Object.keys(M);function t(a){return a?M[a.trim().toLowerCase()]??null:null}export{M as ICONS,r as ICON_NAMES,t as iconPath};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,37 @@
|
|
|
1
|
-
import './
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import './
|
|
14
|
-
import './
|
|
15
|
-
import './
|
|
16
|
-
import './
|
|
17
|
-
import './
|
|
18
|
-
import './
|
|
19
|
-
import './
|
|
20
|
-
import './
|
|
21
|
-
import './
|
|
22
|
-
import './
|
|
23
|
-
import './
|
|
24
|
-
import './
|
|
25
|
-
import './
|
|
26
|
-
import './
|
|
27
|
-
import './
|
|
28
|
-
import './
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import './engine/deck-root.js';
|
|
2
|
+
import './engine/deck-transition.js';
|
|
3
|
+
import './engine/deck-help.js';
|
|
4
|
+
import './engine/deck-overview.js';
|
|
5
|
+
import './engine/deck-presenter.js';
|
|
6
|
+
import './engine/deck-notes.js';
|
|
7
|
+
import './layout/deck-cover.js';
|
|
8
|
+
import './layout/deck-section.js';
|
|
9
|
+
import './layout/deck-feature.js';
|
|
10
|
+
import './layout/deck-split.js';
|
|
11
|
+
import './layout/deck-feature-cards.js';
|
|
12
|
+
import './layout/deck-photo.js';
|
|
13
|
+
import './layout/deck-takeaway.js';
|
|
14
|
+
import './structure/deck-bento.js';
|
|
15
|
+
import './structure/deck-cell.js';
|
|
16
|
+
import './structure/deck-point.js';
|
|
17
|
+
import './structure/deck-grid.js';
|
|
18
|
+
import './structure/deck-stack.js';
|
|
19
|
+
import './structure/deck-card.js';
|
|
20
|
+
import './structure/deck-source.js';
|
|
21
|
+
import './text/deck-md.js';
|
|
22
|
+
import './text/deck-callout.js';
|
|
23
|
+
import './text/deck-fit.js';
|
|
24
|
+
import './text/deck-badge.js';
|
|
25
|
+
import './text/deck-kicker.js';
|
|
26
|
+
import './text/deck-punch.js';
|
|
27
|
+
import './data/deck-stat.js';
|
|
28
|
+
import './data/deck-metric.js';
|
|
29
|
+
import './data/deck-tier-list.js';
|
|
30
|
+
import './data/deck-step-list.js';
|
|
31
|
+
import './data/deck-shortcut.js';
|
|
32
|
+
import './data/deck-csv.js';
|
|
33
|
+
import './media/deck-code.js';
|
|
34
|
+
import './media/deck-mermaid.js';
|
|
35
|
+
export type { DeckPlugin, DeckContext } from './engine/deck-root.js';
|
|
36
|
+
export type { DeckCodeHighlighter } from './media/deck-code.js';
|
|
37
|
+
export { setDeckCodeHighlighter } from './media/deck-code-highlighter.js';
|