@wix/bex-utils 1.28.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.
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/builders.impl.d.ts +33 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/builders.impl.js +452 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/builders.impl.js.map +1 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/http.impl.d.ts +21 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/http.impl.js +399 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/http.impl.js.map +1 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/proto/client/proto-generated.d.ts +4576 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/proto/client/proto-generated.js +2 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/proto/proto-generated.d.ts +2288 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/proto/proto-generated.js +29722 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/proto/server/proto-generated.d.ts +4559 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/proto/server/proto-generated.js +2 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/rpc.impl.d.ts +36 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/rpc.impl.js +182 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/rpc.impl.js.map +1 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/types.impl.d.ts +313 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/types.impl.js +28 -0
- package/@wix/ambassador-app-settings-v1-settings/build/cjs/types.impl.js.map +1 -0
- package/@wix/ambassador-app-settings-v1-settings/build/es/builders.impl.d.ts +33 -0
- package/@wix/ambassador-app-settings-v1-settings/build/es/builders.impl.js +405 -0
- package/@wix/ambassador-app-settings-v1-settings/build/es/builders.impl.js.map +1 -0
- package/@wix/ambassador-app-settings-v1-settings/build/es/http.impl.d.ts +21 -0
- package/@wix/ambassador-app-settings-v1-settings/build/es/http.impl.js +388 -0
- package/@wix/ambassador-app-settings-v1-settings/build/es/http.impl.js.map +1 -0
- package/@wix/ambassador-app-settings-v1-settings/build/es/rpc.impl.d.ts +36 -0
- package/@wix/ambassador-app-settings-v1-settings/build/es/rpc.impl.js +149 -0
- package/@wix/ambassador-app-settings-v1-settings/build/es/rpc.impl.js.map +1 -0
- package/@wix/ambassador-app-settings-v1-settings/build/es/types.impl.d.ts +313 -0
- package/@wix/ambassador-app-settings-v1-settings/build/es/types.impl.js +25 -0
- package/@wix/ambassador-app-settings-v1-settings/build/es/types.impl.js.map +1 -0
- package/@wix/ambassador-app-settings-v1-settings/builders/package.json +7 -0
- package/@wix/ambassador-app-settings-v1-settings/http/package.json +7 -0
- package/@wix/ambassador-app-settings-v1-settings/package.json +49 -0
- package/@wix/ambassador-app-settings-v1-settings/rpc/package.json +6 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/app-settings.proto +327 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/user-preferences.proto +132 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/action_payload.proto +33 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/annotations.proto +335 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/api_errors.proto +117 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/callback.proto +134 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/context.proto +19 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/entity.proto +75 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/errors.proto +113 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/permissions.proto +40 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/sla.proto +24 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/subscription.proto +31 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/validations.proto +133 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/graphql/definitions.proto +13 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/http/field_mask.proto +45 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/sdk/definitions.proto +191 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/spi/definitions.proto +173 -0
- package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/spi/http_error_status.proto +24 -0
- package/@wix/ambassador-app-settings-v1-settings/types/package.json +7 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/builders.impl.d.ts +16 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/builders.impl.js +272 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/builders.impl.js.map +1 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/crud/http.impl.d.ts +1 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/crud/http.impl.js +5 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/crud/http.impl.js.map +1 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/crud/rpc.impl.d.ts +3 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/crud/rpc.impl.js +14 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/crud/rpc.impl.js.map +1 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/http.impl.d.ts +10 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/http.impl.js +148 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/http.impl.js.map +1 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/proto/client/proto-generated.d.ts +15110 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/proto/client/proto-generated.js +2 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/proto/proto-generated.d.ts +7555 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/proto/proto-generated.js +99675 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/proto/server/proto-generated.d.ts +15101 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/proto/server/proto-generated.js +2 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/rpc.impl.d.ts +23 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/rpc.impl.js +109 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/rpc.impl.js.map +1 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/types.impl.d.ts +181 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/types.impl.js +11 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/types.impl.js.map +1 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/builders.impl.d.ts +16 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/builders.impl.js +242 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/builders.impl.js.map +1 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/crud/http.impl.d.ts +1 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/crud/http.impl.js +2 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/crud/http.impl.js.map +1 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/crud/rpc.impl.d.ts +3 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/crud/rpc.impl.js +10 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/crud/rpc.impl.js.map +1 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/http.impl.d.ts +10 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/http.impl.js +141 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/http.impl.js.map +1 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/rpc.impl.d.ts +23 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/rpc.impl.js +81 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/rpc.impl.js.map +1 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/types.impl.d.ts +181 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/types.impl.js +8 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/types.impl.js.map +1 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/builders/package.json +7 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/crud/http/package.json +7 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/crud/rpc/package.json +6 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/http/package.json +7 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/package.json +50 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/rpc/package.json +6 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/com/wixpress/appservice/api/components_catalog_type.proto +103 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_common.proto +193 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/alert_enricher/com/wixpress/appservice/api/upstream/spi/com/wixpress/vi/enricher/spi/enrichment_spi.proto +10 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/app_config.proto +20 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/application_automation/com/wixpress/appservice/api/upstream/com/wixpress/automations/service/application_automation_component.proto +167 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/automation_trigger.proto +101 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/automations_action_provider/com/wixpress/appservice/api/upstream/com/wixpress/esb/spi/action/v1/action_spi_provider.proto +173 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/automations_trigger_provider/com/wixpress/appservice/api/upstream/com/wixpress/esb/spi/trigger/v1/trigger_spi_provider.proto +77 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/back_office_extension.proto +89 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/back_office_extension_container.proto +31 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/back_office_page.proto +42 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/back_office_sidebar_category.proto +20 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/back_office_widget.proto +32 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/billing_tax_id_validator/com/wixpress/appservice/api/upstream/wix/billing/tax/validation/spi/v1/tax_id_validator.proto +20 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/bookings_external_calendar_provider/com/wixpress/appservice/api/upstream/com/wix/bookings/externalcalendar/spi/v1/calendar.proto +18 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/bookings_external_calendar_provider/com/wixpress/appservice/api/upstream/com/wix/bookings/externalcalendar/spi/v1/provider_config.proto +52 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/bookings_pricing_provider/com/wixpress/appservice/api/upstream/com/wixpress/bookings/pricing/spi/v1/bookings_pricing_provider.proto +17 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/code_package.proto +22 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/comments_filter_provider/com/wixpress/appservice/api/upstream/wix/comments/ng/v1/spi/comment_filter_provider.proto +22 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/comments_moderation_provider/com/wixpress/appservice/api/upstream/wix/comments/ng/v1/spi/comment_moderation_provider.proto +21 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/accepted_message_types.proto +21 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/channel_branding.proto +34 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/channel_configuration.proto +41 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/conversation_limitations.proto +20 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/dm/direct_message_config.proto +21 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/email/email_message_config.proto +16 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/media_capabilities.proto +38 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/sms/sms_message_config.proto +20 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/spi/v1/communication_channels_spi.proto +13 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/component_reference_data_provider/com/wixpress/appservice/api/upstream/src/main/proto/wix/devcenter/apps/components/reference/data/component_reference_data_config.proto +17 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/components_translations_additional_fields_provider/com/wixpress/appservice/api/upstream/wix/devcenter/components/translation/v1/spi/component_additional_fields_translation_config.proto +12 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/components_validator_provider/com/wixpress/appservice/api/upstream/src/main/proto/wix/devcenter/apps/components/validator/components_validator_config.proto +19 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/contact_labels.proto +35 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/cross_sell/com/wixpress/appservice/api/upstream/com/wixpress/buildup/spi/cross_sell_orders_spi.proto +12 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/custom_scope/com/wixpress/appservice/api/upstream/com/wixpress/ecom/scopes/custom_scope_spi.proto +14 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/dashboard.proto +24 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/dashboard_application.proto +101 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/dashboard_platform.proto +11 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/data.proto +15 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/data_extensions.proto +16 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/dc_config.proto +9 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/dealer_external_filter_provider/com/wixpress/appservice/api/upstream/wix/dealerExternalServiceProviders/api/v1/dealer-external-filter-service.proto +16 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/dev_center_component_test.proto +69 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/ecom_additional_fees/com/wixpress/appservice/api/upstream/com/wix/ecommerce/additional_fees_spi/api/v1/additional_fees_spi_config.proto +16 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/ecom_catalog/com/wixpress/appservice/api/upstream/com/wix/ecommerce/catalog_spi/api/v1/platform_catalog_spi.proto +24 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/ecom_default_taxation_category/com/wixpress/appservice/api/upstream/wix/billing/spi/v1/default_tax_group_configuration.proto +33 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/ecom_discounts_trigger/com/wixpress/appservice/api/upstream/com/wix/ecom/custom_trigger/v1/spi/custom_triggers_provider.proto +10 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/ecom_dropshipping_provider/com/wixpress/appservice/api/upstream/com/wix/ecommerce/dropshipping_provider_spi/api/v1/dropshipping_provider_spi.proto +44 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/ecom_line_items_enricher/com/wixpress/appservice/api/upstream/com/wix/ecom/line_items_enricher_spi/api/v1/line_items_enricher_spi.proto +12 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/ecom_shipping_rates/com/wixpress/appservice/api/upstream/com/wix/ecom/shipping_rates/v1/shipping-rates-config.proto +32 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/ecom_tax_calculator_spi/com/wixpress/appservice/api/upstream/wix/billing/spi/v1/tax_calculator_spi.proto +25 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/ecom_validations/com/wixpress/appservice/api/upstream/com/wix/ecommerce/validations_spi/v1/validations_spi_config.proto +21 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/editor_addon.proto +41 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/embedded_script.proto +103 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/entitlement_policy_provider/com/wixpress/appservice/api/upstream/wix/entitlements/spi/v1/policy_provider_spi.proto +16 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/entitlement_provider/com/wixpress/appservice/api/upstream/wix/entitlements/spi/v1/entitlement_provider_spi.proto +19 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/fictional_shipping_provider/shipping_provider_spi.proto +17 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/forms_schema_provider/com/wixpress/appservice/api/upstream/wix/forms/v4/form_schema_spi.proto +37 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/forms_spam_submissions_provider/com/wixpress/appservice/api/upstream/wix/forms/v4/form_spam_submission_spi.proto +31 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/forms_spam_submissions_provider/com/wixpress/appservice/api/upstream/wix/forms/v4/spam_submission_permissions.proto +21 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/forms_spi_common/com/wixpress/appservice/api/upstream/wix/forms/v4/forms_permissions.proto +20 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/forms_submissions_provider/com/wixpress/appservice/api/upstream/wix/forms/v4/form_submission_spi.proto +35 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/generic_hooks/com/wixpress/appservice/api/upstream/wix/framework/hooks/generic_hooks_config.proto +34 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/gift_cards_provider/com/wixpress/appservice/api/upstream/wix/gift/cards/provider/api/gift_cards_provider.proto +14 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/google_business_profile_feature_provider/com/wixpress/appservice/api/upstream/wix/promote/gbp_feature_provider_spi/v1/gbp_feature_config.proto +14 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/grid_apps_files_transformer/com/wixpress/appservice/api/upstream/wix/velo/ide/spi/v1/grid_app_files_transformer.proto +28 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/headless_oauth.proto +26 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/iam/com/wixpress/appservice/api/upstream/wix/iam/identity/v1/pre_register_spi.proto +11 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/identity_authenticator/com/wixpress/appservice/api/upstream/wix/iam/identity/authentication/authenticator/v1/authenticator_spi.proto +82 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/identity_idp_connector/com/wixpress/appservice/api/upstream/wix/iam/authentication/v1/idp_connector_spi.proto +18 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/identity_post_login/com/wixpress/appservice/api/upstream/wix/iam/authentication/v1/post_login_spi.proto +18 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/invoices/com/wixpress/appservice/api/upstream/wix/invoices/spi/v1/invoices_spi.proto +12 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/invoices_actions.proto +20 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/items_selection_provider/com/wixpress/appservice/api/upstream/src/main/proto/com/wixpress/items_selection/spi/v1/items_selection_config.proto +107 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/local_delivery.proto +24 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/membership/com/wixpress/appservice/api/upstream/com/wix/ecom/memberships_spi/v1/memberships_spi.proto +14 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/multilingual_content_provider/com/wixpress/appservice/api/upstream/com/wixpress/multilingual/sitetranslator/spi/v1/TranslationContentProvider.proto +18 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/multiple_dashboards.proto +24 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/out_of_iframe.proto +32 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/page.proto +97 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/page_out_of_iframe.proto +34 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/page_replace/page_replace.proto +12 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/payment_provider/com/wixpress/appservice/api/upstream/wix/psp/v1/payment_service_provider_config.proto +119 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/payments_gateway.proto +11 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/ping_notifications.proto +12 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/ping_settings_group.proto +25 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/platform.proto +59 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/plugin-interface.proto +25 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/portfolio_synced_projects_provider/com/wixpress/appservice/api/upstream/com/wixpress/portfolio/syncedprojects/spi/synced_projects_provider.proto +17 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/premium_custom_charges/com/wixpress/appservice/api/upstream/spi/wix/premium/customcharges/spi/v1/custom_charges_spi.proto +12 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/premium_products_paths/com/wixpress/appservice/api/upstream/spi/com/wixpress/premium/productspaths/v1/products_paths_spi.proto +12 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/recommendations_provider/com/wixpress/appservice/api/upstream/com/wix/ecom/recommendations/spi/recommendations_spi.proto +42 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/restaurants_pos/com/wixpress/appservice/api/upstream/wix/restaurants/pos/v1/pos_provider_config.proto +48 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/seo_keywords_suggestions/com/wixpress/appservice/api/upstream/wix/promote/seo_keywords_suggestions_spi/v1/seo_keywords_suggestions_spi.proto +27 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/shipping_label_carrier/com/wixpress/appservice/api/upstream/com/wix/ecom/shipping/label/carrier_spi/v1/shipping_label_carrier_spi.proto +84 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/slot.proto +13 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/snippet_solution.proto +11 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/social_marketing_design/com/wixpress/appservice/api/upstream/wix/promote/social_marketing_design_spi/v1/social_marketing_design_spi.proto +23 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/social_marketing_designs_provider/com/wixpress/appservice/api/upstream/wix/promote/social_marketing_designs_provider_spi/v1/designs_provider_config.proto +30 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/static_file.proto +17 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/studio.proto +33 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/studio_widget.proto +117 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/viewer_dynamic_site_structure_provider/com/wixpress/appservice/api/upstream/com/wixpress/structure/spi/v1/dynamic_site_structure_provider.proto +15 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/web.proto +346 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/widget.proto +121 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/widget_out_of_iframe.proto +30 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/widget_plugin.proto +34 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/wix_offering.proto +21 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/wix_reviews/com/wixpress/appservice/api/upstream/wix/reviews/product/catalog/spi/v1/reviews_product_catalog_provider.proto +18 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/worker.proto +11 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data.proto +333 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_messages.proto +63 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/extensions_messages.proto +111 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/src/main/proto/wix/devcenter/apps/components/reference/data/component_reference_data_config.proto +16 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/src/main/proto/wix/devcenter/apps/components/reference/data/component_reference_data_spi.proto +61 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/src/main/proto/wix/devcenter/apps/components/validator/components_validator_config.proto +18 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/src/main/proto/wix/devcenter/apps/components/validator/components_validator_spi.proto +42 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/api/action_payload.proto +33 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/api/annotations.proto +352 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/api/api_errors.proto +117 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/api/callback.proto +156 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/api/context.proto +19 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/api/entity.proto +80 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/api/errors.proto +113 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/api/permissions.proto +40 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/api/sla.proto +24 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/api/subscription.proto +31 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/api/validations.proto +133 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/common/address.proto +140 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/common/bulk.proto +52 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/common/identification.proto +40 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/common/image.proto +8 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/common/media.proto +225 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/common/money.proto +32 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/common/pageurl.proto +32 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/common/paging.proto +107 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/common/query.proto +417 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/common/sorting.proto +25 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/common/spi.proto +66 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/common/wixlink.proto +152 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/devcenter/apps/components/v1/component.proto +50 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/graphql/definitions.proto +13 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/http/field_mask.proto +46 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/infra/dataextensions/v1/data_extension_schema.proto +114 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/infra/dataextensions/v1/data_extension_schema_service.proto +162 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/sdk/definitions.proto +191 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/spi/definitions.proto +173 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/spi/http_error_status.proto +24 -0
- package/@wix/ambassador-data-extensions-v1-data-extension-schema/types/package.json +7 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.d.ts +72 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.js +1043 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.js.map +1 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/http.impl.d.ts +8 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/http.impl.js +140 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/http.impl.js.map +1 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/client/proto-generated.d.ts +20279 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/client/proto-generated.js +2 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/proto-generated.d.ts +10146 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/proto-generated.js +137941 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/server/proto-generated.d.ts +20132 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/server/proto-generated.js +2 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/rpc.impl.d.ts +19 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/rpc.impl.js +105 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/rpc.impl.js.map +1 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.d.ts +965 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.js +121 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.js.map +1 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.d.ts +72 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.js +956 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.js.map +1 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/http.impl.d.ts +8 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/http.impl.js +133 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/http.impl.js.map +1 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/rpc.impl.d.ts +19 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/rpc.impl.js +77 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/rpc.impl.js.map +1 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.d.ts +965 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.js +118 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.js.map +1 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/builders/package.json +7 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/http/package.json +7 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/package.json +49 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/rpc/package.json +6 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/advanced-seo-api.proto +66 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/catalog_reference.proto +16 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/description_line.proto +60 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/item_data.proto +88 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/item_media.proto +31 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/item_type.proto +21 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/payment_option.proto +19 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/physical_properties.proto +15 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/platform_catalog_spi.proto +149 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/price_description.proto +13 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/product_name.proto +21 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/secured_media.proto +23 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/service_properties.proto +14 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/subscription_option_info.proto +48 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/address.proto +39 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/addressComponents.proto +41 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/length.proto +14 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/measurementUnit.proto +30 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/multilingualMigration.proto +8 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/platformCursor.proto +17 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/platformMedia.proto +15 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/platformPaging.proto +36 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/platformPagingMetadata.proto +48 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/platformQuery.proto +37 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/platform_search.proto +39 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/unlimitedPlatformQuery.proto +69 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/inventory/api/v1/inventoryEvents.proto +61 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/address.proto +71 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/address_with_contact.proto +14 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/channel_type.proto +16 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/pickup_address.proto +52 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/price.proto +26 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/weight.proto +14 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/action_payload.proto +33 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/annotations.proto +340 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/api_errors.proto +117 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/callback.proto +156 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/context.proto +19 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/entity.proto +80 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/errors.proto +113 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/permissions.proto +40 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/sla.proto +24 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/subscription.proto +31 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/validations.proto +133 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/bulk.proto +10 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/catalog.proto +1185 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/catalogNotReviewed.proto +259 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/catalog_error_data.proto +8 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/collection.proto +39 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/costAndProfit.proto +22 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/event/catalogEvents.proto +104 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/media.proto +89 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/pageUrl.proto +10 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/price.proto +65 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/product.proto +176 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/productOption.proto +56 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/query.proto +45 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/ribbon.proto +15 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/variant.proto +118 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v2/collectionRead.proto +75 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/address.proto +140 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/bulk.proto +52 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/identification.proto +40 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/image.proto +8 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/media.proto +225 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/money.proto +32 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/pageurl.proto +32 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/paging.proto +107 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/query.proto +417 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/sorting.proto +25 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/spi.proto +66 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/wixlink.proto +152 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/cart.proto +44 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/coupon.proto +25 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/coupons-adapter.proto +101 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/coupons.proto +206 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/response-status.proto +10 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/specification.proto +37 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/cart.proto +46 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/coupon.proto +43 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/couponAppliedEvent.proto +25 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/coupons-adapter.proto +61 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/coupons-manager-ui.proto +99 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/coupons.proto +399 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/internal-coupons.proto +46 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/item-for-coupon.proto +22 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/mediaitem.proto +13 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/response-status.proto +10 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/scope.proto +17 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/specification.proto +91 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/fedinfra/exportservice/v1/catalog.proto +30 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/fedinfra/exportservice/v1/export.proto +96 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/fedinfra/exportservice/v1/export_service.proto +145 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/fedinfra/exportservicespi/v1/export_query_v2.proto +53 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/fedinfra/exportservicespi/v1/export_service_spi.proto +50 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/graphql/definitions.proto +13 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/http/field_mask.proto +46 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJob.proto +79 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJobItem.proto +34 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJobService.proto +246 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/upstream/wix/common/paging.proto +34 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/inventory.proto +225 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/inventoryItem.proto +95 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/preOrderInfo.proto +16 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/query.proto +30 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/accounts.proto +30 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/applepay-payment-method.proto +40 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/googlepay-payment-method.proto +55 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/mandatory-fields.proto +69 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/orders.proto +588 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/payment-details.proto +42 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/payment-methods.proto +260 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/payments.proto +334 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/paypal-payment-method.proto +158 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/paypal-recurring-orders.proto +38 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/pos-transactions.proto +34 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/account.proto +22 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/address.proto +57 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/charge.proto +220 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/mandatory-field.proto +44 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/order-additional-charges.proto +19 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/order-buyer-info.proto +25 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/order-cof-intent.proto +131 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/order-description.proto +146 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/order-item.proto +32 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/order-return-urls.proto +21 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/order-status.proto +46 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/order-urls.proto +41 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/order.proto +37 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/payment-method.proto +296 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/payment.proto +208 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/pos-transaction.proto +41 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/subscription-frequency.proto +14 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/subscription-trial-period.proto +16 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/subscription.proto +35 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/transaction.proto +46 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v3/payment-events.proto +27 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v3/resources/order.proto +80 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v3/resources/payment-details.proto +15 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v3/resources/payment-event.proto +121 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v3/resources/recurring-payment.proto +32 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v3/resources/refund.proto +34 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v3/resources/transaction.proto +82 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/sdk/definitions.proto +191 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/spi/definitions.proto +173 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/spi/http_error_status.proto +24 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/types/package.json +7 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/builders.impl.d.ts +14 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/builders.impl.js +168 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/builders.impl.js.map +1 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/crud/http.impl.d.ts +1 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/crud/http.impl.js +5 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/crud/http.impl.js.map +1 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/crud/rpc.impl.d.ts +11 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/crud/rpc.impl.js +41 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/crud/rpc.impl.js.map +1 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/http.impl.d.ts +12 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/http.impl.js +167 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/http.impl.js.map +1 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/proto/client/proto-generated.d.ts +7382 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/proto/client/proto-generated.js +2 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/proto/proto-generated.d.ts +3700 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/proto/proto-generated.js +57101 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/proto/server/proto-generated.d.ts +7377 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/proto/server/proto-generated.js +2 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/rpc.impl.d.ts +21 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/rpc.impl.js +95 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/rpc.impl.js.map +1 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/types.impl.d.ts +73 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/types.impl.js +10 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/types.impl.js.map +1 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/builders.impl.d.ts +14 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/builders.impl.js +140 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/builders.impl.js.map +1 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/crud/http.impl.d.ts +1 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/crud/http.impl.js +2 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/crud/http.impl.js.map +1 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/crud/rpc.impl.d.ts +11 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/crud/rpc.impl.js +34 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/crud/rpc.impl.js.map +1 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/http.impl.d.ts +12 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/http.impl.js +159 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/http.impl.js.map +1 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/rpc.impl.d.ts +21 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/rpc.impl.js +68 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/rpc.impl.js.map +1 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/types.impl.d.ts +73 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/types.impl.js +7 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/types.impl.js.map +1 -0
- package/@wix/ambassador-os-tags-v1-tag/builders/package.json +7 -0
- package/@wix/ambassador-os-tags-v1-tag/crud/http/package.json +7 -0
- package/@wix/ambassador-os-tags-v1-tag/crud/rpc/package.json +6 -0
- package/@wix/ambassador-os-tags-v1-tag/http/package.json +7 -0
- package/@wix/ambassador-os-tags-v1-tag/package.json +52 -0
- package/@wix/ambassador-os-tags-v1-tag/rpc/package.json +6 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/action_payload.proto +33 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/annotations.proto +360 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/api_errors.proto +117 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/callback.proto +156 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/context.proto +19 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/entity.proto +80 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/errors.proto +113 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/permissions.proto +40 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/sla.proto +24 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/subscription.proto +31 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/validations.proto +131 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/address.proto +140 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/bulk.proto +52 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/data/dataextensions/extended-fields.proto +18 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/data/dataextensions/update-extended-fields-messages.proto +15 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/data/errors.proto +411 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/identification.proto +40 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/image.proto +8 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/media.proto +225 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/money.proto +32 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/pageurl.proto +32 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/paging.proto +107 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/query.proto +417 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/sorting.proto +25 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/spi.proto +66 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/tags.proto +55 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/wixlink.proto +152 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/graphql/definitions.proto +13 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/http/field_mask.proto +46 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/os/v1/tag.proto +39 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/os/v1/tag_exposure.proto +12 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/os/v1/tags_service.proto +192 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/sdk/definitions.proto +191 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/spi/definitions.proto +173 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/spi/http_error_status.proto +24 -0
- package/@wix/ambassador-os-tags-v1-tag/types/package.json +7 -0
- package/@wix/bi-logger-cairo-os/dist/cjs/index.js +294 -0
- package/@wix/bi-logger-cairo-os/dist/cjs/index.js.map +1 -0
- package/@wix/bi-logger-cairo-os/dist/cjs/testkit/client-testkit.js +596 -0
- package/@wix/bi-logger-cairo-os/dist/cjs/testkit/client-testkit.js.map +1 -0
- package/@wix/bi-logger-cairo-os/dist/cjs/testkit/common.js +6383 -0
- package/@wix/bi-logger-cairo-os/dist/cjs/testkit/common.js.map +1 -0
- package/@wix/bi-logger-cairo-os/dist/cjs/testkit/node-testkit.js +640 -0
- package/@wix/bi-logger-cairo-os/dist/cjs/testkit/node-testkit.js.map +1 -0
- package/@wix/bi-logger-cairo-os/dist/cjs/types.js +3 -0
- package/@wix/bi-logger-cairo-os/dist/cjs/types.js.map +1 -0
- package/@wix/bi-logger-cairo-os/dist/cjs/v2/index.js +2085 -0
- package/@wix/bi-logger-cairo-os/dist/cjs/v2/index.js.map +1 -0
- package/@wix/bi-logger-cairo-os/dist/esm/index.js +290 -0
- package/@wix/bi-logger-cairo-os/dist/esm/index.js.map +1 -0
- package/@wix/bi-logger-cairo-os/dist/esm/testkit/client-testkit.js +588 -0
- package/@wix/bi-logger-cairo-os/dist/esm/testkit/client-testkit.js.map +1 -0
- package/@wix/bi-logger-cairo-os/dist/esm/testkit/common.js +6379 -0
- package/@wix/bi-logger-cairo-os/dist/esm/testkit/common.js.map +1 -0
- package/@wix/bi-logger-cairo-os/dist/esm/testkit/node-testkit.js +612 -0
- package/@wix/bi-logger-cairo-os/dist/esm/testkit/node-testkit.js.map +1 -0
- package/@wix/bi-logger-cairo-os/dist/esm/types.js +2 -0
- package/@wix/bi-logger-cairo-os/dist/esm/types.js.map +1 -0
- package/@wix/bi-logger-cairo-os/dist/esm/v2/index.js +2005 -0
- package/@wix/bi-logger-cairo-os/dist/esm/v2/index.js.map +1 -0
- package/@wix/bi-logger-cairo-os/dist/types/index.d.ts +93 -0
- package/@wix/bi-logger-cairo-os/dist/types/testkit/client-testkit.d.ts +1338 -0
- package/@wix/bi-logger-cairo-os/dist/types/testkit/common.d.ts +10 -0
- package/@wix/bi-logger-cairo-os/dist/types/testkit/node-testkit.d.ts +1339 -0
- package/@wix/bi-logger-cairo-os/dist/types/types.d.ts +1333 -0
- package/@wix/bi-logger-cairo-os/dist/types/v2/index.d.ts +1853 -0
- package/@wix/bi-logger-cairo-os/package.json +50 -0
- package/@wix/bi-logger-cairo-os/src/external-types.d.ts +1 -0
- package/@wix/bi-logger-cairo-os/src/index.ts +346 -0
- package/@wix/bi-logger-cairo-os/src/testkit/client-testkit.ts +1596 -0
- package/@wix/bi-logger-cairo-os/src/testkit/common.ts +6456 -0
- package/@wix/bi-logger-cairo-os/src/testkit/node-testkit.ts +1606 -0
- package/@wix/bi-logger-cairo-os/src/types.ts +2407 -0
- package/@wix/bi-logger-cairo-os/src/v2/index.ts +2081 -0
- package/@wix/bi-logger-cairo-os/testkit/client/package.json +6 -0
- package/@wix/bi-logger-cairo-os/testkit/node/package.json +6 -0
- package/@wix/bi-logger-cairo-os/testkit/package.json +6 -0
- package/@wix/bi-logger-cairo-os/v2/package.json +6 -0
- package/@wix/bi-logger-cairo-os/v2/types.d.ts +1 -0
- package/@wix/wix-i18n-config/README.md +247 -0
- package/@wix/wix-i18n-config/dist/cjs/i18n.js +72 -0
- package/@wix/wix-i18n-config/dist/cjs/i18n.js.map +1 -0
- package/@wix/wix-i18n-config/dist/cjs/icu/icu.js +126 -0
- package/@wix/wix-i18n-config/dist/cjs/icu/icu.js.map +1 -0
- package/@wix/wix-i18n-config/dist/cjs/icu/utils.js +82 -0
- package/@wix/wix-i18n-config/dist/cjs/icu/utils.js.map +1 -0
- package/@wix/wix-i18n-config/dist/cjs/index.js +28 -0
- package/@wix/wix-i18n-config/dist/cjs/index.js.map +1 -0
- package/@wix/wix-i18n-config/dist/cjs/initI18n.js +24 -0
- package/@wix/wix-i18n-config/dist/cjs/initI18n.js.map +1 -0
- package/@wix/wix-i18n-config/dist/cjs/initI18nWithoutICU.js +9 -0
- package/@wix/wix-i18n-config/dist/cjs/initI18nWithoutICU.js.map +1 -0
- package/@wix/wix-i18n-config/dist/cjs/relative-time-formatting.js +266 -0
- package/@wix/wix-i18n-config/dist/cjs/relative-time-formatting.js.map +1 -0
- package/@wix/wix-i18n-config/dist/esm/i18n.js +51 -0
- package/@wix/wix-i18n-config/dist/esm/i18n.js.map +1 -0
- package/@wix/wix-i18n-config/dist/esm/icu/icu.js +106 -0
- package/@wix/wix-i18n-config/dist/esm/icu/icu.js.map +1 -0
- package/@wix/wix-i18n-config/dist/esm/icu/utils.js +71 -0
- package/@wix/wix-i18n-config/dist/esm/icu/utils.js.map +1 -0
- package/@wix/wix-i18n-config/dist/esm/index.js +9 -0
- package/@wix/wix-i18n-config/dist/esm/index.js.map +1 -0
- package/@wix/wix-i18n-config/dist/esm/initI18n.js +10 -0
- package/@wix/wix-i18n-config/dist/esm/initI18n.js.map +1 -0
- package/@wix/wix-i18n-config/dist/esm/initI18nWithoutICU.js +5 -0
- package/@wix/wix-i18n-config/dist/esm/initI18nWithoutICU.js.map +1 -0
- package/@wix/wix-i18n-config/dist/esm/relative-time-formatting.js +263 -0
- package/@wix/wix-i18n-config/dist/esm/relative-time-formatting.js.map +1 -0
- package/@wix/wix-i18n-config/dist/tsconfig.tsbuildinfo +1 -0
- package/@wix/wix-i18n-config/dist/types/i18n.d.ts +16 -0
- package/@wix/wix-i18n-config/dist/types/i18n.d.ts.map +1 -0
- package/@wix/wix-i18n-config/dist/types/icu/icu.d.ts +47 -0
- package/@wix/wix-i18n-config/dist/types/icu/icu.d.ts.map +1 -0
- package/@wix/wix-i18n-config/dist/types/icu/utils.d.ts +6 -0
- package/@wix/wix-i18n-config/dist/types/icu/utils.d.ts.map +1 -0
- package/@wix/wix-i18n-config/dist/types/index.d.ts +12 -0
- package/@wix/wix-i18n-config/dist/types/index.d.ts.map +1 -0
- package/@wix/wix-i18n-config/dist/types/initI18n.d.ts +8 -0
- package/@wix/wix-i18n-config/dist/types/initI18n.d.ts.map +1 -0
- package/@wix/wix-i18n-config/dist/types/initI18nWithoutICU.d.ts +3 -0
- package/@wix/wix-i18n-config/dist/types/initI18nWithoutICU.d.ts.map +1 -0
- package/@wix/wix-i18n-config/dist/types/relative-time-formatting.d.ts +7 -0
- package/@wix/wix-i18n-config/dist/types/relative-time-formatting.d.ts.map +1 -0
- package/@wix/wix-i18n-config/package.json +63 -0
- package/README.md +12 -0
- package/dist/cjs/PromiseState.js +68 -0
- package/dist/cjs/PromiseState.js.map +1 -0
- package/dist/cjs/batchUpdates.js +7 -0
- package/dist/cjs/batchUpdates.js.map +1 -0
- package/dist/cjs/events.js +19 -0
- package/dist/cjs/events.js.map +1 -0
- package/dist/cjs/exports/react-dom.js +10 -0
- package/dist/cjs/exports/react-dom.js.map +1 -0
- package/dist/cjs/exports/react-native.js +10 -0
- package/dist/cjs/exports/react-native.js.map +1 -0
- package/dist/cjs/exports/react.js +10 -0
- package/dist/cjs/exports/react.js.map +1 -0
- package/dist/cjs/index.js +22 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/reactive.js +23 -0
- package/dist/cjs/reactive.js.map +1 -0
- package/dist/cjs/reactiveContext.js +9 -0
- package/dist/cjs/reactiveContext.js.map +1 -0
- package/dist/cjs/setReactDOMBatchUpdates.js +12 -0
- package/dist/cjs/setReactDOMBatchUpdates.js.map +1 -0
- package/dist/cjs/setReactNativeBatchUpdates.js +10 -0
- package/dist/cjs/setReactNativeBatchUpdates.js.map +1 -0
- package/dist/cjs/useReactive.js +18 -0
- package/dist/cjs/useReactive.js.map +1 -0
- package/dist/esm/PromiseState.js +47 -0
- package/dist/esm/PromiseState.js.map +1 -0
- package/dist/esm/batchUpdates.js +2 -0
- package/dist/esm/batchUpdates.js.map +1 -0
- package/dist/esm/events.js +15 -0
- package/dist/esm/events.js.map +1 -0
- package/dist/esm/exports/react-dom.js +2 -0
- package/dist/esm/exports/react-dom.js.map +1 -0
- package/dist/esm/exports/react-native.js +2 -0
- package/dist/esm/exports/react-native.js.map +1 -0
- package/dist/esm/exports/react.js +2 -0
- package/dist/esm/exports/react.js.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/reactive.js +17 -0
- package/dist/esm/reactive.js.map +1 -0
- package/dist/esm/reactiveContext.js +5 -0
- package/dist/esm/reactiveContext.js.map +1 -0
- package/dist/esm/setReactDOMBatchUpdates.js +7 -0
- package/dist/esm/setReactDOMBatchUpdates.js.map +1 -0
- package/dist/esm/setReactNativeBatchUpdates.js +6 -0
- package/dist/esm/setReactNativeBatchUpdates.js.map +1 -0
- package/dist/esm/useReactive.js +14 -0
- package/dist/esm/useReactive.js.map +1 -0
- package/dist/types/PromiseState.d.ts +35 -0
- package/dist/types/PromiseState.d.ts.map +1 -0
- package/dist/types/batchUpdates.d.ts +3 -0
- package/dist/types/batchUpdates.d.ts.map +1 -0
- package/dist/types/events.d.ts +10 -0
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/exports/react-dom.d.ts +2 -0
- package/dist/types/exports/react-dom.d.ts.map +1 -0
- package/dist/types/exports/react-native.d.ts +2 -0
- package/dist/types/exports/react-native.d.ts.map +1 -0
- package/dist/types/exports/react.d.ts +2 -0
- package/dist/types/exports/react.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/reactive.d.ts +9 -0
- package/dist/types/reactive.d.ts.map +1 -0
- package/dist/types/reactiveContext.d.ts +6 -0
- package/dist/types/reactiveContext.d.ts.map +1 -0
- package/dist/types/setReactDOMBatchUpdates.d.ts +2 -0
- package/dist/types/setReactDOMBatchUpdates.d.ts.map +1 -0
- package/dist/types/setReactNativeBatchUpdates.d.ts +2 -0
- package/dist/types/setReactNativeBatchUpdates.d.ts.map +1 -0
- package/dist/types/useReactive.d.ts +3 -0
- package/dist/types/useReactive.d.ts.map +1 -0
- package/package.json +147 -0
- package/react/package.json +6 -0
- package/react-dom/package.json +6 -0
- package/react-native/package.json +6 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/types/types';
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
# wix-i18n-config
|
|
2
|
+
|
|
3
|
+
This config encapsulates i18next initialization so it works out of the box with react apps.
|
|
4
|
+
It also solves versioning issues between i18next and react-i18next by exposing compatible versions.
|
|
5
|
+
|
|
6
|
+
Wrapper supports ICU messages format.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
`yarn add @wix/wix-i18n-config`
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Loading translations async
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
import { initI18n, withTranslation, I18nextProvider, useTranslation } from '@wix/wix-i18n-config';
|
|
19
|
+
|
|
20
|
+
const App = withTranslation()(({ t }) => (
|
|
21
|
+
<div>{t('foo', { baz: 'hello world' })}</div>
|
|
22
|
+
));
|
|
23
|
+
|
|
24
|
+
// or using hooks
|
|
25
|
+
const App = () => {
|
|
26
|
+
const [t] = useTranslation();
|
|
27
|
+
return <div>{t('foo', { baz: 'hello world' })}</div>
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const i18n = initI18n({
|
|
31
|
+
disableAutoInit: true,
|
|
32
|
+
locale: 'en',
|
|
33
|
+
asyncMessagesLoader: locale => import(`./path/to/locale/messages_${locale}.json`),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
i18n.init(); // can also be awaited
|
|
37
|
+
|
|
38
|
+
ReactDOM.render(
|
|
39
|
+
<I18nextProvider i18n={i18n}>
|
|
40
|
+
<App/>
|
|
41
|
+
</I18nextProvider>,
|
|
42
|
+
container,
|
|
43
|
+
);
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Passing translations directly
|
|
47
|
+
|
|
48
|
+
Should be used when:
|
|
49
|
+
1. Your server already renders the message files with your initial HTML.;
|
|
50
|
+
2. You want to bundle all of the translation files.;
|
|
51
|
+
|
|
52
|
+
Example project with this setup can be found at [full stack project](https://github.com/wix/yoshi/tree/master/packages/create-yoshi-app/templates/fullstack/javascript).
|
|
53
|
+
|
|
54
|
+
```js
|
|
55
|
+
import { initI18n, withTranslation, I18nextProvider } from '@wix/wix-i18n-config';
|
|
56
|
+
|
|
57
|
+
const App = withTranslation()(({ t }) => (
|
|
58
|
+
<div>{t('foo', { baz: 'hello world' })}</div>
|
|
59
|
+
));
|
|
60
|
+
|
|
61
|
+
const i18n = initI18n({
|
|
62
|
+
disableAutoInit: true,
|
|
63
|
+
locale: 'en',
|
|
64
|
+
messages: {foo: 'Bar {baz}'},
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
i18n.init(); // can also be awaited
|
|
68
|
+
|
|
69
|
+
ReactDOM.render(
|
|
70
|
+
<I18nextProvider i18n={i18n}>
|
|
71
|
+
<App/>
|
|
72
|
+
</I18nextProvider>,
|
|
73
|
+
container,
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## API
|
|
79
|
+
### `initI18n({ locale, messages?, asyncMessagesLoader? })`
|
|
80
|
+
|
|
81
|
+
Configures i18next instance with ICU message support and return the instance itself.
|
|
82
|
+
Messages can be passed directly in `messages` param or loaded async with `asyncMessagesLoader`.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
Parameters:
|
|
86
|
+
|
|
87
|
+
| Name | Type | Description |
|
|
88
|
+
|------:|:-----|---------|
|
|
89
|
+
| `locale` | String **(required)**| locale of your messages, i.e. 'en'; |
|
|
90
|
+
| `messages` | Object | translations for the locale in format of '{key: 'message'}', usually it's the content of your 'messages_xx.json' |
|
|
91
|
+
| `asyncMessagesLoader` | Function | function that receives locale and return promise that resolves to messages. |
|
|
92
|
+
| `disableAutoInit` | Boolean | disables automatic fetching of i18n assets. |
|
|
93
|
+
| `useSuspense` | Boolean | when waiting for translation files, `i18next-react` triggers [Suspense](https://reactjs.org/docs/concurrent-mode-suspense.html). in case you want to use Suspense, set this to `true` and wrap your translated components [like in this example](https://react.i18next.com/latest/using-with-hooks#using-the-withtranslation-hoc). default: `false`. This also triggers suspense if polyfill is loading. |
|
|
94
|
+
| `wait` | Boolean | Prevent rendering until react translation files and polyfills will be loaded. Useful if useSuspense is disabled. Make sure to pass it only for client-side rendering. |
|
|
95
|
+
| `parseErrorHandler` | Function | Will be run when parser throws an error. Can return any string, which can be used as a fallback, in case of broken translation. If omitted, the default swallows the error and returns the unsubstituted string |
|
|
96
|
+
| `icuOptions` | Object | pass options to i18next [ICU plugin](https://github.com/i18next/i18next-icu). Allows to set custom format styles for the supported formatters [link](https://github.com/formatjs/intl-messageformat#user-defined-formats)|
|
|
97
|
+
|
|
98
|
+
**[withTranslation](https://react.i18next.com/latest/withtranslation-hoc)**, **[I18nextProvider](https://react.i18next.com/latest/i18nextprovider)**, **[useTranslation](https://react.i18next.com/latest/usetranslation-hook)** and **[Trans](https://react.i18next.com/latest/trans-component)** are exported from [react-i18next](https://react.i18next.com). If your React version does not support hooks (16.8 and above), please use version ^3.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### `initI18nWithoutPolyfills({ locale, messages?, asyncMessagesLoader? })`
|
|
102
|
+
Same as `initI18n`, but without implicitly-loaded polyfills (for environments where polyfills are already preconfigured).
|
|
103
|
+
|
|
104
|
+
It accepts the same options except the one directly related to polyfills: `polyfillRelativeTime`.
|
|
105
|
+
|
|
106
|
+
### `initI18nWithoutICU({ locale, messages?, asyncMessagesLoader? })`
|
|
107
|
+
Same as `initI18n`, but without ICU logic.
|
|
108
|
+
Since it could be tricky to migrate some non-ICU translations to ICU, the library provides a way to disable ICU logic.
|
|
109
|
+
|
|
110
|
+
To exclude ICU-related libraries and polyfills from the bundle relying on tree-shaking, it's being exported as a separate namespace.
|
|
111
|
+
|
|
112
|
+
It accepts the same options except the ones directly related to ICU: `icuOptions`, `parseErrorHandler`, and `polyfillRelativeTime`.
|
|
113
|
+
|
|
114
|
+
## Changing language
|
|
115
|
+
|
|
116
|
+
`withTranslation` HOC injects the `i18n` object, which can be used to changes language and other configuration once the application is loaded.
|
|
117
|
+
|
|
118
|
+
##### Asynchronous strategy
|
|
119
|
+
Simply use the `i18n.changeLanguage()` method.
|
|
120
|
+
|
|
121
|
+
##### Synchronous strategy
|
|
122
|
+
Before calling the `i18n.changeLanguage()` method, resources should be added via the `i18n.addResources()` method. For example, before calling `i18n.changeLanguage('fr')`, we must call `i18n.addResources('fr', 'namespace', { key: 'value' })`.
|
|
123
|
+
|
|
124
|
+
WARNING:
|
|
125
|
+
if you do the language change, make sure `plural rules` (and `relative time format` if you need it) is loaded BEFORE you actually change the language:
|
|
126
|
+
|
|
127
|
+
```js
|
|
128
|
+
import { loadPluralRules, loadRelativeTimeFormat } from '@wix/wix-i18n-config/polyfills';
|
|
129
|
+
|
|
130
|
+
// only plural rules
|
|
131
|
+
loadPluralRules(newLocale).then(() => {
|
|
132
|
+
i18n.changeLanguage();
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
// plural rules with relative date time format
|
|
136
|
+
Promise.all([
|
|
137
|
+
loadPluralRules(newLocale),
|
|
138
|
+
loadRelativeTimeFormat(newLocale),
|
|
139
|
+
]).then(() => {
|
|
140
|
+
i18n.changeLanguage();
|
|
141
|
+
})
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## Relative time formatting
|
|
146
|
+
|
|
147
|
+
If you need to format time relative to current time, use `createRtfFormatter` formatter.
|
|
148
|
+
|
|
149
|
+
```js
|
|
150
|
+
import { createRtfFormatter } from '@wix/wix-i18n-config';
|
|
151
|
+
|
|
152
|
+
const rtf = createRtfFormatter('en');
|
|
153
|
+
rtf(Date.now() - SECOND * 20); // '20 seconds ago'
|
|
154
|
+
rtf(Date.now() - SECOND * 59); // '59 seconds ago'
|
|
155
|
+
rtf(Date.now() - MINUTE * 6); // '6 minutes ago'
|
|
156
|
+
rtf(Date.now() - HOUR * 3); // '3 hours ago'
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
// floor the seconds
|
|
160
|
+
const rtf = createRtfFormatter('en', { floorSeconds: true });
|
|
161
|
+
rtf(Date.now() - SECOND * 20); // '1 second ago'
|
|
162
|
+
rtf(Date.now() - SECOND * 59); // '1 second ago'
|
|
163
|
+
rtf(Date.now() - SECOND * 61); // '1 minute ago'
|
|
164
|
+
|
|
165
|
+
// use extra short expression
|
|
166
|
+
const rtf = createRtfFormatter('en', {
|
|
167
|
+
extraShortExpression: true,
|
|
168
|
+
}, {
|
|
169
|
+
style: 'narrow' }
|
|
170
|
+
);
|
|
171
|
+
rtf(Date.now() - SECOND * 20); // '20s'
|
|
172
|
+
rtf(Date.now() - SECOND * 59); // '59s'
|
|
173
|
+
rtf(Date.now() - MINUTE * 6); // '6m'
|
|
174
|
+
rtf(Date.now() - HOUR * 3); // '3h'
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
## Migrating from `^5.0.0` to `^6.0.0`
|
|
178
|
+
|
|
179
|
+
Dropped all polyfills, since [min browsers that wix supports](https://support.wix.com/en/article/supported-browsers) have all the required features.
|
|
180
|
+
|
|
181
|
+
As a reasult following options are dropped:
|
|
182
|
+
|
|
183
|
+
* `polyfillRelativeTime`
|
|
184
|
+
|
|
185
|
+
## Migrating from `^4.0.0` to `^5.0.0`
|
|
186
|
+
|
|
187
|
+
You no longer need to load polyfills i browser by yourself, it's done automatically.
|
|
188
|
+
|
|
189
|
+
The following export was removed
|
|
190
|
+
```
|
|
191
|
+
- import { loadBrowserPolyfills } from '@wix/wix-i18n-config/polyfills';
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Path to node polyfills was changed
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
- import { loadNodePolyfills } from '@wix/wix-i18n-config/polyfills';
|
|
198
|
+
+ import { loadNodePolyfills } from '@wix/wix-i18n-config/polyfills/node';
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
## Migrating from `^3.0.0` to `^4.0.0`
|
|
202
|
+
|
|
203
|
+
We are using [React with hooks](https://reactjs.org/docs/hooks-intro.html), and the latest versions of `i18next, react-i18next` as of version 4. If your React version is below 16.8, please use version 3.
|
|
204
|
+
|
|
205
|
+
## Migrating from `^2.0.0` to `^3.0.0`
|
|
206
|
+
|
|
207
|
+
The polyfill loaders are no longer exported through the main `index.js` file since it caused Webpack to create many irrelevant chunks even when the polyfills were not needed.
|
|
208
|
+
|
|
209
|
+
All the polyfill loaders are now available at `@wix/wix-i18n-config/polyfills`.
|
|
210
|
+
|
|
211
|
+
## Q & A:
|
|
212
|
+
|
|
213
|
+
Q: I want to migrate an existing project to use `wix-i18n-config`, is there something that I need to change with the translations?
|
|
214
|
+
|
|
215
|
+
A: You have to make sure that all of the formatting and interpolations are using the single curly brackets format, which is defined by ICU. For example, if you have a translation key with this value: `"Click this link: {{link}}"` you should manually transform it in all `messages_xx.json` files to look like this `"Click this link: {link}"`. Also note, that if the parameter that you're interpolating is a `number` or a `date` you should leverage the ICU formatting (e.g. `"Your apple count is: {appleCount, number}"`. You can find more formatting examples [here](https://apps.wix.com/translations-icu-examples-project).
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
Q: I want to remove the configuration boilerplate from the project's side and move to `wix-i18n-config`, but can't completely migrate to ICU format. Any options to disable ICU until I finish the migration?
|
|
220
|
+
|
|
221
|
+
A: Yes. You can use `initI18nWithoutICU` for the migration period.
|
|
222
|
+
|
|
223
|
+
----
|
|
224
|
+
|
|
225
|
+
Q: I'm migrating from the old version of those libs. Where is my `InjectedTranslatedProps` interface for React components?
|
|
226
|
+
|
|
227
|
+
A: Use `WithTranslation` instead, since `translate` HOC was renamed to `withTranslation`.
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
Q: My interpolation with numbers doesn’t work. What should I do?
|
|
232
|
+
|
|
233
|
+
A: Since new version of the lib uses ICU message format, make sure you are using *single curly brackets* for interpolation.
|
|
234
|
+
|
|
235
|
+
So instead of this:
|
|
236
|
+
|
|
237
|
+
`"some.key": "Knock {{count}} times"`
|
|
238
|
+
|
|
239
|
+
you could do this:
|
|
240
|
+
|
|
241
|
+
`"some.key": "Knock {count} times"`
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
## Further Reading
|
|
245
|
+
|
|
246
|
+
- [ICU Message Syntax](https://formatjs.io/docs/core-concepts/icu-syntax)
|
|
247
|
+
- [Translation @ FED Handbook](https://github.com/wix-private/fed-handbook/blob/master/TRANSLATION.md)
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.i18n = i18n;
|
|
6
|
+
var _i18next = _interopRequireDefault(require("i18next"));
|
|
7
|
+
function i18n({
|
|
8
|
+
locale,
|
|
9
|
+
asyncMessagesLoader,
|
|
10
|
+
messages,
|
|
11
|
+
useSuspense = false,
|
|
12
|
+
wait,
|
|
13
|
+
disableAutoInit = false,
|
|
14
|
+
bindI18n
|
|
15
|
+
}, {
|
|
16
|
+
icu
|
|
17
|
+
} = {}) {
|
|
18
|
+
const config = {
|
|
19
|
+
// Initial language
|
|
20
|
+
lng: locale,
|
|
21
|
+
fallbackLng: 'en',
|
|
22
|
+
// Don't use a key separator (no support for nested translation objects)
|
|
23
|
+
keySeparator: false,
|
|
24
|
+
react: {
|
|
25
|
+
useSuspense,
|
|
26
|
+
bindI18n,
|
|
27
|
+
wait
|
|
28
|
+
},
|
|
29
|
+
// @ts-expect-error It's here for backward campatibility - can be removed after old `wix-i18n-config` will no longer be in use.
|
|
30
|
+
// Basically when BM can be loaded without this config - you're good to go.
|
|
31
|
+
_polyfill: {
|
|
32
|
+
isLoading: false
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const i18nInstance = _i18next.default.createInstance(disableAutoInit ? config : undefined);
|
|
36
|
+
|
|
37
|
+
// icu is optional since this function can be called from initI18n or initI18nWithoutICU modules
|
|
38
|
+
if (icu) {
|
|
39
|
+
i18nInstance.use(icu);
|
|
40
|
+
}
|
|
41
|
+
if (asyncMessagesLoader) {
|
|
42
|
+
i18nInstance.use({
|
|
43
|
+
type: 'backend',
|
|
44
|
+
read: async (language, _namespace, callback) => {
|
|
45
|
+
// We configure how i18next should fetch a translation resource when it
|
|
46
|
+
// needs it: We use Webpack's dynamic imports to fetch resources without
|
|
47
|
+
// increasing our bundle size.
|
|
48
|
+
//
|
|
49
|
+
// See https://webpack.js.org/guides/code-splitting/#dynamic-imports for
|
|
50
|
+
// more information.
|
|
51
|
+
try {
|
|
52
|
+
const translation = await asyncMessagesLoader(language);
|
|
53
|
+
return callback(null, translation);
|
|
54
|
+
} catch (err) {
|
|
55
|
+
return callback(err, null);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
if (messages) {
|
|
61
|
+
config.resources = {
|
|
62
|
+
[locale]: {
|
|
63
|
+
translation: messages
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
if (!disableAutoInit) {
|
|
68
|
+
i18nInstance.init(config);
|
|
69
|
+
}
|
|
70
|
+
return i18nInstance;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=i18n.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_i18next","_interopRequireDefault","require","i18n","locale","asyncMessagesLoader","messages","useSuspense","wait","disableAutoInit","bindI18n","icu","config","lng","fallbackLng","keySeparator","react","_polyfill","isLoading","i18nInstance","i18next","createInstance","undefined","use","type","read","language","_namespace","callback","translation","err","resources","init"],"sources":["../../src/i18n.ts"],"sourcesContent":["import type { InitOptions } from 'i18next';\nimport i18next from 'i18next';\n\nexport interface Messages {\n [key: string]: string;\n}\n\nexport type I18nOptions = {\n locale: string;\n asyncMessagesLoader?: (language: string) => Promise<Messages>;\n messages?: Messages;\n useSuspense?: boolean;\n wait?: boolean;\n disableAutoInit?: boolean;\n bindI18n?: string;\n};\n\nexport function i18n(\n {\n locale,\n asyncMessagesLoader,\n messages,\n useSuspense = false,\n wait,\n disableAutoInit = false,\n bindI18n,\n }: I18nOptions,\n { icu }: { icu?: any } = {},\n) {\n const config: InitOptions = {\n // Initial language\n lng: locale,\n fallbackLng: 'en',\n\n // Don't use a key separator (no support for nested translation objects)\n keySeparator: false,\n\n react: {\n useSuspense,\n bindI18n,\n wait,\n },\n\n // @ts-expect-error It's here for backward campatibility - can be removed after old `wix-i18n-config` will no longer be in use.\n // Basically when BM can be loaded without this config - you're good to go.\n _polyfill: { isLoading: false },\n };\n\n const i18nInstance = i18next.createInstance(\n disableAutoInit ? config : undefined,\n );\n\n // icu is optional since this function can be called from initI18n or initI18nWithoutICU modules\n if (icu) {\n i18nInstance.use(icu);\n }\n\n if (asyncMessagesLoader) {\n i18nInstance.use({\n type: 'backend' as const,\n read: async (\n language: string,\n _namespace: string,\n callback: (\n error: null | unknown,\n messages: null | Record<string, string>,\n ) => void,\n ) => {\n // We configure how i18next should fetch a translation resource when it\n // needs it: We use Webpack's dynamic imports to fetch resources without\n // increasing our bundle size.\n //\n // See https://webpack.js.org/guides/code-splitting/#dynamic-imports for\n // more information.\n try {\n const translation = await asyncMessagesLoader(language);\n return callback(null, translation);\n } catch (err) {\n return callback(err, null);\n }\n },\n });\n }\n\n if (messages) {\n config.resources = { [locale]: { translation: messages } };\n }\n\n if (!disableAutoInit) {\n i18nInstance.init(config);\n }\n\n return i18nInstance;\n}\n"],"mappings":";;;;;AACA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AAgBO,SAASC,IAAIA,CAClB;EACEC,MAAM;EACNC,mBAAmB;EACnBC,QAAQ;EACRC,WAAW,GAAG,KAAK;EACnBC,IAAI;EACJC,eAAe,GAAG,KAAK;EACvBC;AACW,CAAC,EACd;EAAEC;AAAmB,CAAC,GAAG,CAAC,CAAC,EAC3B;EACA,MAAMC,MAAmB,GAAG;IAC1B;IACAC,GAAG,EAAET,MAAM;IACXU,WAAW,EAAE,IAAI;IAEjB;IACAC,YAAY,EAAE,KAAK;IAEnBC,KAAK,EAAE;MACLT,WAAW;MACXG,QAAQ;MACRF;IACF,CAAC;IAED;IACA;IACAS,SAAS,EAAE;MAAEC,SAAS,EAAE;IAAM;EAChC,CAAC;EAED,MAAMC,YAAY,GAAGC,gBAAO,CAACC,cAAc,CACzCZ,eAAe,GAAGG,MAAM,GAAGU,SAC7B,CAAC;;EAED;EACA,IAAIX,GAAG,EAAE;IACPQ,YAAY,CAACI,GAAG,CAACZ,GAAG,CAAC;EACvB;EAEA,IAAIN,mBAAmB,EAAE;IACvBc,YAAY,CAACI,GAAG,CAAC;MACfC,IAAI,EAAE,SAAkB;MACxBC,IAAI,EAAE,MAAAA,CACJC,QAAgB,EAChBC,UAAkB,EAClBC,QAGS,KACN;QACH;QACA;QACA;QACA;QACA;QACA;QACA,IAAI;UACF,MAAMC,WAAW,GAAG,MAAMxB,mBAAmB,CAACqB,QAAQ,CAAC;UACvD,OAAOE,QAAQ,CAAC,IAAI,EAAEC,WAAW,CAAC;QACpC,CAAC,CAAC,OAAOC,GAAG,EAAE;UACZ,OAAOF,QAAQ,CAACE,GAAG,EAAE,IAAI,CAAC;QAC5B;MACF;IACF,CAAC,CAAC;EACJ;EAEA,IAAIxB,QAAQ,EAAE;IACZM,MAAM,CAACmB,SAAS,GAAG;MAAE,CAAC3B,MAAM,GAAG;QAAEyB,WAAW,EAAEvB;MAAS;IAAE,CAAC;EAC5D;EAEA,IAAI,CAACG,eAAe,EAAE;IACpBU,YAAY,CAACa,IAAI,CAACpB,MAAM,CAAC;EAC3B;EAEA,OAAOO,YAAY;AACrB"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.default = void 0;
|
|
6
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
7
|
+
var _intlMessageformat = _interopRequireDefault(require("intl-messageformat"));
|
|
8
|
+
var utils = _interopRequireWildcard(require("./utils"));
|
|
9
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
+
function getDefaults() {
|
|
12
|
+
return {
|
|
13
|
+
memoize: true,
|
|
14
|
+
memoizeFallback: false,
|
|
15
|
+
bindI18n: '',
|
|
16
|
+
bindI18nStore: undefined,
|
|
17
|
+
parseErrorHandler: (_err, _key, res) => {
|
|
18
|
+
return res;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Copied from original ICU source code.
|
|
25
|
+
* @source https://github.com/i18next/i18next-icu/blob/7809547c821a7ef3b2bb9ab2610cdbbcfedcb2f9/src/index.js
|
|
26
|
+
*
|
|
27
|
+
* It's done in order to support `IntlMessageFormat` out of the box.
|
|
28
|
+
* `IntlMessageFormat` is adding formatters that are not provided by i18n.
|
|
29
|
+
* For example, `select` formatter - https://formatjs.io/docs/core-concepts/icu-syntax#select-format
|
|
30
|
+
* It allows to use following translation value: 'Welcome back{inputData, select, 0 {} 1 {, John}}'
|
|
31
|
+
* See example in tests: __tests__/i18n.spec.tsx
|
|
32
|
+
*/
|
|
33
|
+
class ICU {
|
|
34
|
+
constructor(options) {
|
|
35
|
+
(0, _defineProperty2.default)(this, "options", void 0);
|
|
36
|
+
(0, _defineProperty2.default)(this, "formats", void 0);
|
|
37
|
+
(0, _defineProperty2.default)(this, "type", void 0);
|
|
38
|
+
(0, _defineProperty2.default)(this, "mem", void 0);
|
|
39
|
+
this.type = 'i18nFormat';
|
|
40
|
+
this.mem = {};
|
|
41
|
+
this.init(null, options);
|
|
42
|
+
}
|
|
43
|
+
init(i18next, options) {
|
|
44
|
+
var _this$options, _this$options2;
|
|
45
|
+
const i18nextOptions = i18next && i18next.options && i18next.options.i18nFormat || {};
|
|
46
|
+
this.options = utils.defaults(i18nextOptions, options, this.options || {}, getDefaults());
|
|
47
|
+
this.formats = (_this$options = this.options) == null ? void 0 : _this$options.formats;
|
|
48
|
+
if (i18next) {
|
|
49
|
+
const {
|
|
50
|
+
bindI18n,
|
|
51
|
+
bindI18nStore,
|
|
52
|
+
memoize
|
|
53
|
+
} = this.options;
|
|
54
|
+
|
|
55
|
+
// @ts-expect-error
|
|
56
|
+
i18next.IntlMessageFormat = _intlMessageformat.default;
|
|
57
|
+
// @ts-expect-error
|
|
58
|
+
i18next.ICU = this;
|
|
59
|
+
if (memoize) {
|
|
60
|
+
if (bindI18n) {
|
|
61
|
+
i18next.on(bindI18n, () => this.clearCache());
|
|
62
|
+
}
|
|
63
|
+
if (bindI18nStore) {
|
|
64
|
+
i18next.store.on(bindI18nStore, () => this.clearCache());
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
if ((_this$options2 = this.options) != null && _this$options2.localeData) {
|
|
69
|
+
if (Object.prototype.toString.apply(this.options.localeData) === '[object Array]') {
|
|
70
|
+
this.options.localeData.forEach(ld => this.addLocaleData(ld));
|
|
71
|
+
} else {
|
|
72
|
+
this.addLocaleData(this.options.localeData);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
addLocaleData(data) {
|
|
77
|
+
const locales = Array.isArray(data) ? data : [data];
|
|
78
|
+
locales.forEach(localeData => {
|
|
79
|
+
if (localeData && localeData.locale) {
|
|
80
|
+
// @ts-expect-error
|
|
81
|
+
_intlMessageformat.default.__addLocaleData(localeData);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
addUserDefinedFormats(formats) {
|
|
86
|
+
this.formats = this.formats ? {
|
|
87
|
+
...this.formats,
|
|
88
|
+
...formats
|
|
89
|
+
} : formats;
|
|
90
|
+
}
|
|
91
|
+
parse(res, options, lng, ns, key, info) {
|
|
92
|
+
var _this$options3, _this$options4;
|
|
93
|
+
const hadSuccessfulLookup = info && info.resolved && info.resolved.res;
|
|
94
|
+
const memKey = ((_this$options3 = this.options) == null ? void 0 : _this$options3.memoize) && `${lng}.${ns}.${key.replace(/\./g, '###')}`;
|
|
95
|
+
let fc;
|
|
96
|
+
if ((_this$options4 = this.options) != null && _this$options4.memoize) {
|
|
97
|
+
fc = utils.getPath(this.mem, memKey);
|
|
98
|
+
}
|
|
99
|
+
try {
|
|
100
|
+
if (!fc) {
|
|
101
|
+
var _this$options5;
|
|
102
|
+
fc = new _intlMessageformat.default(res, lng, this.formats);
|
|
103
|
+
if ((_this$options5 = this.options) != null && _this$options5.memoize && (this.options.memoizeFallback || !info || hadSuccessfulLookup)) {
|
|
104
|
+
utils.setPath(this.mem, memKey, fc);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return fc.format(options);
|
|
108
|
+
} catch (err) {
|
|
109
|
+
var _this$options6;
|
|
110
|
+
return (_this$options6 = this.options) == null || _this$options6.parseErrorHandler == null ? void 0 : _this$options6.parseErrorHandler(err, key, res, options);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
addLookupKeys(finalKeys) {
|
|
114
|
+
// no additional keys needed for select or plural
|
|
115
|
+
// so there is no need to add keys to that finalKeys array
|
|
116
|
+
return finalKeys;
|
|
117
|
+
}
|
|
118
|
+
clearCache() {
|
|
119
|
+
this.mem = {};
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// @ts-expect-error
|
|
124
|
+
ICU.type = 'i18nFormat';
|
|
125
|
+
var _default = exports.default = ICU;
|
|
126
|
+
//# sourceMappingURL=icu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_intlMessageformat","_interopRequireDefault","require","utils","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","getDefaults","memoize","memoizeFallback","bindI18n","bindI18nStore","undefined","parseErrorHandler","_err","_key","res","ICU","constructor","options","_defineProperty2","type","mem","init","i18next","_this$options","_this$options2","i18nextOptions","i18nFormat","defaults","formats","IntlMessageFormat","on","clearCache","store","localeData","toString","apply","forEach","ld","addLocaleData","data","locales","Array","isArray","locale","__addLocaleData","addUserDefinedFormats","parse","lng","ns","key","info","_this$options3","_this$options4","hadSuccessfulLookup","resolved","memKey","replace","fc","getPath","_this$options5","setPath","format","err","_this$options6","addLookupKeys","finalKeys","_default","exports"],"sources":["../../../src/icu/icu.ts"],"sourcesContent":["import IntlMessageFormat from 'intl-messageformat';\nimport * as utils from './utils';\nimport type { i18n } from 'i18next';\n\nexport interface IcuFormats {\n number?: {\n [styleName: string]: Intl.NumberFormatOptions;\n };\n date?: {\n [styleName: string]: Intl.DateTimeFormatOptions;\n };\n time?: {\n [styleName: string]: Intl.DateTimeFormatOptions;\n };\n}\n\nexport interface IcuConfig {\n memoize?: boolean;\n memoizeFallback?: boolean;\n formats?: IcuFormats;\n bindI18n?: string;\n bindI18nStore?: 'added' | 'removed';\n localeData?: any;\n parseErrorHandler?: (\n err: Error,\n key: string,\n res: string,\n options: Object,\n ) => string;\n parseLngForICU?: (lng: string) => string;\n}\n\nfunction getDefaults(): IcuConfig {\n return {\n memoize: true,\n memoizeFallback: false,\n bindI18n: '',\n bindI18nStore: undefined,\n parseErrorHandler: (_err, _key, res) => {\n return res;\n },\n };\n}\n\n/**\n * Copied from original ICU source code.\n * @source https://github.com/i18next/i18next-icu/blob/7809547c821a7ef3b2bb9ab2610cdbbcfedcb2f9/src/index.js\n *\n * It's done in order to support `IntlMessageFormat` out of the box.\n * `IntlMessageFormat` is adding formatters that are not provided by i18n.\n * For example, `select` formatter - https://formatjs.io/docs/core-concepts/icu-syntax#select-format\n * It allows to use following translation value: 'Welcome back{inputData, select, 0 {} 1 {, John}}'\n * See example in tests: __tests__/i18n.spec.tsx\n */\nclass ICU {\n options: IcuConfig | undefined;\n formats: IcuFormats | undefined;\n type: string;\n mem: Record<string, any>;\n\n constructor(options: IcuConfig) {\n this.type = 'i18nFormat';\n this.mem = {};\n\n this.init(null, options);\n }\n\n init(i18next: i18n | null, options: IcuConfig) {\n const i18nextOptions =\n (i18next && i18next.options && i18next.options.i18nFormat) || {};\n this.options = utils.defaults(\n i18nextOptions,\n options,\n this.options || {},\n getDefaults(),\n );\n this.formats = this.options?.formats;\n\n if (i18next) {\n const { bindI18n, bindI18nStore, memoize } = this.options!;\n\n // @ts-expect-error\n i18next.IntlMessageFormat = IntlMessageFormat;\n // @ts-expect-error\n i18next.ICU = this;\n\n if (memoize) {\n if (bindI18n) {\n i18next.on(bindI18n, () => this.clearCache());\n }\n\n if (bindI18nStore) {\n i18next.store.on(bindI18nStore, () => this.clearCache());\n }\n }\n }\n\n if (this.options?.localeData) {\n if (\n Object.prototype.toString.apply(this.options.localeData) ===\n '[object Array]'\n ) {\n this.options.localeData.forEach((ld: any) => this.addLocaleData(ld));\n } else {\n this.addLocaleData(this.options.localeData);\n }\n }\n }\n\n addLocaleData(data: any) {\n const locales = Array.isArray(data) ? data : [data];\n\n locales.forEach((localeData) => {\n if (localeData && localeData.locale) {\n // @ts-expect-error\n IntlMessageFormat.__addLocaleData(localeData);\n }\n });\n }\n\n addUserDefinedFormats(formats: IcuFormats) {\n this.formats = this.formats ? { ...this.formats, ...formats } : formats;\n }\n\n parse(\n res: string,\n options: IcuConfig,\n lng: string,\n ns: string,\n key: string,\n info: any,\n ) {\n const hadSuccessfulLookup = info && info.resolved && info.resolved.res;\n const memKey =\n this.options?.memoize && `${lng}.${ns}.${key.replace(/\\./g, '###')}`;\n\n let fc;\n if (this.options?.memoize) {\n fc = utils.getPath(this.mem, memKey);\n }\n\n try {\n if (!fc) {\n fc = new IntlMessageFormat(res, lng, this.formats);\n if (\n this.options?.memoize &&\n (this.options.memoizeFallback || !info || hadSuccessfulLookup)\n ) {\n utils.setPath(this.mem, memKey, fc);\n }\n }\n\n return fc.format(options);\n } catch (err) {\n return this.options?.parseErrorHandler?.(err as Error, key, res, options);\n }\n }\n\n addLookupKeys(finalKeys: any) {\n // no additional keys needed for select or plural\n // so there is no need to add keys to that finalKeys array\n return finalKeys;\n }\n\n clearCache() {\n this.mem = {};\n }\n}\n\n// @ts-expect-error\nICU.type = 'i18nFormat';\n\nexport default ICU;\n"],"mappings":"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"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.defaults = defaults;
|
|
5
|
+
exports.extend = extend;
|
|
6
|
+
exports.getPath = getPath;
|
|
7
|
+
exports.pushPath = pushPath;
|
|
8
|
+
exports.setPath = setPath;
|
|
9
|
+
/* eslint-disable curly */
|
|
10
|
+
/**
|
|
11
|
+
* Copied from https://github.com/wix-private/fed-infra/blob/5e90f683e3d01dfad46bbb0bfffd03223a3858fa/wix-i18n-config/src/utils.js
|
|
12
|
+
* No changes were made.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
function getLastOfPath(object, path, Empty) {
|
|
16
|
+
function cleanKey(key) {
|
|
17
|
+
return key && key.indexOf('###') > -1 ? key.replace(/###/g, '.') : key;
|
|
18
|
+
}
|
|
19
|
+
function canNotTraverseDeeper() {
|
|
20
|
+
return !object || typeof object === 'string';
|
|
21
|
+
}
|
|
22
|
+
const stack = typeof path !== 'string' ? [].concat(path) : path.split('.');
|
|
23
|
+
while (stack.length > 1) {
|
|
24
|
+
if (canNotTraverseDeeper()) return {};
|
|
25
|
+
const key = cleanKey(stack.shift());
|
|
26
|
+
if (!object[key] && Empty) object[key] = new Empty();
|
|
27
|
+
object = object[key];
|
|
28
|
+
}
|
|
29
|
+
if (canNotTraverseDeeper()) return {};
|
|
30
|
+
return {
|
|
31
|
+
obj: object,
|
|
32
|
+
k: cleanKey(stack.shift())
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function setPath(object, path, newValue) {
|
|
36
|
+
const {
|
|
37
|
+
obj,
|
|
38
|
+
k
|
|
39
|
+
} = getLastOfPath(object, path, Object);
|
|
40
|
+
obj[k] = newValue;
|
|
41
|
+
}
|
|
42
|
+
function pushPath(object, path, newValue, concat) {
|
|
43
|
+
const {
|
|
44
|
+
obj,
|
|
45
|
+
k
|
|
46
|
+
} = getLastOfPath(object, path, Object);
|
|
47
|
+
obj[k] = obj[k] || [];
|
|
48
|
+
if (concat) obj[k] = obj[k].concat(newValue);
|
|
49
|
+
if (!concat) obj[k].push(newValue);
|
|
50
|
+
}
|
|
51
|
+
function getPath(object, path) {
|
|
52
|
+
const {
|
|
53
|
+
obj,
|
|
54
|
+
k
|
|
55
|
+
} = getLastOfPath(object, path);
|
|
56
|
+
if (!obj) return undefined;
|
|
57
|
+
return obj[k];
|
|
58
|
+
}
|
|
59
|
+
const arr = [];
|
|
60
|
+
const each = arr.forEach;
|
|
61
|
+
const slice = arr.slice;
|
|
62
|
+
function defaults(obj) {
|
|
63
|
+
each.call(slice.call(arguments, 1), function (source) {
|
|
64
|
+
if (source) {
|
|
65
|
+
for (const prop in source) {
|
|
66
|
+
if (obj[prop] === undefined) obj[prop] = source[prop];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
return obj;
|
|
71
|
+
}
|
|
72
|
+
function extend(obj) {
|
|
73
|
+
each.call(slice.call(arguments, 1), function (source) {
|
|
74
|
+
if (source) {
|
|
75
|
+
for (const prop in source) {
|
|
76
|
+
obj[prop] = source[prop];
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
return obj;
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getLastOfPath","object","path","Empty","cleanKey","key","indexOf","replace","canNotTraverseDeeper","stack","concat","split","length","shift","obj","k","setPath","newValue","Object","pushPath","push","getPath","undefined","arr","each","forEach","slice","defaults","call","arguments","source","prop","extend"],"sources":["../../../src/icu/utils.js"],"sourcesContent":["/* eslint-disable curly */\n/**\n * Copied from https://github.com/wix-private/fed-infra/blob/5e90f683e3d01dfad46bbb0bfffd03223a3858fa/wix-i18n-config/src/utils.js\n * No changes were made.\n */\n\nfunction getLastOfPath(object, path, Empty) {\n function cleanKey(key) {\n return key && key.indexOf('###') > -1 ? key.replace(/###/g, '.') : key;\n }\n\n function canNotTraverseDeeper() {\n return !object || typeof object === 'string';\n }\n\n const stack = typeof path !== 'string' ? [].concat(path) : path.split('.');\n while (stack.length > 1) {\n if (canNotTraverseDeeper()) return {};\n\n const key = cleanKey(stack.shift());\n if (!object[key] && Empty) object[key] = new Empty();\n object = object[key];\n }\n\n if (canNotTraverseDeeper()) return {};\n return {\n obj: object,\n k: cleanKey(stack.shift()),\n };\n}\n\nexport function setPath(object, path, newValue) {\n const { obj, k } = getLastOfPath(object, path, Object);\n\n obj[k] = newValue;\n}\n\nexport function pushPath(object, path, newValue, concat) {\n const { obj, k } = getLastOfPath(object, path, Object);\n\n obj[k] = obj[k] || [];\n if (concat) obj[k] = obj[k].concat(newValue);\n if (!concat) obj[k].push(newValue);\n}\n\nexport function getPath(object, path) {\n const { obj, k } = getLastOfPath(object, path);\n\n if (!obj) return undefined;\n return obj[k];\n}\n\nconst arr = [];\nconst each = arr.forEach;\nconst slice = arr.slice;\n\nexport function defaults(obj) {\n each.call(slice.call(arguments, 1), function (source) {\n if (source) {\n for (const prop in source) {\n if (obj[prop] === undefined) obj[prop] = source[prop];\n }\n }\n });\n return obj;\n}\n\nexport function extend(obj) {\n each.call(slice.call(arguments, 1), function (source) {\n if (source) {\n for (const prop in source) {\n obj[prop] = source[prop];\n }\n }\n });\n return obj;\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.withTranslation = exports.useTranslation = exports.initI18nWithoutICU = exports.initI18nBase = exports.initI18n = exports.i18n = exports.createRtfFormatter = exports.WithTranslationProps = exports.WithTranslation = exports.UseTranslationResponse = exports.TransProps = exports.Trans = exports.TFunction = exports.I18nextProvider = void 0;
|
|
6
|
+
var _icu = _interopRequireDefault(require("./icu/icu"));
|
|
7
|
+
exports.ICU = _icu.default;
|
|
8
|
+
var _i18next = require("i18next");
|
|
9
|
+
exports.i18n = _i18next.i18n;
|
|
10
|
+
exports.TFunction = _i18next.TFunction;
|
|
11
|
+
var _reactI18next = require("react-i18next");
|
|
12
|
+
exports.withTranslation = _reactI18next.withTranslation;
|
|
13
|
+
exports.WithTranslation = _reactI18next.WithTranslation;
|
|
14
|
+
exports.WithTranslationProps = _reactI18next.WithTranslationProps;
|
|
15
|
+
exports.useTranslation = _reactI18next.useTranslation;
|
|
16
|
+
exports.UseTranslationResponse = _reactI18next.UseTranslationResponse;
|
|
17
|
+
exports.I18nextProvider = _reactI18next.I18nextProvider;
|
|
18
|
+
exports.Trans = _reactI18next.Trans;
|
|
19
|
+
exports.TransProps = _reactI18next.TransProps;
|
|
20
|
+
var _initI18n = require("./initI18n");
|
|
21
|
+
exports.initI18n = _initI18n.initI18n;
|
|
22
|
+
var _initI18nWithoutICU = require("./initI18nWithoutICU");
|
|
23
|
+
exports.initI18nWithoutICU = _initI18nWithoutICU.initI18nWithoutICU;
|
|
24
|
+
var _relativeTimeFormatting = require("./relative-time-formatting");
|
|
25
|
+
exports.createRtfFormatter = _relativeTimeFormatting.createRtfFormatter;
|
|
26
|
+
var _i18n = require("./i18n");
|
|
27
|
+
exports.initI18nBase = _i18n.i18n;
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_icu","_interopRequireDefault","require","exports","ICU","default","_i18next","i18n","TFunction","_reactI18next","withTranslation","WithTranslation","WithTranslationProps","useTranslation","UseTranslationResponse","I18nextProvider","Trans","TransProps","_initI18n","initI18n","_initI18nWithoutICU","initI18nWithoutICU","_relativeTimeFormatting","createRtfFormatter","_i18n","initI18nBase"],"sources":["../../src/index.ts"],"sourcesContent":["import ICU from './icu/icu';\nimport type { InitI18nOptions } from './initI18n';\n\nexport { i18n, TFunction } from 'i18next';\nexport {\n withTranslation,\n WithTranslation,\n WithTranslationProps,\n useTranslation,\n UseTranslationResponse,\n I18nextProvider,\n Trans,\n TransProps,\n} from 'react-i18next';\nexport { initI18n } from './initI18n';\nexport { initI18nWithoutICU } from './initI18nWithoutICU';\nexport { createRtfFormatter } from './relative-time-formatting';\nexport { i18n as initI18nBase } from './i18n';\nexport type { Messages } from './i18n';\n\nexport { ICU };\nexport type initOptions = InitI18nOptions;\n"],"mappings":";;;;;AAAA,IAAAA,IAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4BC,OAAA,CAAAC,GAAA,GAAAJ,IAAA,CAAAK,OAAA;AAG5B,IAAAC,QAAA,GAAAJ,OAAA;AAA0CC,OAAA,CAAAI,IAAA,GAAAD,QAAA,CAAAC,IAAA;AAAAJ,OAAA,CAAAK,SAAA,GAAAF,QAAA,CAAAE,SAAA;AAC1C,IAAAC,aAAA,GAAAP,OAAA;AASuBC,OAAA,CAAAO,eAAA,GAAAD,aAAA,CAAAC,eAAA;AAAAP,OAAA,CAAAQ,eAAA,GAAAF,aAAA,CAAAE,eAAA;AAAAR,OAAA,CAAAS,oBAAA,GAAAH,aAAA,CAAAG,oBAAA;AAAAT,OAAA,CAAAU,cAAA,GAAAJ,aAAA,CAAAI,cAAA;AAAAV,OAAA,CAAAW,sBAAA,GAAAL,aAAA,CAAAK,sBAAA;AAAAX,OAAA,CAAAY,eAAA,GAAAN,aAAA,CAAAM,eAAA;AAAAZ,OAAA,CAAAa,KAAA,GAAAP,aAAA,CAAAO,KAAA;AAAAb,OAAA,CAAAc,UAAA,GAAAR,aAAA,CAAAQ,UAAA;AACvB,IAAAC,SAAA,GAAAhB,OAAA;AAAsCC,OAAA,CAAAgB,QAAA,GAAAD,SAAA,CAAAC,QAAA;AACtC,IAAAC,mBAAA,GAAAlB,OAAA;AAA0DC,OAAA,CAAAkB,kBAAA,GAAAD,mBAAA,CAAAC,kBAAA;AAC1D,IAAAC,uBAAA,GAAApB,OAAA;AAAgEC,OAAA,CAAAoB,kBAAA,GAAAD,uBAAA,CAAAC,kBAAA;AAChE,IAAAC,KAAA,GAAAtB,OAAA;AAA8CC,OAAA,CAAAsB,YAAA,GAAAD,KAAA,CAAAjB,IAAA"}
|