@pronto-tools-and-more/files 4.1.0 → 4.2.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.
@@ -0,0 +1,197 @@
1
+ if (!globalThis.HACK_CONFIG_LOADED) {
2
+ globalThis.HACK_CONFIG_LOADED = 1;
3
+ const appId = "%APP_ID%";
4
+ const catalogApiBaseUrl = "%CATALOG_API_BASE_URL%";
5
+ const kioskBaseUrl = "%KIOSK_BASE_URL%";
6
+ const managerBaseUrl = "%MANAGER_BASE_URL%";
7
+ const companyUrl = "%COMPANY_URL%";
8
+ const handleLoad = () => {
9
+ // @ts-ignore
10
+ window._env = {
11
+ CATALOG_API_BASE_URL: catalogApiBaseUrl,
12
+ KIOSK_BASE_URL: kioskBaseUrl,
13
+ MANAGER_BASE_URL: managerBaseUrl,
14
+ };
15
+ this.globalService.setData("appProperties", {
16
+ appId,
17
+ appName: "App",
18
+ preview: true,
19
+ deviceId: "web",
20
+ messagesUrl: `${managerBaseUrl}/delivery/web/translations/${appId}?preview=true`,
21
+ stylesUrl: `${managerBaseUrl}/delivery/web/dynamicResources/${appId}/webkiosk.css?preview=true&version=1721133857923`,
22
+ globalFontsUrl: `${managerBaseUrl}/delivery/web/global/resource/${appId}/fonts.css?preview=true&platform=web&deviceId=web`,
23
+ resourceBaseUrl: `${kioskBaseUrl}/delivery/web/dynamicResources/${appId}/`,
24
+ resourcesVersion: 1721133857923,
25
+ contentFitStrategy: "fitInside",
26
+ contentMaxWidth: "",
27
+ deliveryUrl: `${managerBaseUrl}/delivery`,
28
+ presenterBaseUrl: "${kioskBaseUrl}/delivery/web/resource",
29
+ presenterContentUrl: `${kioskBaseUrl}/delivery/web/content`,
30
+ attachmentBaseUrl: `${managerBaseUrl}/delivery/web/attachment/${appId}/`,
31
+ deviceClassUrl: `${managerBaseUrl}/delivery/config/deviceclasses`,
32
+ useFeedbackMail: false,
33
+ showPurchasableIssues: false,
34
+ purchaseUrl: "",
35
+ purchasePreviewUrl: "",
36
+ subscriptionUrl: "",
37
+ forcePurchase: false,
38
+ loginUrl: "",
39
+ logoutUrl: "",
40
+ appResourceBaseUrl: `${managerBaseUrl}/delivery/web/app/resource/${appId}/`,
41
+ pageTitle: "Purple Web Kiosk",
42
+ metaDescription: null,
43
+ pageHeading: null,
44
+ logoUrl: null,
45
+ metaRobots: null,
46
+ metaCanonicalUrl: null,
47
+ oauthUrl: `${managerBaseUrl}/delivery/entitlement/oauth/login?appId=${appId}&preview=true&platform=web`,
48
+ oauthRefreshUrl: `${managerBaseUrl}/delivery/entitlement/oauth/refresh?appId=${appId}&preview=true`,
49
+ cookieBannerEnabled: true,
50
+ contentOpenTarget: "self",
51
+ initialDynamicPath:
52
+ "storefront/index.html?bounces=false&force_status_bar=true",
53
+ downloadFileName: "publication_issue",
54
+ trackingAtinternetEnabled: false,
55
+ trackingChartbeatEnabled: false,
56
+ trackingChartbeatAccountId: "",
57
+ trackingChartbeatSiteId: "",
58
+ trackingGoogleAnalytics4Enabled: false,
59
+ trackingGoogleAnalytics4Id: "",
60
+ cmpProvider: "consentmanager",
61
+ cmpVendorIdAtInternet: null,
62
+ cmpVendorIdChartbeat: null,
63
+ cmpVendorIdGoogleAnalytics: null,
64
+ messages: {
65
+ app_version_title_web: "App version",
66
+ category_choose_web: "Choose",
67
+ category_subtitle_web: "Choose your desired category:",
68
+ category_title_web: "Category",
69
+ connection_web: "Connection",
70
+ device_id_title_web: "Device ID",
71
+ device_title_web: "Device",
72
+ device_model_web: "Device model",
73
+ dialog_file_invalid_message_web:
74
+ "The file %s within the dynamic resources is not valid. Please check for proper syntax and format.",
75
+ dialog_app_menu_invalid_message_web:
76
+ 'You are using incompatible deep links / action URLs within the menu that are not available for the Purple web newsstand. A list of those deep links you find in our <a href="http://purple-docs.readthedocs.io/en/latest/deep_links.html" target="_blank">documentation</a>.',
77
+ entitlement_error_unknown_web: "An error occurred. Please try again.",
78
+ entitlement_error_wrong_credentials_web:
79
+ "The credentials are not valid.",
80
+ entitlement_error_user_deactivated_web:
81
+ "Your account has been deactivated. Please contact the support team.",
82
+ entitlement_error_authentication_error_web:
83
+ "Incorrect email address. Please check your credentials.",
84
+ entitlement_error_installation_limit_exceeded_web:
85
+ "You have reached the maximum number of devices you can register for your Great Magazines account.",
86
+ entitlement_error_system_web:
87
+ "A system error occurred. Please try again later or contact our support team.",
88
+ entitlement_error_parameter_web:
89
+ "A parameter error occurred. Please try again later or contact our support team.",
90
+ error_invalid_code_web: "The code you have entered is not valid",
91
+ error_invalid_receipt_web: "The code you have entered is not valid",
92
+ error_invalid_remote_token_web: "The receipt is not valid",
93
+ error_issue_not_available_web: "This issue is not available",
94
+ error_unknown_web: "An unknown error occured.",
95
+ "issue_pages_web#one": "%1$s Page",
96
+ "issue_pages_web#other": "%1$s Pages",
97
+ issue_read_web: "Read",
98
+ issue_purchase_web: "Buy",
99
+ issue_preview_web: "Preview",
100
+ issue_login_web: "Login",
101
+ loading_title_web: "",
102
+ login_cancel_web: "Cancel",
103
+ login_code_placeholder_web: "Coupon Code",
104
+ login_get_code_web: `Don’t have any login details yet? Click <a href=„${companyUrl}“>here</a>`,
105
+ login_howto_web:
106
+ "<b>This is how it works:</b><br/> User your login details to access the contents.",
107
+ login_login_web: "Login",
108
+ login_no_get_code_web:
109
+ "You can download the app in Apple App Store or Google Play too!",
110
+ login_password_placeholder_web: "Password",
111
+ login_subtitle_web:
112
+ "Make your app contents available in web browsers! <br><br/> No matter if PDF or magazine: Your contents will be displayed in the same quality with no additional work to be done.",
113
+ login_title_web: "Your contents in Purple DS | Web Newsstand",
114
+ login_username_placeholder_web: "Username",
115
+ manufacturer_web: "Manufacturer",
116
+ menu_code_web: "Code",
117
+ menu_login_web: "Login",
118
+ menu_logout_web: "Logout",
119
+ menu_title_web: "",
120
+ menu_feedback_web: "Feedback",
121
+ menu_subscription_web: "Subscription",
122
+ menu_download_web: "PDF Download",
123
+ menu_download_single_web: "Download single page",
124
+ menu_download_single_left_web: "Download left page",
125
+ menu_download_single_right_web: "Download right page",
126
+ menu_download_full_web: "Download full PDF",
127
+ os_version_web: "OS version",
128
+ version_title_web: "Version",
129
+ table_of_contents_web: "Table of contents",
130
+ cookie_info_text_web:
131
+ "We use cookies to optimize our website for you. By continuing to use this website, you agree to this.",
132
+ cookie_info_link_text_web: "More Info",
133
+ cookie_info_link_href_web: `${companyUrl}/cookie-policy/`,
134
+ cookie_info_button_text_web: "OK",
135
+ sharing_link_web_text_web: "Open Web Newsstand",
136
+ sharing_link_custom_text_web: "Open website",
137
+ sharing_link_custom_href_web: companyUrl,
138
+ },
139
+ });
140
+ const fakeKey = "fetchAppId:localhost:3000_undefined_false";
141
+ const fakeTransferState = {
142
+ id: appId,
143
+ dynamicResources: {
144
+ lastModified: 1721133857923,
145
+ },
146
+ favicons: [],
147
+ entitlementConfig: {
148
+ mode: "none",
149
+ },
150
+ routingMode: "byPath",
151
+ };
152
+ this.transferState.set(fakeKey, fakeTransferState);
153
+
154
+ const fakeKey2 = "rawAppProperties";
155
+ const fakeTransferState2 = {
156
+ kiosk_spinner_item_dropdown_publication_icon_selected_color: "#ff000000",
157
+ kiosk_subscription_custom_ui_url: "subscriptions/index.html",
158
+ app_menu_search_field_background_color: "#ffffffff",
159
+ highlight_color_variation: "#ffb0b0b0",
160
+ app_cmp_provider_name: "consentmanager",
161
+ kiosk_channels_enabled: true,
162
+ app_menu_item_normal_background_color: "#ffffffff",
163
+ app_menu_background_color: "#ffffffff",
164
+ main_highlight_color: "#ffffffff",
165
+ web_kiosk_favicon_1: "8e5e314b-4c7f-4c83-b021-cca1bdf4b8f4.ico",
166
+ app_actionbar_logo: "1f503240-c249-4b69-8ee2-be17dc9d4648.PNG",
167
+ app_initial_screen_url:
168
+ "storefront/index.html?bounces=false&force_status_bar=true",
169
+ app_menu_item_pressed_background_color: "#80f04e30",
170
+ app_menu_search_icon_color: "#ff000000",
171
+ kiosk_spinner_item_dropdown_publication_icon_normal_color: "#ffffffff",
172
+ app_onboarding_enabled: false,
173
+ app_menu_icon_normal_color: "#ff000000",
174
+ kiosk_button_color_pressed: "#ffffffff",
175
+ cmp_consentmanager_server_domain: "delivery.consentmanager.net",
176
+ ui_orientation: "Dynamic",
177
+ text_color_on_highlight_color: "#ff000000",
178
+ build_supported_devices: "Universal",
179
+ app_deeplink_scheme: "dont-care",
180
+ kiosk_spinner_item_publication_background_color: "#ffffffff",
181
+ presenter_content_fit_strategy: "magazine",
182
+ app_menu_icon_active_color: "#ffffffff",
183
+ app_menu_item_normal_text_color: "#ff000000",
184
+ manager_initial_screen_select: "html",
185
+ app_menu_item_pressed_text_color: "#ffffffff",
186
+ kiosk_button_text_color_normal: "#ffffffff",
187
+ app_name: "App",
188
+ web_kiosk_favicon_1_type: "image/x-icon",
189
+ kiosk_button_color_normal: "#ff000000",
190
+ package_name: "dont-care",
191
+ cmp_consentmanager_id: "31662a4951620",
192
+ };
193
+ this.transferState.set(fakeKey2, fakeTransferState2);
194
+ this.loadConfig();
195
+ };
196
+ window.addEventListener("load", handleLoad, { once: true });
197
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/files",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {},