@finsweet/webflow-apps-utils 1.0.20 → 1.0.22
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/ui/components/copy-text/CopyText.svelte +1 -1
- package/dist/ui/components/iframe/Iframe.svelte +3 -0
- package/dist/ui/components/layout/common/EditModeMessage.svelte +2 -3
- package/dist/ui/components/modal/Modal.svelte +1 -1
- package/dist/ui/components/section/Section.svelte +1 -3
- package/dist/ui/router/router.svelte.js +2 -2
- package/dist/utils/constants.d.ts +0 -65
- package/dist/utils/constants.js +0 -83
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Pencil, WarningTriangleOutlineIcon } from '../../../icons';
|
|
3
3
|
import { useAppContext } from '../../../providers';
|
|
4
|
-
import { BRAND } from '../../../../utils';
|
|
5
4
|
|
|
6
5
|
import { Notification } from '../../notification';
|
|
7
6
|
|
|
@@ -26,7 +25,7 @@
|
|
|
26
25
|
<div class="edit-mode">
|
|
27
26
|
<Notification
|
|
28
27
|
variant="warning"
|
|
29
|
-
title="You are in edit mode for {title}
|
|
28
|
+
title="You are in edit mode for {title} Component."
|
|
30
29
|
message={`Make your edits and click on the "Update ${title}" button. You can review and confirm all changes before we proceed with the updates.`}
|
|
31
30
|
richTextMessage={true}
|
|
32
31
|
icon={Pencil}
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
<Notification
|
|
41
40
|
variant="warning"
|
|
42
41
|
title="Component instance not found"
|
|
43
|
-
message="We have detected
|
|
42
|
+
message="We have detected Component as valid, but we couldn't find the associated configurations. This may be a Component from another project. Click the 'Repair' button to fix it."
|
|
44
43
|
icon={WarningTriangleOutlineIcon}
|
|
45
44
|
showCloseButton={false}
|
|
46
45
|
/>
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
import type { PartialOptions } from 'overlayscrollbars';
|
|
5
5
|
import { OverlayScrollbarsComponent } from 'overlayscrollbars-svelte';
|
|
6
6
|
|
|
7
|
-
import { BRAND } from '../../../utils';
|
|
8
|
-
|
|
9
7
|
import { WarningCircleOutlineIcon } from '../../icons';
|
|
10
8
|
import { Tooltip } from '../tooltip';
|
|
11
9
|
import type { SectionProps } from './types.js';
|
|
@@ -128,7 +126,7 @@
|
|
|
128
126
|
// Default disabled message
|
|
129
127
|
let defaultDisabledMessage = $derived(
|
|
130
128
|
disabledMessage ||
|
|
131
|
-
`This option is disabled in edit mode. If you want to change it, please generate a new
|
|
129
|
+
`This option is disabled in edit mode. If you want to change it, please generate a new Component.`
|
|
132
130
|
);
|
|
133
131
|
|
|
134
132
|
// OverlayScrollbars options
|
|
@@ -200,7 +200,7 @@ export class Router {
|
|
|
200
200
|
pathname: '/',
|
|
201
201
|
search: '',
|
|
202
202
|
hash: '',
|
|
203
|
-
url: new URL('
|
|
203
|
+
url: new URL('https://finsweet.com/'),
|
|
204
204
|
params: {},
|
|
205
205
|
query: new URLSearchParams()
|
|
206
206
|
};
|
|
@@ -233,7 +233,7 @@ export class Router {
|
|
|
233
233
|
/** Create a URL object from a pathname */
|
|
234
234
|
#createURL(pathname) {
|
|
235
235
|
if (!browser)
|
|
236
|
-
return new URL('
|
|
236
|
+
return new URL('https://finsweet.com/');
|
|
237
237
|
const baseURL = window.location.origin;
|
|
238
238
|
let fullPath = pathname;
|
|
239
239
|
// Handle base path
|
|
@@ -1,66 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wized
|
|
3
|
-
*/
|
|
4
|
-
export declare const WIZED = "wized";
|
|
5
|
-
export declare const WIZED_LEGACY = "w-el";
|
|
6
|
-
export declare const WIZED_ELEMENTS_SITEMAPS = "wized-elements-sitemaps";
|
|
7
|
-
export declare const WIZED_ATTRIBUTES_ENDPOINT = "https://server.wized.com/v2/site/attributes";
|
|
8
|
-
export declare const WIZED_ATTRIBUTES_ENDPOINT_STAGING = "https://ss.wized.com/v2/site/attributes";
|
|
9
|
-
export declare const WIZED_REVERSE_PROXY_URL = "https://server.wized.com/v2/page/proxy?url=";
|
|
10
1
|
export declare const FINSWEET_REVERSE_PROXY_URL = "https://api.finsweet.com/cors?url=";
|
|
11
|
-
export declare const WIZED_V2_SITE_CONFIGURATION_ENDPOINT = "https://server.wized.com/v2/extensions/configuration";
|
|
12
|
-
export declare const WIZED_V2_SITE_CONFIGURATION_ENDPOINT_STAGING = "https://ss.wized.com/v2/extensions/configuration";
|
|
13
|
-
export declare const FINSWEET_SUBSCRIPTIONS_ENDPOINT = "https://accounts.finsweet.com/v1/subscriptions";
|
|
14
|
-
export declare const FINSWEET_SUBSCRIPTIONS_ENDPOINT_STAGING = "https://test-accounts.finsweet.com/v1/subscriptions";
|
|
15
|
-
export declare const WIZED_PROD_SUBSCRIPTIONS_API = "http://accounts.finsweet.com";
|
|
16
|
-
export declare const WIZED_DEV_SUBSCRIPTIONS_API = "http://test-accounts.finsweet.com";
|
|
17
|
-
export declare const WIZED_PROD_SUBSCRIPTION_PAGE_URL = "https://my.finsweet.com/subscriptions/create?product=finsweet-community";
|
|
18
|
-
export declare const WIZED_APP_CONFIGURATOR_STAGING = "https://sa.wized.com/configurator";
|
|
19
|
-
export declare const WIZED_APP_CONFIGURATOR_PROD = "https://app.wized.com/configurator";
|
|
20
|
-
/**
|
|
21
|
-
* Finsweet Components
|
|
22
|
-
*/
|
|
23
|
-
export declare const ACCOUNTS_API_PRODUCTION = "https://accounts.finsweet.com/v1/components/verify?";
|
|
24
|
-
export declare const ACCOUNTS_API_DEV = "https://test-accounts.finsweet.com/v1/components/verify?";
|
|
25
|
-
export declare const COMPONENTS_SUBSCRIPTIONS_ENDPOINT_DEV = "https://test-my.finsweet.com/subscriptions/create";
|
|
26
|
-
export declare const COMPONENTS_SUBSCRIPTIONS_ENDPOINT_PROD = "https://my.finsweet.com/subscriptions/create";
|
|
27
|
-
export declare const PROD_FINSWEEET_ACCOUNTS_ORIGIN = "https://accounts.finsweet.com";
|
|
28
|
-
export declare const AUTH0_DOMAIN = "finsweet.auth0.com";
|
|
29
|
-
export declare const AUTH0_CLIENT_ID = "5xTAnXb3mwUby3YGJRKJpVaNCMWqXtb1";
|
|
30
|
-
export declare const AUTH0_REDIRECT_URL = "https://accounts.finsweet.com/v1/auth0/oauth2/fs-components";
|
|
31
|
-
export declare const AUTH0_SCOPE = "openid profile email offline_access";
|
|
32
|
-
export declare const AUTH0_AUDIENCE = "https://sso.finsweet.com";
|
|
33
|
-
export declare const AUTH0_LOGIN_URL = "https://sso.finsweet.com/authorize";
|
|
34
|
-
/**
|
|
35
|
-
* Finsweet Components Server
|
|
36
|
-
*/
|
|
37
|
-
export declare const COMPONENTS_SERVER_DEV_ENDPOINT = "https://fs-components-api-dev.finsweet.workers.dev/v1/";
|
|
38
|
-
export declare const COMPONENTS_SERVER_PROD_ENDPOINT = "https://fs-components-api-prod.finsweet.workers.dev/v1/";
|
|
39
|
-
export declare const COMPONENTS_CORE_SCRIPT = "https://cdn.jsdelivr.net/npm/@finsweet/fs-components@2/fs-components.js";
|
|
40
|
-
/**
|
|
41
|
-
* Finsweet Components Local
|
|
42
|
-
*/
|
|
43
|
-
export declare const COMPONENTS_SERVER_DEV_ENDPOINT_LOCAL = "http://localhost:8787/v1/";
|
|
44
|
-
export declare const COMPONENTS_CORE_SCRIPT_LOCAL = "http://localhost:3000/fs-components.js";
|
|
45
|
-
/**
|
|
46
|
-
* Finsweet Components Brand
|
|
47
|
-
*/
|
|
48
|
-
export declare const BRAND: {
|
|
49
|
-
FINSWEET: string;
|
|
50
|
-
COMPONENT: string;
|
|
51
|
-
COMPONENTS: string;
|
|
52
|
-
FULL: {
|
|
53
|
-
SINGULAR: string;
|
|
54
|
-
PLURAL: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* Webflow App Origins
|
|
59
|
-
*/
|
|
60
|
-
export declare const FINSWEET_COMPONENTS_WEBFLOW_APP_ORIGINS: string[];
|
|
61
|
-
export declare const ACCEPTED_WEBFLOW_ELEMENTS_FOR_INSERTION: string[];
|
|
62
|
-
/**
|
|
63
|
-
* List of domains that are considered staging.
|
|
64
|
-
*/
|
|
65
|
-
export declare const STAGING_DOMAINS: string[];
|
|
66
|
-
export declare const FINSWEET_LOGO_URL = "https://cdn.prod.website-files.com/61819aaca0e7ac73f85a2d54/6865d68f194e84da9c6452e5_Components%20White%20Logo.svg";
|
package/dist/utils/constants.js
CHANGED
|
@@ -1,84 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wized
|
|
3
|
-
*/
|
|
4
|
-
export const WIZED = 'wized';
|
|
5
|
-
export const WIZED_LEGACY = 'w-el';
|
|
6
|
-
export const WIZED_ELEMENTS_SITEMAPS = 'wized-elements-sitemaps';
|
|
7
|
-
export const WIZED_ATTRIBUTES_ENDPOINT = 'https://server.wized.com/v2/site/attributes';
|
|
8
|
-
export const WIZED_ATTRIBUTES_ENDPOINT_STAGING = 'https://ss.wized.com/v2/site/attributes';
|
|
9
|
-
export const WIZED_REVERSE_PROXY_URL = 'https://server.wized.com/v2/page/proxy?url=';
|
|
10
1
|
export const FINSWEET_REVERSE_PROXY_URL = 'https://api.finsweet.com/cors?url=';
|
|
11
|
-
export const WIZED_V2_SITE_CONFIGURATION_ENDPOINT = 'https://server.wized.com/v2/extensions/configuration';
|
|
12
|
-
export const WIZED_V2_SITE_CONFIGURATION_ENDPOINT_STAGING = 'https://ss.wized.com/v2/extensions/configuration';
|
|
13
|
-
export const FINSWEET_SUBSCRIPTIONS_ENDPOINT = 'https://accounts.finsweet.com/v1/subscriptions';
|
|
14
|
-
export const FINSWEET_SUBSCRIPTIONS_ENDPOINT_STAGING = 'https://test-accounts.finsweet.com/v1/subscriptions';
|
|
15
|
-
export const WIZED_PROD_SUBSCRIPTIONS_API = 'http://accounts.finsweet.com';
|
|
16
|
-
export const WIZED_DEV_SUBSCRIPTIONS_API = 'http://test-accounts.finsweet.com';
|
|
17
|
-
export const WIZED_PROD_SUBSCRIPTION_PAGE_URL = 'https://my.finsweet.com/subscriptions/create?product=finsweet-community';
|
|
18
|
-
export const WIZED_APP_CONFIGURATOR_STAGING = 'https://sa.wized.com/configurator';
|
|
19
|
-
export const WIZED_APP_CONFIGURATOR_PROD = 'https://app.wized.com/configurator';
|
|
20
|
-
/**
|
|
21
|
-
* Finsweet Components
|
|
22
|
-
*/
|
|
23
|
-
export const ACCOUNTS_API_PRODUCTION = 'https://accounts.finsweet.com/v1/components/verify?';
|
|
24
|
-
export const ACCOUNTS_API_DEV = 'https://test-accounts.finsweet.com/v1/components/verify?';
|
|
25
|
-
export const COMPONENTS_SUBSCRIPTIONS_ENDPOINT_DEV = 'https://test-my.finsweet.com/subscriptions/create';
|
|
26
|
-
export const COMPONENTS_SUBSCRIPTIONS_ENDPOINT_PROD = 'https://my.finsweet.com/subscriptions/create';
|
|
27
|
-
export const PROD_FINSWEEET_ACCOUNTS_ORIGIN = 'https://accounts.finsweet.com';
|
|
28
|
-
export const AUTH0_DOMAIN = 'finsweet.auth0.com';
|
|
29
|
-
export const AUTH0_CLIENT_ID = '5xTAnXb3mwUby3YGJRKJpVaNCMWqXtb1';
|
|
30
|
-
export const AUTH0_REDIRECT_URL = 'https://accounts.finsweet.com/v1/auth0/oauth2/fs-components';
|
|
31
|
-
export const AUTH0_SCOPE = 'openid profile email offline_access';
|
|
32
|
-
export const AUTH0_AUDIENCE = 'https://sso.finsweet.com';
|
|
33
|
-
export const AUTH0_LOGIN_URL = 'https://sso.finsweet.com/authorize';
|
|
34
|
-
/**
|
|
35
|
-
* Finsweet Components Server
|
|
36
|
-
*/
|
|
37
|
-
export const COMPONENTS_SERVER_DEV_ENDPOINT = 'https://fs-components-api-dev.finsweet.workers.dev/v1/';
|
|
38
|
-
export const COMPONENTS_SERVER_PROD_ENDPOINT = 'https://fs-components-api-prod.finsweet.workers.dev/v1/';
|
|
39
|
-
export const COMPONENTS_CORE_SCRIPT = 'https://cdn.jsdelivr.net/npm/@finsweet/fs-components@2/fs-components.js';
|
|
40
|
-
/**
|
|
41
|
-
* Finsweet Components Local
|
|
42
|
-
*/
|
|
43
|
-
export const COMPONENTS_SERVER_DEV_ENDPOINT_LOCAL = 'http://localhost:8787/v1/';
|
|
44
|
-
export const COMPONENTS_CORE_SCRIPT_LOCAL = 'http://localhost:3000/fs-components.js';
|
|
45
|
-
/**
|
|
46
|
-
* Finsweet Components Brand
|
|
47
|
-
*/
|
|
48
|
-
export const BRAND = {
|
|
49
|
-
FINSWEET: 'Finsweet',
|
|
50
|
-
COMPONENT: 'Component',
|
|
51
|
-
COMPONENTS: 'Components',
|
|
52
|
-
FULL: {
|
|
53
|
-
SINGULAR: 'Finsweet Component',
|
|
54
|
-
PLURAL: 'Finsweet Components'
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* Webflow App Origins
|
|
59
|
-
*/
|
|
60
|
-
export const FINSWEET_COMPONENTS_WEBFLOW_APP_ORIGINS = [
|
|
61
|
-
'http://localhost:1337',
|
|
62
|
-
'https://6544eda5f000985a163a8687.webflow-ext.com',
|
|
63
|
-
'https://64b2e4cfe025c96ef1c8baf4.webflow-ext.com',
|
|
64
|
-
'https://654d8ce9d9b49c7fd929a451.webflow-ext.com'
|
|
65
|
-
];
|
|
66
|
-
export const ACCEPTED_WEBFLOW_ELEMENTS_FOR_INSERTION = [
|
|
67
|
-
'Body',
|
|
68
|
-
'Block',
|
|
69
|
-
'DOM',
|
|
70
|
-
'Section',
|
|
71
|
-
'Container',
|
|
72
|
-
'BlockContainer'
|
|
73
|
-
];
|
|
74
|
-
/**
|
|
75
|
-
* List of domains that are considered staging.
|
|
76
|
-
*/
|
|
77
|
-
export const STAGING_DOMAINS = [
|
|
78
|
-
'webflow.io',
|
|
79
|
-
'webflow-ext.com',
|
|
80
|
-
'localhost',
|
|
81
|
-
'canvas.webflow.com',
|
|
82
|
-
'server.wized.com'
|
|
83
|
-
];
|
|
84
|
-
export const FINSWEET_LOGO_URL = 'https://cdn.prod.website-files.com/61819aaca0e7ac73f85a2d54/6865d68f194e84da9c6452e5_Components%20White%20Logo.svg';
|