Skip to content

Commit

Permalink
Bundled output for commit 1d93d14
Browse files Browse the repository at this point in the history
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
  • Loading branch information
flarum-bot committed Oct 22, 2024
1 parent 1d93d14 commit c780474
Show file tree
Hide file tree
Showing 16 changed files with 84 additions and 4 deletions.
43 changes: 43 additions & 0 deletions js/dist-typings/@types/shims.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import Tag from 'flarum/tags/common/models/Tag';
import SettingsPage from 'flarum/forum/components/SettingsPage';
import ItemList from 'flarum/common/utils/ItemList';
import type Mithril from 'mithril';
import EditTagModal from 'flarum/tags/admin/components/EditTagModal';
import Stream from 'flarum/common/utils/Stream';

declare module 'flarum/tags/common/models/Tag' {
export default interface Tag {
richExcerpts(): boolean;
excerptLength(): number;
}
}

declare module 'flarum/forum/components/SettingsPage' {
export default interface SettingsPage {
summariesItems(): ItemList<Mithril.Children>;
showSynopsisExcerpts: Stream<boolean>;
showSynopsisExcerptsOnMobile: Stream<boolean>;
showSynopsisExcerptsLoading: boolean;
showSynopsisExcerptsOnMobileLoading: boolean;
}
}

declare module 'flarum/tags/admin/components/EditTagModal' {
export default interface EditTagModal {
richExcerpts: Stream<boolean>;
excerptLength: Stream<number>;
submitData(): {
excerptLength: any;
richExcerpts: any;
name: string;
slug: string;
description: string;
color: string;
icon: string;
isHidden: boolean;
primary: boolean;
richExcerpts: boolean;
excerptLength: number;
};
}
}
2 changes: 2 additions & 0 deletions js/dist-typings/admin/extend.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const _default: import("flarum/common/extenders/Model").default[];
export default _default;
1 change: 1 addition & 0 deletions js/dist-typings/admin/extenders/extendEditTagModal.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function (): void;
1 change: 1 addition & 0 deletions js/dist-typings/admin/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as extend } from './extend';
3 changes: 3 additions & 0 deletions js/dist-typings/admin/util/typeOptions.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function (): {
[key: string]: string;
};
2 changes: 2 additions & 0 deletions js/dist-typings/common/extend.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const _default: import("flarum/common/extenders/Model").default[];
export default _default;
1 change: 1 addition & 0 deletions js/dist-typings/forum/addSummaryExcerpt.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function addSummaryExcerpt(): void;
1 change: 1 addition & 0 deletions js/dist-typings/forum/addUserPreference.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function (): void;
18 changes: 18 additions & 0 deletions js/dist-typings/forum/components/Excerpt.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Component, { ComponentAttrs } from 'flarum/common/Component';
import Post from 'flarum/common/models/Post';
import type Mithril from 'mithril';
export interface ExcerptAttrs extends ComponentAttrs {
post: Post;
length: number;
richExcerpt: boolean;
}
export default class Excerpt extends Component<ExcerptAttrs> {
post: Post;
length: number;
richExcerpt: boolean;
oninit(vnode: Mithril.Vnode<ExcerptAttrs, this>): void;
view(): JSX.Element;
getContent(): string;
contentRich(): string | null | undefined;
contentPlain(): string | null | undefined;
}
4 changes: 4 additions & 0 deletions js/dist-typings/forum/components/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Excerpt from './Excerpt';
export declare const components: {
Excerpt: typeof Excerpt;
};
2 changes: 2 additions & 0 deletions js/dist-typings/forum/extend.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const _default: import("flarum/common/extenders/Model").default[];
export default _default;
2 changes: 2 additions & 0 deletions js/dist-typings/forum/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as extend } from './extend';
export * from './components';
2 changes: 1 addition & 1 deletion js/dist/admin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/dist/admin.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dist/forum.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/dist/forum.js.map

Large diffs are not rendered by default.

0 comments on commit c780474

Please sign in to comment.