@capillarytech/blaze-ui 4.33.9 → 4.33.10
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/CapCollapsibleNavbar/index.js +0 -43
- package/dist/CapCollapsibleNavbar/index.js.map +1 -1
- package/dist/CapCondition/index.js +0 -43
- package/dist/CapCondition/index.js.map +1 -1
- package/dist/CapDatePicker/index.js +0 -43
- package/dist/CapDatePicker/index.js.map +1 -1
- package/dist/CapDateTimePicker/index.js +0 -43
- package/dist/CapDateTimePicker/index.js.map +1 -1
- package/dist/CapDateTimeRangePicker/index.js +0 -43
- package/dist/CapDateTimeRangePicker/index.js.map +1 -1
- package/dist/CapEventCalendar/index.js +0 -43
- package/dist/CapEventCalendar/index.js.map +1 -1
- package/dist/CapLanguageProvider/index.js +0 -43
- package/dist/CapLanguageProvider/index.js.map +1 -1
- package/dist/CapNotificationDropdown/index.js +0 -43
- package/dist/CapNotificationDropdown/index.js.map +1 -1
- package/dist/CapTimePicker/index.js +0 -43
- package/dist/CapTimePicker/index.js.map +1 -1
- package/dist/index.js +0 -43
- package/dist/index.js.map +1 -1
- package/dist/utils/dayjs.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4268,49 +4268,6 @@ _dayjs.default.extend(_utc.default);
|
|
|
4268
4268
|
_dayjs.default.extend(_dayjsTimezoneIanaPlugin.default);
|
|
4269
4269
|
_dayjs.default.extend(_dayjsAbbrTimezone.default);
|
|
4270
4270
|
|
|
4271
|
-
// Verify timezone plugin was properly extended immediately after extending
|
|
4272
|
-
// This ensures we catch issues early and helps with webpack bundling
|
|
4273
|
-
const testInstance = (0, _dayjs.default)();
|
|
4274
|
-
if (typeof testInstance.tz !== 'function') {
|
|
4275
|
-
console.error('[dayjs-timezone-iana-plugin] CRITICAL: Plugin not properly extended!', 'dayjs().tz type:', typeof testInstance.tz, 'This indicates the plugin extension failed. Check plugin import and order.');
|
|
4276
|
-
// Try to re-extend as a fallback (shouldn't be necessary, but helps with bundling issues)
|
|
4277
|
-
try {
|
|
4278
|
-
_dayjs.default.extend(_dayjsTimezoneIanaPlugin.default);
|
|
4279
|
-
const retestInstance = (0, _dayjs.default)();
|
|
4280
|
-
if (typeof retestInstance.tz === 'function') {
|
|
4281
|
-
console.warn('[dayjs-timezone-iana-plugin] Plugin extension succeeded on retry.');
|
|
4282
|
-
}
|
|
4283
|
-
} catch (error) {
|
|
4284
|
-
console.error('[dayjs-timezone-iana-plugin] Failed to extend plugin:', error);
|
|
4285
|
-
}
|
|
4286
|
-
}
|
|
4287
|
-
|
|
4288
|
-
// dayjs-timezone-iana-plugin only provides instance method dayjs().tz(), not static dayjs.tz()
|
|
4289
|
-
// Add a static wrapper function to match the API used throughout the codebase
|
|
4290
|
-
// Check if dayjs.tz is callable as a function (it might be an object with setDefault)
|
|
4291
|
-
const tzIsCallable = typeof _dayjs.default.tz === 'function';
|
|
4292
|
-
if (!tzIsCallable) {
|
|
4293
|
-
// Preserve existing properties (like setDefault) if they exist
|
|
4294
|
-
const existingTz = _dayjs.default.tz;
|
|
4295
|
-
const existingSetDefault = existingTz && typeof existingTz.setDefault === 'function' ? existingTz.setDefault : null;
|
|
4296
|
-
|
|
4297
|
-
// Create a static tz function that wraps the instance method
|
|
4298
|
-
// This wrapper ensures dayjs.tz() works even if the instance method is available
|
|
4299
|
-
_dayjs.default.tz = function (date, tzName) {
|
|
4300
|
-
// Verify instance method is available before using it
|
|
4301
|
-
const instance = !date ? (0, _dayjs.default)() : _dayjs.default.isDayjs(date) ? date : (0, _dayjs.default)(date);
|
|
4302
|
-
if (typeof instance.tz !== 'function') {
|
|
4303
|
-
throw new Error('dayjs().tz() is not available. The timezone plugin may not be properly extended. ' + 'Check that dayjs-timezone-iana-plugin is correctly imported and extended.');
|
|
4304
|
-
}
|
|
4305
|
-
return instance.tz(tzName);
|
|
4306
|
-
};
|
|
4307
|
-
|
|
4308
|
-
// Restore setDefault if it existed
|
|
4309
|
-
if (existingSetDefault) {
|
|
4310
|
-
_dayjs.default.tz.setDefault = existingSetDefault;
|
|
4311
|
-
}
|
|
4312
|
-
}
|
|
4313
|
-
|
|
4314
4271
|
// Core functionality plugins
|
|
4315
4272
|
_dayjs.default.extend(_relativeTime.default);
|
|
4316
4273
|
_dayjs.default.extend(_customParseFormat.default);
|