@codelic/chat-components
Advanced tools
Comparing version 1.4.6 to 1.4.7
@@ -6,3 +6,4 @@ import { PropType } from 'vue'; | ||
declare const _default: import("vue").DefineComponent<{ | ||
/*** @property {MagnetarInstance} magnetarInstance - Magnetarのインスタンス */ | ||
/** @property {MagnetarInstance} magnetarInstance | ||
* - Magnetarのインスタンス */ | ||
magnetarInstance: { | ||
@@ -12,3 +13,4 @@ type: PropType<MagnetarInstance>; | ||
}; | ||
/** @property {FirebaseStorage} dbFirebaseStorage - Firebase Storageのインスタンス */ | ||
/** @property {FirebaseStorage} dbFirebaseStorage | ||
* - Firebase Storageのインスタンス */ | ||
dbFirebaseStorage: { | ||
@@ -18,26 +20,15 @@ type: PropType<FirebaseStorage>; | ||
}; | ||
/*** @property {string} chatRoomId - チャットルームID */ | ||
chatRoomId: { | ||
type: StringConstructor; | ||
}; | ||
/*** @property {string} height - 高さ */ | ||
height: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
/*** @property {object} header - ヘッダーオプション - Magnetarのインスタンス */ | ||
header: { | ||
/**@param userData: | ||
*グループ情報(会社等) | ||
*/ | ||
userData: { | ||
type: PropType<{ | ||
[key: string]: string; | ||
id: string; | ||
name: string; | ||
}>; | ||
default: () => {}; | ||
required: true; | ||
}; | ||
/*** @property {string} headerImg - ヘッダーアイコンのURL - Magnetarのインスタンス */ | ||
headerImg: { | ||
type: StringConstructor; | ||
}; | ||
/** | ||
* グループ情報(会社等) | ||
* @param groupData: String | ||
*/ | ||
* @param groupData: String*/ | ||
groupData: { | ||
@@ -52,15 +43,2 @@ type: PropType<{ | ||
}>; | ||
}; | ||
/** | ||
* 送信者情報(uid) | ||
* @param userData:{ | ||
id: string | ||
name: string | ||
} | ||
*/ | ||
userData: { | ||
type: PropType<{ | ||
id: string; | ||
name: string; | ||
}>; | ||
required: true; | ||
@@ -70,4 +48,5 @@ }; | ||
* 送信先情報 | ||
* 現状は1対1のみ対応 | ||
* @param destinationIinformation: PropType<Group[] | Independent>, | ||
* -現状は1対1のみ対応(12/6現在) | ||
* -chatRoomIdがある場合はそちらを優先する | ||
* @param destinationIinformation | ||
*/ | ||
@@ -77,13 +56,56 @@ destinationIinformation: { | ||
}; | ||
/** @property chatRoomId | ||
* - チャットルームID | ||
* - 未指定の場合は自動switchChatRoomIdが作成される | ||
* */ | ||
chatRoomId: { | ||
type: StringConstructor; | ||
}; | ||
/** @property {object} header | ||
* - ヘッダーオプション*/ | ||
header: { | ||
type: PropType<{ | ||
[key: string]: string; | ||
}>; | ||
default: () => {}; | ||
}; | ||
/*** @property {string} headerImg | ||
* - ヘッダーアイコンのURL - Magnetarのインスタンス */ | ||
headerImg: { | ||
type: StringConstructor; | ||
}; | ||
/** | ||
* title | ||
* @param title: String | ||
*/ | ||
* チャットルームが作成された時のタイトル | ||
* @param title: String*/ | ||
title: { | ||
type: StringConstructor; | ||
}; | ||
/** @property {string} height | ||
* - 高さ */ | ||
height: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
/** @property {Boolean} isSpinner | ||
* - スピナ-を使用するかどうか | ||
* - v-model | ||
* */ | ||
isSpinnerMode: { | ||
type: BooleanConstructor; | ||
required: true; | ||
}; | ||
/** @property {Boolean} test | ||
* - スピナ-用v-model | ||
* - v-model | ||
* */ | ||
modelSpinner: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { | ||
onClickClose: (value: boolean) => void; | ||
"update:modelSpinner": (value: boolean) => void; | ||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
/*** @property {MagnetarInstance} magnetarInstance - Magnetarのインスタンス */ | ||
/** @property {MagnetarInstance} magnetarInstance | ||
* - Magnetarのインスタンス */ | ||
magnetarInstance: { | ||
@@ -93,3 +115,4 @@ type: PropType<MagnetarInstance>; | ||
}; | ||
/** @property {FirebaseStorage} dbFirebaseStorage - Firebase Storageのインスタンス */ | ||
/** @property {FirebaseStorage} dbFirebaseStorage | ||
* - Firebase Storageのインスタンス */ | ||
dbFirebaseStorage: { | ||
@@ -99,26 +122,15 @@ type: PropType<FirebaseStorage>; | ||
}; | ||
/*** @property {string} chatRoomId - チャットルームID */ | ||
chatRoomId: { | ||
type: StringConstructor; | ||
}; | ||
/*** @property {string} height - 高さ */ | ||
height: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
/*** @property {object} header - ヘッダーオプション - Magnetarのインスタンス */ | ||
header: { | ||
/**@param userData: | ||
*グループ情報(会社等) | ||
*/ | ||
userData: { | ||
type: PropType<{ | ||
[key: string]: string; | ||
id: string; | ||
name: string; | ||
}>; | ||
default: () => {}; | ||
required: true; | ||
}; | ||
/*** @property {string} headerImg - ヘッダーアイコンのURL - Magnetarのインスタンス */ | ||
headerImg: { | ||
type: StringConstructor; | ||
}; | ||
/** | ||
* グループ情報(会社等) | ||
* @param groupData: String | ||
*/ | ||
* @param groupData: String*/ | ||
groupData: { | ||
@@ -133,15 +145,2 @@ type: PropType<{ | ||
}>; | ||
}; | ||
/** | ||
* 送信者情報(uid) | ||
* @param userData:{ | ||
id: string | ||
name: string | ||
} | ||
*/ | ||
userData: { | ||
type: PropType<{ | ||
id: string; | ||
name: string; | ||
}>; | ||
required: true; | ||
@@ -151,4 +150,5 @@ }; | ||
* 送信先情報 | ||
* 現状は1対1のみ対応 | ||
* @param destinationIinformation: PropType<Group[] | Independent>, | ||
* -現状は1対1のみ対応(12/6現在) | ||
* -chatRoomIdがある場合はそちらを優先する | ||
* @param destinationIinformation | ||
*/ | ||
@@ -158,10 +158,52 @@ destinationIinformation: { | ||
}; | ||
/** @property chatRoomId | ||
* - チャットルームID | ||
* - 未指定の場合は自動switchChatRoomIdが作成される | ||
* */ | ||
chatRoomId: { | ||
type: StringConstructor; | ||
}; | ||
/** @property {object} header | ||
* - ヘッダーオプション*/ | ||
header: { | ||
type: PropType<{ | ||
[key: string]: string; | ||
}>; | ||
default: () => {}; | ||
}; | ||
/*** @property {string} headerImg | ||
* - ヘッダーアイコンのURL - Magnetarのインスタンス */ | ||
headerImg: { | ||
type: StringConstructor; | ||
}; | ||
/** | ||
* title | ||
* @param title: String | ||
*/ | ||
* チャットルームが作成された時のタイトル | ||
* @param title: String*/ | ||
title: { | ||
type: StringConstructor; | ||
}; | ||
/** @property {string} height | ||
* - 高さ */ | ||
height: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
/** @property {Boolean} isSpinner | ||
* - スピナ-を使用するかどうか | ||
* - v-model | ||
* */ | ||
isSpinnerMode: { | ||
type: BooleanConstructor; | ||
required: true; | ||
}; | ||
/** @property {Boolean} test | ||
* - スピナ-用v-model | ||
* - v-model | ||
* */ | ||
modelSpinner: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
}>> & { | ||
"onUpdate:modelSpinner"?: ((value: boolean) => any) | undefined; | ||
onOnClickClose?: ((value: boolean) => any) | undefined; | ||
@@ -173,3 +215,4 @@ }, { | ||
height: string; | ||
modelSpinner: boolean; | ||
}, {}>; | ||
export default _default; |
@@ -68,4 +68,21 @@ import { PropType } from 'vue'; | ||
}; | ||
/** @property {Boolean} isSpinner | ||
* - スピナ-を使用するかどうか | ||
* - v-model | ||
* */ | ||
isSpinnerMode: { | ||
type: BooleanConstructor; | ||
required: true; | ||
}; | ||
/** @property {Boolean} test | ||
* - スピナ-用v-model | ||
* - v-model | ||
* */ | ||
modelSpinner: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { | ||
deleteRoomData: (value: ChatRoom) => void; | ||
"update:modelSpinner": (value: boolean) => void; | ||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
@@ -134,8 +151,26 @@ /** | ||
}; | ||
/** @property {Boolean} isSpinner | ||
* - スピナ-を使用するかどうか | ||
* - v-model | ||
* */ | ||
isSpinnerMode: { | ||
type: BooleanConstructor; | ||
required: true; | ||
}; | ||
/** @property {Boolean} test | ||
* - スピナ-用v-model | ||
* - v-model | ||
* */ | ||
modelSpinner: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
}>> & { | ||
onDeleteRoomData?: ((value: ChatRoom) => any) | undefined; | ||
"onUpdate:modelSpinner"?: ((value: boolean) => any) | undefined; | ||
}, { | ||
isAutoCreate: boolean; | ||
deleteColor: string; | ||
modelSpinner: boolean; | ||
}, {}>; | ||
export default _default; |
declare const _default: import("vue").DefineComponent<{ | ||
/** | ||
* isSpinner | ||
* @param isSpinner: firebaseApp | ||
* @param isSpinner | ||
*/ | ||
@@ -12,3 +12,3 @@ isSpinner: { | ||
* 色 | ||
* @param initfirebase: FirebaseApp | ||
* @param initfirebase | ||
*/ | ||
@@ -19,6 +19,13 @@ color: { | ||
}; | ||
/** | ||
* ターゲットの要素 | ||
* @param targetElementId | ||
*/ | ||
targetElementId: { | ||
type: StringConstructor; | ||
}; | ||
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
/** | ||
* isSpinner | ||
* @param isSpinner: firebaseApp | ||
* @param isSpinner | ||
*/ | ||
@@ -31,3 +38,3 @@ isSpinner: { | ||
* 色 | ||
* @param initfirebase: FirebaseApp | ||
* @param initfirebase | ||
*/ | ||
@@ -38,2 +45,9 @@ color: { | ||
}; | ||
/** | ||
* ターゲットの要素 | ||
* @param targetElementId | ||
*/ | ||
targetElementId: { | ||
type: StringConstructor; | ||
}; | ||
}>>, { | ||
@@ -40,0 +54,0 @@ color: string; |
export * from './modules'; | ||
export * from './auth'; |
@@ -48,3 +48,3 @@ import { MagnetarInstance } from '@magnetarjs/core'; | ||
* @param registTarget | ||
* - Group[]: Groupを登録する場合 | ||
* - Group[]: Groupを登録する場合(自社の会社も入れておく) | ||
* - Independent[]: 無所属を登録する場合 | ||
@@ -51,0 +51,0 @@ * @param storage |
@@ -1,1 +0,1 @@ | ||
export declare const titleReplace: (title: string, name: string) => string; | ||
export declare const titleReplace: (title?: string, name?: string) => string; |
{ | ||
"name": "@codelic/chat-components", | ||
"private": false, | ||
"version": "1.4.6", | ||
"version": "1.4.7", | ||
"type": "module", | ||
"main": "./src/main.ts", | ||
"main": "./dist/index.js", | ||
"exports": { | ||
".": { | ||
"import": "./src/main.ts" | ||
"import": "./dist/index.js" | ||
}, | ||
@@ -11,0 +11,0 @@ "./*": { |
export * from './modules' | ||
export * from './auth' |
@@ -81,3 +81,3 @@ import { MagnetarInstance } from '@magnetarjs/core' | ||
* @param registTarget | ||
* - Group[]: Groupを登録する場合 | ||
* - Group[]: Groupを登録する場合(自社の会社も入れておく) | ||
* - Independent[]: 無所属を登録する場合 | ||
@@ -84,0 +84,0 @@ * @param storage |
@@ -37,3 +37,7 @@ import { Timestamp } from '@firebase/firestore' | ||
members: Array<string> | ||
) => { | ||
): Promise<{ | ||
id: string | ||
roomName: string | ||
iconColor: string | ||
}> => { | ||
const insertCollection = await dbChatRoomsFactoryModule(magnetar).insert({ | ||
@@ -40,0 +44,0 @@ ...defaultChatRoom(), |
@@ -1,3 +0,4 @@ | ||
export const titleReplace = (title: string, name: string) => { | ||
export const titleReplace = (title?: string, name?: string) => { | ||
if (!title || !name) return '' | ||
return title.replace(new RegExp(name, 'g'), '').replace(/,/g, '') | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3626634
93
13233