@envive-ai/react-widgets-v3 0.3.9 → 0.3.11
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/_virtual/rolldown_runtime.cjs +2 -0
- package/dist/debug/GenericSelect.cjs +167 -0
- package/dist/debug/GenericSelect.js +165 -0
- package/dist/debug/MessageContent.cjs +151 -0
- package/dist/debug/MessageContent.js +149 -0
- package/dist/debug/chatEmbed.cjs +95 -0
- package/dist/debug/chatEmbed.js +92 -0
- package/dist/debug/debugBar.cjs +18 -0
- package/dist/debug/debugBar.js +17 -0
- package/dist/debug/reportIssue.cjs +528 -0
- package/dist/debug/reportIssue.js +524 -0
- package/dist/hocs/withBaseWidget/withBaseWidget.d.cts +2 -2
- package/dist/hocs/withBaseWidget/withBaseWidget.d.ts +2 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/CustomerServiceApi.cjs +265 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/DefaultApi.cjs +591 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/InferenceApi.cjs +265 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/ProductsApi.cjs +105 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/SearchApi.cjs +229 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/index.cjs +43 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/index.cjs +39 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AddNoteToLatestConversationRequest.cjs +68 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AddNoteToLatestConversationResponse.cjs +60 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AddToCartAttributes.cjs +53 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AnalyticsIdentifyRequest.cjs +86 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AnalyticsTrackEventRequest.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AttachmentRequest.cjs +63 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AutoForm.cjs +55 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/Context.cjs +89 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ConversationStatus.cjs +63 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CreateConversationRequest.cjs +68 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CreateConversationResponse.cjs +64 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceAttachment.cjs +68 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceConversation.cjs +69 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceConversationMessages.cjs +67 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceCustomer.cjs +60 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceMessage.cjs +85 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustomerServiceProvider.cjs +63 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormResponseAttributes.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormResponseAttributesFormCategory.cjs +55 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormSubmittedAttributes.cjs +65 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormType.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FulfillmentDisplayStatus.cjs +84 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/GenerationParams.cjs +74 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/GetConversationMessagesRequest.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/IsBusinessHoursRequest.cjs +54 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/IsBusinessHoursResponse.cjs +59 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/LabelValue.cjs +60 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ManualForm.cjs +55 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRule.cjs +70 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleAction.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleActionAttribute.cjs +58 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleActionType.cjs +64 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleCondition.cjs +60 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleOp.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleStatus.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/NextMessageRequest.cjs +78 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrderItemInfo.cjs +78 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrderResponseAttributes.cjs +71 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/Organization.cjs +83 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrganizationConfig.cjs +82 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrganizationConfigResults.cjs +70 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrganizationSettings.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PDPAttributes.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPAttributeCategory.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPAttributes.cjs +64 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPAttributesAttributes.cjs +55 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPIdAttributes.cjs +53 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPUrlAttributes.cjs +53 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PageVisitAttributes.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PageVisitCategory.cjs +65 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductRetrievalRequest.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductRetrievalResponse.cjs +55 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductSearchFilterResponseAttributes.cjs +53 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductSearchRequest.cjs +71 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductSearchResponse.cjs +64 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductSearchResponseAttributes.cjs +60 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductSearchResponseV2.cjs +64 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/QueryTypedAttributes.cjs +53 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ReportContent.cjs +59 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ReportSessionRequest.cjs +99 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/Response.cjs +68 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ResponseCategory.cjs +69 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ResponseProductAttributes.cjs +91 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SearchAttributes.cjs +65 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SearchResponseProduct.cjs +93 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SearchSuggestionsResponse.cjs +58 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SendMessageRequest.cjs +71 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SendMessageResponse.cjs +55 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/StatsigExperiment.cjs +64 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/StatsigFeatureGate.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/Suggestion.cjs +70 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SuggestionCategory.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SuggestionClickedAttributes.cjs +53 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SupportedEventProductCategory.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SupportedEventRequest.cjs +67 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SupportedEventResponse.cjs +78 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/TurnInfo.cjs +70 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/TurnInfoPrevUserEvent.cjs +60 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingGenericConfig.cjs +52 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingPDPConfig.cjs +65 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingPLPConfig.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingRequest.cjs +65 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingResponse.cjs +73 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingResponseSpecificDetails.cjs +59 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingType.cjs +67 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UserEvent.cjs +69 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UserEventAttributes.cjs +75 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UserEventCategory.cjs +70 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/V1GetSessionMessages200Response.cjs +67 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/V1SearchExplainGet200Response.cjs +63 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetString.cjs +60 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetTextRequest.cjs +73 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetTextResponse.cjs +66 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetType.cjs +69 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/index.cjs +221 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/runtime.cjs +324 -0
- package/dist/node_modules/react-icons/fa/index.cjs +65 -0
- package/dist/node_modules/react-icons/fa/index.js +61 -0
- package/dist/node_modules/react-icons/lib/iconBase.cjs +121 -0
- package/dist/node_modules/react-icons/lib/iconBase.js +119 -0
- package/dist/node_modules/react-icons/lib/iconContext.cjs +17 -0
- package/dist/node_modules/react-icons/lib/iconContext.js +14 -0
- package/dist/packages/icons/dist/IconCloseVariant.cjs +22 -0
- package/dist/packages/icons/dist/IconCloseVariant.js +22 -0
- package/dist/packages/icons/dist/_virtual/rolldown_runtime.cjs +27 -0
- package/dist/packages/icons/dist/_virtual/rolldown_runtime.js +25 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +696 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.js +696 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs +43 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +43 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.development.cjs +1528 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.development.js +1528 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.cjs +329 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.js +329 -0
- package/dist/packages/icons/dist/node_modules/react/index.cjs +13 -0
- package/dist/packages/icons/dist/node_modules/react/index.js +13 -0
- package/dist/packages/icons/dist/node_modules/react/jsx-runtime.cjs +13 -0
- package/dist/packages/icons/dist/node_modules/react/jsx-runtime.js +13 -0
- package/dist/{widgets → packages/widgets}/dist/SearchResults/SearchResultsWidget.d.ts +2 -2
- package/dist/{widgets → packages/widgets}/dist/SearchZeroState/SearchZeroStateWidget.d.ts +2 -2
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.cts +3 -3
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts +3 -3
- package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.cts +3 -3
- package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts +3 -3
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts +3 -3
- package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.cjs +2 -2
- package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.js +1 -1
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.cjs +2 -0
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.cts +2 -2
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.ts +2 -2
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.js +2 -0
- package/dist/widgets/FloatingChatWidget/hooks/useFloatingButtonVisibility.cjs +4 -1
- package/dist/widgets/FloatingChatWidget/hooks/useFloatingButtonVisibility.js +5 -2
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.cjs +31 -0
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.cts +15 -0
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.ts +15 -0
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.js +30 -0
- package/dist/widgets/FullPageSalesAgentWidget/index.cjs +3 -0
- package/dist/widgets/FullPageSalesAgentWidget/index.d.cts +2 -0
- package/dist/widgets/FullPageSalesAgentWidget/index.d.ts +2 -0
- package/dist/widgets/FullPageSalesAgentWidget/index.js +3 -0
- package/dist/widgets/ProductCardWidget/ProductCardWidget.cjs +2 -1
- package/dist/widgets/ProductCardWidget/ProductCardWidget.d.cts +2 -2
- package/dist/widgets/ProductCardWidget/ProductCardWidget.js +2 -1
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.cjs +2 -1
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.cts +3 -3
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.ts +3 -3
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.js +2 -1
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.cjs +26 -2
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.cts +2 -2
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.ts +2 -2
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.js +27 -3
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.cjs +1 -1
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.cts +2 -2
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.js +1 -1
- package/dist/widgets/SocialProofWidget/SocialProofWidget.cjs +4 -2
- package/dist/widgets/SocialProofWidget/SocialProofWidget.d.cts +3 -3
- package/dist/widgets/SocialProofWidget/SocialProofWidget.d.ts +3 -3
- package/dist/widgets/SocialProofWidget/SocialProofWidget.js +4 -2
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.cjs +2 -1
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.cts +2 -2
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.ts +2 -2
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.js +2 -1
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.cjs +1 -1
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.cts +2 -2
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.ts +2 -2
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.js +1 -1
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.cjs +2 -1
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.cts +3 -3
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.ts +3 -3
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.js +2 -1
- package/dist/widgets/dist/SearchResults/SearchResultsWidget.d.cts +2 -2
- package/dist/widgets/dist/SearchZeroState/SearchZeroStateWidget.d.cts +2 -2
- package/dist/widgets-v2/SearchResults/index.d.ts +3 -3
- package/dist/widgets-v2/SearchZeroState/index.d.ts +4 -4
- package/dist/widgets-v2/SuggestionBar/index.d.ts +3 -3
- package/dist/widgets-v2/SuggestionButtonContainer/index.d.ts +2 -2
- package/package.json +5 -1
- package/src/debug/GenericSelect.tsx +236 -0
- package/src/debug/MessageContent.tsx +248 -0
- package/src/debug/chatEmbed.tsx +119 -0
- package/src/debug/debugBar.tsx +13 -0
- package/src/debug/reportIssue.tsx +649 -0
- package/src/hocs/withBaseWidget/__tests__/withBaseWidget.test.tsx +6 -0
- package/src/stories/FullPageSalesAgentWidget.stories.tsx +68 -0
- package/src/stories/SalesAgentTest/SalesAgentTest.tsx +10 -2
- package/src/widgets/FloatingChatWidget/FloatingChatWidget.tsx +2 -0
- package/src/widgets/FloatingChatWidget/hooks/useFloatingButtonVisibility.ts +11 -5
- package/src/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.tsx +46 -0
- package/src/widgets/FullPageSalesAgentWidget/index.ts +1 -0
- package/src/widgets/ProductCardWidget/ProductCardWidget.tsx +5 -1
- package/src/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.tsx +6 -1
- package/src/widgets/PromptCarouselWidget/PromptCarouselWidget.tsx +31 -2
- package/src/widgets/SocialProofWidget/SocialProofWidget.tsx +10 -2
- package/src/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.tsx +5 -1
- package/src/widgets/TypingAnimationWidget/TypingAnimationWidget.tsx +5 -1
- /package/dist/{widgets → packages/widgets}/dist/SearchResults/SearchResults.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SearchResults/index.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SearchResults/types.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SearchZeroState/SearchZeroState.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SearchZeroState/index.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SearchZeroState/types.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SuggestionBar/SuggestionBar.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SuggestionBar/index.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SuggestionBar/types.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SuggestionButtonContainer/SuggestionButtonContainer.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SuggestionButtonContainer/types.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/config/BaseWidgetConfig.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/config/WidgetType.d.ts +0 -0
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/@spiffy-ai/commerce-api-client/dist/runtime.js
|
|
6
|
+
var require_runtime = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
7
|
+
/**
|
|
8
|
+
* Commerce
|
|
9
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.1.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
19
|
+
function adopt(value) {
|
|
20
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
21
|
+
resolve(value);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
25
|
+
function fulfilled(value) {
|
|
26
|
+
try {
|
|
27
|
+
step(generator.next(value));
|
|
28
|
+
} catch (e) {
|
|
29
|
+
reject(e);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function rejected(value) {
|
|
33
|
+
try {
|
|
34
|
+
step(generator["throw"](value));
|
|
35
|
+
} catch (e) {
|
|
36
|
+
reject(e);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function step(result) {
|
|
40
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
41
|
+
}
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
|
|
47
|
+
exports.querystring = querystring;
|
|
48
|
+
exports.exists = exists;
|
|
49
|
+
exports.mapValues = mapValues;
|
|
50
|
+
exports.canConsumeForm = canConsumeForm;
|
|
51
|
+
exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
52
|
+
var Configuration = class {
|
|
53
|
+
constructor(configuration = {}) {
|
|
54
|
+
this.configuration = configuration;
|
|
55
|
+
}
|
|
56
|
+
set config(configuration) {
|
|
57
|
+
this.configuration = configuration;
|
|
58
|
+
}
|
|
59
|
+
get basePath() {
|
|
60
|
+
return this.configuration.basePath != null ? this.configuration.basePath : exports.BASE_PATH;
|
|
61
|
+
}
|
|
62
|
+
get fetchApi() {
|
|
63
|
+
return this.configuration.fetchApi;
|
|
64
|
+
}
|
|
65
|
+
get middleware() {
|
|
66
|
+
return this.configuration.middleware || [];
|
|
67
|
+
}
|
|
68
|
+
get queryParamsStringify() {
|
|
69
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
70
|
+
}
|
|
71
|
+
get username() {
|
|
72
|
+
return this.configuration.username;
|
|
73
|
+
}
|
|
74
|
+
get password() {
|
|
75
|
+
return this.configuration.password;
|
|
76
|
+
}
|
|
77
|
+
get apiKey() {
|
|
78
|
+
const apiKey = this.configuration.apiKey;
|
|
79
|
+
if (apiKey) return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
80
|
+
}
|
|
81
|
+
get accessToken() {
|
|
82
|
+
const accessToken = this.configuration.accessToken;
|
|
83
|
+
if (accessToken) return typeof accessToken === "function" ? accessToken : () => __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
return accessToken;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
get headers() {
|
|
88
|
+
return this.configuration.headers;
|
|
89
|
+
}
|
|
90
|
+
get credentials() {
|
|
91
|
+
return this.configuration.credentials;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
exports.Configuration = Configuration;
|
|
95
|
+
exports.DefaultConfig = new Configuration();
|
|
96
|
+
/**
|
|
97
|
+
* This is the base class for all generated API classes.
|
|
98
|
+
*/
|
|
99
|
+
var BaseAPI = class BaseAPI {
|
|
100
|
+
constructor(configuration = exports.DefaultConfig) {
|
|
101
|
+
this.configuration = configuration;
|
|
102
|
+
this.fetchApi = (url, init) => __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
let fetchParams = {
|
|
104
|
+
url,
|
|
105
|
+
init
|
|
106
|
+
};
|
|
107
|
+
for (const middleware of this.middleware) if (middleware.pre) fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams;
|
|
108
|
+
let response = void 0;
|
|
109
|
+
try {
|
|
110
|
+
response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
111
|
+
} catch (e) {
|
|
112
|
+
for (const middleware of this.middleware) if (middleware.onError) response = (yield middleware.onError({
|
|
113
|
+
fetch: this.fetchApi,
|
|
114
|
+
url: fetchParams.url,
|
|
115
|
+
init: fetchParams.init,
|
|
116
|
+
error: e,
|
|
117
|
+
response: response ? response.clone() : void 0
|
|
118
|
+
})) || response;
|
|
119
|
+
if (response === void 0) if (e instanceof Error) throw new FetchError(e, "The request failed and the interceptors did not return an alternative response");
|
|
120
|
+
else throw e;
|
|
121
|
+
}
|
|
122
|
+
for (const middleware of this.middleware) if (middleware.post) response = (yield middleware.post({
|
|
123
|
+
fetch: this.fetchApi,
|
|
124
|
+
url: fetchParams.url,
|
|
125
|
+
init: fetchParams.init,
|
|
126
|
+
response: response.clone()
|
|
127
|
+
})) || response;
|
|
128
|
+
return response;
|
|
129
|
+
});
|
|
130
|
+
this.middleware = configuration.middleware;
|
|
131
|
+
}
|
|
132
|
+
withMiddleware(...middlewares) {
|
|
133
|
+
const next = this.clone();
|
|
134
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
135
|
+
return next;
|
|
136
|
+
}
|
|
137
|
+
withPreMiddleware(...preMiddlewares) {
|
|
138
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
139
|
+
return this.withMiddleware(...middlewares);
|
|
140
|
+
}
|
|
141
|
+
withPostMiddleware(...postMiddlewares) {
|
|
142
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
143
|
+
return this.withMiddleware(...middlewares);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Check if the given MIME is a JSON MIME.
|
|
147
|
+
* JSON MIME examples:
|
|
148
|
+
* application/json
|
|
149
|
+
* application/json; charset=UTF8
|
|
150
|
+
* APPLICATION/JSON
|
|
151
|
+
* application/vnd.company+json
|
|
152
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
153
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
154
|
+
*/
|
|
155
|
+
isJsonMime(mime) {
|
|
156
|
+
if (!mime) return false;
|
|
157
|
+
return BaseAPI.jsonRegex.test(mime);
|
|
158
|
+
}
|
|
159
|
+
request(context, initOverrides) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
const { url, init } = yield this.createFetchParams(context, initOverrides);
|
|
162
|
+
const response = yield this.fetchApi(url, init);
|
|
163
|
+
if (response && response.status >= 200 && response.status < 300) return response;
|
|
164
|
+
throw new ResponseError(response, "Response returned an error code");
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
createFetchParams(context, initOverrides) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
let url = this.configuration.basePath + context.path;
|
|
170
|
+
if (context.query !== void 0 && Object.keys(context.query).length !== 0) url += "?" + this.configuration.queryParamsStringify(context.query);
|
|
171
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
172
|
+
Object.keys(headers).forEach((key) => headers[key] === void 0 ? delete headers[key] : {});
|
|
173
|
+
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : () => __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
return initOverrides;
|
|
175
|
+
});
|
|
176
|
+
const initParams = {
|
|
177
|
+
method: context.method,
|
|
178
|
+
headers,
|
|
179
|
+
body: context.body,
|
|
180
|
+
credentials: this.configuration.credentials
|
|
181
|
+
};
|
|
182
|
+
const overriddenInit = Object.assign(Object.assign({}, initParams), yield initOverrideFn({
|
|
183
|
+
init: initParams,
|
|
184
|
+
context
|
|
185
|
+
}));
|
|
186
|
+
let body;
|
|
187
|
+
if (isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body)) body = overriddenInit.body;
|
|
188
|
+
else if (this.isJsonMime(headers["Content-Type"])) body = JSON.stringify(overriddenInit.body);
|
|
189
|
+
else body = overriddenInit.body;
|
|
190
|
+
const init = Object.assign(Object.assign({}, overriddenInit), { body });
|
|
191
|
+
return {
|
|
192
|
+
url,
|
|
193
|
+
init
|
|
194
|
+
};
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
199
|
+
* and then shallow cloning data members.
|
|
200
|
+
*/
|
|
201
|
+
clone() {
|
|
202
|
+
const constructor = this.constructor;
|
|
203
|
+
const next = new constructor(this.configuration);
|
|
204
|
+
next.middleware = this.middleware.slice();
|
|
205
|
+
return next;
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
exports.BaseAPI = BaseAPI;
|
|
209
|
+
BaseAPI.jsonRegex = new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i");
|
|
210
|
+
function isBlob(value) {
|
|
211
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
212
|
+
}
|
|
213
|
+
function isFormData(value) {
|
|
214
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
215
|
+
}
|
|
216
|
+
var ResponseError = class extends Error {
|
|
217
|
+
constructor(response, msg) {
|
|
218
|
+
super(msg);
|
|
219
|
+
this.response = response;
|
|
220
|
+
this.name = "ResponseError";
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
exports.ResponseError = ResponseError;
|
|
224
|
+
var FetchError = class extends Error {
|
|
225
|
+
constructor(cause, msg) {
|
|
226
|
+
super(msg);
|
|
227
|
+
this.cause = cause;
|
|
228
|
+
this.name = "FetchError";
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
exports.FetchError = FetchError;
|
|
232
|
+
var RequiredError = class extends Error {
|
|
233
|
+
constructor(field, msg) {
|
|
234
|
+
super(msg);
|
|
235
|
+
this.field = field;
|
|
236
|
+
this.name = "RequiredError";
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
exports.RequiredError = RequiredError;
|
|
240
|
+
exports.COLLECTION_FORMATS = {
|
|
241
|
+
csv: ",",
|
|
242
|
+
ssv: " ",
|
|
243
|
+
tsv: " ",
|
|
244
|
+
pipes: "|"
|
|
245
|
+
};
|
|
246
|
+
function querystring(params, prefix = "") {
|
|
247
|
+
return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
248
|
+
}
|
|
249
|
+
function querystringSingleKey(key, value, keyPrefix = "") {
|
|
250
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
251
|
+
if (value instanceof Array) {
|
|
252
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
253
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
254
|
+
}
|
|
255
|
+
if (value instanceof Set) return querystringSingleKey(key, Array.from(value), keyPrefix);
|
|
256
|
+
if (value instanceof Date) return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
257
|
+
if (value instanceof Object) return querystring(value, fullKey);
|
|
258
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
259
|
+
}
|
|
260
|
+
function exists(json, key) {
|
|
261
|
+
const value = json[key];
|
|
262
|
+
return value !== null && value !== void 0;
|
|
263
|
+
}
|
|
264
|
+
function mapValues(data, fn) {
|
|
265
|
+
const result = {};
|
|
266
|
+
for (const key of Object.keys(data)) result[key] = fn(data[key]);
|
|
267
|
+
return result;
|
|
268
|
+
}
|
|
269
|
+
function canConsumeForm(consumes) {
|
|
270
|
+
for (const consume of consumes) if ("multipart/form-data" === consume.contentType) return true;
|
|
271
|
+
return false;
|
|
272
|
+
}
|
|
273
|
+
var JSONApiResponse = class {
|
|
274
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
275
|
+
this.raw = raw;
|
|
276
|
+
this.transformer = transformer;
|
|
277
|
+
}
|
|
278
|
+
value() {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
+
return this.transformer(yield this.raw.json());
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
exports.JSONApiResponse = JSONApiResponse;
|
|
285
|
+
var VoidApiResponse = class {
|
|
286
|
+
constructor(raw) {
|
|
287
|
+
this.raw = raw;
|
|
288
|
+
}
|
|
289
|
+
value() {
|
|
290
|
+
return __awaiter(this, void 0, void 0, function* () {});
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
exports.VoidApiResponse = VoidApiResponse;
|
|
294
|
+
var BlobApiResponse = class {
|
|
295
|
+
constructor(raw) {
|
|
296
|
+
this.raw = raw;
|
|
297
|
+
}
|
|
298
|
+
value() {
|
|
299
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
300
|
+
return yield this.raw.blob();
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
exports.BlobApiResponse = BlobApiResponse;
|
|
305
|
+
var TextApiResponse = class {
|
|
306
|
+
constructor(raw) {
|
|
307
|
+
this.raw = raw;
|
|
308
|
+
}
|
|
309
|
+
value() {
|
|
310
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
311
|
+
return yield this.raw.text();
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
exports.TextApiResponse = TextApiResponse;
|
|
316
|
+
}));
|
|
317
|
+
|
|
318
|
+
//#endregion
|
|
319
|
+
Object.defineProperty(exports, 'default', {
|
|
320
|
+
enumerable: true,
|
|
321
|
+
get: function () {
|
|
322
|
+
return require_runtime();
|
|
323
|
+
}
|
|
324
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
const require_iconBase = require('../lib/iconBase.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/react-icons/fa/index.mjs
|
|
4
|
+
function FaFile(props) {
|
|
5
|
+
return require_iconBase.GenIcon({
|
|
6
|
+
"tag": "svg",
|
|
7
|
+
"attr": { "viewBox": "0 0 384 512" },
|
|
8
|
+
"child": [{
|
|
9
|
+
"tag": "path",
|
|
10
|
+
"attr": { "d": "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z" },
|
|
11
|
+
"child": []
|
|
12
|
+
}]
|
|
13
|
+
})(props);
|
|
14
|
+
}
|
|
15
|
+
function FaLink(props) {
|
|
16
|
+
return require_iconBase.GenIcon({
|
|
17
|
+
"tag": "svg",
|
|
18
|
+
"attr": { "viewBox": "0 0 512 512" },
|
|
19
|
+
"child": [{
|
|
20
|
+
"tag": "path",
|
|
21
|
+
"attr": { "d": "M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z" },
|
|
22
|
+
"child": []
|
|
23
|
+
}]
|
|
24
|
+
})(props);
|
|
25
|
+
}
|
|
26
|
+
function FaPaperclip(props) {
|
|
27
|
+
return require_iconBase.GenIcon({
|
|
28
|
+
"tag": "svg",
|
|
29
|
+
"attr": { "viewBox": "0 0 448 512" },
|
|
30
|
+
"child": [{
|
|
31
|
+
"tag": "path",
|
|
32
|
+
"attr": { "d": "M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z" },
|
|
33
|
+
"child": []
|
|
34
|
+
}]
|
|
35
|
+
})(props);
|
|
36
|
+
}
|
|
37
|
+
function FaSearch(props) {
|
|
38
|
+
return require_iconBase.GenIcon({
|
|
39
|
+
"tag": "svg",
|
|
40
|
+
"attr": { "viewBox": "0 0 512 512" },
|
|
41
|
+
"child": [{
|
|
42
|
+
"tag": "path",
|
|
43
|
+
"attr": { "d": "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" },
|
|
44
|
+
"child": []
|
|
45
|
+
}]
|
|
46
|
+
})(props);
|
|
47
|
+
}
|
|
48
|
+
function FaTag(props) {
|
|
49
|
+
return require_iconBase.GenIcon({
|
|
50
|
+
"tag": "svg",
|
|
51
|
+
"attr": { "viewBox": "0 0 512 512" },
|
|
52
|
+
"child": [{
|
|
53
|
+
"tag": "path",
|
|
54
|
+
"attr": { "d": "M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z" },
|
|
55
|
+
"child": []
|
|
56
|
+
}]
|
|
57
|
+
})(props);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
//#endregion
|
|
61
|
+
exports.FaFile = FaFile;
|
|
62
|
+
exports.FaLink = FaLink;
|
|
63
|
+
exports.FaPaperclip = FaPaperclip;
|
|
64
|
+
exports.FaSearch = FaSearch;
|
|
65
|
+
exports.FaTag = FaTag;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { GenIcon } from "../lib/iconBase.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/react-icons/fa/index.mjs
|
|
4
|
+
function FaFile(props) {
|
|
5
|
+
return GenIcon({
|
|
6
|
+
"tag": "svg",
|
|
7
|
+
"attr": { "viewBox": "0 0 384 512" },
|
|
8
|
+
"child": [{
|
|
9
|
+
"tag": "path",
|
|
10
|
+
"attr": { "d": "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z" },
|
|
11
|
+
"child": []
|
|
12
|
+
}]
|
|
13
|
+
})(props);
|
|
14
|
+
}
|
|
15
|
+
function FaLink(props) {
|
|
16
|
+
return GenIcon({
|
|
17
|
+
"tag": "svg",
|
|
18
|
+
"attr": { "viewBox": "0 0 512 512" },
|
|
19
|
+
"child": [{
|
|
20
|
+
"tag": "path",
|
|
21
|
+
"attr": { "d": "M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z" },
|
|
22
|
+
"child": []
|
|
23
|
+
}]
|
|
24
|
+
})(props);
|
|
25
|
+
}
|
|
26
|
+
function FaPaperclip(props) {
|
|
27
|
+
return GenIcon({
|
|
28
|
+
"tag": "svg",
|
|
29
|
+
"attr": { "viewBox": "0 0 448 512" },
|
|
30
|
+
"child": [{
|
|
31
|
+
"tag": "path",
|
|
32
|
+
"attr": { "d": "M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z" },
|
|
33
|
+
"child": []
|
|
34
|
+
}]
|
|
35
|
+
})(props);
|
|
36
|
+
}
|
|
37
|
+
function FaSearch(props) {
|
|
38
|
+
return GenIcon({
|
|
39
|
+
"tag": "svg",
|
|
40
|
+
"attr": { "viewBox": "0 0 512 512" },
|
|
41
|
+
"child": [{
|
|
42
|
+
"tag": "path",
|
|
43
|
+
"attr": { "d": "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" },
|
|
44
|
+
"child": []
|
|
45
|
+
}]
|
|
46
|
+
})(props);
|
|
47
|
+
}
|
|
48
|
+
function FaTag(props) {
|
|
49
|
+
return GenIcon({
|
|
50
|
+
"tag": "svg",
|
|
51
|
+
"attr": { "viewBox": "0 0 512 512" },
|
|
52
|
+
"child": [{
|
|
53
|
+
"tag": "path",
|
|
54
|
+
"attr": { "d": "M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z" },
|
|
55
|
+
"child": []
|
|
56
|
+
}]
|
|
57
|
+
})(props);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
//#endregion
|
|
61
|
+
export { FaFile, FaLink, FaPaperclip, FaSearch, FaTag };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_iconContext = require('./iconContext.cjs');
|
|
3
|
+
let react = require("react");
|
|
4
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/react-icons/lib/iconBase.mjs
|
|
7
|
+
var _excluded = [
|
|
8
|
+
"attr",
|
|
9
|
+
"size",
|
|
10
|
+
"title"
|
|
11
|
+
];
|
|
12
|
+
function _objectWithoutProperties(source, excluded) {
|
|
13
|
+
if (source == null) return {};
|
|
14
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
15
|
+
var key, i;
|
|
16
|
+
if (Object.getOwnPropertySymbols) {
|
|
17
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
18
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
19
|
+
key = sourceSymbolKeys[i];
|
|
20
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
21
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
22
|
+
target[key] = source[key];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return target;
|
|
26
|
+
}
|
|
27
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
28
|
+
if (source == null) return {};
|
|
29
|
+
var target = {};
|
|
30
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
31
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
32
|
+
target[key] = source[key];
|
|
33
|
+
}
|
|
34
|
+
return target;
|
|
35
|
+
}
|
|
36
|
+
function _extends() {
|
|
37
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
38
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
39
|
+
var source = arguments[i];
|
|
40
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
};
|
|
44
|
+
return _extends.apply(this, arguments);
|
|
45
|
+
}
|
|
46
|
+
function ownKeys(e, r) {
|
|
47
|
+
var t = Object.keys(e);
|
|
48
|
+
if (Object.getOwnPropertySymbols) {
|
|
49
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
50
|
+
r && (o = o.filter(function(r$1) {
|
|
51
|
+
return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
|
|
52
|
+
})), t.push.apply(t, o);
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
}
|
|
56
|
+
function _objectSpread(e) {
|
|
57
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
58
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
59
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r$1) {
|
|
60
|
+
_defineProperty(e, r$1, t[r$1]);
|
|
61
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
|
|
62
|
+
Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
return e;
|
|
66
|
+
}
|
|
67
|
+
function _defineProperty(obj, key, value) {
|
|
68
|
+
key = _toPropertyKey(key);
|
|
69
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
70
|
+
value,
|
|
71
|
+
enumerable: true,
|
|
72
|
+
configurable: true,
|
|
73
|
+
writable: true
|
|
74
|
+
});
|
|
75
|
+
else obj[key] = value;
|
|
76
|
+
return obj;
|
|
77
|
+
}
|
|
78
|
+
function _toPropertyKey(t) {
|
|
79
|
+
var i = _toPrimitive(t, "string");
|
|
80
|
+
return "symbol" == typeof i ? i : i + "";
|
|
81
|
+
}
|
|
82
|
+
function _toPrimitive(t, r) {
|
|
83
|
+
if ("object" != typeof t || !t) return t;
|
|
84
|
+
var e = t[Symbol.toPrimitive];
|
|
85
|
+
if (void 0 !== e) {
|
|
86
|
+
var i = e.call(t, r || "default");
|
|
87
|
+
if ("object" != typeof i) return i;
|
|
88
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
89
|
+
}
|
|
90
|
+
return ("string" === r ? String : Number)(t);
|
|
91
|
+
}
|
|
92
|
+
function Tree2Element(tree) {
|
|
93
|
+
return tree && tree.map((node, i) => /* @__PURE__ */ react.default.createElement(node.tag, _objectSpread({ key: i }, node.attr), Tree2Element(node.child)));
|
|
94
|
+
}
|
|
95
|
+
function GenIcon(data) {
|
|
96
|
+
return (props) => /* @__PURE__ */ react.default.createElement(IconBase, _extends({ attr: _objectSpread({}, data.attr) }, props), Tree2Element(data.child));
|
|
97
|
+
}
|
|
98
|
+
function IconBase(props) {
|
|
99
|
+
var elem = (conf) => {
|
|
100
|
+
var { attr, size, title } = props, svgProps = _objectWithoutProperties(props, _excluded);
|
|
101
|
+
var computedSize = size || conf.size || "1em";
|
|
102
|
+
var className;
|
|
103
|
+
if (conf.className) className = conf.className;
|
|
104
|
+
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
105
|
+
return /* @__PURE__ */ react.default.createElement("svg", _extends({
|
|
106
|
+
stroke: "currentColor",
|
|
107
|
+
fill: "currentColor",
|
|
108
|
+
strokeWidth: "0"
|
|
109
|
+
}, conf.attr, attr, svgProps, {
|
|
110
|
+
className,
|
|
111
|
+
style: _objectSpread(_objectSpread({ color: props.color || conf.color }, conf.style), props.style),
|
|
112
|
+
height: computedSize,
|
|
113
|
+
width: computedSize,
|
|
114
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
115
|
+
}), title && /* @__PURE__ */ react.default.createElement("title", null, title), props.children);
|
|
116
|
+
};
|
|
117
|
+
return require_iconContext.IconContext !== void 0 ? /* @__PURE__ */ react.default.createElement(require_iconContext.IconContext.Consumer, null, (conf) => elem(conf)) : elem(require_iconContext.DefaultContext);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
//#endregion
|
|
121
|
+
exports.GenIcon = GenIcon;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { DefaultContext, IconContext } from "./iconContext.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/react-icons/lib/iconBase.mjs
|
|
5
|
+
var _excluded = [
|
|
6
|
+
"attr",
|
|
7
|
+
"size",
|
|
8
|
+
"title"
|
|
9
|
+
];
|
|
10
|
+
function _objectWithoutProperties(source, excluded) {
|
|
11
|
+
if (source == null) return {};
|
|
12
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
13
|
+
var key, i;
|
|
14
|
+
if (Object.getOwnPropertySymbols) {
|
|
15
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
16
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
17
|
+
key = sourceSymbolKeys[i];
|
|
18
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
19
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
20
|
+
target[key] = source[key];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return target;
|
|
24
|
+
}
|
|
25
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
26
|
+
if (source == null) return {};
|
|
27
|
+
var target = {};
|
|
28
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
29
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
30
|
+
target[key] = source[key];
|
|
31
|
+
}
|
|
32
|
+
return target;
|
|
33
|
+
}
|
|
34
|
+
function _extends() {
|
|
35
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
36
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
37
|
+
var source = arguments[i];
|
|
38
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
39
|
+
}
|
|
40
|
+
return target;
|
|
41
|
+
};
|
|
42
|
+
return _extends.apply(this, arguments);
|
|
43
|
+
}
|
|
44
|
+
function ownKeys(e, r) {
|
|
45
|
+
var t = Object.keys(e);
|
|
46
|
+
if (Object.getOwnPropertySymbols) {
|
|
47
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
48
|
+
r && (o = o.filter(function(r$1) {
|
|
49
|
+
return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
|
|
50
|
+
})), t.push.apply(t, o);
|
|
51
|
+
}
|
|
52
|
+
return t;
|
|
53
|
+
}
|
|
54
|
+
function _objectSpread(e) {
|
|
55
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
56
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
57
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r$1) {
|
|
58
|
+
_defineProperty(e, r$1, t[r$1]);
|
|
59
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
|
|
60
|
+
Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return e;
|
|
64
|
+
}
|
|
65
|
+
function _defineProperty(obj, key, value) {
|
|
66
|
+
key = _toPropertyKey(key);
|
|
67
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
68
|
+
value,
|
|
69
|
+
enumerable: true,
|
|
70
|
+
configurable: true,
|
|
71
|
+
writable: true
|
|
72
|
+
});
|
|
73
|
+
else obj[key] = value;
|
|
74
|
+
return obj;
|
|
75
|
+
}
|
|
76
|
+
function _toPropertyKey(t) {
|
|
77
|
+
var i = _toPrimitive(t, "string");
|
|
78
|
+
return "symbol" == typeof i ? i : i + "";
|
|
79
|
+
}
|
|
80
|
+
function _toPrimitive(t, r) {
|
|
81
|
+
if ("object" != typeof t || !t) return t;
|
|
82
|
+
var e = t[Symbol.toPrimitive];
|
|
83
|
+
if (void 0 !== e) {
|
|
84
|
+
var i = e.call(t, r || "default");
|
|
85
|
+
if ("object" != typeof i) return i;
|
|
86
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
87
|
+
}
|
|
88
|
+
return ("string" === r ? String : Number)(t);
|
|
89
|
+
}
|
|
90
|
+
function Tree2Element(tree) {
|
|
91
|
+
return tree && tree.map((node, i) => /* @__PURE__ */ React.createElement(node.tag, _objectSpread({ key: i }, node.attr), Tree2Element(node.child)));
|
|
92
|
+
}
|
|
93
|
+
function GenIcon(data) {
|
|
94
|
+
return (props) => /* @__PURE__ */ React.createElement(IconBase, _extends({ attr: _objectSpread({}, data.attr) }, props), Tree2Element(data.child));
|
|
95
|
+
}
|
|
96
|
+
function IconBase(props) {
|
|
97
|
+
var elem = (conf) => {
|
|
98
|
+
var { attr, size, title } = props, svgProps = _objectWithoutProperties(props, _excluded);
|
|
99
|
+
var computedSize = size || conf.size || "1em";
|
|
100
|
+
var className;
|
|
101
|
+
if (conf.className) className = conf.className;
|
|
102
|
+
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
103
|
+
return /* @__PURE__ */ React.createElement("svg", _extends({
|
|
104
|
+
stroke: "currentColor",
|
|
105
|
+
fill: "currentColor",
|
|
106
|
+
strokeWidth: "0"
|
|
107
|
+
}, conf.attr, attr, svgProps, {
|
|
108
|
+
className,
|
|
109
|
+
style: _objectSpread(_objectSpread({ color: props.color || conf.color }, conf.style), props.style),
|
|
110
|
+
height: computedSize,
|
|
111
|
+
width: computedSize,
|
|
112
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
113
|
+
}), title && /* @__PURE__ */ React.createElement("title", null, title), props.children);
|
|
114
|
+
};
|
|
115
|
+
return IconContext !== void 0 ? /* @__PURE__ */ React.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
//#endregion
|
|
119
|
+
export { GenIcon };
|