@timardex/cluemart-shared 1.2.99 → 1.3.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/{chunk-TP5T5JLJ.mjs → chunk-VAOS7UZI.mjs} +6 -1
- package/dist/chunk-VAOS7UZI.mjs.map +1 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.cjs +6 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +2 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.mjs +3 -1
- package/package.json +1 -1
- package/dist/chunk-TP5T5JLJ.mjs.map +0 -1
package/dist/hooks/index.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -115,6 +115,7 @@ __export(index_exports, {
|
|
|
115
115
|
tagOptions: () => tagOptions,
|
|
116
116
|
testersFields: () => testersFields,
|
|
117
117
|
timeFormat: () => timeFormat,
|
|
118
|
+
toNZTime: () => toNZTime,
|
|
118
119
|
truncateText: () => truncateText,
|
|
119
120
|
useAdForm: () => useAdForm,
|
|
120
121
|
useAddParticipantToChat: () => useAddParticipantToChat,
|
|
@@ -621,6 +622,10 @@ import_dayjs.default.extend(import_customParseFormat.default);
|
|
|
621
622
|
import_dayjs.default.extend(import_utc.default);
|
|
622
623
|
import_dayjs.default.extend(import_timezone.default);
|
|
623
624
|
import_dayjs.default.extend(import_isSameOrAfter.default);
|
|
625
|
+
var NZ_TZ = "Pacific/Auckland";
|
|
626
|
+
function toNZTime(date3) {
|
|
627
|
+
return (0, import_dayjs.default)(date3).tz(NZ_TZ).format();
|
|
628
|
+
}
|
|
624
629
|
var formatDate = (dateStr, display = "datetime", timeStr) => {
|
|
625
630
|
const dateTimeStr = timeStr ? `${dateStr} ${timeStr}` : dateStr;
|
|
626
631
|
const dateTime = timeStr ? (0, import_dayjs.default)(dateTimeStr, `${dateFormat} ${timeFormat}`) : (0, import_dayjs.default)(dateStr, dateFormat);
|
|
@@ -7128,6 +7133,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
|
7128
7133
|
tagOptions,
|
|
7129
7134
|
testersFields,
|
|
7130
7135
|
timeFormat,
|
|
7136
|
+
toNZTime,
|
|
7131
7137
|
truncateText,
|
|
7132
7138
|
useAdForm,
|
|
7133
7139
|
useAddParticipantToChat,
|