@codebards/ik-embeddable-form 0.0.2717408259-qa → 0.0.2720792320-qa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/embed.js CHANGED
@@ -7025,7 +7025,7 @@ var IKEmbeddableFormBundle = function(exports) {
7025
7025
  const booleanType = ZodBoolean.create;
7026
7026
  const unknownType = ZodUnknown.create;
7027
7027
  ZodNever.create;
7028
- ZodArray.create;
7028
+ const arrayType = ZodArray.create;
7029
7029
  const objectType = ZodObject.create;
7030
7030
  const unionType = ZodUnion.create;
7031
7031
  ZodIntersection.create;
@@ -7035,8 +7035,17 @@ var IKEmbeddableFormBundle = function(exports) {
7035
7035
  ZodPromise.create;
7036
7036
  ZodOptional.create;
7037
7037
  ZodNullable.create;
7038
+ const fieldOptionSchema = objectType({
7039
+ label: stringType(),
7040
+ value: stringType(),
7041
+ disabled: booleanType().optional(),
7042
+ icon: stringType().optional(),
7043
+ metadata: recordType(unknownType()).optional()
7044
+ });
7038
7045
  const fieldOverrideSchema = objectType({
7039
- show: booleanType().optional()
7046
+ show: booleanType().optional(),
7047
+ /** Replaces the base field's option list wholesale */
7048
+ options: arrayType(fieldOptionSchema).optional()
7040
7049
  }).passthrough();
7041
7050
  const stepOverrideSchema = objectType({
7042
7051
  show: booleanType().optional(),
@@ -7059,12 +7068,12 @@ var IKEmbeddableFormBundle = function(exports) {
7059
7068
  id: stringType(),
7060
7069
  overrides: variantOverrideSpecSchema
7061
7070
  });
7062
- const remoteVariantFileSchema = unionType([
7063
- remoteVariantEnvelopeSchema,
7064
- variantOverrideSpecSchema
7065
- ]);
7071
+ function isEnvelopeShape(raw) {
7072
+ return typeof raw === "object" && raw !== null && "overrides" in raw;
7073
+ }
7066
7074
  function parseRemoteVariantJson(raw, expectedVariantId) {
7067
- const parsed = remoteVariantFileSchema.safeParse(raw);
7075
+ const schema = isEnvelopeShape(raw) ? remoteVariantEnvelopeSchema : variantOverrideSpecSchema;
7076
+ const parsed = schema.safeParse(raw);
7068
7077
  if (!parsed.success) {
7069
7078
  console.warn(
7070
7079
  `[ConfigResolver] Invalid remote variant JSON for "${expectedVariantId}":`,
@@ -20682,6 +20691,38 @@ var IKEmbeddableFormBundle = function(exports) {
20682
20691
  }
20683
20692
  }
20684
20693
  };
20694
+ const INDIA_EXPERIENCE_OPTIONS = [
20695
+ { value: "0-2", label: "0-2" },
20696
+ { value: "3-4", label: "3-4" },
20697
+ { value: "5-8", label: "5-8" },
20698
+ { value: "9-15", label: "9-15" },
20699
+ { value: "16-20", label: "16-20" },
20700
+ { value: "20+", label: "20+" }
20701
+ ];
20702
+ const INDIA_DOMAIN_OPTIONS = [
20703
+ { value: "Back-end", label: "Back-end" },
20704
+ { value: "Cloud Engineer", label: "Cloud Engineer" },
20705
+ { value: "Cyber Security", label: "Cyber Security" },
20706
+ { value: "Data Engineer", label: "Data Engineer" },
20707
+ { value: "Data Science", label: "Data Science" },
20708
+ { value: "Front-end", label: "Front-end" },
20709
+ { value: "Full Stack", label: "Full Stack" },
20710
+ { value: "Machine Learning / AI", label: "Machine Learning / AI" },
20711
+ { value: "Engineering Manager - any domain", label: "Engineering Manager - any domain" },
20712
+ { value: "Tech Product Manager", label: "Tech Product Manager" },
20713
+ { value: "Technical Program Manager", label: "Technical Program Manager" },
20714
+ { value: "Test Engineer / SDET / QE", label: "Test Engineer / SDET / QE" },
20715
+ { value: "Android Developer", label: "Android Developer" },
20716
+ { value: "iOS Developer", label: "iOS Developer" },
20717
+ { value: "Site Reliability Engineer", label: "Site Reliability Engineer" },
20718
+ { value: "Embedded Software Engineer", label: "Embedded Software Engineer" },
20719
+ { value: "Other Software Engineers", label: "Other Software Engineers" },
20720
+ { value: "Data Analyst / Business Analyst", label: "Data Analyst / Business Analyst" },
20721
+ { value: "Core Engineering", label: "Core Engineering" },
20722
+ { value: "Salesforce developer", label: "Salesforce developer" },
20723
+ { value: "DevOps Engineer", label: "DevOps Engineer" },
20724
+ { value: "None of the above", label: "None of the above" }
20725
+ ];
20685
20726
  const indiaVariant = {
20686
20727
  id: "india",
20687
20728
  overrides: {
@@ -20712,7 +20753,9 @@ var IKEmbeddableFormBundle = function(exports) {
20712
20753
  steps: {
20713
20754
  "profile-details": {
20714
20755
  fields: {
20715
- primaryGoal: { show: false }
20756
+ primaryGoal: { show: false },
20757
+ experience: { options: INDIA_EXPERIENCE_OPTIONS },
20758
+ domain: { options: INDIA_DOMAIN_OPTIONS }
20716
20759
  }
20717
20760
  },
20718
20761
  "goals-details": { show: false }