@getmicdrop/svelte-components 5.16.2 → 5.17.1
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/calendar/AboutShow/AboutShow.svelte +19 -4
- package/dist/calendar/AboutShow/AboutShow.svelte.d.ts +2 -0
- package/dist/calendar/AboutShow/AboutShow.svelte.d.ts.map +1 -1
- package/dist/calendar/FAQs/FAQs.svelte +3 -1
- package/dist/calendar/FAQs/FAQs.svelte.d.ts +2 -0
- package/dist/calendar/FAQs/FAQs.svelte.d.ts.map +1 -1
- package/dist/calendar/OrderSummary/OrderSummary.svelte +64 -34
- package/dist/calendar/OrderSummary/OrderSummary.svelte.d.ts +2 -0
- package/dist/calendar/OrderSummary/OrderSummary.svelte.d.ts.map +1 -1
- package/dist/components/Layout/Stack.spec.js +1 -1
- package/dist/datetime/__tests__/format.test.js +1 -1
- package/dist/datetime/__tests__/parse.test.js +1 -1
- package/dist/datetime/__tests__/timezone.test.js +1 -1
- package/dist/datetime/parse.js +1 -1
- package/dist/datetime/timezone.d.ts.map +1 -1
- package/dist/datetime/timezone.js +1 -2
- package/dist/forms/createFormStore.svelte.d.ts +1 -1
- package/dist/forms/createFormStore.svelte.d.ts.map +1 -1
- package/dist/forms/createFormStore.svelte.js +0 -1
- package/dist/recipes/CropImage/CropImage.svelte +33 -11
- package/dist/recipes/CropImage/CropImage.svelte.d.ts +15 -3
- package/dist/recipes/CropImage/CropImage.svelte.d.ts.map +1 -1
- package/dist/recipes/ImageUploader/ImageUploader.svelte +34 -11
- package/dist/recipes/ImageUploader/ImageUploader.svelte.d.ts +17 -9
- package/dist/recipes/ImageUploader/ImageUploader.svelte.d.ts.map +1 -1
- package/dist/recipes/SuperLogin/SuperLogin.spec.js +21 -21
- package/dist/recipes/SuperLogin/SuperLogin.svelte +143 -77
- package/dist/recipes/SuperLogin/SuperLogin.svelte.d.ts +2 -0
- package/dist/recipes/SuperLogin/SuperLogin.svelte.d.ts.map +1 -1
- package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.spec.js +19 -19
- package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.svelte +5 -8
- package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.svelte.d.ts.map +1 -1
- package/dist/services/EventService.d.ts +1 -1
- package/dist/services/EventService.d.ts.map +1 -1
- package/dist/services/EventService.js +6 -2
- package/dist/services/EventService.spec.js +1 -1
- package/dist/services/ShowService.js +11 -10
- package/dist/services/ShowService.spec.js +11 -11
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +24 -27
- package/dist/telemetry.server.js +6 -6
- package/dist/telemetry.server.spec.js +3 -4
- package/dist/telemetry.spec.js +3 -4
- package/dist/utils/apiConfig.js +12 -15
- package/dist/utils/apiConfig.spec.js +2 -2
- package/package.json +37 -41
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventService.d.ts","sourceRoot":"","sources":["../../src/lib/services/EventService.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EventService.d.ts","sourceRoot":"","sources":["../../src/lib/services/EventService.js"],"names":[],"mappings":"AAKA,+DAqBC;AAED,yEAYC;AAED,4DAkBC;AAED,2DAgBC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { addDays, startOfWeek } from "date-fns";
|
|
2
|
+
import { buildApiUrl } from "../utils/apiConfig";
|
|
2
3
|
|
|
3
4
|
let mockEvents = [];
|
|
4
5
|
|
|
5
|
-
export async function fetchEventsFromAPI() {
|
|
6
|
+
export async function fetchEventsFromAPI(venueId) {
|
|
6
7
|
try {
|
|
7
|
-
const
|
|
8
|
+
const url = venueId
|
|
9
|
+
? buildApiUrl(`/api/v2/public/events/venue/${venueId}`)
|
|
10
|
+
: buildApiUrl("/api/v2/public/events/venue");
|
|
11
|
+
const response = await fetch(url);
|
|
8
12
|
if (response.ok) {
|
|
9
13
|
const events = await response.json();
|
|
10
14
|
return events.map((event) => ({
|
|
@@ -30,7 +30,7 @@ describe('EventService', () => {
|
|
|
30
30
|
const events = await fetchEventsFromAPI();
|
|
31
31
|
|
|
32
32
|
expect(global.fetch).toHaveBeenCalledWith(
|
|
33
|
-
'https://get-micdrop.com/api/public/
|
|
33
|
+
'https://get-micdrop.com/api/v2/public/events/venue'
|
|
34
34
|
);
|
|
35
35
|
expect(events).toHaveLength(3);
|
|
36
36
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { API_BASE_URL,
|
|
1
|
+
import { API_BASE_URL, USE_V2_API, buildApiUrl, buildPerformerInviteUrl, getPerformerInviteMethod } from "../utils/apiConfig";
|
|
2
2
|
import { getPerformerToken } from "../utils/utils";
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -10,9 +10,9 @@ import { getPerformerToken } from "../utils/utils";
|
|
|
10
10
|
export async function acceptInvite(inviteId, message = "") {
|
|
11
11
|
try {
|
|
12
12
|
const response = await fetch(
|
|
13
|
-
|
|
13
|
+
buildPerformerInviteUrl(inviteId, "accept"),
|
|
14
14
|
{
|
|
15
|
-
method: "
|
|
15
|
+
method: getPerformerInviteMethod("accept"),
|
|
16
16
|
headers: {
|
|
17
17
|
"Content-Type": "application/json",
|
|
18
18
|
},
|
|
@@ -40,9 +40,9 @@ export async function acceptInvite(inviteId, message = "") {
|
|
|
40
40
|
export async function declineInvite(inviteId, message = "") {
|
|
41
41
|
try {
|
|
42
42
|
const response = await fetch(
|
|
43
|
-
|
|
43
|
+
buildPerformerInviteUrl(inviteId, "decline"),
|
|
44
44
|
{
|
|
45
|
-
method: "
|
|
45
|
+
method: getPerformerInviteMethod("decline"),
|
|
46
46
|
headers: {
|
|
47
47
|
"Content-Type": "application/json",
|
|
48
48
|
},
|
|
@@ -70,9 +70,9 @@ export async function declineInvite(inviteId, message = "") {
|
|
|
70
70
|
export async function cancelInvite(inviteId, message = "") {
|
|
71
71
|
try {
|
|
72
72
|
const response = await fetch(
|
|
73
|
-
|
|
73
|
+
buildPerformerInviteUrl(inviteId, "cancel"),
|
|
74
74
|
{
|
|
75
|
-
method: "
|
|
75
|
+
method: getPerformerInviteMethod("cancel"),
|
|
76
76
|
headers: {
|
|
77
77
|
"Content-Type": "application/json",
|
|
78
78
|
},
|
|
@@ -101,9 +101,10 @@ export async function sendVenueMessage(inviteId, message) {
|
|
|
101
101
|
try {
|
|
102
102
|
const token = getPerformerToken();
|
|
103
103
|
|
|
104
|
-
const
|
|
105
|
-
buildApiUrl(
|
|
106
|
-
{
|
|
104
|
+
const url = USE_V2_API
|
|
105
|
+
? buildApiUrl(`/api/v2/performer/invites/${inviteId}/message`)
|
|
106
|
+
: buildApiUrl(`/api/performer/sendVenueMessage/${inviteId}`);
|
|
107
|
+
const response = await fetch(url, {
|
|
107
108
|
method: "POST",
|
|
108
109
|
headers: {
|
|
109
110
|
"Content-Type": "application/json",
|
|
@@ -3,16 +3,16 @@ import { describe, it, expect, vi, beforeEach } from 'vitest';
|
|
|
3
3
|
// Mock the utility modules before imports
|
|
4
4
|
vi.mock('$lib/utils/apiConfig', () => ({
|
|
5
5
|
API_BASE_URL: 'https://get-micdrop.com',
|
|
6
|
-
|
|
7
|
-
ACCEPT_EVENT_PERFORMER_INVITE: '/api/public/acceptEventPerformerInvite',
|
|
8
|
-
DECLINE_EVENT_PERFORMER_INVITE: '/api/public/declineEventPerformerInvite',
|
|
9
|
-
CANCEL_EVENT_PERFORMER_INVITE: '/api/public/cancelEventPerformerInvite',
|
|
10
|
-
SEND_VENUE_MESSAGE: '/api/performer/sendVenueMessage',
|
|
11
|
-
},
|
|
6
|
+
USE_V2_API: false,
|
|
12
7
|
buildApiUrl: (path) => {
|
|
13
8
|
const cleanPath = path.startsWith('/') ? path : `/${path}`;
|
|
14
9
|
return `https://get-micdrop.com${cleanPath}`;
|
|
15
10
|
},
|
|
11
|
+
buildPerformerInviteUrl: (inviteId, action) => {
|
|
12
|
+
const v2Action = action === 'accept' ? 'confirm' : action;
|
|
13
|
+
return `https://get-micdrop.com/api/v2/event-performers/${inviteId}/${v2Action}`;
|
|
14
|
+
},
|
|
15
|
+
getPerformerInviteMethod: (action) => action === 'cancel' ? 'PUT' : 'POST',
|
|
16
16
|
}));
|
|
17
17
|
|
|
18
18
|
vi.mock('$lib/utils/utils', () => ({
|
|
@@ -43,9 +43,9 @@ describe('ShowService', () => {
|
|
|
43
43
|
await acceptInvite('123');
|
|
44
44
|
|
|
45
45
|
expect(global.fetch).toHaveBeenCalledWith(
|
|
46
|
-
'https://get-micdrop.com/api/
|
|
46
|
+
'https://get-micdrop.com/api/v2/event-performers/123/confirm',
|
|
47
47
|
expect.objectContaining({
|
|
48
|
-
method: '
|
|
48
|
+
method: 'POST',
|
|
49
49
|
headers: { 'Content-Type': 'application/json' },
|
|
50
50
|
})
|
|
51
51
|
);
|
|
@@ -126,9 +126,9 @@ describe('ShowService', () => {
|
|
|
126
126
|
await declineInvite('456');
|
|
127
127
|
|
|
128
128
|
expect(global.fetch).toHaveBeenCalledWith(
|
|
129
|
-
'https://get-micdrop.com/api/
|
|
129
|
+
'https://get-micdrop.com/api/v2/event-performers/456/decline',
|
|
130
130
|
expect.objectContaining({
|
|
131
|
-
method: '
|
|
131
|
+
method: 'POST',
|
|
132
132
|
})
|
|
133
133
|
);
|
|
134
134
|
});
|
|
@@ -192,7 +192,7 @@ describe('ShowService', () => {
|
|
|
192
192
|
await cancelInvite('789');
|
|
193
193
|
|
|
194
194
|
expect(global.fetch).toHaveBeenCalledWith(
|
|
195
|
-
'https://get-micdrop.com/api/
|
|
195
|
+
'https://get-micdrop.com/api/v2/event-performers/789/cancel',
|
|
196
196
|
expect.objectContaining({
|
|
197
197
|
method: 'PUT',
|
|
198
198
|
})
|
package/dist/telemetry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/lib/telemetry.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/lib/telemetry.js"],"names":[],"mappings":"AAmDA;;;GAGG;AACH,6CAFW,MAAM,QAsIhB;AAGD,wDAcC;AAGD;;SAMC;AAGD,mEAeC;AAGD,kEAcC;AAGD,2DAmBC;AAGD,4GAkBC;AAGD,kEAeC;AAGD,uEAeC;AAGD,mDASC;AAgCD;;;GAGG;AACH,2CAkBC;AAGD;;;;;;;;;EAEC"}
|
package/dist/telemetry.js
CHANGED
|
@@ -7,13 +7,12 @@ import { FetchInstrumentation } from '@opentelemetry/instrumentation-fetch';
|
|
|
7
7
|
import { UserInteractionInstrumentation } from '@opentelemetry/instrumentation-user-interaction';
|
|
8
8
|
import { XMLHttpRequestInstrumentation } from '@opentelemetry/instrumentation-xml-http-request';
|
|
9
9
|
import { B3Propagator } from '@opentelemetry/propagator-b3';
|
|
10
|
-
import {
|
|
10
|
+
import { resourceFromAttributes } from '@opentelemetry/resources';
|
|
11
11
|
import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base';
|
|
12
12
|
import { WebTracerProvider } from '@opentelemetry/sdk-trace-web';
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
SEMRESATTRS_SERVICE_VERSION,
|
|
14
|
+
ATTR_SERVICE_NAME,
|
|
15
|
+
ATTR_SERVICE_VERSION,
|
|
17
16
|
} from '@opentelemetry/semantic-conventions';
|
|
18
17
|
|
|
19
18
|
/**
|
|
@@ -64,17 +63,25 @@ export function initTelemetry(customConfig = {}) {
|
|
|
64
63
|
|
|
65
64
|
try {
|
|
66
65
|
// Create resource with service information
|
|
67
|
-
const resource =
|
|
68
|
-
[
|
|
69
|
-
[
|
|
70
|
-
|
|
66
|
+
const resource = resourceFromAttributes({
|
|
67
|
+
[ATTR_SERVICE_NAME]: config.serviceName,
|
|
68
|
+
[ATTR_SERVICE_VERSION]: config.serviceVersion,
|
|
69
|
+
'deployment.environment': config.environment,
|
|
71
70
|
'browser.user_agent': navigator.userAgent,
|
|
72
71
|
'browser.language': navigator.language,
|
|
73
72
|
'browser.platform': navigator.platform,
|
|
74
73
|
'portal.type': config.portalType,
|
|
75
74
|
});
|
|
76
75
|
|
|
77
|
-
//
|
|
76
|
+
// Configure OTLP exporter
|
|
77
|
+
const exporter = new OTLPTraceExporter({
|
|
78
|
+
url: config.otlpEndpoint,
|
|
79
|
+
headers: {
|
|
80
|
+
'Content-Type': 'application/json',
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
// Create tracer provider with span processors
|
|
78
85
|
tracerProvider = new WebTracerProvider({
|
|
79
86
|
resource,
|
|
80
87
|
sampler: {
|
|
@@ -85,26 +92,16 @@ export function initTelemetry(customConfig = {}) {
|
|
|
85
92
|
};
|
|
86
93
|
},
|
|
87
94
|
},
|
|
95
|
+
spanProcessors: [
|
|
96
|
+
new BatchSpanProcessor(exporter, {
|
|
97
|
+
maxQueueSize: 100,
|
|
98
|
+
maxExportBatchSize: 50,
|
|
99
|
+
scheduledDelayMillis: 500,
|
|
100
|
+
exportTimeoutMillis: 30000,
|
|
101
|
+
}),
|
|
102
|
+
],
|
|
88
103
|
});
|
|
89
104
|
|
|
90
|
-
// Configure OTLP exporter
|
|
91
|
-
const exporter = new OTLPTraceExporter({
|
|
92
|
-
url: config.otlpEndpoint,
|
|
93
|
-
headers: {
|
|
94
|
-
'Content-Type': 'application/json',
|
|
95
|
-
},
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
// Add batch span processor
|
|
99
|
-
tracerProvider.addSpanProcessor(
|
|
100
|
-
new BatchSpanProcessor(exporter, {
|
|
101
|
-
maxQueueSize: 100,
|
|
102
|
-
maxExportBatchSize: 50,
|
|
103
|
-
scheduledDelayMillis: 500,
|
|
104
|
-
exportTimeoutMillis: 30000,
|
|
105
|
-
})
|
|
106
|
-
);
|
|
107
|
-
|
|
108
105
|
// Set global provider
|
|
109
106
|
tracerProvider.register({
|
|
110
107
|
contextManager: new ZoneContextManager(),
|
package/dist/telemetry.server.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { registerInstrumentations } from '@opentelemetry/instrumentation';
|
|
4
4
|
import { NodeSDK } from '@opentelemetry/sdk-node';
|
|
5
5
|
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { resourceFromAttributes } from '@opentelemetry/resources';
|
|
7
|
+
import { ATTR_SERVICE_NAME, ATTR_SERVICE_VERSION } from '@opentelemetry/semantic-conventions';
|
|
8
8
|
import { HttpInstrumentation } from '@opentelemetry/instrumentation-http';
|
|
9
9
|
import { FetchInstrumentation } from '@opentelemetry/instrumentation-fetch';
|
|
10
10
|
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
|
|
@@ -32,10 +32,10 @@ export function initServerTelemetry() {
|
|
|
32
32
|
|
|
33
33
|
try {
|
|
34
34
|
sdk = new NodeSDK({
|
|
35
|
-
resource:
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
|
|
35
|
+
resource: resourceFromAttributes({
|
|
36
|
+
[ATTR_SERVICE_NAME]: SERVER_TELEMETRY_CONFIG.serviceName,
|
|
37
|
+
[ATTR_SERVICE_VERSION]: SERVER_TELEMETRY_CONFIG.serviceVersion,
|
|
38
|
+
'deployment.environment': SERVER_TELEMETRY_CONFIG.environment,
|
|
39
39
|
'portal.type': 'performers'
|
|
40
40
|
}),
|
|
41
41
|
traceExporter: new OTLPTraceExporter({
|
|
@@ -21,13 +21,12 @@ vi.mock('@opentelemetry/exporter-trace-otlp-http', () => ({
|
|
|
21
21
|
}));
|
|
22
22
|
|
|
23
23
|
vi.mock('@opentelemetry/resources', () => ({
|
|
24
|
-
|
|
24
|
+
resourceFromAttributes: vi.fn((attrs) => attrs),
|
|
25
25
|
}));
|
|
26
26
|
|
|
27
27
|
vi.mock('@opentelemetry/semantic-conventions', () => ({
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
SEMRESATTRS_DEPLOYMENT_ENVIRONMENT: 'deployment.environment',
|
|
28
|
+
ATTR_SERVICE_NAME: 'service.name',
|
|
29
|
+
ATTR_SERVICE_VERSION: 'service.version',
|
|
31
30
|
}));
|
|
32
31
|
|
|
33
32
|
vi.mock('@opentelemetry/instrumentation-http', () => ({
|
package/dist/telemetry.spec.js
CHANGED
|
@@ -33,13 +33,12 @@ vi.mock('@opentelemetry/exporter-trace-otlp-http', () => ({
|
|
|
33
33
|
}));
|
|
34
34
|
|
|
35
35
|
vi.mock('@opentelemetry/resources', () => ({
|
|
36
|
-
|
|
36
|
+
resourceFromAttributes: vi.fn((attrs) => attrs),
|
|
37
37
|
}));
|
|
38
38
|
|
|
39
39
|
vi.mock('@opentelemetry/semantic-conventions', () => ({
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
SEMRESATTRS_DEPLOYMENT_ENVIRONMENT: 'deployment.environment',
|
|
40
|
+
ATTR_SERVICE_NAME: 'service.name',
|
|
41
|
+
ATTR_SERVICE_VERSION: 'service.version',
|
|
43
42
|
}));
|
|
44
43
|
|
|
45
44
|
vi.mock('@opentelemetry/instrumentation-document-load', () => ({
|
package/dist/utils/apiConfig.js
CHANGED
|
@@ -47,28 +47,28 @@ export const API_ENDPOINTS_V1 = {
|
|
|
47
47
|
|
|
48
48
|
export const API_ENDPOINTS_V2 = {
|
|
49
49
|
// Auth
|
|
50
|
-
LOGIN: '/api/
|
|
50
|
+
LOGIN: '/api/v2/auth/login',
|
|
51
51
|
|
|
52
52
|
// Performer
|
|
53
|
-
PERFORMER_PROFILE: '/api/performer/
|
|
54
|
-
MODIFY_PERFORMER_PROFILE: '/api/performer/
|
|
55
|
-
PERFORMER_AVAILABILITIES: '/api/performer/
|
|
56
|
-
GET_EVENT_PERFORMER_INVITES: '/api/performer/
|
|
57
|
-
GET_ROSTER_EVENT_PERFORMERS_FOR_USER: '/api/
|
|
53
|
+
PERFORMER_PROFILE: '/api/v2/performer/profile',
|
|
54
|
+
MODIFY_PERFORMER_PROFILE: '/api/v2/performer/profile',
|
|
55
|
+
PERFORMER_AVAILABILITIES: '/api/v2/performer/availabilities',
|
|
56
|
+
GET_EVENT_PERFORMER_INVITES: '/api/v2/performer/invites',
|
|
57
|
+
GET_ROSTER_EVENT_PERFORMERS_FOR_USER: '/api/v2/performers/roster',
|
|
58
58
|
|
|
59
59
|
// Public
|
|
60
|
-
GET_EVENTS_FOR_VENUE: '/api/public/
|
|
61
|
-
GET_VENUE: '/api/public/
|
|
62
|
-
SEND_VENUE_MESSAGE: '/api/performer/
|
|
63
|
-
REJECT_ROSTER_INVITE: '/api/public/
|
|
64
|
-
REMOVE_VENUE_FROM_ROSTER: '/api/performer/
|
|
60
|
+
GET_EVENTS_FOR_VENUE: '/api/v2/public/events/venue',
|
|
61
|
+
GET_VENUE: '/api/v2/public/venues',
|
|
62
|
+
SEND_VENUE_MESSAGE: '/api/v2/performer/invites',
|
|
63
|
+
REJECT_ROSTER_INVITE: '/api/v2/public/roster-invites',
|
|
64
|
+
REMOVE_VENUE_FROM_ROSTER: '/api/v2/performer/venues',
|
|
65
65
|
|
|
66
66
|
// V2 Event Performer endpoints
|
|
67
67
|
CONFIRM_EVENT_PERFORMER: '/api/v2/event-performers',
|
|
68
68
|
DECLINE_EVENT_PERFORMER: '/api/v2/event-performers',
|
|
69
69
|
ACCEPT_EVENT_PERFORMER_INVITE: '/api/v2/event-performers',
|
|
70
70
|
DECLINE_EVENT_PERFORMER_INVITE: '/api/v2/event-performers',
|
|
71
|
-
CANCEL_EVENT_PERFORMER_INVITE: '/api/
|
|
71
|
+
CANCEL_EVENT_PERFORMER_INVITE: '/api/v2/event-performers',
|
|
72
72
|
|
|
73
73
|
// Ticketing
|
|
74
74
|
TICKETING_EVENTS: '/ticketing/events',
|
|
@@ -96,9 +96,6 @@ export function buildV2PerformerActionUrl(eventPerformerId, action) {
|
|
|
96
96
|
export function buildPerformerInviteUrl(inviteId, action) {
|
|
97
97
|
if (USE_V2_API) {
|
|
98
98
|
const v2Action = action === 'accept' ? 'confirm' : action;
|
|
99
|
-
if (v2Action === 'cancel') {
|
|
100
|
-
return buildApiUrl(`${API_ENDPOINTS_V1.CANCEL_EVENT_PERFORMER_INVITE}/${inviteId}`);
|
|
101
|
-
}
|
|
102
99
|
return buildApiUrl(`/api/v2/event-performers/${inviteId}/${v2Action}`);
|
|
103
100
|
}
|
|
104
101
|
|
|
@@ -193,12 +193,12 @@ describe('apiConfig', () => {
|
|
|
193
193
|
expect(url).toContain('/api/v2/event-performers/456/decline');
|
|
194
194
|
});
|
|
195
195
|
|
|
196
|
-
it('buildPerformerInviteUrl uses
|
|
196
|
+
it('buildPerformerInviteUrl uses V2 endpoint for cancel when USE_V2_API is true', async () => {
|
|
197
197
|
import.meta.env.VITE_API_VERSION = 'v2';
|
|
198
198
|
const module = await import('./apiConfig');
|
|
199
199
|
|
|
200
200
|
const url = module.buildPerformerInviteUrl(789, 'cancel');
|
|
201
|
-
expect(url).toContain('/api/
|
|
201
|
+
expect(url).toContain('/api/v2/event-performers/789/cancel');
|
|
202
202
|
});
|
|
203
203
|
|
|
204
204
|
it('getPerformerInviteMethod returns POST for V2 non-cancel actions', async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getmicdrop/svelte-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.17.1",
|
|
4
4
|
"description": "Shared component library for Micdrop applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -197,34 +197,30 @@
|
|
|
197
197
|
"svelte": "^5.0.0"
|
|
198
198
|
},
|
|
199
199
|
"dependencies": {
|
|
200
|
-
"@
|
|
201
|
-
"@fullcalendar/daygrid": "^6.1.19",
|
|
202
|
-
"@fullcalendar/interaction": "^6.1.19",
|
|
203
|
-
"@googlemaps/js-api-loader": "^1.16.10",
|
|
200
|
+
"@googlemaps/js-api-loader": "^2.0.2",
|
|
204
201
|
"@opentelemetry/api": "^1.9.0",
|
|
205
|
-
"@opentelemetry/auto-instrumentations-node": "^0.
|
|
206
|
-
"@opentelemetry/auto-instrumentations-web": "^0.
|
|
207
|
-
"@opentelemetry/context-zone": "^
|
|
208
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.
|
|
209
|
-
"@opentelemetry/instrumentation-document-load": "^0.
|
|
210
|
-
"@opentelemetry/instrumentation-fetch": "^0.
|
|
211
|
-
"@opentelemetry/instrumentation-http": "^0.
|
|
212
|
-
"@opentelemetry/instrumentation-user-interaction": "^0.
|
|
213
|
-
"@opentelemetry/instrumentation-xml-http-request": "^0.
|
|
214
|
-
"@opentelemetry/propagator-b3": "^
|
|
215
|
-
"@opentelemetry/resources": "^
|
|
216
|
-
"@opentelemetry/sdk-node": "^0.
|
|
217
|
-
"@opentelemetry/sdk-trace-base": "^
|
|
218
|
-
"@opentelemetry/sdk-trace-web": "^
|
|
219
|
-
"@opentelemetry/semantic-conventions": "^1.
|
|
202
|
+
"@opentelemetry/auto-instrumentations-node": "^0.70.0",
|
|
203
|
+
"@opentelemetry/auto-instrumentations-web": "^0.57.0",
|
|
204
|
+
"@opentelemetry/context-zone": "^2.5.1",
|
|
205
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.212.0",
|
|
206
|
+
"@opentelemetry/instrumentation-document-load": "^0.57.0",
|
|
207
|
+
"@opentelemetry/instrumentation-fetch": "^0.212.0",
|
|
208
|
+
"@opentelemetry/instrumentation-http": "^0.212.0",
|
|
209
|
+
"@opentelemetry/instrumentation-user-interaction": "^0.56.0",
|
|
210
|
+
"@opentelemetry/instrumentation-xml-http-request": "^0.212.0",
|
|
211
|
+
"@opentelemetry/propagator-b3": "^2.5.1",
|
|
212
|
+
"@opentelemetry/resources": "^2.5.1",
|
|
213
|
+
"@opentelemetry/sdk-node": "^0.212.0",
|
|
214
|
+
"@opentelemetry/sdk-trace-base": "^2.5.1",
|
|
215
|
+
"@opentelemetry/sdk-trace-web": "^2.5.1",
|
|
216
|
+
"@opentelemetry/semantic-conventions": "^1.39.0",
|
|
220
217
|
"@testing-library/user-event": "^14.5.2",
|
|
221
218
|
"carbon-icons-svelte": "^13.7.0",
|
|
222
219
|
"check-password-strength": "^3.0.0",
|
|
223
220
|
"clsx": "^2.1.1",
|
|
224
221
|
"cookie": "^1.0.2",
|
|
225
|
-
"date-fns": "^
|
|
222
|
+
"date-fns": "^4.1.0",
|
|
226
223
|
"date-fns-tz": "^3.2.0",
|
|
227
|
-
"dotenv": "^16.4.7",
|
|
228
224
|
"filepond": "^4.32.10",
|
|
229
225
|
"filepond-plugin-file-validate-size": "^2.2.8",
|
|
230
226
|
"filepond-plugin-file-validate-type": "^1.2.9",
|
|
@@ -235,20 +231,15 @@
|
|
|
235
231
|
"svelte-easy-crop": "^5.0.0",
|
|
236
232
|
"svelte-filepond": "^0.2.2",
|
|
237
233
|
"svelte-sonner": "^1.0.7",
|
|
238
|
-
"tailwind-merge": "^
|
|
239
|
-
"zod": "^3.
|
|
234
|
+
"tailwind-merge": "^3.5.0",
|
|
235
|
+
"zod": "^4.3.6"
|
|
240
236
|
},
|
|
241
237
|
"devDependencies": {
|
|
242
|
-
"@cypress/code-coverage": "^
|
|
243
|
-
"@eslint/js": "^
|
|
244
|
-
"@storybook/addon-
|
|
245
|
-
"@storybook/
|
|
246
|
-
"@storybook/
|
|
247
|
-
"@storybook/addon-svelte-csf": "^5.0.10",
|
|
248
|
-
"@storybook/blocks": "^8.6.15",
|
|
249
|
-
"@storybook/svelte": "^10.1.11",
|
|
250
|
-
"@storybook/sveltekit": "^10.1.11",
|
|
251
|
-
"@storybook/test": "^8.6.15",
|
|
238
|
+
"@cypress/code-coverage": "^4.0.0",
|
|
239
|
+
"@eslint/js": "^10.0.1",
|
|
240
|
+
"@storybook/addon-svelte-csf": "^5.0.11",
|
|
241
|
+
"@storybook/svelte": "^10.2.11",
|
|
242
|
+
"@storybook/sveltekit": "^10.2.11",
|
|
252
243
|
"@sveltejs/adapter-auto": "^3.2.2",
|
|
253
244
|
"@sveltejs/kit": "^2.50.0",
|
|
254
245
|
"@sveltejs/package": "^2.5.7",
|
|
@@ -264,20 +255,21 @@
|
|
|
264
255
|
"@vitest/coverage-istanbul": "^4.0.16",
|
|
265
256
|
"@vitest/coverage-v8": "^4.0.16",
|
|
266
257
|
"@vitest/ui": "^4.0.16",
|
|
267
|
-
"chromatic": "^
|
|
258
|
+
"chromatic": "^15.2.0",
|
|
268
259
|
"cypress": "^15.1.0",
|
|
269
|
-
"
|
|
270
|
-
"eslint
|
|
260
|
+
"dotenv": "^17.3.1",
|
|
261
|
+
"eslint": "^10.0.2",
|
|
262
|
+
"eslint-plugin-svelte": "^3.15.0",
|
|
271
263
|
"globals": "^17.0.0",
|
|
272
264
|
"husky": "^9.1.7",
|
|
273
|
-
"jsdom": "^
|
|
265
|
+
"jsdom": "^28.1.0",
|
|
274
266
|
"playwright": "^1.57.0",
|
|
275
267
|
"prettier": "^3.3.3",
|
|
276
268
|
"prettier-plugin-svelte": "^3.2.6",
|
|
277
269
|
"start-server-and-test": "^2.0.13",
|
|
278
|
-
"storybook": "^
|
|
270
|
+
"storybook": "^10.2.11",
|
|
279
271
|
"svelte": "^5.46.1",
|
|
280
|
-
"svelte-check": "^
|
|
272
|
+
"svelte-check": "^4.4.3",
|
|
281
273
|
"tailwindcss": "^4.0.0",
|
|
282
274
|
"typescript": "^5.9.3",
|
|
283
275
|
"typescript-eslint": "^8.52.0",
|
|
@@ -293,5 +285,9 @@
|
|
|
293
285
|
"bugs": {
|
|
294
286
|
"url": "https://github.com/get-micdrop/svelte-components/issues"
|
|
295
287
|
},
|
|
296
|
-
"homepage": "https://github.com/get-micdrop/svelte-components#readme"
|
|
288
|
+
"homepage": "https://github.com/get-micdrop/svelte-components#readme",
|
|
289
|
+
"overrides": {
|
|
290
|
+
"minimatch": "^10.2.1",
|
|
291
|
+
"cookie": "^1.0.2"
|
|
292
|
+
}
|
|
297
293
|
}
|