Skip to content

Commit

Permalink
fix: キャラクターを削除したときに、そのキャラクターに紐づいたダイスコマや文字列コマの削除等ができなくなる不具合を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kizahasi committed Jul 9, 2023
1 parent 3baa191 commit a9a3791
Show file tree
Hide file tree
Showing 17 changed files with 82 additions and 70 deletions.
2 changes: 1 addition & 1 deletion packages/core/dist/cjs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export { isIdRecord } from './internal/ot/record';
export { replace, update, RecordDownOperationElement, RecordTwoWayOperationElement, RecordUpOperationElement, } from './internal/ot/recordOperationElement';
export { RecordDownOperation, RecordUpOperation, RecordTwoWayOperation, } from './internal/ot/recordOperation';
export { DownOperation as TextDownOperation, UpOperation as TextUpOperation, TwoWayOperation as TextTwoWayOperation, apply as applyText, diff as textDiff, toUpOperation as toTextUpOperation, } from './internal/ot/textOperation';
export { client, admin, restrict, RequestedBy, isCharacterOwner, isBoardOwner, isOwner, } from './internal/ot/requestedBy';
export { client, admin, restrict, RequestedBy } from './internal/ot/requestedBy';
export { path, shape } from './internal/ot/shape';
export { updateType, createType, deleteType } from './internal/ot/flocon/piece/log';
export { createLogs } from './internal/ot/flocon/room/log';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/dist/cjs/index.d.ts.map

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

36 changes: 19 additions & 17 deletions packages/core/dist/cjs/index.js

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

2 changes: 1 addition & 1 deletion packages/core/dist/cjs/index.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion packages/core/dist/cjs/internal/ot/requestedBy.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export declare const isAuthorized: ({ requestedBy, participantId, }: {
requestedBy: RequestedBy;
participantId: string | typeof anyValue | typeof none;
}) => boolean;
/** @deprecated Use `isAuthorized` instead. */
export declare const isOwner: ({ requestedBy, ownerParticipantId, }: {
requestedBy: RequestedBy;
ownerParticipantId: string | typeof anyValue | typeof none;
Expand All @@ -36,11 +37,13 @@ export declare const isBoardVisible: ({ boardId, requestedBy, currentRoomState,
requestedBy: RequestedBy;
currentRoomState: State<typeof Room.template>;
}) => boolean;
export declare const characterNotFound = "characterNotFound";
export declare const isCharacterOwner: ({ requestedBy, characterId, currentRoomState, }: {
requestedBy: RequestedBy;
characterId: string | typeof anyValue | typeof none;
currentRoomState: State<typeof Room.template>;
}) => boolean;
}) => boolean | typeof characterNotFound;
export declare const canChangeCharacterValue: (args: Parameters<typeof isCharacterOwner>[0]) => boolean;
type CurrentOwnerParticipant = string | undefined | {
ownerParticipantId: string | undefined;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/core/dist/cjs/internal/ot/requestedBy.d.ts.map

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

2 changes: 1 addition & 1 deletion packages/core/dist/esm/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export { isIdRecord } from './internal/ot/record';
export { replace, update, RecordDownOperationElement, RecordTwoWayOperationElement, RecordUpOperationElement, } from './internal/ot/recordOperationElement';
export { RecordDownOperation, RecordUpOperation, RecordTwoWayOperation, } from './internal/ot/recordOperation';
export { DownOperation as TextDownOperation, UpOperation as TextUpOperation, TwoWayOperation as TextTwoWayOperation, apply as applyText, diff as textDiff, toUpOperation as toTextUpOperation, } from './internal/ot/textOperation';
export { client, admin, restrict, RequestedBy, isCharacterOwner, isBoardOwner, isOwner, } from './internal/ot/requestedBy';
export { client, admin, restrict, RequestedBy } from './internal/ot/requestedBy';
export { path, shape } from './internal/ot/shape';
export { updateType, createType, deleteType } from './internal/ot/flocon/piece/log';
export { createLogs } from './internal/ot/flocon/room/log';
Expand Down
Loading

0 comments on commit a9a3791

Please sign in to comment.