@knapsack/app
Version:
Build Design Systems with Knapsack
22 lines • 785 B
TypeScript
import type { PatternRenderDataWithDemoId } from '../types/endpoints';
/**
* Create a pattern url to view in Knapsack environment
*/
export declare function createPatternUrl({ patternId, templateId, demoId, subPageId, customTabId, }: {
patternId: string;
templateId?: string;
demoId?: string;
subPageId?: string;
customTabId?: string;
}): string;
export declare function getPatternInfoFromUrl(url: string): {
patternId?: string;
templateId?: string;
demoId?: string;
};
/**
* Create a root relative demo url to view in a standalone environment w/no Knapsack UI
* i.e. the link you see when you open a pattern in a new window
*/
export declare function createDemoUrl(params: PatternRenderDataWithDemoId): string;
//# sourceMappingURL=routes.d.ts.map