I think DrFalcon addressed the issue quite accurately, but I thought I would add further context as to what happens under different conditions of external electric fields.
Per PVEducation, see the following electric field plot along the axis of the junction:
Since the electric field is defined for a positive point charge, holes will move to the p-type region (-x), and electrons to the n-type region (+x). This is without external fields applied. What's critical to understand here is that if a junction is disconnected and isolated, no internal or intrinsic electric field exists outside the depletion region due to the p- and n-type regions being electrically neutral (and electric field lines must always align/begin/stop). Diffusion is the predominant mechanism, so electrons/holes will not spontaneously cross the depletion region.
If external fields are applied, as in your textbook's example, these fields add and introduce different plots:
An electric field is present outside the depletion region.
If the external electric field (applied in the opposite direction) is less than the internal one (above), then there will be points inside the junction when the total electric field is 0 and neither holes nor electrons will be able to fully cross the junction and establish drift current. There will be a collection of charges at and near the crossing points within the junction.
If the external field is greater than the internal one, then null points cease to exist and the entirety of the junction allows electrons to flow, even across the depletion region:
So, your battery or applied voltage source needs to overcome this built-in voltage of the PN junction, whether diode or BJT or whatever, in order for electrons to fully cross the depletion region and establish current.
The positive and negative portions of the depletion region aren't fixed, however, as others have said. They shrink or expand under forward or reverse bias, as can be seen in this Electronics Tutorials article:
This corresponds to different slopes of the electric fields in the pictures above.
I don't believe that the depletion regions under extreme forward or reverse biases can ever fully disappear (infinite current?) or fully encapsulate the junction (infinite current?) because real systems always have parasitic resistances that limit current to some amount (before energy exchange between excited electrons and travel media becomes so much that molecular bonds start to break down and the material degrades). Maybe others have explanations for these situations, even before avalanche behavior under either bias.
Hope this clears anything else up!