@esposter/shared 2.27.0 → 2.28.0
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/dist/index.d.ts +9 -1
- package/dist/index.js +7012 -111
- package/package.json +9 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import baseSanitizeHtml from "sanitize-html";
|
|
2
3
|
|
|
3
4
|
//#region src/test/constants.d.ts
|
|
4
5
|
declare const AllSpecialValues: {
|
|
@@ -69,6 +70,7 @@ declare const RoutePath: {
|
|
|
69
70
|
readonly Index: "/";
|
|
70
71
|
readonly Login: "/login";
|
|
71
72
|
readonly Messages: (id: string) => string;
|
|
73
|
+
readonly MessagesDraftsSent: "/messages/drafts-sent";
|
|
72
74
|
readonly MessagesFriends: "/messages/friends";
|
|
73
75
|
readonly MessagesIndex: "/messages";
|
|
74
76
|
readonly MessagesInvite: (code: string) => string;
|
|
@@ -2635,6 +2637,12 @@ declare const css: typeof String.raw;
|
|
|
2635
2637
|
//#region src/services/prettier/html.d.ts
|
|
2636
2638
|
declare const html: typeof String.raw;
|
|
2637
2639
|
//#endregion
|
|
2640
|
+
//#region src/services/sanitizeHtml/sanitizeHtml.d.ts
|
|
2641
|
+
declare const sanitizeHtml: (...[html, options]: Parameters<typeof baseSanitizeHtml>) => string;
|
|
2642
|
+
//#endregion
|
|
2643
|
+
//#region src/services/sanitizeHtml/sanitizeMessageHtml.d.ts
|
|
2644
|
+
declare const sanitizeMessageHtml: (html: string) => string;
|
|
2645
|
+
//#endregion
|
|
2638
2646
|
//#region src/services/shared/applyItemMetadataMixin.d.ts
|
|
2639
2647
|
declare const applyItemMetadataMixin: <TBase extends Class<NonNullable<unknown>>>(Base: TBase) => WithMetadata<TBase>;
|
|
2640
2648
|
//#endregion
|
|
@@ -2744,4 +2752,4 @@ declare const UUIDV4_REGEX: RegExp;
|
|
|
2744
2752
|
//#region src/util/id/uuid/uuidValidateV4.d.ts
|
|
2745
2753
|
declare const uuidValidateV4: (uuid: string) => boolean;
|
|
2746
2754
|
//#endregion
|
|
2747
|
-
export { AllSpecialValues, BuildTuple, ClassifiedMentions, CreateUniqueArraySchema, DeepOmit, DeepOptionalUndefined, ExcludeFunctionProperties, ForbiddenError, FunctionProperties, GetArrayProps, GetObjectProps, GetPaths, GetPrimitiveProps, GetProperties, ID_SEPARATOR, InvalidOperationError, ItemEntityType, ItemEntityTypePropertyNames, ItemMetadata, ItemMetadataPropertyNames, KnownKeys, MAX_READ_LIMIT, MENTION_EVERYONE_ID, MENTION_HERE_ID, MENTION_ID_ATTRIBUTE, MENTION_ITEM_TYPE_ATTRIBUTE, MENTION_LABEL_ATTRIBUTE, MENTION_TYPE, MENTION_TYPE_ATTRIBUTE, MapValue, MentionType, MergeObjectsStrict, NIL, NotFoundError, NotInitializedError, Operation, PropertyNames, RoutePath, SITE_NAME, SURVEY_DISPLAY_NAME, Serializable, SkipFirst, TakeFirst, TakeOne, ToData, TupleSlice, TupleSplit, TupleSplitHead, TupleSplitTail, UUIDV4_REGEX, UniqueArraySchemaKey, WithMetadata, applyItemMetadataMixin, capitalize, checkIsPlainObject, classifyMentions, createItemEntityTypeSchema, createNormalizedStringSchema, createUniqueArraySchema, css, exhaustiveGuard, getIsServer, getMentions, getPropertyNames, getRawData, getResult, getResultAsync, hrtime, html, itemMetadataSchema, jsonDateParse, mergeObjectsStrict, noop, normalizeString, now, streamToText, takeOne, toAppError, toKebabCase, toRawDeep, truncate, uncapitalize, uuidValidateV4, withFinalizer, withFinalizerAsync };
|
|
2755
|
+
export { AllSpecialValues, BuildTuple, ClassifiedMentions, CreateUniqueArraySchema, DeepOmit, DeepOptionalUndefined, ExcludeFunctionProperties, ForbiddenError, FunctionProperties, GetArrayProps, GetObjectProps, GetPaths, GetPrimitiveProps, GetProperties, ID_SEPARATOR, InvalidOperationError, ItemEntityType, ItemEntityTypePropertyNames, ItemMetadata, ItemMetadataPropertyNames, KnownKeys, MAX_READ_LIMIT, MENTION_EVERYONE_ID, MENTION_HERE_ID, MENTION_ID_ATTRIBUTE, MENTION_ITEM_TYPE_ATTRIBUTE, MENTION_LABEL_ATTRIBUTE, MENTION_TYPE, MENTION_TYPE_ATTRIBUTE, MapValue, MentionType, MergeObjectsStrict, NIL, NotFoundError, NotInitializedError, Operation, PropertyNames, RoutePath, SITE_NAME, SURVEY_DISPLAY_NAME, Serializable, SkipFirst, TakeFirst, TakeOne, ToData, TupleSlice, TupleSplit, TupleSplitHead, TupleSplitTail, UUIDV4_REGEX, UniqueArraySchemaKey, WithMetadata, applyItemMetadataMixin, capitalize, checkIsPlainObject, classifyMentions, createItemEntityTypeSchema, createNormalizedStringSchema, createUniqueArraySchema, css, exhaustiveGuard, getIsServer, getMentions, getPropertyNames, getRawData, getResult, getResultAsync, hrtime, html, itemMetadataSchema, jsonDateParse, mergeObjectsStrict, noop, normalizeString, now, sanitizeHtml, sanitizeMessageHtml, streamToText, takeOne, toAppError, toKebabCase, toRawDeep, truncate, uncapitalize, uuidValidateV4, withFinalizer, withFinalizerAsync };
|